1 /*
  2  * Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
  3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4  *
  5  * This code is free software; you can redistribute it and/or modify it
  6  * under the terms of the GNU General Public License version 2 only, as
  7  * published by the Free Software Foundation.
  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  *
 23  */
 24 
 25 #ifndef CPU_ZERO_CONTINUATIONHELPER_ZERO_INLINE_HPP
 26 #define CPU_ZERO_CONTINUATIONHELPER_ZERO_INLINE_HPP
 27 
 28 #include "runtime/continuationHelper.hpp"
 29 
 30 template<typename FKind> // TODO: maybe do the same CRTP trick with Interpreted and Compiled as with hframe
 31 static inline intptr_t** link_address(const frame& f) {
 32   Unimplemented();
 33   return nullptr;
 34 }
 35 
 36 inline int ContinuationHelper::frame_align_words(int size) {
 37   Unimplemented();
 38   return 0;
 39 }
 40 
 41 inline intptr_t* ContinuationHelper::frame_align_pointer(intptr_t* sp) {
 42   Unimplemented();
 43   return nullptr;
 44 }
 45 
 46 template<typename FKind>
 47 inline void ContinuationHelper::update_register_map(const frame& f, RegisterMap* map) {
 48   Unimplemented();
 49 }
 50 
 51 inline void ContinuationHelper::update_register_map_with_callee(const frame& f, RegisterMap* map) {
 52   Unimplemented();
 53 }
 54 
 55 inline void ContinuationHelper::push_pd(const frame& f) {
 56   Unimplemented();
 57 }
 58 
 59 inline void ContinuationHelper::set_anchor_to_entry_pd(JavaFrameAnchor* anchor, ContinuationEntry* cont) {
 60   Unimplemented();
 61 }
 62 
 63 #ifdef ASSERT
 64 inline void ContinuationHelper::set_anchor_pd(JavaFrameAnchor* anchor, intptr_t* sp) {
 65   Unimplemented();
 66 }
 67 
 68 inline bool ContinuationHelper::Frame::assert_frame_laid_out(frame f) {
 69   Unimplemented();
 70   return false;
 71 }
 72 #endif
 73 
 74 inline intptr_t** ContinuationHelper::Frame::callee_link_address(const frame& f) {
 75   Unimplemented();
 76   return nullptr;
 77 }
 78 
 79 template<typename FKind>
 80 static inline intptr_t* real_fp(const frame& f) {
 81   Unimplemented();
 82   return nullptr;
 83 }
 84 
 85 inline address* ContinuationHelper::InterpretedFrame::return_pc_address(const frame& f) {
 86   Unimplemented();
 87   return nullptr;
 88 }
 89 
 90 inline void ContinuationHelper::InterpretedFrame::patch_sender_sp(frame& f, const frame& caller) {
 91   Unimplemented();
 92 }
 93 
 94 inline address* ContinuationHelper::Frame::return_pc_address(const frame& f) {
 95   Unimplemented();
 96   return nullptr;
 97 }
 98 
 99 inline address ContinuationHelper::Frame::real_pc(const frame& f) {
100   Unimplemented();
101   return nullptr;
102 }
103 
104 inline void ContinuationHelper::Frame::patch_pc(const frame& f, address pc) {
105   Unimplemented();
106 }
107 
108 inline intptr_t* ContinuationHelper::InterpretedFrame::frame_top(const frame& f, InterpreterOopMap* mask) { // inclusive; this will be copied with the frame
109   Unimplemented();
110   return nullptr;
111 }
112 
113 inline intptr_t* ContinuationHelper::InterpretedFrame::frame_bottom(const frame& f) { // exclusive; this will not be copied with the frame
114   Unimplemented();
115   return nullptr;
116 }
117 
118 inline intptr_t* ContinuationHelper::InterpretedFrame::frame_top(const frame& f, int callee_argsize, bool callee_interpreted) {
119   Unimplemented();
120   return nullptr;
121 }
122 
123 inline intptr_t* ContinuationHelper::InterpretedFrame::callers_sp(const frame& f) {
124   Unimplemented();
125   return nullptr;
126 }
127 
128 #endif // CPU_ZERO_CONTINUATIONHELPER_ZERO_INLINE_HPP