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