Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: src/hydrogen.cc

Issue 384403002: StubCallInterfaceDescriptor takes a context register. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Base class for Descriptors. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698