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

changeset 4762
0a2deac0bbfb
parent 4318
cd3d6a6b95d9
child 5419
e619a2766bcc
     1.1 --- a/src/cpu/x86/vm/frame_x86.inline.hpp	Sat Mar 16 07:39:57 2013 -0700
     1.2 +++ b/src/cpu/x86/vm/frame_x86.inline.hpp	Sat Mar 16 07:40:36 2013 -0700
     1.3 @@ -295,14 +295,18 @@
     1.4    return true;
     1.5  }
     1.6  
     1.7 +inline oop frame::saved_oop_result(RegisterMap* map) const {
     1.8 +  oop* result_adr = (oop *)map->location(rax->as_VMReg());
     1.9 +  guarantee(result_adr != NULL, "bad register save location");
    1.10  
    1.11 -
    1.12 -inline oop frame::saved_oop_result(RegisterMap* map) const       {
    1.13 -  return *((oop*) map->location(rax->as_VMReg()));
    1.14 +  return (*result_adr);
    1.15  }
    1.16  
    1.17  inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) {
    1.18 -  *((oop*) map->location(rax->as_VMReg())) = obj;
    1.19 +  oop* result_adr = (oop *)map->location(rax->as_VMReg());
    1.20 +  guarantee(result_adr != NULL, "bad register save location");
    1.21 +
    1.22 +  *result_adr = obj;
    1.23  }
    1.24  
    1.25  #endif // CPU_X86_VM_FRAME_X86_INLINE_HPP

mercurial