Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 3dc7693978b413160070de7924062ade1185e103..58522dbf6e168362af81e19bbf89dc98ea44010b 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -504,15 +504,19 @@ void JSGenericLowering::LowerJSCreateClosure(Node* node) { |
void JSGenericLowering::LowerJSCreateLiteralArray(Node* node) { |
- int literal_flags = OpParameter<int>(node->op()); |
- node->InsertInput(zone(), 3, jsgraph()->SmiConstant(literal_flags)); |
+ CreateLiteralParameters const& p = CreateLiteralParametersOf(node->op()); |
+ node->InsertInput(zone(), 1, jsgraph()->SmiConstant(p.index())); |
+ node->InsertInput(zone(), 2, jsgraph()->HeapConstant(p.constants())); |
+ node->InsertInput(zone(), 3, jsgraph()->SmiConstant(p.flags())); |
ReplaceWithRuntimeCall(node, Runtime::kCreateArrayLiteral); |
} |
void JSGenericLowering::LowerJSCreateLiteralObject(Node* node) { |
- int literal_flags = OpParameter<int>(node->op()); |
- node->InsertInput(zone(), 3, jsgraph()->SmiConstant(literal_flags)); |
+ CreateLiteralParameters const& p = CreateLiteralParametersOf(node->op()); |
+ node->InsertInput(zone(), 1, jsgraph()->SmiConstant(p.index())); |
+ node->InsertInput(zone(), 2, jsgraph()->HeapConstant(p.constants())); |
+ node->InsertInput(zone(), 3, jsgraph()->SmiConstant(p.flags())); |
ReplaceWithRuntimeCall(node, Runtime::kCreateObjectLiteral); |
} |