Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 57efc54011356a4fbc2b03beb16b46c176bd1ebd..1fc213455b683c616fa33d55693dd485e4fc2877 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -2461,9 +2461,15 @@ void BytecodeGenerator::VisitCall(Call* expr) { |
} |
builder()->SetExpressionPosition(expr); |
- builder()->Call(callee, receiver, 1 + args->length(), |
- feedback_index(expr->CallFeedbackICSlot()), |
- expr->tail_call_mode()); |
+ if (expr->CallFeedbackICSlot().IsInvalid()) { |
+ builder()->Call(callee, receiver, 1 + args->length(), |
+ expr->tail_call_mode()); |
+ } else { |
+ DCHECK(call_type != Call::POSSIBLY_EVAL_CALL); |
+ builder()->CallIC(callee, receiver, 1 + args->length(), |
+ feedback_index(expr->CallFeedbackICSlot()), |
+ expr->tail_call_mode()); |
+ } |
execution_result()->SetResultInAccumulator(); |
} |