Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 4f8f10e962eeba3df7e2c045412c8364a4d5014e..885155faf740c880806f40ff5dafeeaadbe32ba3 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -133,6 +133,8 @@ bool LCodeGen::GeneratePrologue() { |
// object). rcx is zero for method calls and non-zero for function |
// calls. |
if (!info_->is_classic_mode() || info_->is_native()) { |
+ Label begin; |
+ __ bind(&begin); |
Label ok; |
__ testq(rcx, rcx); |
__ j(zero, &ok, Label::kNear); |
@@ -141,6 +143,7 @@ bool LCodeGen::GeneratePrologue() { |
__ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex); |
__ movq(Operand(rsp, receiver_offset), kScratchRegister); |
__ bind(&ok); |
+ ASSERT_EQ(kSizeOfOptimizedStrictModePrologue, ok.pos() - begin.pos()); |
} |
__ push(rbp); // Caller's frame pointer. |