Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 406537d2d31450ab7eaa3dd73bad8ee804eedea6..acd198ee237b7365aed657e5d26dc269f3bd1282 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -138,6 +138,8 @@ void FullCodeGenerator::Generate() { |
// function calls. |
if (!info->is_classic_mode() || info->is_native()) { |
Label ok; |
+ Label start; |
+ __ bind(&start); |
__ test(ecx, ecx); |
__ j(zero, &ok, Label::kNear); |
// +1 for return address. |
@@ -149,6 +151,7 @@ void FullCodeGenerator::Generate() { |
__ mov(Operand(esp, receiver_offset), |
Immediate(isolate()->factory()->undefined_value())); |
__ bind(&ok); |
+ ASSERT_EQ(kSizeOfFullCodegenStrictModePrologue, ok.pos() - start.pos()); |
} |
// Open a frame scope to indicate that there is a frame on the stack. The |