hotspot/src/cpu/x86/vm/assembler_x86.cpp
changeset 4102 11d514e508d9
parent 4019 6d6674c9e7d7
child 4433 2a23318c15bf
--- a/hotspot/src/cpu/x86/vm/assembler_x86.cpp	Wed Oct 28 11:16:42 2009 -0700
+++ b/hotspot/src/cpu/x86/vm/assembler_x86.cpp	Thu Oct 29 09:42:26 2009 -0700
@@ -8214,6 +8214,15 @@
   }
 }
 
+// Used for storing NULLs.
+void MacroAssembler::store_heap_oop_null(Address dst) {
+  if (UseCompressedOops) {
+    movl(dst, (int32_t)NULL_WORD);
+  } else {
+    movslq(dst, (int32_t)NULL_WORD);
+  }
+}
+
 // Algorithm must match oop.inline.hpp encode_heap_oop.
 void MacroAssembler::encode_heap_oop(Register r) {
   assert (UseCompressedOops, "should be compressed");