Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.cpp @ 3634:076542d505cd
Remove the need for a global stub array.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 14 Nov 2011 22:38:54 +0100 |
parents | 136ea96eb7f8 |
children | ff6a991c6e3c |
comparison
equal
deleted
inserted
replaced
3633:fc07cf6848fb | 3634:076542d505cd |
---|---|
42 void GraalCompiler::initialize() { | 42 void GraalCompiler::initialize() { |
43 if (_initialized) return; | 43 if (_initialized) return; |
44 _initialized = true; | 44 _initialized = true; |
45 CompilerThread* THREAD = CompilerThread::current(); | 45 CompilerThread* THREAD = CompilerThread::current(); |
46 TRACE_graal_1("GraalCompiler::initialize"); | 46 TRACE_graal_1("GraalCompiler::initialize"); |
47 | |
48 VmIds::initializeObjects(); | |
49 | 47 |
50 initialize_buffer_blob(); | 48 initialize_buffer_blob(); |
51 Runtime1::initialize(THREAD->get_buffer_blob()); | 49 Runtime1::initialize(THREAD->get_buffer_blob()); |
52 | 50 |
53 JNIEnv *env = ((JavaThread *) Thread::current())->jni_environment(); | 51 JNIEnv *env = ((JavaThread *) Thread::current())->jni_environment(); |
101 void GraalCompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) { | 99 void GraalCompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) { |
102 assert(_initialized, "must already be initialized"); | 100 assert(_initialized, "must already be initialized"); |
103 VM_ENTRY_MARK; | 101 VM_ENTRY_MARK; |
104 ResourceMark rm; | 102 ResourceMark rm; |
105 HandleMark hm; | 103 HandleMark hm; |
106 | |
107 VmIds::initializeObjects(); | |
108 | 104 |
109 TRACE_graal_2("GraalCompiler::compile_method"); | 105 TRACE_graal_2("GraalCompiler::compile_method"); |
110 | 106 |
111 CompilerThread::current()->set_compiling(true); | 107 CompilerThread::current()->set_compiling(true); |
112 methodOop method = (methodOop) target->get_oop(); | 108 methodOop method = (methodOop) target->get_oop(); |