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

Side by Side Diff: src/compiler/verifier.cc

Issue 2080113002: [turbofan] Introduce CheckUnless. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/typer.cc ('k') | no next file » | 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/verifier.h" 5 #include "src/compiler/verifier.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <sstream> 10 #include <sstream>
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 break; 272 break;
273 case IrOpcode::kLoop: 273 case IrOpcode::kLoop:
274 case IrOpcode::kMerge: 274 case IrOpcode::kMerge:
275 CHECK_EQ(control_count, input_count); 275 CHECK_EQ(control_count, input_count);
276 // Type is empty. 276 // Type is empty.
277 CheckNotTyped(node); 277 CheckNotTyped(node);
278 break; 278 break;
279 case IrOpcode::kDeoptimizeIf: 279 case IrOpcode::kDeoptimizeIf:
280 case IrOpcode::kDeoptimizeUnless: 280 case IrOpcode::kDeoptimizeUnless:
281 case IrOpcode::kCheckIf: 281 case IrOpcode::kCheckIf:
282 case IrOpcode::kCheckUnless:
282 // Type is empty. 283 // Type is empty.
283 CheckNotTyped(node); 284 CheckNotTyped(node);
284 break; 285 break;
285 case IrOpcode::kDeoptimize: 286 case IrOpcode::kDeoptimize:
286 case IrOpcode::kReturn: 287 case IrOpcode::kReturn:
287 case IrOpcode::kThrow: 288 case IrOpcode::kThrow:
288 // Deoptimize, Return and Throw uses are End. 289 // Deoptimize, Return and Throw uses are End.
289 for (const Node* use : node->uses()) { 290 for (const Node* use : node->uses()) {
290 CHECK_EQ(IrOpcode::kEnd, use->opcode()); 291 CHECK_EQ(IrOpcode::kEnd, use->opcode());
291 } 292 }
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 replacement->op()->EffectOutputCount() > 0); 1477 replacement->op()->EffectOutputCount() > 0);
1477 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1478 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1478 replacement->opcode() == IrOpcode::kFrameState); 1479 replacement->opcode() == IrOpcode::kFrameState);
1479 } 1480 }
1480 1481
1481 #endif // DEBUG 1482 #endif // DEBUG
1482 1483
1483 } // namespace compiler 1484 } // namespace compiler
1484 } // namespace internal 1485 } // namespace internal
1485 } // namespace v8 1486 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698