5 #ifndef V8_OPTIMIZING_COMPILER_THREAD_H_
6 #define V8_OPTIMIZING_COMPILER_THREAD_H_
19 class HOptimizedGraphBuilder;
20 class OptimizedCompileJob;
21 class SharedFunctionInfo;
44 if (FLAG_concurrent_osr) {
78 return (FLAG_concurrent_recompilation && max_available > 1);
82 static bool IsOptimizerThread(
Isolate* isolate);
83 bool IsOptimizerThread();
108 base::Mutex thread_id_mutex_;
Thread(const Options &options)
static bool Enabled(int max_available)
OptimizingCompilerThread(Isolate *isolate)
OptimizedCompileJob ** input_queue_
base::TimeDelta time_spent_total_
int input_queue_capacity_
base::Semaphore input_queue_semaphore_
void InstallOptimizedFunctions()
void FlushInputQueue(bool restore_function_code)
OptimizedCompileJob ** osr_buffer_
UnboundQueue< OptimizedCompileJob * > output_queue_
void AddToOsrBuffer(OptimizedCompileJob *compiler)
OptimizedCompileJob * NextInput()
bool IsQueuedForOSR(Handle< JSFunction > function, BailoutId osr_ast_id)
void FlushOsrBuffer(bool restore_function_code)
volatile base::AtomicWord stop_thread_
void FlushOutputQueue(bool restore_function_code)
base::Semaphore stop_semaphore_
OptimizedCompileJob * FindReadyOSRCandidate(Handle< JSFunction > function, BailoutId osr_ast_id)
void AgeBufferedOsrJobs()
base::TimeDelta time_spent_compiling_
void QueueForOptimization(OptimizedCompileJob *optimizing_compiler)
~OptimizingCompilerThread()
int InputQueueIndex(int i)
base::Mutex input_queue_mutex_
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
#define DCHECK_LE(v1, v2)
#define DCHECK_LT(v1, v2)
void NoBarrier_Store(volatile Atomic8 *ptr, Atomic8 value)
Debugger support for the V8 JavaScript engine.