| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_INTERPRETER_BYTECODES_H_ | 5 #ifndef V8_INTERPRETER_BYTECODES_H_ |
| 6 #define V8_INTERPRETER_BYTECODES_H_ | 6 #define V8_INTERPRETER_BYTECODES_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of interpreter internals. | 10 // Clients of this interface shouldn't depend on lots of interpreter internals. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 V(LdaZero, OperandType::kNone) \ | 37 V(LdaZero, OperandType::kNone) \ |
| 38 V(LdaSmi8, OperandType::kImm8) \ | 38 V(LdaSmi8, OperandType::kImm8) \ |
| 39 V(LdaConstant, OperandType::kIdx8) \ | 39 V(LdaConstant, OperandType::kIdx8) \ |
| 40 V(LdaUndefined, OperandType::kNone) \ | 40 V(LdaUndefined, OperandType::kNone) \ |
| 41 V(LdaNull, OperandType::kNone) \ | 41 V(LdaNull, OperandType::kNone) \ |
| 42 V(LdaTheHole, OperandType::kNone) \ | 42 V(LdaTheHole, OperandType::kNone) \ |
| 43 V(LdaTrue, OperandType::kNone) \ | 43 V(LdaTrue, OperandType::kNone) \ |
| 44 V(LdaFalse, OperandType::kNone) \ | 44 V(LdaFalse, OperandType::kNone) \ |
| 45 \ | 45 \ |
| 46 /* Globals */ \ | 46 /* Globals */ \ |
| 47 V(LdaGlobal, OperandType::kIdx8) \ | 47 V(LdaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \ |
| 48 V(StaGlobalSloppy, OperandType::kIdx8) \ | 48 V(LdaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \ |
| 49 V(StaGlobalStrict, OperandType::kIdx8) \ | 49 V(StaGlobalSloppy, OperandType::kIdx8, OperandType::kIdx8) \ |
| 50 V(StaGlobalStrict, OperandType::kIdx8, OperandType::kIdx8) \ |
| 50 \ | 51 \ |
| 51 /* Context operations */ \ | 52 /* Context operations */ \ |
| 52 V(PushContext, OperandType::kReg8) \ | 53 V(PushContext, OperandType::kReg8) \ |
| 53 V(PopContext, OperandType::kReg8) \ | 54 V(PopContext, OperandType::kReg8) \ |
| 54 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ | 55 V(LdaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ |
| 55 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ | 56 V(StaContextSlot, OperandType::kReg8, OperandType::kIdx8) \ |
| 56 \ | 57 \ |
| 57 /* Register-accumulator transfers */ \ | 58 /* Register-accumulator transfers */ \ |
| 58 V(Ldar, OperandType::kReg8) \ | 59 V(Ldar, OperandType::kReg8) \ |
| 59 V(Star, OperandType::kReg8) \ | 60 V(Star, OperandType::kReg8) \ |
| 60 \ | 61 \ |
| 61 /* LoadIC operations */ \ | 62 /* LoadIC operations */ \ |
| 62 V(LoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \ | 63 V(LoadICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ |
| 63 V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ | 64 V(LoadICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ |
| 64 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \ | 65 V(KeyedLoadICSloppy, OperandType::kReg8, OperandType::kIdx8) \ |
| 65 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ | 66 V(KeyedLoadICStrict, OperandType::kReg8, OperandType::kIdx8) \ |
| 66 \ | 67 \ |
| 67 /* StoreIC operations */ \ | 68 /* StoreIC operations */ \ |
| 68 V(StoreICSloppy, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ | 69 V(StoreICSloppy, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ |
| 69 V(StoreICStrict, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ | 70 V(StoreICStrict, OperandType::kReg8, OperandType::kIdx8, OperandType::kIdx8) \ |
| 70 V(KeyedStoreICSloppy, OperandType::kReg8, OperandType::kReg8, \ | 71 V(KeyedStoreICSloppy, OperandType::kReg8, OperandType::kReg8, \ |
| 71 OperandType::kIdx8) \ | 72 OperandType::kIdx8) \ |
| 72 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ | 73 V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ |
| 73 OperandType::kIdx8) \ | 74 OperandType::kIdx8) \ |
| 74 \ | 75 \ |
| 75 /* Binary Operators */ \ | 76 /* Binary Operators */ \ |
| 76 V(Add, OperandType::kReg8) \ | 77 V(Add, OperandType::kReg8) \ |
| 77 V(Sub, OperandType::kReg8) \ | 78 V(Sub, OperandType::kReg8) \ |
| 78 V(Mul, OperandType::kReg8) \ | 79 V(Mul, OperandType::kReg8) \ |
| 79 V(Div, OperandType::kReg8) \ | 80 V(Div, OperandType::kReg8) \ |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 295 |
| 295 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 296 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 296 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 297 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 297 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 298 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 298 | 299 |
| 299 } // namespace interpreter | 300 } // namespace interpreter |
| 300 } // namespace internal | 301 } // namespace internal |
| 301 } // namespace v8 | 302 } // namespace v8 |
| 302 | 303 |
| 303 #endif // V8_INTERPRETER_BYTECODES_H_ | 304 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |