Chromium Code Reviews| Index: src/interpreter/bytecodes.h |
| diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
| index 08af5081866f94c7d82227db247af53aac78a0e0..e69fa7cbe8140af74159c9898ed03a6535e39994 100644 |
| --- a/src/interpreter/bytecodes.h |
| +++ b/src/interpreter/bytecodes.h |
| @@ -31,65 +31,70 @@ namespace interpreter { |
| V(Idx16, OperandSize::kShort) |
| // 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::kIdx8) \ |
| - 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::kIdx8) \ |
| - \ |
| - /* Reg8ister-accumulator transfers */ \ |
| - V(Ldar, OperandType::kReg8) \ |
| - V(Star, OperandType::kReg8) \ |
| - \ |
| - /* LoadIC operations */ \ |
| - V(LoadIC, OperandType::kReg8, OperandType::kIdx8) \ |
| - V(KeyedLoadIC, OperandType::kReg8, OperandType::kIdx8) \ |
| - \ |
| - /* StoreIC operations */ \ |
| - V(StoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
| - V(KeyedStoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
| - \ |
| - /* Binary Operators */ \ |
| - V(Add, OperandType::kReg8) \ |
| - V(Sub, OperandType::kReg8) \ |
| - V(Mul, OperandType::kReg8) \ |
| - V(Div, OperandType::kReg8) \ |
| - V(Mod, OperandType::kReg8) \ |
| - \ |
| - /* Call operations. */ \ |
| - V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ |
| - \ |
| - /* Test Operators */ \ |
| - V(TestEqual, OperandType::kReg8) \ |
| - V(TestNotEqual, OperandType::kReg8) \ |
| - V(TestEqualStrict, OperandType::kReg8) \ |
| - V(TestNotEqualStrict, OperandType::kReg8) \ |
| - V(TestLessThan, OperandType::kReg8) \ |
| - V(TestGreaterThan, OperandType::kReg8) \ |
| - V(TestLessThanOrEqual, OperandType::kReg8) \ |
| - V(TestGreaterThanOrEqual, OperandType::kReg8) \ |
| - V(TestInstanceOf, OperandType::kReg8) \ |
| - V(TestIn, OperandType::kReg8) \ |
| - \ |
| - /* Cast operators */ \ |
| - V(ToBoolean, OperandType::kNone) \ |
| - \ |
| - /* Control Flow */ \ |
| - V(Jump, OperandType::kImm8) \ |
| - V(JumpConstant, OperandType::kIdx8) \ |
| - V(JumpIfTrue, OperandType::kImm8) \ |
| - V(JumpIfTrueConstant, OperandType::kIdx8) \ |
| - V(JumpIfFalse, OperandType::kImm8) \ |
| - V(JumpIfFalseConstant, OperandType::kIdx8) \ |
| +#define BYTECODE_LIST(V) \ |
| + \ |
| + /* Loading the accumulator */ \ |
| + V(LdaZero, OperandType::kNone) \ |
| + V(LdaSmi8, OperandType::kImm8) \ |
| + V(LdaConstant, OperandType::kIdx8) \ |
| + 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::kIdx8) \ |
| + \ |
| + /* Reg8ister-accumulator transfers */ \ |
| + V(Ldar, OperandType::kReg8) \ |
| + V(Star, OperandType::kReg8) \ |
| + \ |
| + /* LoadIC operations */ \ |
| + V(KeyedLoadIC, OperandType::kReg8, OperandType::kIdx8) \ |
|
Michael Starzinger
2015/10/05 12:04:45
nit: Weird ordering is that on purpose?
rmcilroy
2015/10/06 13:56:34
Opps, mistake - fixed
|
| + V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ |
| + V(LoadIC, OperandType::kReg8, OperandType::kIdx8) \ |
|
Michael Starzinger
2015/10/05 12:04:45
suggestion: What would you think about s/LoadIC/Lo
rmcilroy
2015/10/06 13:56:34
Yeah I was thinking about that - I think it makes
|
| + V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ |
| + \ |
| + /* StoreIC operations */ \ |
| + V(StoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
| + V(StoreICStrict, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
| + V(KeyedStoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
| + V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ |
| + OperandType::kIdx8) \ |
| + \ |
| + /* Binary Operators */ \ |
| + V(Add, OperandType::kReg8) \ |
| + V(Sub, OperandType::kReg8) \ |
| + V(Mul, OperandType::kReg8) \ |
| + V(Div, OperandType::kReg8) \ |
| + V(Mod, OperandType::kReg8) \ |
| + \ |
| + /* Call operations. */ \ |
| + V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ |
| + \ |
| + /* Test Operators */ \ |
| + V(TestEqual, OperandType::kReg8) \ |
| + V(TestNotEqual, OperandType::kReg8) \ |
| + V(TestEqualStrict, OperandType::kReg8) \ |
| + V(TestNotEqualStrict, OperandType::kReg8) \ |
| + V(TestLessThan, OperandType::kReg8) \ |
| + V(TestGreaterThan, OperandType::kReg8) \ |
| + V(TestLessThanOrEqual, OperandType::kReg8) \ |
| + V(TestGreaterThanOrEqual, OperandType::kReg8) \ |
| + V(TestInstanceOf, OperandType::kReg8) \ |
| + V(TestIn, OperandType::kReg8) \ |
| + \ |
| + /* Cast operators */ \ |
| + V(ToBoolean, OperandType::kNone) \ |
| + \ |
| + /* Control Flow */ \ |
| + V(Jump, OperandType::kImm8) \ |
| + V(JumpConstant, OperandType::kIdx8) \ |
| + V(JumpIfTrue, OperandType::kImm8) \ |
| + V(JumpIfTrueConstant, OperandType::kIdx8) \ |
| + V(JumpIfFalse, OperandType::kImm8) \ |
| + V(JumpIfFalseConstant, OperandType::kIdx8) \ |
| V(Return, OperandType::kNone) |