Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCompiler.cpp @ 13819:49db2c1e3bee
added support for co-existing GPU backends (JBS:GRAAL-1)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 30 Jan 2014 00:52:33 +0100 |
parents | 606959535fd4 |
children | 1f34717ccafa |
comparison
equal
deleted
inserted
replaced
13818:d2f520f46180 | 13819:49db2c1e3bee |
---|---|
26 #include "runtime/javaCalls.hpp" | 26 #include "runtime/javaCalls.hpp" |
27 #include "graal/graalCompiler.hpp" | 27 #include "graal/graalCompiler.hpp" |
28 #include "graal/graalJavaAccess.hpp" | 28 #include "graal/graalJavaAccess.hpp" |
29 #include "graal/graalVMToCompiler.hpp" | 29 #include "graal/graalVMToCompiler.hpp" |
30 #include "graal/graalCompilerToVM.hpp" | 30 #include "graal/graalCompilerToVM.hpp" |
31 #include "graal/graalCompilerToGPU.hpp" | |
32 #include "graal/graalEnv.hpp" | 31 #include "graal/graalEnv.hpp" |
33 #include "graal/graalRuntime.hpp" | 32 #include "graal/graalRuntime.hpp" |
34 #include "runtime/arguments.hpp" | 33 #include "runtime/arguments.hpp" |
35 #include "runtime/compilationPolicy.hpp" | 34 #include "runtime/compilationPolicy.hpp" |
36 | 35 |
70 tty->print_cr("graal CompilerToVMImpl class not found"); | 69 tty->print_cr("graal CompilerToVMImpl class not found"); |
71 vm_abort(false); | 70 vm_abort(false); |
72 } | 71 } |
73 env->RegisterNatives(klass, CompilerToVM_methods, CompilerToVM_methods_count()); | 72 env->RegisterNatives(klass, CompilerToVM_methods, CompilerToVM_methods_count()); |
74 | 73 |
75 klass = env->FindClass("com/oracle/graal/hotspot/bridge/CompilerToGPUImpl"); | |
76 if (klass == NULL) { | |
77 tty->print_cr("graal CompilerToGPUImpl class not found"); | |
78 vm_abort(false); | |
79 } | |
80 env->RegisterNatives(klass, CompilerToGPU_methods, CompilerToGPU_methods_count()); | |
81 | |
82 ResourceMark rm; | 74 ResourceMark rm; |
83 HandleMark hm; | 75 HandleMark hm; |
84 { | 76 { |
85 GRAAL_VM_ENTRY_MARK; | 77 GRAAL_VM_ENTRY_MARK; |
86 check_pending_exception("Could not register natives"); | 78 check_pending_exception("Could not register natives"); |