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

Unified Diff: src/interpreter/bytecodes.h

Issue 1343363002: [Interpreter] Basic flow control. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Switch test-bytecode-generator/IfConditions to use new style bytecode array check. Created 5 years, 3 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/interpreter/bytecode-generator.cc ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecodes.h
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h
index 5b63eec4807c3ca8031d0f6ffdc05ee60a94d72f..70be2f58177b5fd94daa6924bb9dadde950197de 100644
--- a/src/interpreter/bytecodes.h
+++ b/src/interpreter/bytecodes.h
@@ -61,7 +61,28 @@ namespace interpreter {
/* Call operations. */ \
V(Call, OperandType::kReg, OperandType::kReg, OperandType::kCount) \
\
+ /* Test Operators */ \
+ V(TestEqual, OperandType::kReg) \
+ V(TestNotEqual, OperandType::kReg) \
+ V(TestEqualStrict, OperandType::kReg) \
+ V(TestNotEqualStrict, OperandType::kReg) \
+ V(TestLessThan, OperandType::kReg) \
+ V(TestGreaterThan, OperandType::kReg) \
+ V(TestLessThanEqual, OperandType::kReg) \
+ V(TestGreaterThanEqual, OperandType::kReg) \
+ V(TestInstanceOf, OperandType::kReg) \
+ V(TestIn, OperandType::kReg) \
+ \
+ /* Cast operators */ \
+ V(ToBoolean, OperandType::kNone) \
+ \
/* Control Flow */ \
+ V(Jump, OperandType::kImm8) \
+ V(JumpConstant, OperandType::kIdx) \
+ V(JumpIfTrue, OperandType::kImm8) \
+ V(JumpIfTrueConstant, OperandType::kIdx) \
+ V(JumpIfFalse, OperandType::kImm8) \
+ V(JumpIfFalseConstant, OperandType::kIdx) \
V(Return, OperandType::kNone)
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698