Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalRuntime.cpp @ 16717:91e7d77cfb81
NFI: initialization only if platform is x86
author | Matthias Grimmer <grimmer@ssw.jku.at> |
---|---|
date | Thu, 07 Aug 2014 08:04:23 +0200 |
parents | dd8449afc086 |
children | 11b22ccafccd |
comparison
equal
deleted
inserted
replaced
16716:bb030c4a6822 | 16717:91e7d77cfb81 |
---|---|
664 return JNIHandles::make_local((oop) result.get_jobject()); | 664 return JNIHandles::make_local((oop) result.get_jobject()); |
665 JVM_END | 665 JVM_END |
666 | 666 |
667 // private static NativeFunctionInterfaceRuntime.createInterface() | 667 // private static NativeFunctionInterfaceRuntime.createInterface() |
668 JVM_ENTRY(jobject, JVM_CreateNativeFunctionInterface(JNIEnv *env, jclass c)) | 668 JVM_ENTRY(jobject, JVM_CreateNativeFunctionInterface(JNIEnv *env, jclass c)) |
669 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/amd64/AMD64HotSpotBackend", CHECK_NULL); | 669 const char* backendName = NULL; |
670 #ifdef TARGET_ARCH_x86 | |
671 #ifdef _LP64 | |
672 backendName = "com/oracle/graal/hotspot/amd64/AMD64HotSpotBackend"; | |
673 #endif | |
674 #endif | |
675 | |
676 if (backendName == NULL) { | |
677 return NULL; | |
678 } | |
679 TempNewSymbol name = SymbolTable::new_symbol(backendName, CHECK_NULL); | |
670 KlassHandle klass = GraalRuntime::resolve_or_fail(name, CHECK_NULL); | 680 KlassHandle klass = GraalRuntime::resolve_or_fail(name, CHECK_NULL); |
671 | 681 |
672 TempNewSymbol makeInstance = SymbolTable::new_symbol("createNativeFunctionInterface", CHECK_NULL); | 682 TempNewSymbol makeInstance = SymbolTable::new_symbol("createNativeFunctionInterface", CHECK_NULL); |
673 TempNewSymbol sig = SymbolTable::new_symbol("()Lcom/oracle/nfi/api/NativeFunctionInterface;", CHECK_NULL); | 683 TempNewSymbol sig = SymbolTable::new_symbol("()Lcom/oracle/nfi/api/NativeFunctionInterface;", CHECK_NULL); |
674 JavaValue result(T_OBJECT); | 684 JavaValue result(T_OBJECT); |