| Index: src/compiler/js-typed-lowering.cc
|
| diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc
|
| index f864f40edb4cfb325ee7797e7de3dfce049e1aba..696df5cccef882f9e8cd9b0340c272dcccbf2b01 100644
|
| --- a/src/compiler/js-typed-lowering.cc
|
| +++ b/src/compiler/js-typed-lowering.cc
|
| @@ -1765,8 +1765,7 @@
|
| Reduction JSTypedLowering::ReduceJSCreateLiteralArray(Node* node) {
|
| DCHECK_EQ(IrOpcode::kJSCreateLiteralArray, node->opcode());
|
| CreateLiteralParameters const& p = CreateLiteralParametersOf(node->op());
|
| - Handle<FixedArray> const constants = Handle<FixedArray>::cast(p.constant());
|
| - int const length = constants->length();
|
| + int const length = p.constants()->length();
|
| int const flags = p.flags();
|
|
|
| // Use the FastCloneShallowArrayStub only for shallow boilerplates up to the
|
| @@ -1785,7 +1784,7 @@
|
| const Operator* new_op = common()->Call(desc);
|
| Node* stub_code = jsgraph()->HeapConstant(callable.code());
|
| Node* literal_index = jsgraph()->SmiConstant(p.index());
|
| - Node* constant_elements = jsgraph()->HeapConstant(constants);
|
| + Node* constant_elements = jsgraph()->HeapConstant(p.constants());
|
| node->InsertInput(graph()->zone(), 0, stub_code);
|
| node->InsertInput(graph()->zone(), 2, literal_index);
|
| node->InsertInput(graph()->zone(), 3, constant_elements);
|
| @@ -1800,9 +1799,8 @@
|
| Reduction JSTypedLowering::ReduceJSCreateLiteralObject(Node* node) {
|
| DCHECK_EQ(IrOpcode::kJSCreateLiteralObject, node->opcode());
|
| CreateLiteralParameters const& p = CreateLiteralParametersOf(node->op());
|
| - Handle<FixedArray> const constants = Handle<FixedArray>::cast(p.constant());
|
| // Constants are pairs, see ObjectLiteral::properties_count().
|
| - int const length = constants->length() / 2;
|
| + int const length = p.constants()->length() / 2;
|
| int const flags = p.flags();
|
|
|
| // Use the FastCloneShallowObjectStub only for shallow boilerplates without
|
| @@ -1820,7 +1818,7 @@
|
| Node* stub_code = jsgraph()->HeapConstant(callable.code());
|
| Node* literal_index = jsgraph()->SmiConstant(p.index());
|
| Node* literal_flags = jsgraph()->SmiConstant(flags);
|
| - Node* constant_elements = jsgraph()->HeapConstant(constants);
|
| + Node* constant_elements = jsgraph()->HeapConstant(p.constants());
|
| node->InsertInput(graph()->zone(), 0, stub_code);
|
| node->InsertInput(graph()->zone(), 2, literal_index);
|
| node->InsertInput(graph()->zone(), 3, constant_elements);
|
|
|