Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalVMToCompiler.cpp @ 5515:35753b8c098a
C++ changes for Java renamings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 07 Jun 2012 20:54:54 +0200 |
parents | 74dfa6f86879 |
children | 87e4aed94b26 |
comparison
equal
deleted
inserted
replaced
5514:5d19620a331d | 5515:35753b8c098a |
---|---|
39 } | 39 } |
40 | 40 |
41 Handle VMToCompiler::compilerInstance() { | 41 Handle VMToCompiler::compilerInstance() { |
42 if (JNIHandles::resolve(_compilerPermObject) == NULL) { | 42 if (JNIHandles::resolve(_compilerPermObject) == NULL) { |
43 KlassHandle compilerImplKlass = SystemDictionary::resolve_or_null(vmSymbols::com_oracle_graal_hotspot_CompilerImpl(), SystemDictionary::java_system_loader(), NULL, Thread::current()); | 43 KlassHandle compilerImplKlass = SystemDictionary::resolve_or_null(vmSymbols::com_oracle_graal_hotspot_CompilerImpl(), SystemDictionary::java_system_loader(), NULL, Thread::current()); |
44 check_not_null(compilerImplKlass(), "Couldn't find class com.sun.hotspot.graal.CompilerImpl"); | 44 check_not_null(compilerImplKlass(), "Couldn't find class com.sun.hotspot.graal.HotSpotCompilerImpl"); |
45 | 45 |
46 JavaValue result(T_OBJECT); | 46 JavaValue result(T_OBJECT); |
47 JavaCalls::call_static(&result, compilerImplKlass, vmSymbols::getInstance_name(), vmSymbols::getInstance_signature(), Thread::current()); | 47 JavaCalls::call_static(&result, compilerImplKlass, vmSymbols::getInstance_name(), vmSymbols::getInstance_signature(), Thread::current()); |
48 check_pending_exception("Couldn't get Compiler"); | 48 check_pending_exception("Couldn't get Compiler"); |
49 _compilerPermObject = JNIHandles::make_global((oop) result.get_jobject()); | 49 _compilerPermObject = JNIHandles::make_global((oop) result.get_jobject()); |