| 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 0eaf7412f5967acca9b541bafe2689d0bd3504d1..4022378d41c77ca8fae568e950963c3ac3ff2ccc 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -227,6 +227,11 @@ void FullCodeGenerator::Generate() {
|
| }
|
| }
|
|
|
| + 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.
|
| +
|
| // Possibly set up a local binding to the this function which is used in
|
| // derived constructors with super calls.
|
| Variable* this_function_var = scope()->this_function_var();
|
| @@ -234,7 +239,7 @@ void FullCodeGenerator::Generate() {
|
| Comment cmnt(masm_, "[ This function");
|
| if (!function_in_register) {
|
| __ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| - // The write barrier clobbers register again, keep is marked as such.
|
| + // The write barrier clobbers register again, keep it marked as such.
|
| }
|
| SetVar(this_function_var, rdi, rbx, rdx);
|
| }
|
|
|