Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index 060cf0502e58d148326f5a95091b2214471b5fc6..00da4e7655834d3133092b05b8045115ee58f328 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -183,6 +183,7 @@ void FullCodeGenerator::Generate() { |
__ Push(rdi); |
__ Push(info->scope()->GetScopeInfo(info->isolate())); |
__ CallRuntime(Runtime::kNewScriptContext, 2); |
+ PrepareForBailoutForId(BailoutId::ScriptContext(), TOS_REG); |
} else if (slots <= FastNewContextStub::kMaximumSlots) { |
FastNewContextStub stub(isolate(), slots); |
__ CallStub(&stub); |
@@ -224,8 +225,8 @@ void FullCodeGenerator::Generate() { |
} |
} |
} |
+ PrepareForBailoutForId(BailoutId::FunctionContext(), NO_REGISTERS); |
- PrepareForBailoutForId(BailoutId::Prologue(), NO_REGISTERS); |
// Function register is trashed in case we bailout here. But since that |
// could happen only when we allocate a context the value of |
// |function_in_register| is correct. |