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

Unified Diff: src/compiler/common-operator.cc

Issue 875263004: [turbofan] Ensure that NTLs are always properly connected to the end. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/control-reducer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.cc
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
index 74a8cdedfc25105972a6262bcc351ee6a3bb03fb..49307d0cad14eda49704bd6efd580a452937ca48 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -110,6 +110,7 @@ size_t ProjectionIndexOf(const Operator* const op) {
#define CACHED_OP_LIST(V) \
+ V(Always, Operator::kPure, 0, 0, 0, 1, 0, 0) \
V(Dead, Operator::kFoldable, 0, 0, 0, 0, 0, 1) \
V(End, Operator::kFoldable, 0, 0, 1, 0, 0, 0) \
V(IfTrue, Operator::kFoldable, 0, 0, 1, 0, 0, 1) \
@@ -294,14 +295,6 @@ const Operator* CommonOperatorBuilder::Merge(int control_input_count) {
}
-const Operator* CommonOperatorBuilder::Terminate(int effects) {
- return new (zone()) Operator( // --
- IrOpcode::kTerminate, Operator::kPure, // opcode
- "Terminate", // name
- 0, effects, 1, 0, 0, 1); // counts
-}
-
-
const Operator* CommonOperatorBuilder::Parameter(int index) {
switch (index) {
#define CACHED_PARAMETER(index) \
@@ -427,6 +420,15 @@ const Operator* CommonOperatorBuilder::EffectPhi(int arguments) {
}
+const Operator* CommonOperatorBuilder::EffectSet(int arguments) {
+ DCHECK(arguments > 1); // Disallow empty/singleton sets.
+ return new (zone()) Operator( // --
+ IrOpcode::kEffectSet, Operator::kPure, // opcode
+ "EffectSet", // name
+ 0, arguments, 0, 0, 1, 0); // counts
+}
+
+
const Operator* CommonOperatorBuilder::ValueEffect(int arguments) {
DCHECK(arguments > 0); // Disallow empty value effects.
return new (zone()) Operator( // --
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/control-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698