| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index a87d623790e0007198cd6bf08ca20a1662606154..559e43a7786fdf93bce3b46d314b209848089d82 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -7343,14 +7343,14 @@ HInstruction* HOptimizedGraphBuilder::NewArgumentAdaptorCall(
|
|
|
| HValue* arity = Add<HConstant>(argument_count - 1);
|
|
|
| - HValue* op_vals[] = { fun, context, arity, expected_param_count };
|
| + HValue* op_vals[] = { fun, arity, expected_param_count };
|
|
|
| Handle<Code> adaptor =
|
| isolate()->builtins()->ArgumentsAdaptorTrampoline();
|
| HConstant* adaptor_value = Add<HConstant>(adaptor);
|
|
|
| return New<HCallWithDescriptor>(
|
| - adaptor_value, argument_count, descriptor,
|
| + adaptor_value, context, argument_count, descriptor,
|
| Vector<HValue*>(op_vals, descriptor->environment_length()));
|
| }
|
|
|
| @@ -8584,8 +8584,7 @@ bool HOptimizedGraphBuilder::TryInlineApiCall(Handle<JSFunction> function,
|
| Add<HConstant>(function),
|
| call_data,
|
| holder,
|
| - api_function_address,
|
| - context()
|
| + api_function_address
|
| };
|
|
|
| CallInterfaceDescriptor* descriptor =
|
| @@ -8599,7 +8598,7 @@ bool HOptimizedGraphBuilder::TryInlineApiCall(Handle<JSFunction> function,
|
| descriptor->environment_length());
|
|
|
| HInstruction* call = New<HCallWithDescriptor>(
|
| - code_value, argc + 1, descriptor,
|
| + code_value, context(), argc + 1, descriptor,
|
| Vector<HValue*>(op_vals, descriptor->environment_length()));
|
|
|
| if (drop_extra) Drop(1); // Drop function.
|
|
|