5 #ifndef V8_RUNTIME_PROFILER_H_ 6 #define V8_RUNTIME_PROFILER_H_ 8 #include "src/allocation.h" 15 class InterpretedFrame;
17 enum class OptimizationReason : uint8_t;
23 void MarkCandidatesForOptimization();
25 void NotifyICChanged() { any_ic_changed_ =
true; }
28 int nesting_levels = 1);
35 OptimizationReason ShouldOptimize(
JSFunction*
function,
37 void Optimize(
JSFunction*
function, OptimizationReason reason);
38 void Baseline(
JSFunction*
function, OptimizationReason reason);
47 #endif // V8_RUNTIME_PROFILER_H_