| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index d284f53ed603bbb696bdb0be0537b8f796c1b5ca..f2fc01f36144c81ee3ce8828d4a21f59dacd3d9c 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -158,10 +158,21 @@ void FullCodeGenerator::Generate() {
|
| FrameScope frame_scope(masm_, StackFrame::MANUAL);
|
|
|
| info->set_prologue_offset(masm_->pc_offset());
|
| - __ push(ebp); // Caller's frame pointer.
|
| - __ mov(ebp, esp);
|
| - __ push(esi); // Callee's context.
|
| - __ push(edi); // Callee's JS Function.
|
| + {
|
| + PredictableCodeSizeScope predictible_code_size_scope(
|
| + masm_, kNoCodeAgeSequenceLength);
|
| + if (FLAG_optimize_for_size && FLAG_age_code) {
|
| + // Pre-age the code.
|
| + __ call(isolate()->builtins()->MarkCodeAsExecutedOnce(),
|
| + RelocInfo::CODE_AGE_SEQUENCE);
|
| + __ Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength);
|
| + } else {
|
| + __ push(ebp); // Caller's frame pointer.
|
| + __ mov(ebp, esp);
|
| + __ push(esi); // Callee's context.
|
| + __ push(edi); // Callee's JS Function.
|
| + }
|
| + }
|
| info->AddNoFrameRange(0, masm_->pc_offset());
|
|
|
| { Comment cmnt(masm_, "[ Allocate locals");
|
|
|