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/ast/scopes.h" |
5 #include "src/compiler.h" | 6 #include "src/compiler.h" |
6 #include "src/compiler/all-nodes.h" | 7 #include "src/compiler/all-nodes.h" |
7 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
8 #include "src/compiler/common-operator-reducer.h" | 9 #include "src/compiler/common-operator-reducer.h" |
9 #include "src/compiler/dead-code-elimination.h" | 10 #include "src/compiler/dead-code-elimination.h" |
10 #include "src/compiler/frame.h" | 11 #include "src/compiler/frame.h" |
11 #include "src/compiler/graph.h" | 12 #include "src/compiler/graph.h" |
12 #include "src/compiler/graph-reducer.h" | 13 #include "src/compiler/graph-reducer.h" |
13 #include "src/compiler/graph-trimmer.h" | 14 #include "src/compiler/graph-trimmer.h" |
14 #include "src/compiler/graph-visualizer.h" | 15 #include "src/compiler/graph-visualizer.h" |
15 #include "src/compiler/js-graph.h" | 16 #include "src/compiler/js-graph.h" |
16 #include "src/compiler/loop-analysis.h" | 17 #include "src/compiler/loop-analysis.h" |
17 #include "src/compiler/node.h" | 18 #include "src/compiler/node.h" |
18 #include "src/compiler/node-marker.h" | 19 #include "src/compiler/node-marker.h" |
19 #include "src/compiler/osr.h" | 20 #include "src/compiler/osr.h" |
20 #include "src/scopes.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_(info->scope()->num_parameters()), | 27 : parameter_count_(info->scope()->num_parameters()), |
28 stack_slot_count_(info->scope()->num_stack_slots() + | 28 stack_slot_count_(info->scope()->num_stack_slots() + |
29 info->osr_expr_stack_height()) {} | 29 info->osr_expr_stack_height()) {} |
30 | 30 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 328 |
329 void OsrHelper::SetupFrame(Frame* frame) { | 329 void OsrHelper::SetupFrame(Frame* frame) { |
330 // The optimized frame will subsume the unoptimized frame. Do so by reserving | 330 // The optimized frame will subsume the unoptimized frame. Do so by reserving |
331 // the first spill slots. | 331 // the first spill slots. |
332 frame->ReserveSpillSlots(UnoptimizedFrameSlots()); | 332 frame->ReserveSpillSlots(UnoptimizedFrameSlots()); |
333 } | 333 } |
334 | 334 |
335 } // namespace compiler | 335 } // namespace compiler |
336 } // namespace internal | 336 } // namespace internal |
337 } // namespace v8 | 337 } // namespace v8 |
OLD | NEW |