| Index: src/compiler/js-create-lowering.cc
|
| diff --git a/src/compiler/js-create-lowering.cc b/src/compiler/js-create-lowering.cc
|
| index 81134a2eccf93894824ae7bcf1770b1648b9b6de..2bc16920ead1c601ac9ffbd62a3b4a698eabb098 100644
|
| --- a/src/compiler/js-create-lowering.cc
|
| +++ b/src/compiler/js-create-lowering.cc
|
| @@ -930,6 +930,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();
|
| @@ -959,6 +960,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();
|
| @@ -988,18 +990,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();
|
|
|
|
|