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

Unified Diff: src/hydrogen.h

Issue 330303002: Add machinery to support arguments escaping to safe builtins (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index b4e4074e37837f726dbdcf8b15e3c99c8422aa0d..59d258617b987a1d9081c01e59c782c865dea450 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2293,6 +2293,13 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
// Visit a list of expressions from left to right, each in a value context.
void VisitExpressions(ZoneList<Expression*>* exprs);
+ // Like VisitExpressions for the argument list for a call to function.
+ // If the function supports safe usage of arguments and args contain
+ // arguments, the caller must succeed in inlining the call as a builtin
+ // or bailout manually.
+ void VisitCallArguments(ZoneList<Expression*>* args,
+ HValue* function,
+ bool* args_contain_arguments);
// Remove the arguments from the bailout environment and emit instructions
// to push them as outgoing parameters.
@@ -2366,6 +2373,10 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
bool TryInlineIndirectCall(Handle<JSFunction> function,
Call* expr,
int arguments_count);
+ void InlineBuiltinWithArguments(Call* expr,
+ HValue* function,
+ Handle<Map> receiver_map,
+ int args_count_no_receiver);
bool TryInlineBuiltinMethodCall(Call* expr,
Handle<JSFunction> function,
Handle<Map> receiver_map,
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698