Index: src/x64/macro-assembler-x64.cc |
=================================================================== |
--- src/x64/macro-assembler-x64.cc (revision 2833) |
+++ src/x64/macro-assembler-x64.cc (working copy) |
@@ -1242,6 +1242,12 @@ |
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. |
+ movq(kScratchRegister, new_space_allocation_top); |
+ cmpq(result, Operand(kScratchRegister, 0)); |
+ Check(equal, "Unexpected allocation top"); |
+#endif |
return; |
} |