Index: src/typing.cc |
diff --git a/src/typing.cc b/src/typing.cc |
index 30e0b920529a5a9ed8890a3d627d3ff06b7bfacb..57b494d7663cb15a1290339a5e3e815b9350e7fa 100644 |
--- a/src/typing.cc |
+++ b/src/typing.cc |
@@ -530,14 +530,11 @@ void AstTyper::VisitProperty(Property* expr) { |
void AstTyper::VisitCall(Call* expr) { |
- // Collect type feedback. |
Expression* callee = expr->expression(); |
Property* prop = callee->AsProperty(); |
- if (prop != NULL) { |
- expr->RecordTypeFeedback(oracle(), CALL_AS_METHOD); |
- } else { |
- expr->RecordTypeFeedback(oracle(), CALL_AS_FUNCTION); |
- } |
+ ContextualMode contextual_mode = prop == NULL ? CONTEXTUAL : NOT_CONTEXTUAL; |
+ // Collect type feedback. |
+ expr->RecordTypeFeedback(oracle(), contextual_mode); |
RECURSE(Visit(expr->expression())); |
ZoneList<Expression*>* args = expr->arguments(); |