39 }
40
41 inline address frame::sender_pc() const { ShouldNotCallThis(); return NULL; }
42
43 inline frame::frame(ZeroFrame* zf, intptr_t* sp) {
44 _zeroframe = zf;
45 _sp = sp;
46 switch (zeroframe()->type()) {
47 case ZeroFrame::ENTRY_FRAME:
48 _pc = StubRoutines::call_stub_return_pc();
49 _cb = NULL;
50 _deopt_state = not_deoptimized;
51 break;
52
53 case ZeroFrame::INTERPRETER_FRAME:
54 _pc = NULL;
55 _cb = NULL;
56 _deopt_state = not_deoptimized;
57 break;
58
59 case ZeroFrame::SHARK_FRAME: {
60 _pc = zero_sharkframe()->pc();
61 _cb = CodeCache::find_blob_unsafe(pc());
62 address original_pc = CompiledMethod::get_deopt_original_pc(this);
63 if (original_pc != NULL) {
64 _pc = original_pc;
65 _deopt_state = is_deoptimized;
66 } else {
67 _deopt_state = not_deoptimized;
68 }
69 break;
70 }
71 case ZeroFrame::FAKE_STUB_FRAME:
72 _pc = NULL;
73 _cb = NULL;
74 _deopt_state = not_deoptimized;
75 break;
76
77 default:
78 ShouldNotReachHere();
79 }
80 }
81
82 // Accessors
83
84 inline intptr_t* frame::sender_sp() const {
85 return fp() + 1;
86 }
87
88 inline intptr_t* frame::real_fp() const {
89 return fp();
90 }
160 inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) {
161 ShouldNotCallThis();
162 }
163
164 inline oop frame::saved_oop_result(RegisterMap* map) const {
165 ShouldNotCallThis();
166 return NULL;
167 }
168
169 inline bool frame::is_older(intptr_t* id) const {
170 ShouldNotCallThis();
171 return false;
172 }
173
174 inline intptr_t* frame::entry_frame_argument_at(int offset) const {
175 ShouldNotCallThis();
176 return NULL;
177 }
178
179 inline intptr_t* frame::unextended_sp() const {
180 if (zeroframe()->is_shark_frame())
181 return zero_sharkframe()->unextended_sp();
182 else
183 return (intptr_t *) -1;
184 }
185
186 #endif // CPU_ZERO_VM_FRAME_ZERO_INLINE_HPP
|
39 }
40
41 inline address frame::sender_pc() const { ShouldNotCallThis(); return NULL; }
42
43 inline frame::frame(ZeroFrame* zf, intptr_t* sp) {
44 _zeroframe = zf;
45 _sp = sp;
46 switch (zeroframe()->type()) {
47 case ZeroFrame::ENTRY_FRAME:
48 _pc = StubRoutines::call_stub_return_pc();
49 _cb = NULL;
50 _deopt_state = not_deoptimized;
51 break;
52
53 case ZeroFrame::INTERPRETER_FRAME:
54 _pc = NULL;
55 _cb = NULL;
56 _deopt_state = not_deoptimized;
57 break;
58
59 case ZeroFrame::FAKE_STUB_FRAME:
60 _pc = NULL;
61 _cb = NULL;
62 _deopt_state = not_deoptimized;
63 break;
64
65 default:
66 ShouldNotReachHere();
67 }
68 }
69
70 // Accessors
71
72 inline intptr_t* frame::sender_sp() const {
73 return fp() + 1;
74 }
75
76 inline intptr_t* frame::real_fp() const {
77 return fp();
78 }
148 inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) {
149 ShouldNotCallThis();
150 }
151
152 inline oop frame::saved_oop_result(RegisterMap* map) const {
153 ShouldNotCallThis();
154 return NULL;
155 }
156
157 inline bool frame::is_older(intptr_t* id) const {
158 ShouldNotCallThis();
159 return false;
160 }
161
162 inline intptr_t* frame::entry_frame_argument_at(int offset) const {
163 ShouldNotCallThis();
164 return NULL;
165 }
166
167 inline intptr_t* frame::unextended_sp() const {
168 return (intptr_t *) -1;
169 }
170
171 #endif // CPU_ZERO_VM_FRAME_ZERO_INLINE_HPP
|