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

Unified Diff: src/compiler/opcodes.h

Issue 1186033006: [turbofan] Introduce DeadValue and DeadEffect operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/loop-peeling.cc ('k') | src/compiler/operator-properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/opcodes.h
diff --git a/src/compiler/opcodes.h b/src/compiler/opcodes.h
index fc67e740f6cd149279994de3cdba44873d586a9d..1c2a23c00cb47ccb5cf18243ed22f5aed5e399f1 100644
--- a/src/compiler/opcodes.h
+++ b/src/compiler/opcodes.h
@@ -10,7 +10,6 @@
// Opcodes for control operators.
#define CONTROL_OP_LIST(V) \
V(Start) \
- V(Dead) \
V(Loop) \
V(Branch) \
V(Switch) \
@@ -27,6 +26,7 @@
V(Terminate) \
V(OsrNormalEntry) \
V(OsrLoopEntry) \
+ V(DeadControl) \
V(Throw) \
V(End)
@@ -57,7 +57,10 @@
#define COMMON_OP_LIST(V) \
CONSTANT_OP_LIST(V) \
- INNER_OP_LIST(V)
+ INNER_OP_LIST(V) \
+ V(DeadEffect) \
+ V(DeadValue)
+
// Opcodes for JavaScript operators.
#define JS_COMPARE_BINOP_LIST(V) \
@@ -318,7 +321,7 @@ class IrOpcode {
// Returns true if opcode for common operator.
static bool IsCommonOpcode(Value value) {
- return kStart <= value && value <= kProjection;
+ return kStart <= value && value <= kDeadValue;
}
// Returns true if opcode for control operator.
« no previous file with comments | « src/compiler/loop-peeling.cc ('k') | src/compiler/operator-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698