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

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

Issue 1721103003: [turbofan] Introduce DeoptimizeIf And DeoptimizeUnless common operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comments 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/typer.cc ('k') | src/compiler/x64/instruction-selector-x64.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 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 NodeProperties::GetControlInput(node)->opcode()); 267 NodeProperties::GetControlInput(node)->opcode());
268 // Type is empty. 268 // Type is empty.
269 CheckNotTyped(node); 269 CheckNotTyped(node);
270 break; 270 break;
271 case IrOpcode::kLoop: 271 case IrOpcode::kLoop:
272 case IrOpcode::kMerge: 272 case IrOpcode::kMerge:
273 CHECK_EQ(control_count, input_count); 273 CHECK_EQ(control_count, input_count);
274 // Type is empty. 274 // Type is empty.
275 CheckNotTyped(node); 275 CheckNotTyped(node);
276 break; 276 break;
277 case IrOpcode::kDeoptimizeIf:
278 case IrOpcode::kDeoptimizeUnless:
279 // Type is empty.
280 CheckNotTyped(node);
281 break;
277 case IrOpcode::kDeoptimize: 282 case IrOpcode::kDeoptimize:
278 case IrOpcode::kReturn: 283 case IrOpcode::kReturn:
279 case IrOpcode::kThrow: 284 case IrOpcode::kThrow:
280 // Deoptimize, Return and Throw uses are End. 285 // Deoptimize, Return and Throw uses are End.
281 for (auto use : node->uses()) { 286 for (auto use : node->uses()) {
282 CHECK_EQ(IrOpcode::kEnd, use->opcode()); 287 CHECK_EQ(IrOpcode::kEnd, use->opcode());
283 } 288 }
284 // Type is empty. 289 // Type is empty.
285 CheckNotTyped(node); 290 CheckNotTyped(node);
286 break; 291 break;
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 replacement->op()->EffectOutputCount() > 0); 1278 replacement->op()->EffectOutputCount() > 0);
1274 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1279 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1275 replacement->opcode() == IrOpcode::kFrameState); 1280 replacement->opcode() == IrOpcode::kFrameState);
1276 } 1281 }
1277 1282
1278 #endif // DEBUG 1283 #endif // DEBUG
1279 1284
1280 } // namespace compiler 1285 } // namespace compiler
1281 } // namespace internal 1286 } // namespace internal
1282 } // namespace v8 1287 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698