22 */
23
24 #include "precompiled.hpp"
25 #include "asm/register.hpp"
26 #include "classfile/vmSymbols.hpp"
27 #include "code/compiledIC.hpp"
28 #include "code/vmreg.inline.hpp"
29 #include "compiler/compileBroker.hpp"
30 #include "compiler/disassembler.hpp"
31 #include "jvmci/jvmciEnv.hpp"
32 #include "jvmci/jvmciCompiler.hpp"
33 #include "jvmci/jvmciCodeInstaller.hpp"
34 #include "jvmci/jvmciJavaClasses.hpp"
35 #include "jvmci/jvmciCompilerToVM.hpp"
36 #include "jvmci/jvmciRuntime.hpp"
37 #include "memory/allocation.inline.hpp"
38 #include "oops/arrayOop.inline.hpp"
39 #include "oops/oop.inline.hpp"
40 #include "oops/objArrayOop.inline.hpp"
41 #include "oops/typeArrayOop.inline.hpp"
42 #include "runtime/javaCalls.hpp"
43 #include "runtime/jniHandles.inline.hpp"
44 #include "runtime/safepointMechanism.inline.hpp"
45 #include "utilities/align.hpp"
46
47 // frequently used constants
48 // Allocate them with new so they are never destroyed (otherwise, a
49 // forced exit could destroy these objects while they are still in
50 // use).
51 ConstantOopWriteValue* CodeInstaller::_oop_null_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantOopWriteValue(NULL);
52 ConstantIntValue* CodeInstaller::_int_m1_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(-1);
53 ConstantIntValue* CodeInstaller::_int_0_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue((jint)0);
54 ConstantIntValue* CodeInstaller::_int_1_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(1);
55 ConstantIntValue* CodeInstaller::_int_2_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(2);
56 LocationValue* CodeInstaller::_illegal_value = new (ResourceObj::C_HEAP, mtCompiler) LocationValue(Location());
57
58 Method* getMethodFromHotSpotMethod(oop hotspot_method) {
59 assert(hotspot_method != NULL && hotspot_method->is_a(HotSpotResolvedJavaMethodImpl::klass()), "sanity");
60 return CompilerToVM::asMethod(hotspot_method);
61 }
|
22 */
23
24 #include "precompiled.hpp"
25 #include "asm/register.hpp"
26 #include "classfile/vmSymbols.hpp"
27 #include "code/compiledIC.hpp"
28 #include "code/vmreg.inline.hpp"
29 #include "compiler/compileBroker.hpp"
30 #include "compiler/disassembler.hpp"
31 #include "jvmci/jvmciEnv.hpp"
32 #include "jvmci/jvmciCompiler.hpp"
33 #include "jvmci/jvmciCodeInstaller.hpp"
34 #include "jvmci/jvmciJavaClasses.hpp"
35 #include "jvmci/jvmciCompilerToVM.hpp"
36 #include "jvmci/jvmciRuntime.hpp"
37 #include "memory/allocation.inline.hpp"
38 #include "oops/arrayOop.inline.hpp"
39 #include "oops/oop.inline.hpp"
40 #include "oops/objArrayOop.inline.hpp"
41 #include "oops/typeArrayOop.inline.hpp"
42 #include "runtime/interfaceSupport.inline.hpp"
43 #include "runtime/javaCalls.hpp"
44 #include "runtime/jniHandles.inline.hpp"
45 #include "runtime/safepointMechanism.inline.hpp"
46 #include "utilities/align.hpp"
47
48 // frequently used constants
49 // Allocate them with new so they are never destroyed (otherwise, a
50 // forced exit could destroy these objects while they are still in
51 // use).
52 ConstantOopWriteValue* CodeInstaller::_oop_null_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantOopWriteValue(NULL);
53 ConstantIntValue* CodeInstaller::_int_m1_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(-1);
54 ConstantIntValue* CodeInstaller::_int_0_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue((jint)0);
55 ConstantIntValue* CodeInstaller::_int_1_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(1);
56 ConstantIntValue* CodeInstaller::_int_2_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(2);
57 LocationValue* CodeInstaller::_illegal_value = new (ResourceObj::C_HEAP, mtCompiler) LocationValue(Location());
58
59 Method* getMethodFromHotSpotMethod(oop hotspot_method) {
60 assert(hotspot_method != NULL && hotspot_method->is_a(HotSpotResolvedJavaMethodImpl::klass()), "sanity");
61 return CompilerToVM::asMethod(hotspot_method);
62 }
|