OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/osr.h" |
5 #include "src/ast/scopes.h" | 6 #include "src/ast/scopes.h" |
6 #include "src/compiler.h" | 7 #include "src/compilation-info.h" |
7 #include "src/compiler/all-nodes.h" | 8 #include "src/compiler/all-nodes.h" |
| 9 #include "src/compiler/common-operator-reducer.h" |
8 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/common-operator-reducer.h" | |
10 #include "src/compiler/dead-code-elimination.h" | 11 #include "src/compiler/dead-code-elimination.h" |
11 #include "src/compiler/frame.h" | 12 #include "src/compiler/frame.h" |
12 #include "src/compiler/graph.h" | |
13 #include "src/compiler/graph-reducer.h" | 13 #include "src/compiler/graph-reducer.h" |
14 #include "src/compiler/graph-trimmer.h" | 14 #include "src/compiler/graph-trimmer.h" |
15 #include "src/compiler/graph-visualizer.h" | 15 #include "src/compiler/graph-visualizer.h" |
| 16 #include "src/compiler/graph.h" |
16 #include "src/compiler/js-graph.h" | 17 #include "src/compiler/js-graph.h" |
17 #include "src/compiler/loop-analysis.h" | 18 #include "src/compiler/loop-analysis.h" |
| 19 #include "src/compiler/node-marker.h" |
18 #include "src/compiler/node.h" | 20 #include "src/compiler/node.h" |
19 #include "src/compiler/node-marker.h" | |
20 #include "src/compiler/osr.h" | |
21 | 21 |
22 namespace v8 { | 22 namespace v8 { |
23 namespace internal { | 23 namespace internal { |
24 namespace compiler { | 24 namespace compiler { |
25 | 25 |
26 OsrHelper::OsrHelper(CompilationInfo* info) | 26 OsrHelper::OsrHelper(CompilationInfo* info) |
27 : parameter_count_( | 27 : parameter_count_( |
28 info->is_optimizing_from_bytecode() | 28 info->is_optimizing_from_bytecode() |
29 ? info->shared_info()->bytecode_array()->parameter_count() | 29 ? info->shared_info()->bytecode_array()->parameter_count() |
30 : info->scope()->num_parameters()), | 30 : info->scope()->num_parameters()), |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 void OsrHelper::SetupFrame(Frame* frame) { | 335 void OsrHelper::SetupFrame(Frame* frame) { |
336 // The optimized frame will subsume the unoptimized frame. Do so by reserving | 336 // The optimized frame will subsume the unoptimized frame. Do so by reserving |
337 // the first spill slots. | 337 // the first spill slots. |
338 frame->ReserveSpillSlots(UnoptimizedFrameSlots()); | 338 frame->ReserveSpillSlots(UnoptimizedFrameSlots()); |
339 } | 339 } |
340 | 340 |
341 } // namespace compiler | 341 } // namespace compiler |
342 } // namespace internal | 342 } // namespace internal |
343 } // namespace v8 | 343 } // namespace v8 |
OLD | NEW |