comparison src/cpu/sparc/vm/frame_sparc.inline.hpp @ 17813:af8cc1dae608

8035396: Introduce accessor for tmp_oop in frame. Summary: Avoid #ifs by introducing the accessor function interpreter_frame_temp_oop_addr(). Reviewed-by: kvn, twisti
author goetz
date Wed, 26 Feb 2014 11:33:34 -0800
parents 55fb97c4c58d
children d8041d695d19 7f77d17d0f13
comparison
equal deleted inserted replaced
17812:a7d4d4655766 17813:af8cc1dae608
235 } 235 }
236 236
237 inline ConstantPoolCache** frame::interpreter_frame_cache_addr() const { 237 inline ConstantPoolCache** frame::interpreter_frame_cache_addr() const {
238 return (ConstantPoolCache**)sp_addr_at( LcpoolCache->sp_offset_in_saved_window()); 238 return (ConstantPoolCache**)sp_addr_at( LcpoolCache->sp_offset_in_saved_window());
239 } 239 }
240
241 inline oop* frame::interpreter_frame_temp_oop_addr() const {
242 return (oop *)(fp() + interpreter_frame_oop_temp_offset);
243 }
240 #endif // CC_INTERP 244 #endif // CC_INTERP
241 245
242 246
243 inline JavaCallWrapper** frame::entry_frame_call_wrapper_addr() const { 247 inline JavaCallWrapper** frame::entry_frame_call_wrapper_addr() const {
244 // note: adjust this code if the link argument in StubGenerator::call_stub() changes! 248 // note: adjust this code if the link argument in StubGenerator::call_stub() changes!