Mercurial > hg > truffle
comparison src/share/vm/runtime/javaCalls.cpp @ 4137:04b9a2566eec
Merge with hsx23/hotspot.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 17 Dec 2011 21:40:27 +0100 |
parents | be4ca325525a f08d439fab8c |
children | 1b8d02e10ee8 |
comparison
equal
deleted
inserted
replaced
3737:9dc19b7d89a3 | 4137:04b9a2566eec |
---|---|
46 # include "thread_solaris.inline.hpp" | 46 # include "thread_solaris.inline.hpp" |
47 #endif | 47 #endif |
48 #ifdef TARGET_OS_FAMILY_windows | 48 #ifdef TARGET_OS_FAMILY_windows |
49 # include "thread_windows.inline.hpp" | 49 # include "thread_windows.inline.hpp" |
50 #endif | 50 #endif |
51 #ifdef TARGET_OS_FAMILY_bsd | |
52 # include "thread_bsd.inline.hpp" | |
53 #endif | |
51 | 54 |
52 // ----------------------------------------------------- | 55 // ----------------------------------------------------- |
53 // Implementation of JavaCallWrapper | 56 // Implementation of JavaCallWrapper |
54 | 57 |
55 JavaCallWrapper::JavaCallWrapper(methodHandle callee_method, Handle receiver, JavaValue* result, TRAPS) { | 58 JavaCallWrapper::JavaCallWrapper(methodHandle callee_method, Handle receiver, JavaValue* result, TRAPS) { |
372 | 375 |
373 // (tw) may we do this? | 376 // (tw) may we do this? |
374 //assert(!thread->is_Compiler_thread(), "cannot compile from the compiler"); | 377 //assert(!thread->is_Compiler_thread(), "cannot compile from the compiler"); |
375 if (CompilationPolicy::must_be_compiled(method)) { | 378 if (CompilationPolicy::must_be_compiled(method)) { |
376 CompileBroker::compile_method(method, InvocationEntryBci, | 379 CompileBroker::compile_method(method, InvocationEntryBci, |
377 CompLevel_initial_compile, | 380 CompilationPolicy::policy()->initial_compile_level(), |
378 methodHandle(), 0, "must_be_compiled", CHECK); | 381 methodHandle(), 0, "must_be_compiled", CHECK); |
379 } | 382 } |
380 | 383 |
381 // Since the call stub sets up like the interpreter we call the from_interpreted_entry | 384 // Since the call stub sets up like the interpreter we call the from_interpreted_entry |
382 // so we can go compiled via a i2c. Otherwise initial entry method will always | 385 // so we can go compiled via a i2c. Otherwise initial entry method will always |
574 SignatureChekker sc(signature, return_type, method->is_static(),_is_oop, _value, thread); | 577 SignatureChekker sc(signature, return_type, method->is_static(),_is_oop, _value, thread); |
575 sc.iterate_parameters(); | 578 sc.iterate_parameters(); |
576 sc.check_doing_return(true); | 579 sc.check_doing_return(true); |
577 sc.iterate_returntype(); | 580 sc.iterate_returntype(); |
578 } | 581 } |
579 |