# HG changeset patch # User andrew # Date 1311725895 -3600 # Node ID 603aa5ff338b8ad32e70688b2af42525ffd70c19 # Parent 658d513412c7124a3a337a1260a0497f6b98bdde sharedRuntime needs rework after indy reorg diff -r 658d513412c7 -r 603aa5ff338b src/cpu/zero/vm/sharedRuntime_zero.cpp --- a/src/cpu/zero/vm/sharedRuntime_zero.cpp Wed Jul 27 01:16:57 2011 +0100 +++ b/src/cpu/zero/vm/sharedRuntime_zero.cpp Wed Jul 27 01:18:15 2011 +0100 @@ -46,6 +46,7 @@ #include "shark/sharkCompiler.hpp" #endif +#ifdef notdef DeoptimizationBlob *SharedRuntime::_deopt_blob; SafepointBlob *SharedRuntime::_polling_page_safepoint_handler_blob; SafepointBlob *SharedRuntime::_polling_page_return_handler_blob; @@ -54,6 +55,8 @@ RuntimeStub *SharedRuntime::_resolve_opt_virtual_call_blob; RuntimeStub *SharedRuntime::_resolve_virtual_call_blob; RuntimeStub *SharedRuntime::_resolve_static_call_blob; +#endif + int SharedRuntime::java_calling_convention(const BasicType *sig_bt, VMRegPair *regs, @@ -114,6 +117,24 @@ return SafepointBlob::create(&buffer, NULL, 0); } +static DeoptimizationBlob* generate_empty_deopt_blob() { + CodeBuffer buffer("handler_blob", 0, 0); + return DeoptimizationBlob::create(&buffer, NULL, 0, 0, 0, 0); +} + + +void SharedRuntime::generate_deopt_blob() { + _deopt_blob = generate_empty_deopt_blob(); +} + +SafepointBlob* SharedRuntime::generate_handler_blob(address call_ptr, bool cause_return) { + return generate_empty_safepoint_blob(); +} + +RuntimeStub* SharedRuntime::generate_resolve_blob(address destination, const char* name) { + return generate_empty_runtime_stub("resolve_blob"); +} +#ifdef notdef void SharedRuntime::generate_stubs() { _wrong_method_blob = generate_empty_runtime_stub("wrong_method_stub"); @@ -131,6 +152,7 @@ _polling_page_return_handler_blob = generate_empty_safepoint_blob(); } +#endif int SharedRuntime::c_calling_convention(const BasicType *sig_bt, VMRegPair *regs,