Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index b8507d5eec18885cc87955a9845ea5ddf6d438f3..1b8a55e925925089cb1177f0fc0d1d40222342bc 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1725,7 +1725,7 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
// Create node to deep-copy the literal boilerplate. |
const Operator* op = javascript()->CreateLiteralObject( |
expr->constant_properties(), expr->ComputeFlags(true), |
- expr->literal_index()); |
+ expr->literal_index(), expr->properties_count()); |
Node* literal = NewNode(op, closure); |
PrepareFrameState(literal, expr->CreateLiteralId(), |
OutputFrameStateCombine::Push()); |
@@ -1928,7 +1928,7 @@ void AstGraphBuilder::VisitArrayLiteral(ArrayLiteral* expr) { |
// Create node to deep-copy the literal boilerplate. |
const Operator* op = javascript()->CreateLiteralArray( |
expr->constant_elements(), expr->ComputeFlags(true), |
- expr->literal_index()); |
+ expr->literal_index(), expr->values()->length()); |
Node* literal = NewNode(op, closure); |
PrepareFrameState(literal, expr->CreateLiteralId(), |
OutputFrameStateCombine::Push()); |