src/share/vm/c1/c1_ValueType.cpp

changeset 1939
b812ff5abc73
parent 1907
c18cbe5936b8
child 2314
f95d63e2154a
     1.1 --- a/src/share/vm/c1/c1_ValueType.cpp	Thu Jun 03 14:20:27 2010 -0700
     1.2 +++ b/src/share/vm/c1/c1_ValueType.cpp	Fri Jun 04 11:18:04 2010 -0700
     1.3 @@ -46,27 +46,26 @@
     1.4  ObjectConstant* objectNull   = NULL;
     1.5  
     1.6  
     1.7 -void ValueType::initialize() {
     1.8 +void ValueType::initialize(Arena* arena) {
     1.9    // Note: Must initialize all types for each compilation
    1.10    //       as they are allocated within a ResourceMark!
    1.11  
    1.12    // types
    1.13 -  voidType     = new VoidType();
    1.14 -  intType      = new IntType();
    1.15 -  longType     = new LongType();
    1.16 -  floatType    = new FloatType();
    1.17 -  doubleType   = new DoubleType();
    1.18 -  objectType   = new ObjectType();
    1.19 -  arrayType    = new ArrayType();
    1.20 -  instanceType = new InstanceType();
    1.21 -  classType    = new ClassType();
    1.22 -  addressType  = new AddressType();
    1.23 -  illegalType  = new IllegalType();
    1.24 +  voidType     = new (arena) VoidType();
    1.25 +  intType      = new (arena) IntType();
    1.26 +  longType     = new (arena) LongType();
    1.27 +  floatType    = new (arena) FloatType();
    1.28 +  doubleType   = new (arena) DoubleType();
    1.29 +  objectType   = new (arena) ObjectType();
    1.30 +  arrayType    = new (arena) ArrayType();
    1.31 +  instanceType = new (arena) InstanceType();
    1.32 +  classType    = new (arena) ClassType();
    1.33 +  addressType  = new (arena) AddressType();
    1.34 +  illegalType  = new (arena) IllegalType();
    1.35  
    1.36 -  // constants
    1.37 -  intZero     = new IntConstant(0);
    1.38 -  intOne      = new IntConstant(1);
    1.39 -  objectNull  = new ObjectConstant(ciNullObject::make());
    1.40 +  intZero     = new (arena) IntConstant(0);
    1.41 +  intOne      = new (arena) IntConstant(1);
    1.42 +  objectNull  = new (arena) ObjectConstant(ciNullObject::make());
    1.43  };
    1.44  
    1.45  

mercurial