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

Side by Side Diff: src/compiler/change-lowering.cc

Issue 928213003: Model exceptional edges from call nodes in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 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/ast-graph-builder.cc ('k') | src/compiler/common-operator.h » ('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 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/change-lowering.h" 5 #include "src/compiler/change-lowering.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler/diamond.h" 8 #include "src/compiler/diamond.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 ChangeSmiToInt32(value))); 195 ChangeSmiToInt32(value)));
196 } 196 }
197 197
198 198
199 namespace { 199 namespace {
200 200
201 bool CanCover(Node* value, IrOpcode::Value opcode) { 201 bool CanCover(Node* value, IrOpcode::Value opcode) {
202 if (value->opcode() != opcode) return false; 202 if (value->opcode() != opcode) return false;
203 bool first = true; 203 bool first = true;
204 for (Edge const edge : value->use_edges()) { 204 for (Edge const edge : value->use_edges()) {
205 if (NodeProperties::IsControlEdge(edge)) continue;
205 if (NodeProperties::IsEffectEdge(edge)) continue; 206 if (NodeProperties::IsEffectEdge(edge)) continue;
206 DCHECK(NodeProperties::IsValueEdge(edge)); 207 DCHECK(NodeProperties::IsValueEdge(edge));
207 if (!first) return false; 208 if (!first) return false;
208 first = false; 209 first = false;
209 } 210 }
210 return true; 211 return true;
211 } 212 }
212 213
213 } // namespace 214 } // namespace
214 215
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 282 }
282 283
283 284
284 MachineOperatorBuilder* ChangeLowering::machine() const { 285 MachineOperatorBuilder* ChangeLowering::machine() const {
285 return jsgraph()->machine(); 286 return jsgraph()->machine();
286 } 287 }
287 288
288 } // namespace compiler 289 } // namespace compiler
289 } // namespace internal 290 } // namespace internal
290 } // namespace v8 291 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698