Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 5e725284f39807983e56efd38900021c65cac5a6..be70afb4f5aa68b76923bb7d580d7ad030a0ac25 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1081,13 +1081,12 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
VisitForValue(property->value()); |
Node* value = environment()->Pop(); |
Node* receiver = environment()->Pop(); |
- if (property->emit_store()) { |
- const Operator* op = |
- 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()); |
- } |
+ DCHECK(property->emit_store()); |
+ const Operator* op = |
+ 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()); |
break; |
} |
case ObjectLiteral::Property::GETTER: |