Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index 70be2f58177b5fd94daa6924bb9dadde950197de..f0534ad058efa6a99d4d703b44ddd566478083fe 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -24,65 +24,66 @@ namespace interpreter { |
V(Reg) |
// The list of bytecodes which are interpreted by the interpreter. |
-#define BYTECODE_LIST(V) \ |
- \ |
- /* Loading the accumulator */ \ |
- V(LdaZero, OperandType::kNone) \ |
- V(LdaSmi8, OperandType::kImm8) \ |
- V(LdaConstant, OperandType::kIdx) \ |
- V(LdaUndefined, OperandType::kNone) \ |
- V(LdaNull, OperandType::kNone) \ |
- V(LdaTheHole, OperandType::kNone) \ |
- V(LdaTrue, OperandType::kNone) \ |
- V(LdaFalse, OperandType::kNone) \ |
- \ |
- /* Load globals */ \ |
- V(LdaGlobal, OperandType::kIdx) \ |
- \ |
- /* Register-accumulator transfers */ \ |
- V(Ldar, OperandType::kReg) \ |
- V(Star, OperandType::kReg) \ |
- \ |
- /* LoadIC operations */ \ |
- V(LoadIC, OperandType::kReg, OperandType::kIdx) \ |
- V(KeyedLoadIC, OperandType::kReg, OperandType::kIdx) \ |
- \ |
- /* StoreIC operations */ \ |
- V(StoreIC, OperandType::kReg, OperandType::kReg, OperandType::kIdx) \ |
- V(KeyedStoreIC, OperandType::kReg, OperandType::kReg, OperandType::kIdx) \ |
- \ |
- /* Binary Operators */ \ |
- V(Add, OperandType::kReg) \ |
- V(Sub, OperandType::kReg) \ |
- V(Mul, OperandType::kReg) \ |
- V(Div, OperandType::kReg) \ |
- V(Mod, OperandType::kReg) \ |
- \ |
- /* 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) \ |
+#define BYTECODE_LIST(V) \ |
+ \ |
+ /* Loading the accumulator */ \ |
+ V(LdaZero, OperandType::kNone) \ |
+ V(LdaSmi8, OperandType::kImm8) \ |
+ V(LdaConstant, OperandType::kIdx) \ |
+ V(LdaUndefined, OperandType::kNone) \ |
+ V(LdaNull, OperandType::kNone) \ |
+ V(LdaTheHole, OperandType::kNone) \ |
+ V(LdaTrue, OperandType::kNone) \ |
+ V(LdaFalse, OperandType::kNone) \ |
+ \ |
+ /* Load globals */ \ |
+ V(LdaGlobal, OperandType::kIdx) \ |
+ \ |
+ /* Register-accumulator transfers */ \ |
+ V(Ldar, OperandType::kReg) \ |
+ V(Star, OperandType::kReg) \ |
+ \ |
+ /* LoadIC operations */ \ |
+ V(LoadIC, OperandType::kReg, OperandType::kIdx) \ |
+ V(KeyedLoadIC, OperandType::kReg, OperandType::kIdx) \ |
+ \ |
+ /* StoreIC operations */ \ |
+ V(StoreIC, OperandType::kReg, OperandType::kReg, OperandType::kIdx) \ |
+ V(KeyedStoreIC, OperandType::kReg, OperandType::kReg, OperandType::kIdx) \ |
+ \ |
+ /* Binary Operators */ \ |
+ V(Add, OperandType::kReg) \ |
+ V(Sub, OperandType::kReg) \ |
+ V(Mul, OperandType::kReg) \ |
+ V(Div, OperandType::kReg) \ |
+ V(Mod, OperandType::kReg) \ |
+ \ |
+ /* Call operations. */ \ |
+ V(Call, OperandType::kReg, OperandType::kReg, OperandType::kCount) \ |
+ V(CallRuntime, OperandType::kIdx, 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) |