Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 475fb9de345da6d7054d1c48919f92d752a5c6aa..1f6c0966e72185e3449c5fb448d3ff504c22c53e 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -138,6 +138,8 @@ void FullCodeGenerator::Generate() { |
// function calls. |
if (!info->is_classic_mode() || info->is_native()) { |
Label ok; |
+ Label begin; |
+ __ bind(&begin); |
__ testq(rcx, rcx); |
__ j(zero, &ok, Label::kNear); |
// +1 for return address. |
@@ -145,6 +147,7 @@ void FullCodeGenerator::Generate() { |
__ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex); |
__ movq(Operand(rsp, receiver_offset), kScratchRegister); |
__ bind(&ok); |
+ ASSERT_EQ(kSizeOfFullCodegenStrictModePrologue, ok.pos() - begin.pos()); |
} |
// Open a frame scope to indicate that there is a frame on the stack. The |