comparison src/share/vm/graal/graalVMToCompiler.cpp @ 15018:db4254246f9a

Remove Constant.forObject and Constant.asObject to improve compiler/VM separation
author Christian Wimmer <christian.wimmer@oracle.com>
date Mon, 07 Apr 2014 16:09:17 -0700
parents 2f37b0e442fe
children 4df6d7c966a2
comparison
equal deleted inserted replaced
15017:ff5660822992 15018:db4254246f9a
47 } 47 }
48 return _vmToCompilerPermKlass; 48 return _vmToCompilerPermKlass;
49 } 49 }
50 50
51 Handle VMToCompiler::truffleRuntime() { 51 Handle VMToCompiler::truffleRuntime() {
52 Symbol* name = vmSymbols::com_oracle_graal_truffle_GraalTruffleRuntime(); 52 Symbol* name = vmSymbols::com_oracle_graal_truffle_hotspot_HotSpotTruffleRuntime();
53 KlassHandle klass = loadClass(name); 53 KlassHandle klass = loadClass(name);
54 54
55 JavaValue result(T_OBJECT); 55 JavaValue result(T_OBJECT);
56 JavaCalls::call_static(&result, klass, vmSymbols::makeInstance_name(), vmSymbols::makeInstance_signature(), Thread::current()); 56 JavaCalls::call_static(&result, klass, vmSymbols::makeInstance_name(), vmSymbols::makeInstance_signature(), Thread::current());
57 check_pending_exception("Couldn't initialize GraalTruffleRuntime"); 57 check_pending_exception("Couldn't initialize HotSpotTruffleRuntime");
58 return Handle((oop) result.get_jobject()); 58 return Handle((oop) result.get_jobject());
59 } 59 }
60 60
61 Handle VMToCompiler::graalRuntime() { 61 Handle VMToCompiler::graalRuntime() {
62 if (JNIHandles::resolve(_graalRuntimePermObject) == NULL) { 62 if (JNIHandles::resolve(_graalRuntimePermObject) == NULL) {