28 #ifndef V8_OPTIMIZING_COMPILER_THREAD_H_
29 #define V8_OPTIMIZING_COMPILER_THREAD_H_
40 class OptimizingCompiler;
45 Thread(
"OptimizingCompilerThread"),
47 stop_semaphore_(
OS::CreateSemaphore(0)),
48 input_queue_semaphore_(
OS::CreateSemaphore(0)),
49 time_spent_compiling_(0),
50 time_spent_total_(0) {
66 ASSERT(!IsOptimizerThread());
71 return (current_length < FLAG_parallel_recompilation_queue_length);
75 bool IsOptimizerThread();
79 delete input_queue_semaphore_;
80 delete stop_semaphore_;
87 UnboundQueue<OptimizingCompiler*> input_queue_;
88 UnboundQueue<OptimizingCompiler*> output_queue_;
91 int64_t time_spent_compiling_;
92 int64_t time_spent_total_;
101 #endif // V8_OPTIMIZING_COMPILER_THREAD_H_
void InstallOptimizedFunctions()
#define ASSERT(condition)
void QueueForOptimization(OptimizingCompiler *optimizing_compiler)
void NoBarrier_Store(volatile Atomic32 *ptr, Atomic32 value)
~OptimizingCompilerThread()
Atomic32 NoBarrier_Load(volatile const Atomic32 *ptr)
OptimizingCompilerThread(Isolate *isolate)