Index: src/x64/macro-assembler-x64.cc |
=================================================================== |
--- src/x64/macro-assembler-x64.cc (revision 2239) |
+++ src/x64/macro-assembler-x64.cc (working copy) |
@@ -337,7 +337,15 @@ |
WriteRecordedPositions(); |
ASSERT(RelocInfo::IsCodeTarget(rmode)); |
movq(kScratchRegister, code_object, rmode); |
+#ifdef DEBUG |
+ Label target; |
+ bind(&target); |
+#endif |
call(kScratchRegister); |
+#ifdef DEBUG |
+ ASSERT_EQ(kTargetAddrToReturnAddrDist, |
+ SizeOfCodeGeneratedSince(&target) + kPointerSize); |
+#endif |
} |