Chromium Code Reviews| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 \ | 52 \ |
| 53 /* LoadIC operations */ \ | 53 /* LoadIC operations */ \ |
| 54 V(LoadIC, OperandType::kReg8, OperandType::kIdx8) \ | 54 V(LoadIC, OperandType::kReg8, OperandType::kIdx8) \ |
| 55 V(KeyedLoadIC, OperandType::kReg8, OperandType::kIdx8) \ | 55 V(KeyedLoadIC, OperandType::kReg8, OperandType::kIdx8) \ |
| 56 \ | 56 \ |
| 57 /* StoreIC operations */ \ | 57 /* StoreIC operations */ \ |
| 58 V(StoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ | 58 V(StoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
| 59 V(KeyedStoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ | 59 V(KeyedStoreIC, OperandType::kReg8, OperandType::kReg8, OperandType::kIdx8) \ |
| 60 \ | 60 \ |
| 61 /* Binary Operators */ \ | 61 /* Binary Operators */ \ |
| 62 V(BitwiseOr, OperandType::kReg8) \ | |
| 63 V(BitwiseXor, OperandType::kReg8) \ | |
| 64 V(BitwiseAnd, OperandType::kReg8) \ | |
|
rmcilroy
2015/10/06 11:09:28
nit - move these to the bottom of the binary opera
mythria
2015/10/06 13:47:40
Done.
| |
| 62 V(Add, OperandType::kReg8) \ | 65 V(Add, OperandType::kReg8) \ |
| 63 V(Sub, OperandType::kReg8) \ | 66 V(Sub, OperandType::kReg8) \ |
| 64 V(Mul, OperandType::kReg8) \ | 67 V(Mul, OperandType::kReg8) \ |
| 65 V(Div, OperandType::kReg8) \ | 68 V(Div, OperandType::kReg8) \ |
| 66 V(Mod, OperandType::kReg8) \ | 69 V(Mod, OperandType::kReg8) \ |
| 67 \ | 70 \ |
| 68 /* Call operations. */ \ | 71 /* Call operations. */ \ |
| 69 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ | 72 V(Call, OperandType::kReg8, OperandType::kReg8, OperandType::kCount8) \ |
| 70 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ | 73 V(CallRuntime, OperandType::kIdx16, OperandType::kReg8, \ |
| 71 OperandType::kCount8) \ | 74 OperandType::kCount8) \ |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 226 | 229 |
| 227 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 230 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 228 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 231 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 229 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 232 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 230 | 233 |
| 231 } // namespace interpreter | 234 } // namespace interpreter |
| 232 } // namespace internal | 235 } // namespace internal |
| 233 } // namespace v8 | 236 } // namespace v8 |
| 234 | 237 |
| 235 #endif // V8_INTERPRETER_BYTECODES_H_ | 238 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |