Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index 7a11f08b70451eac9999efaace2696bb9c5a017a..85dca5c402bff8088893b7e95aa536bcfd9fcf2c 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -1175,19 +1175,21 @@ void CodeGenerator::AssembleDeoptimizerCall( |
void CodeGenerator::AssemblePrologue() { |
CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
- if (descriptor->IsCFunctionCall()) { |
- if (FLAG_enable_embedded_constant_pool) { |
- __ Push(lr, fp, pp); |
- // Adjust FP to point to saved FP. |
- __ sub(fp, sp, Operand(StandardFrameConstants::kConstantPoolOffset)); |
+ if (frame()->needs_frame()) { |
+ if (descriptor->IsCFunctionCall()) { |
+ if (FLAG_enable_embedded_constant_pool) { |
+ __ Push(lr, fp, pp); |
+ // Adjust FP to point to saved FP. |
+ __ sub(fp, sp, Operand(StandardFrameConstants::kConstantPoolOffset)); |
+ } else { |
+ __ Push(lr, fp); |
+ __ mov(fp, sp); |
+ } |
+ } else if (descriptor->IsJSFunctionCall()) { |
+ __ Prologue(this->info()->GeneratePreagedPrologue()); |
} else { |
- __ Push(lr, fp); |
- __ mov(fp, sp); |
+ __ StubPrologue(info()->GetOutputStackFrameType()); |
} |
- } else if (descriptor->IsJSFunctionCall()) { |
- __ Prologue(this->info()->GeneratePreagedPrologue()); |
- } else if (frame()->needs_frame()) { |
- __ StubPrologue(); |
} else { |
frame()->SetElidedFrameSizeInSlots(0); |
} |