Index: src/compiler/js-call-reducer.cc |
diff --git a/src/compiler/js-call-reducer.cc b/src/compiler/js-call-reducer.cc |
index 71745cd54024492203c71a9058e5b72320855f9b..5bea60e412197681fc5c515e18b3e42bf3926a1a 100644 |
--- a/src/compiler/js-call-reducer.cc |
+++ b/src/compiler/js-call-reducer.cc |
@@ -262,6 +262,7 @@ MaybeHandle<Map> InferReceiverMap(Node* node) { |
bool CanInlineApiCall(Isolate* isolate, Node* node, |
Handle<FunctionTemplateInfo> function_template_info) { |
DCHECK(node->opcode() == IrOpcode::kJSCallFunction); |
+ if (V8_UNLIKELY(FLAG_runtime_stats)) return false; |
if (function_template_info->call_code()->IsUndefined(isolate)) { |
return false; |
} |