src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp

changeset 3846
8b0a4867acf0
parent 3787
6759698e3140
child 3848
e2fe93124108
     1.1 --- a/src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp	Tue Jun 12 09:47:23 2012 -0700
     1.2 +++ b/src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp	Tue Jun 12 14:31:44 2012 -0700
     1.3 @@ -644,30 +644,6 @@
     1.4  }
     1.5  
     1.6  
     1.7 -void LIRGenerator::do_AttemptUpdate(Intrinsic* x) {
     1.8 -  assert(x->number_of_arguments() == 3, "wrong type");
     1.9 -  LIRItem obj       (x->argument_at(0), this);  // AtomicLong object
    1.10 -  LIRItem cmp_value (x->argument_at(1), this);  // value to compare with field
    1.11 -  LIRItem new_value (x->argument_at(2), this);  // replace field with new_value if it matches cmp_value
    1.12 -
    1.13 -  obj.load_item();
    1.14 -  cmp_value.load_item();
    1.15 -  new_value.load_item();
    1.16 -
    1.17 -  // generate compare-and-swap and produce zero condition if swap occurs
    1.18 -  int value_offset = sun_misc_AtomicLongCSImpl::value_offset();
    1.19 -  LIR_Opr addr = FrameMap::O7_opr;
    1.20 -  __ add(obj.result(), LIR_OprFact::intConst(value_offset), addr);
    1.21 -  LIR_Opr t1 = FrameMap::G1_opr;  // temp for 64-bit value
    1.22 -  LIR_Opr t2 = FrameMap::G3_opr;  // temp for 64-bit value
    1.23 -  __ cas_long(addr, cmp_value.result(), new_value.result(), t1, t2);
    1.24 -
    1.25 -  // generate conditional move of boolean result
    1.26 -  LIR_Opr result = rlock_result(x);
    1.27 -  __ cmove(lir_cond_equal, LIR_OprFact::intConst(1), LIR_OprFact::intConst(0), result, T_LONG);
    1.28 -}
    1.29 -
    1.30 -
    1.31  void LIRGenerator::do_CompareAndSwap(Intrinsic* x, ValueType* type) {
    1.32    assert(x->number_of_arguments() == 4, "wrong type");
    1.33    LIRItem obj   (x->argument_at(0), this);  // object

mercurial