Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index af0b4cf554e0d6404bf39129051d45690451d36e..7fddc4aafd549a0c00956dd7a891a14703333ee0 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1744,7 +1744,9 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
Node* language = jsgraph()->Constant(SLOPPY); |
const Operator* op = |
javascript()->CallRuntime(Runtime::kSetProperty, 4); |
- NewNode(op, receiver, key, value, language); |
+ Node* set_property = NewNode(op, receiver, key, value, language); |
+ // SetProperty should not lazy deopt on an object literal. |
+ PrepareFrameState(set_property, BailoutId::None()); |
BuildSetHomeObject(value, receiver, property->value()); |
} |
break; |