src/cpu/mips/vm/c1_LinearScan_mips.hpp

changeset 8865
ffcdff41a92f
parent 6880
52ea28d233d2
child 9126
bc5b8e3dcb6b
     1.1 --- a/src/cpu/mips/vm/c1_LinearScan_mips.hpp	Sat Jan 06 16:30:58 2018 +0800
     1.2 +++ b/src/cpu/mips/vm/c1_LinearScan_mips.hpp	Thu May 24 19:49:50 2018 +0800
     1.3 @@ -23,6 +23,9 @@
     1.4   *
     1.5   */
     1.6  
     1.7 +#ifndef CPU_MIPS_VM_C1_LINEARSCAN_MIPS_HPP
     1.8 +#define CPU_MIPS_VM_C1_LINEARSCAN_MIPS_HPP
     1.9 +
    1.10  inline bool LinearScan::is_processed_reg_num(int reg_num) {
    1.11    return reg_num < 26 || reg_num > 30;
    1.12  }
    1.13 @@ -59,7 +62,7 @@
    1.14      _first_reg = pd_first_callee_saved_reg;
    1.15      _last_reg = pd_last_callee_saved_reg;
    1.16      return true;
    1.17 -  } else if (cur->type() == T_INT || cur->type() == T_LONG || cur->type() == T_OBJECT) {
    1.18 +  } else if (cur->type() == T_INT || cur->type() == T_LONG || cur->type() == T_OBJECT || cur->type() == T_METADATA) {
    1.19  #ifdef _LP64
    1.20      _first_reg = 12;  /* From T0 */
    1.21  #else
    1.22 @@ -70,3 +73,5 @@
    1.23    }
    1.24    return false;
    1.25  }
    1.26 +
    1.27 +#endif // CPU_MIPS_VM_C1_LINEARSCAN_MIPS_HPP

mercurial