Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 9b6370a088c9ca3c9d61f73a772affe9a38a5a3a..6f75240ba365cf2e7ef0de9396e308c712d2931d 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -2214,6 +2214,8 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
bool TryInlineCall(Call* expr); |
bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); |
bool TryInlineGetter(Handle<JSFunction> getter, |
+ HValue * receiver, |
Toon Verwaest
2014/02/04 13:25:31
remove space between HValue and *
|
+ Handle<Map> receiver_map, |
BailoutId ast_id, |
BailoutId return_id); |
bool TryInlineSetter(Handle<JSFunction> setter, |
@@ -2227,14 +2229,25 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
HValue* receiver, |
Handle<Map> receiver_map); |
bool TryInlineBuiltinFunctionCall(Call* expr); |
+ enum ApiCallType { |
+ kCallApiFunction, |
+ kCallApiMethod, |
+ kCallApiGetter |
+ }; |
bool TryInlineApiMethodCall(Call* expr, |
HValue* receiver, |
Handle<Map> receiver_map); |
bool TryInlineApiFunctionCall(Call* expr, HValue* receiver); |
- bool TryInlineApiCall(Call* expr, |
- HValue* receiver, |
- Handle<Map> receiver_map, |
- bool is_function_call); |
+ bool TryInlineApiGetter(Handle<JSFunction> function, |
+ HValue* receiver, |
+ Handle<Map> receiver_map, |
+ BailoutId ast_id); |
+ bool TryInlineApiCall(Handle<JSFunction> function, |
+ HValue* receiver, |
+ Handle<Map> receiver_map, |
+ int argc, |
+ BailoutId ast_id, |
+ ApiCallType call_type); |
// If --trace-inlining, print a line of the inlining trace. Inlining |
// succeeded if the reason string is NULL and failed if there is a |