comparison src/share/vm/graal/graalVMEntries.cpp @ 3641:a8021a9f2a14

Fixed a problem when looking up class constants.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Wed, 16 Nov 2011 13:56:32 +0100
parents e53cfcb230a7
children 148584b96a34
comparison
equal deleted inserted replaced
3639:2fd96b3040b9 3641:a8021a9f2a14
508 return NULL; 508 return NULL;
509 } 509 }
510 } 510 }
511 result = VMExits::createCiConstantObject(string, CHECK_0); 511 result = VMExits::createCiConstantObject(string, CHECK_0);
512 } else if (tag.is_klass() || tag.is_unresolved_klass()) { 512 } else if (tag.is_klass() || tag.is_unresolved_klass()) {
513 bool ignore; 513 result = GraalCompiler::get_RiType(cp, index, cp->pool_holder(), CHECK_NULL);
514 KlassHandle klass = GraalEnv::get_klass_by_index(cp, index, ignore, cp->pool_holder());
515 result = GraalCompiler::get_RiType(klass, CHECK_NULL);
516 } else if (tag.is_object()) { 514 } else if (tag.is_object()) {
517 oop obj = cp->object_at(index); 515 oop obj = cp->object_at(index);
518 assert(obj->is_instance(), "must be an instance"); 516 assert(obj->is_instance(), "must be an instance");
519 result = VMExits::createCiConstantObject(obj, CHECK_NULL); 517 result = VMExits::createCiConstantObject(obj, CHECK_NULL);
520 } else { 518 } else {