Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalVMToCompiler.cpp @ 13262:f13f6dc290c8
don't pass HotSpotResolvedObjectType to VMToCompiler.compileMethod but instead create it in Java code
author | twisti |
---|---|
date | Sun, 08 Dec 2013 14:33:38 -0800 |
parents | 42aaf7306707 |
children | dfb780080923 |
comparison
equal
deleted
inserted
replaced
13261:0ffe9e4bb364 | 13262:f13f6dc290c8 |
---|---|
109 args.push_int(ciTime); | 109 args.push_int(ciTime); |
110 JavaCalls::call_static(&result, optionsKlass, vmSymbols::finalizeOptions_name(), vmSymbols::bool_void_signature(), &args, THREAD); | 110 JavaCalls::call_static(&result, optionsKlass, vmSymbols::finalizeOptions_name(), vmSymbols::bool_void_signature(), &args, THREAD); |
111 check_pending_exception("Error while calling finalizeOptions"); | 111 check_pending_exception("Error while calling finalizeOptions"); |
112 } | 112 } |
113 | 113 |
114 void VMToCompiler::compileMethod(Method* method, Handle holder, int entry_bci, jboolean blocking) { | 114 void VMToCompiler::compileMethod(Method* method, int entry_bci, jboolean blocking) { |
115 assert(method != NULL, "just checking"); | 115 assert(method != NULL, "just checking"); |
116 assert(!holder.is_null(), "just checking"); | |
117 Thread* THREAD = Thread::current(); | 116 Thread* THREAD = Thread::current(); |
118 JavaValue result(T_VOID); | 117 JavaValue result(T_VOID); |
119 JavaCallArguments args; | 118 JavaCallArguments args; |
120 args.push_oop(instance()); | 119 args.push_oop(instance()); |
121 args.push_long((jlong) (address) method); | 120 args.push_long((jlong) (address) method); |
122 args.push_oop(holder()); | |
123 args.push_int(entry_bci); | 121 args.push_int(entry_bci); |
124 args.push_int(blocking); | 122 args.push_int(blocking); |
125 JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); | 123 JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); |
126 check_pending_exception("Error while calling compileMethod"); | 124 check_pending_exception("Error while calling compileMethod"); |
127 } | 125 } |