comparison src/cpu/x86/vm/frame_x86.inline.hpp @ 8883:b9a918201d47

Merge with hsx25
author Gilles Duboscq <duboscq@ssw.jku.at>
date Sat, 06 Apr 2013 20:04:06 +0200
parents b8f261ba79c6 0a2deac0bbfb
children 6b0fd0964b87
comparison
equal deleted inserted replaced
8660:d47b52b0ff68 8883:b9a918201d47
293 293
294 inline bool frame::volatile_across_calls(Register reg) { 294 inline bool frame::volatile_across_calls(Register reg) {
295 return true; 295 return true;
296 } 296 }
297 297
298 298 inline oop frame::saved_oop_result(RegisterMap* map) const {
299 299 oop* result_adr = (oop *)map->location(rax->as_VMReg());
300 inline oop frame::saved_oop_result(RegisterMap* map) const { 300 guarantee(result_adr != NULL, "bad register save location");
301 return *((oop*) map->location(rax->as_VMReg())); 301
302 return (*result_adr);
302 } 303 }
303 304
304 inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) { 305 inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) {
305 *((oop*) map->location(rax->as_VMReg())) = obj; 306 oop* result_adr = (oop *)map->location(rax->as_VMReg());
307 guarantee(result_adr != NULL, "bad register save location");
308
309 *result_adr = obj;
306 } 310 }
307 311
308 #endif // CPU_X86_VM_FRAME_X86_INLINE_HPP 312 #endif // CPU_X86_VM_FRAME_X86_INLINE_HPP