src/cpu/sparc/vm/sharedRuntime_sparc.cpp

changeset 777
37f87013dfd8
parent 551
018d5b58dd4f
child 779
6aae2f9d0294
     1.1 --- a/src/cpu/sparc/vm/sharedRuntime_sparc.cpp	Wed Jun 04 13:51:09 2008 -0700
     1.2 +++ b/src/cpu/sparc/vm/sharedRuntime_sparc.cpp	Thu Jun 05 15:57:56 2008 -0700
     1.3 @@ -699,17 +699,16 @@
     1.4  // Stores long into offset pointed to by base
     1.5  void AdapterGenerator::store_c2i_long(Register r, Register base,
     1.6                                        const int st_off, bool is_stack) {
     1.7 -#ifdef COMPILER2
     1.8  #ifdef _LP64
     1.9    // In V9, longs are given 2 64-bit slots in the interpreter, but the
    1.10    // data is passed in only 1 slot.
    1.11    __ stx(r, base, next_arg_slot(st_off));
    1.12  #else
    1.13 +#ifdef COMPILER2
    1.14    // Misaligned store of 64-bit data
    1.15    __ stw(r, base, arg_slot(st_off));    // lo bits
    1.16    __ srlx(r, 32, r);
    1.17    __ stw(r, base, next_arg_slot(st_off));  // hi bits
    1.18 -#endif // _LP64
    1.19  #else
    1.20    if (is_stack) {
    1.21      // Misaligned store of 64-bit data
    1.22 @@ -721,6 +720,7 @@
    1.23      __ stw(r             , base, next_arg_slot(st_off)); // hi bits
    1.24    }
    1.25  #endif // COMPILER2
    1.26 +#endif // _LP64
    1.27    tag_c2i_arg(frame::TagCategory2, base, st_off, r);
    1.28  }
    1.29  

mercurial