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

Unified Diff: src/compiler/opcodes.h

Issue 863513002: [turbofan] Rename IrOpcode predicate IsLeafOpcode to IsConstantOpcode. (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/js-typed-lowering.cc ('k') | test/unittests/compiler/opcodes-unittest.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 fa85974c0136e2ff46b8dcb2007efc75bfed89b3..651c37b05b2dde28f5ddfbfead98d8c3d39e02fd 100644
--- a/src/compiler/opcodes.h
+++ b/src/compiler/opcodes.h
@@ -24,14 +24,14 @@
V(Start) \
V(End)
-// Opcodes for common operators.
-#define LEAF_OP_LIST(V) \
- V(Int32Constant) \
- V(Int64Constant) \
- V(Float32Constant) \
- V(Float64Constant) \
- V(ExternalConstant) \
- V(NumberConstant) \
+// Opcodes for constant operators.
+#define CONSTANT_OP_LIST(V) \
+ V(Int32Constant) \
+ V(Int64Constant) \
+ V(Float32Constant) \
+ V(Float64Constant) \
+ V(ExternalConstant) \
+ V(NumberConstant) \
V(HeapConstant)
#define INNER_OP_LIST(V) \
@@ -48,7 +48,7 @@
V(Projection)
#define COMMON_OP_LIST(V) \
- LEAF_OP_LIST(V) \
+ CONSTANT_OP_LIST(V) \
INNER_OP_LIST(V)
// Opcodes for JavaScript operators.
@@ -290,8 +290,8 @@ class IrOpcode {
return kJSEqual <= value && value <= kJSDebugger;
}
- // Returns true if opcode for leaf operator.
- static bool IsLeafOpcode(Value value) {
+ // Returns true if opcode for constant operator.
+ static bool IsConstantOpcode(Value value) {
return kInt32Constant <= value && value <= kHeapConstant;
}
};
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/unittests/compiler/opcodes-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698