| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 7b9d8981d7215f4bacb12e47560601ed6fe0105c..ec57ba5326b87f109c6a0fec28ddaf05c449f6bf 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -1793,7 +1793,8 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) {
|
| javascript()->CallRuntime(Runtime::kInternalSetPrototype, 2);
|
| Node* set_prototype = NewNode(op, receiver, value);
|
| // SetPrototype should not lazy deopt on an object literal.
|
| - PrepareFrameState(set_prototype, BailoutId::None());
|
| + PrepareFrameState(set_prototype,
|
| + expr->GetIdForPropertySet(property_index));
|
| break;
|
| }
|
| case ObjectLiteral::Property::GETTER:
|
| @@ -1848,14 +1849,14 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) {
|
| const Operator* op =
|
| javascript()->CallRuntime(Runtime::kInternalSetPrototype, 2);
|
| Node* call = NewNode(op, receiver, value);
|
| - PrepareFrameState(call, BailoutId::None());
|
| + PrepareFrameState(call, expr->GetIdForPropertySet(property_index));
|
| continue;
|
| }
|
|
|
| environment()->Push(environment()->Top()); // Duplicate receiver.
|
| VisitForValue(property->key());
|
| Node* name = BuildToName(environment()->Pop(),
|
| - expr->GetIdForProperty(property_index));
|
| + expr->GetIdForPropertyName(property_index));
|
| environment()->Push(name);
|
| VisitForValue(property->value());
|
| Node* value = environment()->Pop();
|
|
|