OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "optimizing-compiler-thread.h" | 5 #include "src/optimizing-compiler-thread.h" |
6 | 6 |
7 #include "v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "full-codegen.h" | 9 #include "src/full-codegen.h" |
10 #include "hydrogen.h" | 10 #include "src/hydrogen.h" |
11 #include "isolate.h" | 11 #include "src/isolate.h" |
12 #include "v8threads.h" | 12 #include "src/v8threads.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 OptimizingCompilerThread::~OptimizingCompilerThread() { | 17 OptimizingCompilerThread::~OptimizingCompilerThread() { |
18 ASSERT_EQ(0, input_queue_length_); | 18 ASSERT_EQ(0, input_queue_length_); |
19 DeleteArray(input_queue_); | 19 DeleteArray(input_queue_); |
20 if (FLAG_concurrent_osr) { | 20 if (FLAG_concurrent_osr) { |
21 #ifdef DEBUG | 21 #ifdef DEBUG |
22 for (int i = 0; i < osr_buffer_capacity_; i++) { | 22 for (int i = 0; i < osr_buffer_capacity_; i++) { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 | 362 |
363 | 363 |
364 bool OptimizingCompilerThread::IsOptimizerThread() { | 364 bool OptimizingCompilerThread::IsOptimizerThread() { |
365 LockGuard<Mutex> lock_guard(&thread_id_mutex_); | 365 LockGuard<Mutex> lock_guard(&thread_id_mutex_); |
366 return ThreadId::Current().ToInteger() == thread_id_; | 366 return ThreadId::Current().ToInteger() == thread_id_; |
367 } | 367 } |
368 #endif | 368 #endif |
369 | 369 |
370 | 370 |
371 } } // namespace v8::internal | 371 } } // namespace v8::internal |
OLD | NEW |