Index: src/compiler/js-create-lowering.cc |
diff --git a/src/compiler/js-create-lowering.cc b/src/compiler/js-create-lowering.cc |
index 2662382ed2e6241a508ad3113be6da35c59ae8d7..d42ac5c9e55dbeacd1338ccc3a60f1b69c3be009 100644 |
--- a/src/compiler/js-create-lowering.cc |
+++ b/src/compiler/js-create-lowering.cc |
@@ -1014,6 +1014,7 @@ Node* JSCreateLowering::AllocateArguments(Node* effect, Node* control, |
AllocationBuilder a(jsgraph(), effect, control); |
a.AllocateArray(argument_count, factory()->fixed_array_map()); |
for (int i = 0; i < argument_count; ++i, ++parameters_it) { |
+ DCHECK_NOT_NULL((*parameters_it).node); |
a.Store(AccessBuilder::ForFixedArraySlot(i), (*parameters_it).node); |
} |
return a.Finish(); |
@@ -1043,6 +1044,7 @@ Node* JSCreateLowering::AllocateRestArguments(Node* effect, Node* control, |
AllocationBuilder a(jsgraph(), effect, control); |
a.AllocateArray(num_elements, factory()->fixed_array_map()); |
for (int i = 0; i < num_elements; ++i, ++parameters_it) { |
+ DCHECK_NOT_NULL((*parameters_it).node); |
a.Store(AccessBuilder::ForFixedArraySlot(i), (*parameters_it).node); |
} |
return a.Finish(); |
@@ -1072,18 +1074,19 @@ Node* JSCreateLowering::AllocateAliasedArguments( |
// Prepare an iterator over argument values recorded in the frame state. |
Node* const parameters = frame_state->InputAt(kFrameStateParametersInput); |
StateValuesAccess parameters_access(parameters); |
- auto paratemers_it = ++parameters_access.begin(); |
+ auto parameters_it = ++parameters_access.begin(); |
// The unmapped argument values recorded in the frame state are stored yet |
// another indirection away and then linked into the parameter map below, |
// whereas mapped argument values are replaced with a hole instead. |
AllocationBuilder aa(jsgraph(), effect, control); |
aa.AllocateArray(argument_count, factory()->fixed_array_map()); |
- for (int i = 0; i < mapped_count; ++i, ++paratemers_it) { |
+ for (int i = 0; i < mapped_count; ++i, ++parameters_it) { |
aa.Store(AccessBuilder::ForFixedArraySlot(i), jsgraph()->TheHoleConstant()); |
} |
- for (int i = mapped_count; i < argument_count; ++i, ++paratemers_it) { |
- aa.Store(AccessBuilder::ForFixedArraySlot(i), (*paratemers_it).node); |
+ for (int i = mapped_count; i < argument_count; ++i, ++parameters_it) { |
+ DCHECK_NOT_NULL((*parameters_it).node); |
+ aa.Store(AccessBuilder::ForFixedArraySlot(i), (*parameters_it).node); |
} |
Node* arguments = aa.Finish(); |