Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 6891bd74af4e514fd1bda0e9dfbe09ba25af1e33..4781143d7d9b82f50064da3a310ce089131d88fe 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -594,11 +594,12 @@ void Expression::RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle) { |
int Call::ComputeFeedbackSlotCount(Isolate* isolate) { |
CallType call_type = GetCallType(isolate); |
- if (call_type == POSSIBLY_EVAL_CALL) { |
- return 0; |
+ if (call_type == LOOKUP_SLOT_CALL || call_type == OTHER_CALL) { |
+ // Call only uses a slot in some cases. |
+ return 1; |
} |
- return 1; |
+ return 0; |
} |