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 static inline void patch_return_pc_with_preempt_stub(frame& f) {
 37   Unimplemented();
 38 }
 39 
 40 inline int ContinuationHelper::frame_align_words(int size) {
 41   Unimplemented();
 42   return 0;
 43 }
 44 
 45 inline intptr_t* ContinuationHelper::frame_align_pointer(intptr_t* sp) {
 46   Unimplemented();
 47   return nullptr;
 48 }
 49 
 50 template<typename FKind>
 51 inline void ContinuationHelper::update_register_map(const frame& f, RegisterMap* map) {
 52   Unimplemented();
 53 }
 54 
 55 inline void ContinuationHelper::update_register_map_with_callee(const frame& f, RegisterMap* map) {
 56   Unimplemented();
 57 }
 58 
 59 inline void ContinuationHelper::push_pd(const frame& f) {
 60   Unimplemented();
 61 }
 62 
 63 inline void ContinuationHelper::set_anchor_to_entry_pd(JavaFrameAnchor* anchor, ContinuationEntry* cont) {
 64   Unimplemented();
 65 }
 66 
 67 inline void ContinuationHelper::set_anchor_pd(JavaFrameAnchor* anchor, intptr_t* sp) {
 68   Unimplemented();
 69 }
 70 
 71 #ifdef ASSERT
 72 inline bool ContinuationHelper::Frame::assert_frame_laid_out(frame f) {
 73   Unimplemented();
 74   return false;
 75 }
 76 #endif
 77 
 78 inline intptr_t** ContinuationHelper::Frame::callee_link_address(const frame& f) {
 79   Unimplemented();
 80   return nullptr;
 81 }
 82 
 83 template<typename FKind>
 84 static inline intptr_t* real_fp(const frame& f) {
 85   Unimplemented();
 86   return nullptr;
 87 }
 88 
 89 inline address* ContinuationHelper::InterpretedFrame::return_pc_address(const frame& f) {
 90   Unimplemented();
 91   return nullptr;
 92 }
 93 
 94 inline void ContinuationHelper::InterpretedFrame::patch_sender_sp(frame& f, const frame& caller) {
 95   Unimplemented();
 96 }
 97 
 98 inline address* ContinuationHelper::Frame::return_pc_address(const frame& f) {
 99   Unimplemented();
100   return nullptr;
101 }
102 
103 inline address ContinuationHelper::Frame::real_pc(const frame& f) {
104   Unimplemented();
105   return nullptr;
106 }
107 
108 inline void ContinuationHelper::Frame::patch_pc(const frame& f, address pc) {
109   Unimplemented();
110 }
111 
112 inline intptr_t* ContinuationHelper::InterpretedFrame::frame_top(const frame& f, InterpreterOopMap* mask) { // inclusive; this will be copied with the frame
113   Unimplemented();
114   return nullptr;
115 }
116 
117 inline intptr_t* ContinuationHelper::InterpretedFrame::frame_bottom(const frame& f) { // exclusive; this will not be copied with the frame
118   Unimplemented();
119   return nullptr;
120 }
121 
122 inline intptr_t* ContinuationHelper::InterpretedFrame::frame_top(const frame& f, int callee_argsize, bool callee_interpreted) {
123   Unimplemented();
124   return nullptr;
125 }
126 
127 inline intptr_t* ContinuationHelper::InterpretedFrame::callers_sp(const frame& f) {
128   Unimplemented();
129   return nullptr;
130 }
131 
132 #endif // CPU_ZERO_CONTINUATIONHELPER_ZERO_INLINE_HPP