Index: src/builtins/builtins-utils.h |
diff --git a/src/builtins/builtins-utils.h b/src/builtins/builtins-utils.h |
index 6378fdfad5d3413b8d826ae5bb6ccde2e9b05955..0904208b835f181729eb4dc2e5906a19f8b8c5a6 100644 |
--- a/src/builtins/builtins-utils.h |
+++ b/src/builtins/builtins-utils.h |
@@ -91,7 +91,8 @@ |
MUST_USE_RESULT Object* Builtin_##name( \ |
int args_length, Object** args_object, Isolate* isolate) { \ |
DCHECK(isolate->context() == nullptr || isolate->context()->IsContext()); \ |
- if (V8_UNLIKELY(FLAG_runtime_stats)) { \ |
+ if (V8_UNLIKELY(TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED() || \ |
+ FLAG_runtime_call_stats)) { \ |
return Builtin_Impl_Stats_##name(args_length, args_object, isolate); \ |
} \ |
BuiltinArguments args(args_length, args_object); \ |