src/cpu/x86/vm/frame_x86.inline.hpp

Print this page
rev 4273 : imported patch JDK-8008328

*** 293,308 **** inline bool frame::volatile_across_calls(Register reg) { return true; } - - inline oop frame::saved_oop_result(RegisterMap* map) const { ! return *((oop*) map->location(rax->as_VMReg())); } inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) { ! *((oop*) map->location(rax->as_VMReg())) = obj; } #endif // CPU_X86_VM_FRAME_X86_INLINE_HPP --- 293,312 ---- inline bool frame::volatile_across_calls(Register reg) { return true; } inline oop frame::saved_oop_result(RegisterMap* map) const { ! oop* result_adr = (oop *)map->location(rax->as_VMReg()); ! guarantee(result_adr != NULL, "bad register save location"); ! ! return (*result_adr); } inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) { ! oop* result_adr = (oop *)map->location(rax->as_VMReg()); ! guarantee(result_adr != NULL, "bad register save location"); ! ! *result_adr = obj; } #endif // CPU_X86_VM_FRAME_X86_INLINE_HPP