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