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