| 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 64cca9ed42dca33e8dbd5a8ca61b9e3c08740a1b..eabb2f1e1698b782536a237bd77b7eea37a5afab 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -1428,12 +1428,16 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| break;
|
| case ObjectLiteral::Property::GETTER:
|
| if (property->emit_store()) {
|
| - accessor_table.lookup(key)->second->getter = property;
|
| + AccessorTable::Iterator it = accessor_table.lookup(key);
|
| + it->second->bailout_id = expr->GetIdForPropertySet(property_index);
|
| + it->second->getter = property;
|
| }
|
| break;
|
| case ObjectLiteral::Property::SETTER:
|
| if (property->emit_store()) {
|
| - accessor_table.lookup(key)->second->setter = property;
|
| + AccessorTable::Iterator it = accessor_table.lookup(key);
|
| + it->second->bailout_id = expr->GetIdForPropertySet(property_index);
|
| + it->second->setter = property;
|
| }
|
| break;
|
| }
|
| @@ -1450,6 +1454,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| EmitAccessor(it->second->setter);
|
| PushOperand(Smi::FromInt(NONE));
|
| CallRuntimeWithOperands(Runtime::kDefineAccessorPropertyUnchecked);
|
| + PrepareForBailoutForId(it->second->bailout_id, BailoutState::NO_REGISTERS);
|
| }
|
|
|
| // Object literals have two parts. The "static" part on the left contains no
|
|
|