changeset 2637:603aa5ff338b

sharedRuntime needs rework after indy reorg
author andrew
date Wed, 27 Jul 2011 01:18:15 +0100
parents 658d513412c7
children ec89ffe12270
files src/cpu/zero/vm/sharedRuntime_zero.cpp
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,