Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 74baa28a25ef3619d2eb78d8706ad3d060e174c8..676e73ea48ff94e92630d5727b64eb858944f090 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -150,7 +150,8 @@ bool LCodeGen::GeneratePrologue() { |
__ mov(Operand(esp, receiver_offset), |
Immediate(isolate()->factory()->undefined_value())); |
__ bind(&ok); |
- ASSERT_EQ(kSizeOfOptimizedStrictModePrologue, ok.pos() - begin.pos()); |
+ ASSERT(!FLAG_age_code || |
+ (kSizeOfOptimizedStrictModePrologue == ok.pos() - begin.pos())); |
} |
@@ -179,8 +180,9 @@ bool LCodeGen::GeneratePrologue() { |
__ j(not_zero, &align_loop, Label::kNear); |
__ mov(Operand(ebx, 0), Immediate(kAlignmentZapValue)); |
__ bind(&do_not_pad); |
- ASSERT_EQ(kSizeOfOptimizedAlignStackPrologue, |
- do_not_pad.pos() - begin.pos()); |
+ ASSERT(!FLAG_age_code || |
+ (kSizeOfOptimizedAlignStackPrologue == |
+ do_not_pad.pos() - begin.pos())); |
} |
__ push(ebp); // Caller's frame pointer. |