V8 Project
|
#include <runtime-profiler.h>
Public Member Functions | |
RuntimeProfiler (Isolate *isolate) | |
void | OptimizeNow () |
void | NotifyICChanged () |
void | AttemptOnStackReplacement (JSFunction *function, int nesting_levels=1) |
Private Member Functions | |
void | Optimize (JSFunction *function, const char *reason) |
bool | CodeSizeOKForOSR (Code *shared_code) |
Private Attributes | |
Isolate * | isolate_ |
bool | any_ic_changed_ |
Definition at line 22 of file runtime-profiler.h.
|
explicit |
Definition at line 54 of file runtime-profiler.cc.
void v8::internal::RuntimeProfiler::AttemptOnStackReplacement | ( | JSFunction * | function, |
int | nesting_levels = 1 |
||
) |
Definition at line 121 of file runtime-profiler.cc.
References v8::internal::Isolate::DebuggerHasBreakPoints(), isolate_, v8::internal::BackEdgeTable::Patch(), and v8::internal::PrintF().
Referenced by OptimizeNow().
|
inline |
Definition at line 28 of file runtime-profiler.h.
References any_ic_changed_.
Referenced by v8::internal::IC::OnTypeFeedbackChanged().
|
private |
Definition at line 83 of file runtime-profiler.cc.
References v8::internal::Isolate::bootstrapper(), v8::internal::Isolate::concurrent_osr_enabled(), v8::internal::Isolate::concurrent_recompilation_enabled(), DCHECK, v8::internal::GetICCounts(), isolate_, v8::internal::OptimizingCompilerThread::IsQueuedForOSR(), v8::internal::Isolate::optimizing_compiler_thread(), and v8::internal::PrintF().
Referenced by OptimizeNow().
void v8::internal::RuntimeProfiler::OptimizeNow | ( | ) |
Definition at line 155 of file runtime-profiler.cc.
References any_ic_changed_, AttemptOnStackReplacement(), v8::internal::Code::CodeSize(), v8::internal::Isolate::DebuggerHasBreakPoints(), v8::internal::SharedFunctionInfo::deopt_count(), v8::internal::JavaScriptFrame::function(), v8::internal::JavaScriptFrame::GetFunctions(), v8::internal::GetICCounts(), v8::internal::Code::instruction_size(), isolate_, v8::internal::Code::kind(), v8::internal::Code::kMaxLoopNestingMarker, v8::internal::kMaxSizeEarlyOpt, v8::internal::Smi::kMaxValue, v8::internal::kOSRCodeSizeAllowanceBase, v8::internal::kOSRCodeSizeAllowancePerTick, v8::internal::kProfilerTicksBeforeOptimization, v8::internal::kProfilerTicksBeforeReenablingOptimization, v8::internal::kTicksWhenNotEnoughTypeInfo, Optimize(), v8::internal::PrintF(), v8::internal::Code::profiler_ticks(), v8::internal::SharedFunctionInfo::profiler_ticks(), v8::internal::Code::set_profiler_ticks(), v8::internal::SharedFunctionInfo::set_profiler_ticks(), v8::internal::SharedFunctionInfo::SourceSize(), and v8::internal::SharedFunctionInfo::TryReenableOptimization().
|
private |
Definition at line 39 of file runtime-profiler.h.
Referenced by NotifyICChanged(), and OptimizeNow().
|
private |
Definition at line 37 of file runtime-profiler.h.
Referenced by AttemptOnStackReplacement(), Optimize(), and OptimizeNow().