| Index: src/compiler/x64/code-generator-x64.cc
|
| diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
|
| index 510c0c6a0c78bf62e3cd7bffe3b62fc36870a89f..92425432f76f01ac3ccc26a07bd3339a83df9ff0 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -1877,13 +1877,15 @@ static const int kQuadWordSize = 16;
|
|
|
| void CodeGenerator::AssemblePrologue() {
|
| CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
|
| - if (descriptor->IsCFunctionCall()) {
|
| - __ pushq(rbp);
|
| - __ movq(rbp, rsp);
|
| - } else if (descriptor->IsJSFunctionCall()) {
|
| - __ Prologue(this->info()->GeneratePreagedPrologue());
|
| - } else if (frame()->needs_frame()) {
|
| - __ StubPrologue();
|
| + if (frame()->needs_frame()) {
|
| + if (descriptor->IsCFunctionCall()) {
|
| + __ pushq(rbp);
|
| + __ movq(rbp, rsp);
|
| + } else if (descriptor->IsJSFunctionCall()) {
|
| + __ Prologue(this->info()->GeneratePreagedPrologue());
|
| + } else {
|
| + __ StubPrologue(info()->GetOutputStackFrameType());
|
| + }
|
| } else {
|
| frame()->SetElidedFrameSizeInSlots(kPCOnStackSize / kPointerSize);
|
| }
|
|
|