OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/js-intrinsic-lowering.h" | 5 #include "src/compiler/js-intrinsic-lowering.h" |
6 | 6 |
7 #include <stack> | 7 #include <stack> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 if (mode() != kDeoptimizationEnabled) return NoChange(); | 139 if (mode() != kDeoptimizationEnabled) return NoChange(); |
140 Node* const frame_state = NodeProperties::GetFrameStateInput(node, 0); | 140 Node* const frame_state = NodeProperties::GetFrameStateInput(node, 0); |
141 Node* const effect = NodeProperties::GetEffectInput(node); | 141 Node* const effect = NodeProperties::GetEffectInput(node); |
142 Node* const control = NodeProperties::GetControlInput(node); | 142 Node* const control = NodeProperties::GetControlInput(node); |
143 | 143 |
144 // TODO(bmeurer): Move MergeControlToEnd() to the AdvancedReducer. | 144 // TODO(bmeurer): Move MergeControlToEnd() to the AdvancedReducer. |
145 Node* deoptimize = | 145 Node* deoptimize = |
146 graph()->NewNode(common()->Deoptimize(DeoptimizeKind::kEager), | 146 graph()->NewNode(common()->Deoptimize(DeoptimizeKind::kEager), |
147 frame_state, effect, control); | 147 frame_state, effect, control); |
148 NodeProperties::MergeControlToEnd(graph(), common(), deoptimize); | 148 NodeProperties::MergeControlToEnd(graph(), common(), deoptimize); |
| 149 Revisit(graph()->end()); |
149 | 150 |
150 node->TrimInputCount(0); | 151 node->TrimInputCount(0); |
151 NodeProperties::ChangeOp(node, common()->Dead()); | 152 NodeProperties::ChangeOp(node, common()->Dead()); |
152 return Changed(node); | 153 return Changed(node); |
153 } | 154 } |
154 | 155 |
155 | 156 |
156 Reduction JSIntrinsicLowering::ReduceDoubleHi(Node* node) { | 157 Reduction JSIntrinsicLowering::ReduceDoubleHi(Node* node) { |
157 return Change(node, machine()->Float64ExtractHighWord32()); | 158 return Change(node, machine()->Float64ExtractHighWord32()); |
158 } | 159 } |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 } | 642 } |
642 | 643 |
643 | 644 |
644 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { | 645 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { |
645 return jsgraph()->simplified(); | 646 return jsgraph()->simplified(); |
646 } | 647 } |
647 | 648 |
648 } // namespace compiler | 649 } // namespace compiler |
649 } // namespace internal | 650 } // namespace internal |
650 } // namespace v8 | 651 } // namespace v8 |
OLD | NEW |