Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 7b31eb9825d188de687fa273ee4d5e1f95a6947d..a8d6093246f721d88174b924fee1dcd9f64d13d3 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1713,12 +1713,10 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
Node* closure = GetFunctionClosure(); |
// Create node to deep-copy the literal boilerplate. |
- Node* literals_array = |
- BuildLoadObjectField(closure, JSFunction::kLiteralsOffset); |
const Operator* op = javascript()->CreateLiteralObject( |
expr->constant_properties(), expr->ComputeFlags(true), |
expr->literal_index()); |
- Node* literal = NewNode(op, literals_array); |
+ Node* literal = NewNode(op, closure); |
PrepareFrameState(literal, expr->CreateLiteralId(), |
OutputFrameStateCombine::Push()); |
@@ -1918,12 +1916,10 @@ void AstGraphBuilder::VisitArrayLiteral(ArrayLiteral* expr) { |
Node* closure = GetFunctionClosure(); |
// Create node to deep-copy the literal boilerplate. |
- Node* literals_array = |
- BuildLoadObjectField(closure, JSFunction::kLiteralsOffset); |
const Operator* op = javascript()->CreateLiteralArray( |
expr->constant_elements(), expr->ComputeFlags(true), |
expr->literal_index()); |
- Node* literal = NewNode(op, literals_array); |
+ Node* literal = NewNode(op, closure); |
PrepareFrameState(literal, expr->CreateLiteralId(), |
OutputFrameStateCombine::Push()); |