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/opcodes.h

Issue 989123003: [turbofan] Project exception value out of calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 9 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/instruction-selector.cc ('k') | src/compiler/typer.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 1b774d1a198d45b7b2e3551dc9947b62508a1cef..18cd9e1506e5106e501efa8e6f98f2ce48b26e49 100644
--- a/src/compiler/opcodes.h
+++ b/src/compiler/opcodes.h
@@ -6,27 +6,24 @@
#define V8_COMPILER_OPCODES_H_
// Opcodes for control operators.
-#define INNER_CONTROL_OP_LIST(V) \
- V(Dead) \
- V(Loop) \
- V(Branch) \
- V(Switch) \
- V(IfTrue) \
- V(IfFalse) \
- V(IfSuccess) \
- V(IfException) \
- V(IfValue) \
- V(IfDefault) \
- V(Merge) \
- V(Deoptimize) \
- V(Return) \
- V(OsrNormalEntry) \
- V(OsrLoopEntry) \
- V(Throw)
-
#define CONTROL_OP_LIST(V) \
- INNER_CONTROL_OP_LIST(V) \
V(Start) \
+ V(Dead) \
+ V(Loop) \
+ V(Branch) \
+ V(Switch) \
+ V(IfTrue) \
+ V(IfFalse) \
+ V(IfSuccess) \
+ V(IfException) \
+ V(IfValue) \
+ V(IfDefault) \
+ V(Merge) \
+ V(Deoptimize) \
+ V(Return) \
+ V(OsrNormalEntry) \
+ V(OsrLoopEntry) \
+ V(Throw) \
V(End)
// Opcodes for constant operators.
@@ -306,12 +303,12 @@ class IrOpcode {
// Returns true if opcode for common operator.
static bool IsCommonOpcode(Value value) {
- return kDead <= value && value <= kAlways;
+ return kStart <= value && value <= kAlways;
}
// Returns true if opcode for control operator.
static bool IsControlOpcode(Value value) {
- return kDead <= value && value <= kEnd;
+ return kStart <= value && value <= kEnd;
}
// Returns true if opcode for JavaScript operator.
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698