src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp

changeset 4037
da91efe96a93
parent 3848
e2fe93124108
child 4051
8a02ca5e5576
     1.1 --- a/src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp	Fri Aug 31 16:39:35 2012 -0700
     1.2 +++ b/src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp	Sat Sep 01 13:25:18 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -939,11 +939,11 @@
    1.11    LIR_Opr len = length.result();
    1.12  
    1.13    CodeStub* slow_path = new NewObjectArrayStub(klass_reg, len, reg, info);
    1.14 -  ciObject* obj = (ciObject*) ciObjArrayKlass::make(x->klass());
    1.15 +  ciMetadata* obj = ciObjArrayKlass::make(x->klass());
    1.16    if (obj == ciEnv::unloaded_ciobjarrayklass()) {
    1.17      BAILOUT("encountered unloaded_ciobjarrayklass due to out of memory error");
    1.18    }
    1.19 -  jobject2reg_with_patching(klass_reg, obj, patching_info);
    1.20 +  klass2reg_with_patching(klass_reg, obj, patching_info);
    1.21    __ allocate_array(reg, len, tmp1, tmp2, tmp3, tmp4, T_OBJECT, klass_reg, slow_path);
    1.22  
    1.23    LIR_Opr result = rlock_result(x);
    1.24 @@ -986,7 +986,7 @@
    1.25    // This instruction can be deoptimized in the slow path : use
    1.26    // O0 as result register.
    1.27    const LIR_Opr reg = result_register_for(x->type());
    1.28 -  jobject2reg_with_patching(reg, x->klass(), patching_info);
    1.29 +  klass2reg_with_patching(reg, x->klass(), patching_info);
    1.30    LIR_Opr rank = FrameMap::O1_opr;
    1.31    __ move(LIR_OprFact::intConst(x->rank()), rank);
    1.32    LIR_Opr varargs = FrameMap::as_pointer_opr(O2);

mercurial