Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index db53cef43297c97872f7b06af93718193d52649a..7d6df4f83fde768fddea14ab769e8e83f07d62d4 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7069,8 +7069,7 @@ int HOptimizedGraphBuilder::InliningAstSize(Handle<JSFunction> target) { |
} |
-bool HOptimizedGraphBuilder::TryInline(CallKind call_kind, |
- Handle<JSFunction> target, |
+bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, |
int arguments_count, |
HValue* implicit_return_value, |
BailoutId ast_id, |
@@ -7353,14 +7352,7 @@ bool HOptimizedGraphBuilder::TryInline(CallKind call_kind, |
bool HOptimizedGraphBuilder::TryInlineCall(Call* expr, bool drop_extra) { |
- // The function call we are inlining is a method call if the call |
- // is a property call. |
- CallKind call_kind = (expr->expression()->AsProperty() == NULL) |
- ? CALL_AS_FUNCTION |
- : CALL_AS_METHOD; |
- |
- return TryInline(call_kind, |
- expr->target(), |
+ return TryInline(expr->target(), |
expr->arguments()->length(), |
NULL, |
expr->id(), |
@@ -7371,8 +7363,7 @@ bool HOptimizedGraphBuilder::TryInlineCall(Call* expr, bool drop_extra) { |
bool HOptimizedGraphBuilder::TryInlineConstruct(CallNew* expr, |
HValue* implicit_return_value) { |
- return TryInline(CALL_AS_FUNCTION, |
- expr->target(), |
+ return TryInline(expr->target(), |
expr->arguments()->length(), |
implicit_return_value, |
expr->id(), |
@@ -7384,8 +7375,7 @@ bool HOptimizedGraphBuilder::TryInlineConstruct(CallNew* expr, |
bool HOptimizedGraphBuilder::TryInlineGetter(Handle<JSFunction> getter, |
BailoutId ast_id, |
BailoutId return_id) { |
- return TryInline(CALL_AS_METHOD, |
- getter, |
+ return TryInline(getter, |
0, |
NULL, |
ast_id, |
@@ -7398,8 +7388,7 @@ bool HOptimizedGraphBuilder::TryInlineSetter(Handle<JSFunction> setter, |
BailoutId id, |
BailoutId assignment_id, |
HValue* implicit_return_value) { |
- return TryInline(CALL_AS_METHOD, |
- setter, |
+ return TryInline(setter, |
1, |
implicit_return_value, |
id, assignment_id, |
@@ -7410,8 +7399,7 @@ bool HOptimizedGraphBuilder::TryInlineSetter(Handle<JSFunction> setter, |
bool HOptimizedGraphBuilder::TryInlineApply(Handle<JSFunction> function, |
Call* expr, |
int arguments_count) { |
- return TryInline(CALL_AS_METHOD, |
- function, |
+ return TryInline(function, |
arguments_count, |
NULL, |
expr->id(), |