| 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 "src/compiler-dispatcher/optimizing-compile-dispatcher.h" | 5 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" |
| 6 | 6 |
| 7 #include "src/base/atomicops.h" | 7 #include "src/base/atomicops.h" |
| 8 #include "src/compilation-info.h" |
| 9 #include "src/compiler.h" |
| 8 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| 9 #include "src/isolate.h" | 11 #include "src/isolate.h" |
| 10 #include "src/tracing/trace-event.h" | 12 #include "src/tracing/trace-event.h" |
| 11 #include "src/v8.h" | 13 #include "src/v8.h" |
| 12 | 14 |
| 13 namespace v8 { | 15 namespace v8 { |
| 14 namespace internal { | 16 namespace internal { |
| 15 | 17 |
| 16 namespace { | 18 namespace { |
| 17 | 19 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 void OptimizingCompileDispatcher::Unblock() { | 213 void OptimizingCompileDispatcher::Unblock() { |
| 212 while (blocked_jobs_ > 0) { | 214 while (blocked_jobs_ > 0) { |
| 213 V8::GetCurrentPlatform()->CallOnBackgroundThread( | 215 V8::GetCurrentPlatform()->CallOnBackgroundThread( |
| 214 new CompileTask(isolate_), v8::Platform::kShortRunningTask); | 216 new CompileTask(isolate_), v8::Platform::kShortRunningTask); |
| 215 blocked_jobs_--; | 217 blocked_jobs_--; |
| 216 } | 218 } |
| 217 } | 219 } |
| 218 | 220 |
| 219 } // namespace internal | 221 } // namespace internal |
| 220 } // namespace v8 | 222 } // namespace v8 |
| OLD | NEW |