Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalRuntime.cpp @ 18961:afa70d3e8159
Allow users to provide their own TruffleRuntime implementation
and add ForceInterpreter option to TruffleOptions.
author | Paul Woegerer <paul.woegerer@oracle.com> |
---|---|
date | Tue, 27 Jan 2015 14:11:52 +0100 |
parents | 3d6e630a72f1 |
children | 9c2396ef02db |
comparison
equal
deleted
inserted
replaced
18960:858b1e3ab2ee | 18961:afa70d3e8159 |
---|---|
682 GraalRuntime::ensure_graal_class_loader_is_initialized(); | 682 GraalRuntime::ensure_graal_class_loader_is_initialized(); |
683 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime", CHECK_NULL); | 683 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime", CHECK_NULL); |
684 KlassHandle klass = GraalRuntime::resolve_or_fail(name, CHECK_NULL); | 684 KlassHandle klass = GraalRuntime::resolve_or_fail(name, CHECK_NULL); |
685 | 685 |
686 TempNewSymbol makeInstance = SymbolTable::new_symbol("makeInstance", CHECK_NULL); | 686 TempNewSymbol makeInstance = SymbolTable::new_symbol("makeInstance", CHECK_NULL); |
687 TempNewSymbol sig = SymbolTable::new_symbol("()Lcom/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime;", CHECK_NULL); | 687 TempNewSymbol sig = SymbolTable::new_symbol("()Lcom/oracle/truffle/api/TruffleRuntime;", CHECK_NULL); |
688 JavaValue result(T_OBJECT); | 688 JavaValue result(T_OBJECT); |
689 JavaCalls::call_static(&result, klass, makeInstance, sig, CHECK_NULL); | 689 JavaCalls::call_static(&result, klass, makeInstance, sig, CHECK_NULL); |
690 return JNIHandles::make_local((oop) result.get_jobject()); | 690 return JNIHandles::make_local((oop) result.get_jobject()); |
691 JVM_END | 691 JVM_END |
692 | 692 |