src/cpu/x86/vm/c1_LIRAssembler_x86.cpp

changeset 464
d5fc211aea19
parent 435
a61af66fc99e
child 631
d1605aabd0a1
     1.1 --- a/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Fri Feb 22 17:55:13 2008 -0800
     1.2 +++ b/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Mon Feb 25 15:05:44 2008 -0800
     1.3 @@ -546,8 +546,8 @@
     1.4    // set rsi.edi to the end of the arrays (arrays have same length)
     1.5    // negate the index
     1.6  
     1.7 -  __ leal(rsi, Address(rsi, rax, Address::times_2, type2aelembytes[T_CHAR]));
     1.8 -  __ leal(rdi, Address(rdi, rax, Address::times_2, type2aelembytes[T_CHAR]));
     1.9 +  __ leal(rsi, Address(rsi, rax, Address::times_2, type2aelembytes(T_CHAR)));
    1.10 +  __ leal(rdi, Address(rdi, rax, Address::times_2, type2aelembytes(T_CHAR)));
    1.11    __ negl(rax);
    1.12  
    1.13    // compare the strings in a loop
    1.14 @@ -1232,7 +1232,7 @@
    1.15  
    1.16  NEEDS_CLEANUP; // This could be static?
    1.17  Address::ScaleFactor LIR_Assembler::array_element_size(BasicType type) const {
    1.18 -  int elem_size = type2aelembytes[type];
    1.19 +  int elem_size = type2aelembytes(type);
    1.20    switch (elem_size) {
    1.21      case 1: return Address::times_1;
    1.22      case 2: return Address::times_2;
    1.23 @@ -2739,7 +2739,7 @@
    1.24  
    1.25    assert(default_type != NULL && default_type->is_array_klass() && default_type->is_loaded(), "must be true at this point");
    1.26  
    1.27 -  int elem_size = type2aelembytes[basic_type];
    1.28 +  int elem_size = type2aelembytes(basic_type);
    1.29    int shift_amount;
    1.30    Address::ScaleFactor scale;
    1.31  

mercurial