| 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/optimizing-compile-dispatcher.h" | 5 #include "src/optimizing-compile-dispatcher.h" |
| 6 | 6 |
| 7 #include "src/v8.h" | |
| 8 | |
| 9 #include "src/base/atomicops.h" | 7 #include "src/base/atomicops.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 8 #include "src/full-codegen/full-codegen.h" |
| 11 #include "src/hydrogen.h" | 9 #include "src/hydrogen.h" |
| 12 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| 11 #include "src/v8.h" |
| 13 | 12 |
| 14 namespace v8 { | 13 namespace v8 { |
| 15 namespace internal { | 14 namespace internal { |
| 16 | 15 |
| 17 namespace { | 16 namespace { |
| 18 | 17 |
| 19 void DisposeOptimizedCompileJob(OptimizedCompileJob* job, | 18 void DisposeOptimizedCompileJob(OptimizedCompileJob* job, |
| 20 bool restore_function_code) { | 19 bool restore_function_code) { |
| 21 // The recompile job is allocated in the CompilationInfo's zone. | 20 // The recompile job is allocated in the CompilationInfo's zone. |
| 22 CompilationInfo* info = job->info(); | 21 CompilationInfo* info = job->info(); |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 info->closure()->PrintName(); | 350 info->closure()->PrintName(); |
| 352 PrintF(", AST id %d]\n", info->osr_ast_id().ToInt()); | 351 PrintF(", AST id %d]\n", info->osr_ast_id().ToInt()); |
| 353 } | 352 } |
| 354 DisposeOptimizedCompileJob(stale, false); | 353 DisposeOptimizedCompileJob(stale, false); |
| 355 } | 354 } |
| 356 osr_buffer_[osr_buffer_cursor_] = job; | 355 osr_buffer_[osr_buffer_cursor_] = job; |
| 357 osr_buffer_cursor_ = (osr_buffer_cursor_ + 1) % osr_buffer_capacity_; | 356 osr_buffer_cursor_ = (osr_buffer_cursor_ + 1) % osr_buffer_capacity_; |
| 358 } | 357 } |
| 359 } // namespace internal | 358 } // namespace internal |
| 360 } // namespace v8 | 359 } // namespace v8 |
| OLD | NEW |