V8 Project
|
#include <compiler.h>
Classes | |
struct | Timer |
Public Types | |
enum | Status { FAILED , BAILED_OUT , SUCCEEDED } |
Public Member Functions | |
OptimizedCompileJob (CompilationInfo *info) | |
MUST_USE_RESULT Status | CreateGraph () |
MUST_USE_RESULT Status | OptimizeGraph () |
MUST_USE_RESULT Status | GenerateCode () |
Status | last_status () const |
CompilationInfo * | info () const |
Isolate * | isolate () const |
Status | RetryOptimization (BailoutReason reason) |
Status | AbortOptimization (BailoutReason reason) |
void | WaitForInstall () |
bool | IsWaitingForInstall () |
![]() | |
INLINE (void *operator new(size_t size, Zone *zone)) | |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone) |
Private Member Functions | |
MUST_USE_RESULT Status | SetLastStatus (Status status) |
void | RecordOptimizationStats () |
Private Attributes | |
CompilationInfo * | info_ |
HOptimizedGraphBuilder * | graph_builder_ |
HGraph * | graph_ |
LChunk * | chunk_ |
base::TimeDelta | time_taken_to_create_graph_ |
base::TimeDelta | time_taken_to_optimize_ |
base::TimeDelta | time_taken_to_codegen_ |
Status | last_status_ |
bool | awaiting_install_ |
Definition at line 582 of file compiler.h.
|
inlineexplicit |
Definition at line 584 of file compiler.h.
|
inline |
Definition at line 609 of file compiler.h.
References v8::internal::CompilationInfo::AbortOptimization(), BAILED_OUT, info_, and SetLastStatus().
Referenced by CreateGraph(), and GenerateCode().
OptimizedCompileJob::Status v8::internal::OptimizedCompileJob::CreateGraph | ( | ) |
Definition at line 325 of file compiler.cc.
References AbortOptimization(), BAILED_OUT, v8::internal::CompilationInfo::context(), v8::internal::HGraphBuilder::CreateGraph(), DCHECK, v8::internal::Compiler::EnsureDeoptimizationSupport(), FAILED, v8::internal::CompilationInfo::function(), v8::internal::compiler::Pipeline::GenerateCode(), v8::internal::Isolate::GetHStatistics(), v8::internal::Isolate::GetHTracer(), graph_, graph_builder_, v8::internal::Scope::HasIllegalRedeclaration(), info(), isolate(), v8::internal::LUnallocated::kMaxFixedSlotIndex, v8::internal::LUnallocated::kMinFixedSlotIndex, name, NULL, v8::internal::Scope::num_parameters(), v8::internal::Scope::num_stack_slots(), v8::internal::PrintF(), RetryOptimization(), v8::internal::AstTyper::Run(), v8::internal::CompilationInfo::scope(), v8::internal::CompilationInfo::set_this_has_uses(), SetLastStatus(), v8::internal::CompilationInfo::shared_info(), SUCCEEDED, time_taken_to_create_graph_, and v8::internal::CompilationInfo::zone().
Referenced by v8::internal::GetOptimizedCodeLater(), and v8::internal::GetOptimizedCodeNow().
OptimizedCompileJob::Status v8::internal::OptimizedCompileJob::GenerateCode | ( | ) |
Definition at line 468 of file compiler.cc.
References AbortOptimization(), BAILED_OUT, chunk_, v8::internal::LChunk::Codegen(), v8::internal::CompilationInfo::context(), DCHECK, graph_, info(), v8::internal::Handle< T >::is_null(), isolate(), last_status(), NULL, RecordOptimizationStats(), v8::internal::CompilationInfo::SetCode(), SetLastStatus(), SUCCEEDED, and time_taken_to_codegen_.
Referenced by v8::internal::Compiler::GetConcurrentlyOptimizedCode(), and v8::internal::GetOptimizedCodeNow().
|
inline |
Definition at line 601 of file compiler.h.
References info_.
Referenced by v8::internal::OptimizingCompilerThread::AddToOsrBuffer(), CreateGraph(), v8::internal::DisposeOptimizedCompileJob(), v8::internal::OptimizingCompilerThread::FindReadyOSRCandidate(), v8::internal::OptimizingCompilerThread::FlushInputQueue(), v8::internal::OptimizingCompilerThread::FlushOutputQueue(), GenerateCode(), v8::internal::Compiler::GetConcurrentlyOptimizedCode(), v8::internal::OptimizingCompilerThread::InstallOptimizedFunctions(), isolate(), v8::internal::OptimizingCompilerThread::IsQueuedForOSR(), OptimizeGraph(), v8::internal::OptimizingCompilerThread::QueueForOptimization(), and RecordOptimizationStats().
|
inline |
Definition at line 602 of file compiler.h.
References info(), and v8::internal::CompilationInfo::isolate().
Referenced by CreateGraph(), GenerateCode(), and RecordOptimizationStats().
|
inline |
Definition at line 619 of file compiler.h.
References awaiting_install_.
Referenced by v8::internal::OptimizingCompilerThread::AddToOsrBuffer(), v8::internal::DisposeOptimizedCompileJob(), v8::internal::OptimizingCompilerThread::FindReadyOSRCandidate(), and v8::internal::OptimizingCompilerThread::IsQueuedForOSR().
|
inline |
Definition at line 600 of file compiler.h.
References last_status_.
Referenced by GenerateCode(), v8::internal::Compiler::GetConcurrentlyOptimizedCode(), and OptimizeGraph().
OptimizedCompileJob::Status v8::internal::OptimizedCompileJob::OptimizeGraph | ( | ) |
Definition at line 441 of file compiler.cc.
References BAILED_OUT, v8::internal::HOptimizedGraphBuilder::Bailout(), chunk_, DCHECK, graph_, graph_builder_, info(), last_status(), v8::internal::LChunk::NewChunk(), NULL, SetLastStatus(), SUCCEEDED, and time_taken_to_optimize_.
Referenced by v8::internal::OptimizingCompilerThread::CompileNext(), and v8::internal::GetOptimizedCodeNow().
|
private |
Definition at line 504 of file compiler.cc.
References v8::internal::CompilationInfo::closure(), v8::internal::Isolate::GetHStatistics(), info(), isolate(), v8::internal::PrintF(), time_taken_to_codegen_, time_taken_to_create_graph_, and time_taken_to_optimize_.
Referenced by GenerateCode().
|
inline |
Definition at line 604 of file compiler.h.
References BAILED_OUT, info_, v8::internal::CompilationInfo::RetryOptimization(), and SetLastStatus().
Referenced by CreateGraph(), and v8::internal::Compiler::GetConcurrentlyOptimizedCode().
|
inlineprivate |
Definition at line 632 of file compiler.h.
References last_status_.
Referenced by AbortOptimization(), CreateGraph(), GenerateCode(), OptimizeGraph(), and RetryOptimization().
|
inline |
Definition at line 614 of file compiler.h.
References awaiting_install_, DCHECK, info_, and v8::internal::CompilationInfo::is_osr().
Referenced by v8::internal::OptimizingCompilerThread::InstallOptimizedFunctions().
|
private |
Definition at line 630 of file compiler.h.
Referenced by IsWaitingForInstall(), and WaitForInstall().
|
private |
Definition at line 625 of file compiler.h.
Referenced by GenerateCode(), and OptimizeGraph().
|
private |
Definition at line 624 of file compiler.h.
Referenced by CreateGraph(), GenerateCode(), and OptimizeGraph().
|
private |
Definition at line 623 of file compiler.h.
Referenced by CreateGraph(), and OptimizeGraph().
|
private |
Definition at line 622 of file compiler.h.
Referenced by AbortOptimization(), info(), RetryOptimization(), and WaitForInstall().
|
private |
Definition at line 629 of file compiler.h.
Referenced by last_status(), and SetLastStatus().
|
private |
Definition at line 628 of file compiler.h.
Referenced by GenerateCode(), and RecordOptimizationStats().
|
private |
Definition at line 626 of file compiler.h.
Referenced by CreateGraph(), and RecordOptimizationStats().
|
private |
Definition at line 627 of file compiler.h.
Referenced by OptimizeGraph(), and RecordOptimizationStats().