Mercurial > hg > truffle
comparison src/share/vm/oops/method.cpp @ 9046:c6a1ffc707ff
Comments and #ifdef GRAAL for recent changes to C++ code for calling nmethods directly.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 12 Apr 2013 17:22:54 +0200 |
parents | 22851e342f0e |
children | 836a62f43af9 |
comparison
equal
deleted
inserted
replaced
9030:9a3e25e270a0 | 9046:c6a1ffc707ff |
---|---|
848 // later. Ditto for mega-morphic itable calls. If this proves to be a | 848 // later. Ditto for mega-morphic itable calls. If this proves to be a |
849 // problem we'll make these lazily later. | 849 // problem we'll make these lazily later. |
850 (void) make_adapters(h_method, CHECK); | 850 (void) make_adapters(h_method, CHECK); |
851 | 851 |
852 // ONLY USE the h_method now as make_adapter may have blocked | 852 // ONLY USE the h_method now as make_adapter may have blocked |
853 | |
854 #ifdef GRAAL | |
855 // Check for special intrinsic that executes a compiled method. | |
853 if (h_method->intrinsic_id() == vmIntrinsics::_CompilerToVMImpl_executeCompiledMethod) { | 856 if (h_method->intrinsic_id() == vmIntrinsics::_CompilerToVMImpl_executeCompiledMethod) { |
857 // Actively install the stub for calling the intrinsic from compiled code. | |
854 CompileBroker::compile_method(h_method, InvocationEntryBci, CompLevel_highest_tier, | 858 CompileBroker::compile_method(h_method, InvocationEntryBci, CompLevel_highest_tier, |
855 methodHandle(), CompileThreshold, "executeCompiledMethod", CHECK); | 859 methodHandle(), CompileThreshold, "executeCompiledMethod", CHECK); |
856 } | 860 } |
861 #endif | |
857 } | 862 } |
858 | 863 |
859 address Method::make_adapters(methodHandle mh, TRAPS) { | 864 address Method::make_adapters(methodHandle mh, TRAPS) { |
860 // Adapters for compiled code are made eagerly here. They are fairly | 865 // Adapters for compiled code are made eagerly here. They are fairly |
861 // small (generally < 100 bytes) and quick to make (and cached and shared) | 866 // small (generally < 100 bytes) and quick to make (and cached and shared) |