Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 25bb678cd50b5061af6e72300ed066df4fc76e6a..29298c7b32c5ad4ac193554deadce0c77046dae1 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -915,21 +915,22 @@ void MacroAssembler::StubPrologue() { |
void MacroAssembler::Prologue(bool code_pre_aging) { |
- PredictableCodeSizeScope predictible_code_size_scope( |
- this, kNoCodeAgeSequenceLength); |
- // The following three instructions must remain together and unmodified |
- // for code aging to work properly. |
- if (code_pre_aging) { |
- // Pre-age the code. |
- Code* stub = Code::GetPreAgedCodeAgeStub(isolate()); |
- add(r0, pc, Operand(-8)); |
- ldr(pc, MemOperand(pc, -4)); |
- emit_code_stub_address(stub); |
- } else { |
- PushFixedFrame(r1); |
- nop(ip.code()); |
- // Adjust FP to point to saved FP. |
- add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
+ { PredictableCodeSizeScope predictible_code_size_scope( |
+ this, kNoCodeAgeSequenceLength); |
+ // The following three instructions must remain together and unmodified |
+ // for code aging to work properly. |
+ if (code_pre_aging) { |
+ // Pre-age the code. |
+ Code* stub = Code::GetPreAgedCodeAgeStub(isolate()); |
+ add(r0, pc, Operand(-8)); |
+ ldr(pc, MemOperand(pc, -4)); |
+ emit_code_stub_address(stub); |
+ } else { |
+ PushFixedFrame(r1); |
+ nop(ip.code()); |
+ // Adjust FP to point to saved FP. |
+ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
+ } |
} |
if (FLAG_enable_ool_constant_pool) { |
LoadConstantPoolPointerRegister(); |