126 intptr_t* _fp; // frame pointer
127 int _offset_fp; // relative frame pointer for use in stack-chunk frames
128 };
129 // The interpreter and adapters will extend the frame of the caller.
130 // Since oopMaps are based on the sp of the caller before extension
131 // we need to know that value. However in order to compute the address
132 // of the return address we need the real "raw" sp. By convention we
133 // use sp() to mean "raw" sp and unextended_sp() to mean the caller's
134 // original sp.
135
136 union {
137 intptr_t* _unextended_sp;
138 int _offset_unextended_sp; // for use in stack-chunk frames
139 };
140
141 intptr_t* ptr_at_addr(int offset) const {
142 return (intptr_t*) addr_at(offset);
143 }
144
145 public:
146 // Constructors
147
148 frame(intptr_t* sp, intptr_t* fp, address pc);
149
150 frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc);
151
152 frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc, CodeBlob* cb);
153 // used for heap frame construction by continuations
154 frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc, CodeBlob* cb, const ImmutableOopMap* oop_map, bool relative);
155
156 frame(intptr_t* sp, intptr_t* fp);
157
158 void init(intptr_t* sp, intptr_t* fp, address pc);
159 void setup(address pc);
160
161 // accessors for the instance variables
162 // Note: not necessarily the real 'frame pointer' (see real_fp)
163 intptr_t* fp() const { assert_absolute(); return _fp; }
164 void set_fp(intptr_t* newfp) { _fp = newfp; }
165 int offset_fp() const { assert_offset(); return _offset_fp; }
|
126 intptr_t* _fp; // frame pointer
127 int _offset_fp; // relative frame pointer for use in stack-chunk frames
128 };
129 // The interpreter and adapters will extend the frame of the caller.
130 // Since oopMaps are based on the sp of the caller before extension
131 // we need to know that value. However in order to compute the address
132 // of the return address we need the real "raw" sp. By convention we
133 // use sp() to mean "raw" sp and unextended_sp() to mean the caller's
134 // original sp.
135
136 union {
137 intptr_t* _unextended_sp;
138 int _offset_unextended_sp; // for use in stack-chunk frames
139 };
140
141 intptr_t* ptr_at_addr(int offset) const {
142 return (intptr_t*) addr_at(offset);
143 }
144
145 public:
146 // Support for scalarized inline type calling convention
147 intptr_t* repair_sender_sp(intptr_t* sender_sp, intptr_t** saved_fp_addr) const;
148 static intptr_t* repair_sender_sp(nmethod* nm, intptr_t* sp, intptr_t** saved_fp_addr);
149 bool was_augmented_on_entry(int& real_size) const;
150
151 // Constructors
152
153 frame(intptr_t* sp, intptr_t* fp, address pc);
154
155 frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc);
156
157 frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc, CodeBlob* cb);
158 // used for heap frame construction by continuations
159 frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc, CodeBlob* cb, const ImmutableOopMap* oop_map, bool relative);
160
161 frame(intptr_t* sp, intptr_t* fp);
162
163 void init(intptr_t* sp, intptr_t* fp, address pc);
164 void setup(address pc);
165
166 // accessors for the instance variables
167 // Note: not necessarily the real 'frame pointer' (see real_fp)
168 intptr_t* fp() const { assert_absolute(); return _fp; }
169 void set_fp(intptr_t* newfp) { _fp = newfp; }
170 int offset_fp() const { assert_offset(); return _offset_fp; }
|