src/share/vm/c1/c1_Instruction.cpp

changeset 3969
1d7922586cf6
parent 3100
a32de5085326
child 4003
7a302948f5a4
     1.1 --- a/src/share/vm/c1/c1_Instruction.cpp	Mon Jul 23 13:04:59 2012 -0700
     1.2 +++ b/src/share/vm/c1/c1_Instruction.cpp	Tue Jul 24 10:51:00 2012 -0700
     1.3 @@ -161,6 +161,12 @@
     1.4    return NULL;
     1.5  }
     1.6  
     1.7 +ciType* Constant::exact_type() const {
     1.8 +  if (type()->is_object()) {
     1.9 +    return type()->as_ObjectType()->exact_type();
    1.10 +  }
    1.11 +  return NULL;
    1.12 +}
    1.13  
    1.14  ciType* LoadIndexed::exact_type() const {
    1.15    ciType* array_type = array()->exact_type();

mercurial