Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: src/compiler/js-intrinsic-lowering.cc

Issue 1675433003: [turbofan] Reducers should revisit end after merging to it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698