Index: src/ia32/macro-assembler-ia32.cc |
=================================================================== |
--- src/ia32/macro-assembler-ia32.cc (revision 2832) |
+++ src/ia32/macro-assembler-ia32.cc (working copy) |
@@ -631,6 +631,11 @@ |
if ((flags & RESULT_CONTAINS_TOP) != 0) { |
// No use of scratch if allocation top is provided. |
ASSERT(scratch.is(no_reg)); |
+#ifdef DEBUG |
+ // Assert that result actually contains top on entry. |
+ cmp(result, Operand::StaticVariable(new_space_allocation_top)); |
+ Check(equal, "Unexpected allocation top"); |
+#endif |
return; |
} |