src/cpu/x86/vm/interp_masm_x86_32.cpp

changeset 3156
f08d439fab8c
parent 3050
fdb992d83a87
child 3969
1d7922586cf6
     1.1 --- a/src/cpu/x86/vm/interp_masm_x86_32.cpp	Tue Sep 20 23:50:16 2011 -0700
     1.2 +++ b/src/cpu/x86/vm/interp_masm_x86_32.cpp	Sun Sep 25 16:03:29 2011 -0700
     1.3 @@ -45,6 +45,9 @@
     1.4  #ifdef TARGET_OS_FAMILY_windows
     1.5  # include "thread_windows.inline.hpp"
     1.6  #endif
     1.7 +#ifdef TARGET_OS_FAMILY_bsd
     1.8 +# include "thread_bsd.inline.hpp"
     1.9 +#endif
    1.10  
    1.11  
    1.12  // Implementation of InterpreterMacroAssembler
    1.13 @@ -1158,7 +1161,7 @@
    1.14    int recvr_offset = in_bytes(VirtualCallData::receiver_offset(start_row));
    1.15    set_mdp_data_at(mdp, recvr_offset, receiver);
    1.16    int count_offset = in_bytes(VirtualCallData::receiver_count_offset(start_row));
    1.17 -  movptr(reg2, (int32_t)DataLayout::counter_increment);
    1.18 +  movptr(reg2, (intptr_t)DataLayout::counter_increment);
    1.19    set_mdp_data_at(mdp, count_offset, reg2);
    1.20    if (start_row > 0) {
    1.21      jmp(done);
    1.22 @@ -1301,7 +1304,7 @@
    1.23      test_method_data_pointer(mdp, profile_continue);
    1.24  
    1.25      // Build the base (index * per_case_size_in_bytes()) + case_array_offset_in_bytes()
    1.26 -    movptr(reg2, (int32_t)in_bytes(MultiBranchData::per_case_size()));
    1.27 +    movptr(reg2, (intptr_t)in_bytes(MultiBranchData::per_case_size()));
    1.28      // index is positive and so should have correct value if this code were
    1.29      // used on 64bits
    1.30      imulptr(index, reg2);

mercurial