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.h" | 5 #include "src/compiler.h" |
6 #include "src/compiler/all-nodes.h" | 6 #include "src/compiler/all-nodes.h" |
7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
8 #include "src/compiler/control-reducer.h" | 8 #include "src/compiler/control-reducer.h" |
9 #include "src/compiler/frame.h" | 9 #include "src/compiler/frame.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
11 #include "src/compiler/graph-visualizer.h" | |
12 #include "src/compiler/js-graph.h" | 11 #include "src/compiler/js-graph.h" |
13 #include "src/compiler/loop-analysis.h" | 12 #include "src/compiler/loop-analysis.h" |
14 #include "src/compiler/node.h" | 13 #include "src/compiler/node.h" |
15 #include "src/compiler/node-marker.h" | 14 #include "src/compiler/node-marker.h" |
16 #include "src/compiler/osr.h" | 15 #include "src/compiler/osr.h" |
| 16 #include "src/compiler/visualizer.h" |
17 #include "src/scopes.h" | 17 #include "src/scopes.h" |
18 | 18 |
19 namespace v8 { | 19 namespace v8 { |
20 namespace internal { | 20 namespace internal { |
21 namespace compiler { | 21 namespace compiler { |
22 | 22 |
23 OsrHelper::OsrHelper(CompilationInfo* info) | 23 OsrHelper::OsrHelper(CompilationInfo* info) |
24 : parameter_count_(info->scope()->num_parameters()), | 24 : parameter_count_(info->scope()->num_parameters()), |
25 stack_slot_count_(info->scope()->num_stack_slots() + | 25 stack_slot_count_(info->scope()->num_stack_slots() + |
26 info->osr_expr_stack_height()) {} | 26 info->osr_expr_stack_height()) {} |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // the first spill slots. | 277 // the first spill slots. |
278 frame->ReserveSpillSlots(UnoptimizedFrameSlots()); | 278 frame->ReserveSpillSlots(UnoptimizedFrameSlots()); |
279 // The frame needs to be adjusted by the number of unoptimized frame slots. | 279 // The frame needs to be adjusted by the number of unoptimized frame slots. |
280 frame->SetOsrStackSlotCount(static_cast<int>(UnoptimizedFrameSlots())); | 280 frame->SetOsrStackSlotCount(static_cast<int>(UnoptimizedFrameSlots())); |
281 } | 281 } |
282 | 282 |
283 | 283 |
284 } // namespace compiler | 284 } // namespace compiler |
285 } // namespace internal | 285 } // namespace internal |
286 } // namespace v8 | 286 } // namespace v8 |
OLD | NEW |