hotspot/src/cpu/zero/vm/cppInterpreterGenerator_zero.hpp
changeset 14294 130e947dfbe6
parent 7397 5b173b4ca846
--- a/hotspot/src/cpu/zero/vm/cppInterpreterGenerator_zero.hpp	Fri Oct 26 14:18:57 2012 -0700
+++ b/hotspot/src/cpu/zero/vm/cppInterpreterGenerator_zero.hpp	Mon Oct 29 11:08:48 2012 -0700
@@ -31,12 +31,17 @@
     return _masm;
   }
 
- protected:
-  address generate_entry(address entry_point) {
-    ZeroEntry *entry = (ZeroEntry *) assembler()->pc();
-    assembler()->advance(sizeof(ZeroEntry));
+ public:
+  static address generate_entry_impl(MacroAssembler* masm, address entry_point) {
+    ZeroEntry *entry = (ZeroEntry *) masm->pc();
+    masm->advance(sizeof(ZeroEntry));
     entry->set_entry_point(entry_point);
     return (address) entry;
   }
 
+ protected:
+  address generate_entry(address entry_point) {
+        return generate_entry_impl(assembler(), entry_point);
+  }
+
 #endif // CPU_ZERO_VM_CPPINTERPRETERGENERATOR_ZERO_HPP