v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <compiler.h>
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 |
MUST_USE_RESULT Status | AbortOptimization (BailoutReason reason=kNoReason) |
MUST_USE_RESULT Status | AbortAndDisableOptimization (BailoutReason reason=kNoReason) |
void | WaitForInstall () |
bool | IsWaitingForInstall () |
Public Member Functions inherited from ZoneObject | |
INLINE (void *operator new(size_t size, Zone *zone)) | |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone) |
Definition at line 528 of file compiler.h.
enum Status |
Enumerator | |
---|---|
FAILED | |
BAILED_OUT | |
SUCCEEDED |
Definition at line 538 of file compiler.h.
|
inlineexplicit |
Definition at line 530 of file compiler.h.
|
inline |
Definition at line 556 of file compiler.h.
References OptimizedCompileJob::BAILED_OUT, CompilationInfo::bailout_reason(), CompilationInfo::set_bailout_reason(), and CompilationInfo::shared_info().
Referenced by OptimizedCompileJob::CreateGraph(), and OptimizedCompileJob::GenerateCode().
|
inline |
Definition at line 550 of file compiler.h.
References OptimizedCompileJob::BAILED_OUT, and CompilationInfo::set_bailout_reason().
Referenced by OptimizedCompileJob::CreateGraph(), and OptimizedCompileJob::OptimizeGraph().
OptimizedCompileJob::Status CreateGraph | ( | ) |
Definition at line 311 of file compiler.cc.
References OptimizedCompileJob::AbortAndDisableOptimization(), OptimizedCompileJob::AbortOptimization(), ASSERT, CompilationInfo::code(), v8::internal::code(), HGraphBuilder::CreateGraph(), CompilationInfo::EnableDeoptimizationSupport(), OptimizedCompileJob::FAILED, CompilationInfo::function(), Isolate::GetHStatistics(), Isolate::GetHTracer(), OptimizedCompileJob::info(), HOptimizedGraphBuilder::inline_bailout(), OptimizedCompileJob::isolate(), LUnallocated::kMaxFixedSlotIndex, LUnallocated::kMinFixedSlotIndex, FullCodeGenerator::MakeCode(), v8::internal::name, v8::internal::NULL, Scope::num_parameters(), Scope::num_stack_slots(), CompilationInfo::PrepareForCompilation(), v8::internal::PrintF(), Compiler::RecordFunctionCompilation(), AstTyper::Run(), CompilationInfo::scope(), CompilationInfo::set_this_has_uses(), CompilationInfo::SetContext(), CompilationInfo::SetFunction(), CompilationInfo::shared_info(), OptimizedCompileJob::SUCCEEDED, and CompilationInfo::zone().
OptimizedCompileJob::Status GenerateCode | ( | ) |
Definition at line 465 of file compiler.cc.
References OptimizedCompileJob::AbortAndDisableOptimization(), ASSERT, CompilationInfo::bailout_reason(), v8::internal::code(), LChunk::Codegen(), CompilationInfo::context(), OptimizedCompileJob::info(), Handle< T >::is_null(), OptimizedCompileJob::last_status(), v8::internal::NULL, CompilationInfo::set_bailout_reason(), CompilationInfo::SetCode(), and OptimizedCompileJob::SUCCEEDED.
Referenced by Compiler::GetConcurrentlyOptimizedCode().
|
inline |
Definition at line 547 of file compiler.h.
Referenced by OptimizedCompileJob::CreateGraph(), OptimizingCompilerThread::FindReadyOSRCandidate(), OptimizedCompileJob::GenerateCode(), Compiler::GetConcurrentlyOptimizedCode(), OptimizingCompilerThread::InstallOptimizedFunctions(), OptimizedCompileJob::isolate(), OptimizingCompilerThread::IsQueuedForOSR(), and OptimizingCompilerThread::QueueForOptimization().
|
inline |
Definition at line 548 of file compiler.h.
References OptimizedCompileJob::info(), and CompilationInfo::isolate().
Referenced by OptimizedCompileJob::CreateGraph().
|
inline |
Definition at line 568 of file compiler.h.
Referenced by OptimizingCompilerThread::FindReadyOSRCandidate(), and OptimizingCompilerThread::IsQueuedForOSR().
|
inline |
Definition at line 546 of file compiler.h.
Referenced by OptimizedCompileJob::GenerateCode(), Compiler::GetConcurrentlyOptimizedCode(), and OptimizedCompileJob::OptimizeGraph().
OptimizedCompileJob::Status OptimizeGraph | ( | ) |
Definition at line 443 of file compiler.cc.
References OptimizedCompileJob::AbortOptimization(), ASSERT, HOptimizedGraphBuilder::Bailout(), OptimizedCompileJob::last_status(), LChunk::NewChunk(), v8::internal::NULL, and OptimizedCompileJob::SUCCEEDED.
|
inline |
Definition at line 563 of file compiler.h.
References ASSERT, and CompilationInfo::is_osr().
Referenced by OptimizingCompilerThread::InstallOptimizedFunctions().