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/int64-lowering.h" | 5 #include "src/compiler/int64-lowering.h" |
6 #include "src/compiler/common-operator.h" | 6 #include "src/compiler/common-operator.h" |
7 #include "src/compiler/diamond.h" | 7 #include "src/compiler/diamond.h" |
8 #include "src/compiler/graph.h" | 8 #include "src/compiler/graph.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 : zone_(zone), | 25 : zone_(zone), |
26 graph_(graph), | 26 graph_(graph), |
27 machine_(machine), | 27 machine_(machine), |
28 common_(common), | 28 common_(common), |
29 state_(graph, 3), | 29 state_(graph, 3), |
30 stack_(zone), | 30 stack_(zone), |
31 replacements_(nullptr), | 31 replacements_(nullptr), |
32 signature_(signature), | 32 signature_(signature), |
33 placeholder_(graph->NewNode(common->Parameter(-2, "placeholder"), | 33 placeholder_(graph->NewNode(common->Parameter(-2, "placeholder"), |
34 graph->start())) { | 34 graph->start())) { |
| 35 DCHECK_NOT_NULL(graph); |
| 36 DCHECK_NOT_NULL(graph->end()); |
35 replacements_ = zone->NewArray<Replacement>(graph->NodeCount()); | 37 replacements_ = zone->NewArray<Replacement>(graph->NodeCount()); |
36 memset(replacements_, 0, sizeof(Replacement) * graph->NodeCount()); | 38 memset(replacements_, 0, sizeof(Replacement) * graph->NodeCount()); |
37 } | 39 } |
38 | 40 |
39 void Int64Lowering::LowerGraph() { | 41 void Int64Lowering::LowerGraph() { |
40 if (!machine()->Is32()) { | 42 if (!machine()->Is32()) { |
41 return; | 43 return; |
42 } | 44 } |
43 stack_.push_back({graph()->end(), 0}); | 45 stack_.push_back({graph()->end(), 0}); |
44 state_.Set(graph()->end(), State::kOnStack); | 46 state_.Set(graph()->end(), State::kOnStack); |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 common()->Phi(MachineRepresentation::kWord32, value_count), | 800 common()->Phi(MachineRepresentation::kWord32, value_count), |
799 value_count + 1, inputs_low, false), | 801 value_count + 1, inputs_low, false), |
800 graph()->NewNode( | 802 graph()->NewNode( |
801 common()->Phi(MachineRepresentation::kWord32, value_count), | 803 common()->Phi(MachineRepresentation::kWord32, value_count), |
802 value_count + 1, inputs_high, false)); | 804 value_count + 1, inputs_high, false)); |
803 } | 805 } |
804 } | 806 } |
805 } // namespace compiler | 807 } // namespace compiler |
806 } // namespace internal | 808 } // namespace internal |
807 } // namespace v8 | 809 } // namespace v8 |
OLD | NEW |