src/cpu/x86/vm/interpreterRT_x86_32.cpp

changeset 739
dc7f315e41f7
parent 435
a61af66fc99e
child 772
9ee9cf798b59
     1.1 --- a/src/cpu/x86/vm/interpreterRT_x86_32.cpp	Tue Aug 26 15:49:40 2008 -0700
     1.2 +++ b/src/cpu/x86/vm/interpreterRT_x86_32.cpp	Wed Aug 27 00:21:55 2008 -0700
     1.3 @@ -50,13 +50,13 @@
     1.4  
     1.5  
     1.6  void InterpreterRuntime::SignatureHandlerGenerator::box(int from_offset, int to_offset) {
     1.7 -  __ leal(temp(), Address(from(), Interpreter::local_offset_in_bytes(from_offset)));
     1.8 -  __ cmpl(Address(from(), Interpreter::local_offset_in_bytes(from_offset)), 0); // do not use temp() to avoid AGI
     1.9 +  __ lea(temp(), Address(from(), Interpreter::local_offset_in_bytes(from_offset)));
    1.10 +  __ cmpptr(Address(from(), Interpreter::local_offset_in_bytes(from_offset)), (int32_t)NULL_WORD); // do not use temp() to avoid AGI
    1.11    Label L;
    1.12    __ jcc(Assembler::notZero, L);
    1.13 -  __ movl(temp(), 0);
    1.14 +  __ movptr(temp(), ((int32_t)NULL_WORD));
    1.15    __ bind(L);
    1.16 -  __ movl(Address(to(), to_offset * wordSize), temp());
    1.17 +  __ movptr(Address(to(), to_offset * wordSize), temp());
    1.18  }
    1.19  
    1.20  

mercurial