comparison src/cpu/zero/vm/frame_zero.inline.hpp @ 5819:39f4affc6564

8143245: Zero build requires disabled warnings 8022956: Clang: enable return type warnings on BSD Summary: Based on work of Severin Gehwolf <sgehwolf@redhat.com> & Christian Thalinger <cthalinger@twitter.com> with additions for 7-only cases Reviewed-by: dholmes, coleenp, sla
author andrew
date Tue, 13 Feb 2018 06:42:27 +0000
parents ff18bcebe294
children
comparison
equal deleted inserted replaced
6:efbb6dde9c91 7:a22a4278e789
34 _pc = NULL; 34 _pc = NULL;
35 _cb = NULL; 35 _cb = NULL;
36 _deopt_state = unknown; 36 _deopt_state = unknown;
37 } 37 }
38 38
39 inline address frame::sender_pc() const { ShouldNotCallThis(); } 39 inline address frame::sender_pc() const { ShouldNotCallThis(); return NULL; }
40 40
41 inline frame::frame(ZeroFrame* zf, intptr_t* sp) { 41 inline frame::frame(ZeroFrame* zf, intptr_t* sp) {
42 _zeroframe = zf; 42 _zeroframe = zf;
43 _sp = sp; 43 _sp = sp;
44 switch (zeroframe()->type()) { 44 switch (zeroframe()->type()) {
78 return fp(); 78 return fp();
79 } 79 }
80 80
81 inline intptr_t* frame::link() const { 81 inline intptr_t* frame::link() const {
82 ShouldNotCallThis(); 82 ShouldNotCallThis();
83 return NULL;
83 } 84 }
84 85
85 #ifdef CC_INTERP 86 #ifdef CC_INTERP
86 inline interpreterState frame::get_interpreterState() const { 87 inline interpreterState frame::get_interpreterState() const {
87 return zero_interpreterframe()->interpreter_state(); 88 return zero_interpreterframe()->interpreter_state();
140 ShouldNotCallThis(); 141 ShouldNotCallThis();
141 } 142 }
142 143
143 inline oop frame::saved_oop_result(RegisterMap* map) const { 144 inline oop frame::saved_oop_result(RegisterMap* map) const {
144 ShouldNotCallThis(); 145 ShouldNotCallThis();
146 return NULL;
145 } 147 }
146 148
147 inline bool frame::is_older(intptr_t* id) const { 149 inline bool frame::is_older(intptr_t* id) const {
148 ShouldNotCallThis(); 150 ShouldNotCallThis();
151 return false;
149 } 152 }
150 153
151 inline intptr_t* frame::entry_frame_argument_at(int offset) const { 154 inline intptr_t* frame::entry_frame_argument_at(int offset) const {
152 ShouldNotCallThis(); 155 ShouldNotCallThis();
156 return NULL;
153 } 157 }
154 158
155 inline intptr_t* frame::unextended_sp() const { 159 inline intptr_t* frame::unextended_sp() const {
156 if (zeroframe()->is_shark_frame()) 160 if (zeroframe()->is_shark_frame())
157 return zero_sharkframe()->unextended_sp(); 161 return zero_sharkframe()->unextended_sp();