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

Unified Diff: src/compiler/verifier.cc

Issue 2140673007: [turbofan] Introduce explicit loop exits markers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« src/compiler/opcodes.h ('K') | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/verifier.cc
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
index 071cd0287daa4d8cf5f487e7d31e0dfbab97c57e..4c57f4fe1d7f35ac50946cd8f8e1c56a0a7f4423 100644
--- a/src/compiler/verifier.cc
+++ b/src/compiler/verifier.cc
@@ -395,6 +395,24 @@ void Verifier::Visitor::Check(Node* node) {
CHECK_EQ(input_count, 1 + effect_count);
break;
}
+ case IrOpcode::kLoopExit: {
+ CHECK_EQ(2, control_count);
+ Node* loop = NodeProperties::GetControlInput(node, 1);
+ CHECK_EQ(IrOpcode::kLoop, loop->opcode());
+ break;
+ }
+ case IrOpcode::kLoopExitValue: {
+ CHECK_EQ(1, control_count);
+ Node* loop_exit = NodeProperties::GetControlInput(node, 0);
+ CHECK_EQ(IrOpcode::kLoopExit, loop_exit->opcode());
+ break;
+ }
+ case IrOpcode::kLoopExitEffect: {
+ CHECK_EQ(1, control_count);
+ Node* loop_exit = NodeProperties::GetControlInput(node, 0);
+ CHECK_EQ(IrOpcode::kLoopExit, loop_exit->opcode());
+ break;
+ }
case IrOpcode::kCheckpoint:
// Type is empty.
CheckNotTyped(node);
« src/compiler/opcodes.h ('K') | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698