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

Unified Diff: src/hydrogen.h

Issue 347573002: Revert "Optimize Function.prototype.call" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 5e6f1c0e9601084815b0216a7a1e01a8c7467f37..5df1d65debe88d77167981f5c032c3e81fe04cbb 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2321,13 +2321,8 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
void EnsureArgumentsArePushedForAccess();
bool TryArgumentsAccess(Property* expr);
- // Shared code for .call and .apply optimizations.
- void HandleIndirectCall(Call* expr, HValue* function, int arguments_count);
- // Try to optimize indirect calls such as fun.apply(receiver, arguments)
- // or fun.call(...).
- bool TryIndirectCall(Call* expr);
- void BuildFunctionApply(Call* expr);
- void BuildFunctionCall(Call* expr);
+ // Try to optimize fun.apply(receiver, arguments) pattern.
+ bool TryCallApply(Call* expr);
bool TryHandleArrayCall(Call* expr, HValue* function);
bool TryHandleArrayCallNew(CallNew* expr, HValue* function);
@@ -2363,13 +2358,12 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
BailoutId id,
BailoutId assignment_id,
HValue* implicit_return_value);
- bool TryInlineIndirectCall(Handle<JSFunction> function,
- Call* expr,
- int arguments_count);
+ bool TryInlineApply(Handle<JSFunction> function,
+ Call* expr,
+ int arguments_count);
bool TryInlineBuiltinMethodCall(Call* expr,
- Handle<JSFunction> function,
- Handle<Map> receiver_map,
- int args_count_no_receiver);
+ HValue* receiver,
+ Handle<Map> receiver_map);
bool TryInlineBuiltinFunctionCall(Call* expr);
enum ApiCallType {
kCallApiFunction,
« 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