| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 117   /* Closure allocation */                                                     \ | 117   /* Closure allocation */                                                     \ | 
| 118   V(CreateClosure, OperandType::kImm8)                                         \ | 118   V(CreateClosure, OperandType::kImm8)                                         \ | 
| 119                                                                                \ | 119                                                                                \ | 
| 120   /* Control Flow */                                                           \ | 120   /* Control Flow */                                                           \ | 
| 121   V(Jump, OperandType::kImm8)                                                  \ | 121   V(Jump, OperandType::kImm8)                                                  \ | 
| 122   V(JumpConstant, OperandType::kIdx8)                                          \ | 122   V(JumpConstant, OperandType::kIdx8)                                          \ | 
| 123   V(JumpIfTrue, OperandType::kImm8)                                            \ | 123   V(JumpIfTrue, OperandType::kImm8)                                            \ | 
| 124   V(JumpIfTrueConstant, OperandType::kIdx8)                                    \ | 124   V(JumpIfTrueConstant, OperandType::kIdx8)                                    \ | 
| 125   V(JumpIfFalse, OperandType::kImm8)                                           \ | 125   V(JumpIfFalse, OperandType::kImm8)                                           \ | 
| 126   V(JumpIfFalseConstant, OperandType::kIdx8)                                   \ | 126   V(JumpIfFalseConstant, OperandType::kIdx8)                                   \ | 
|  | 127   V(JumpIfToBooleanTrue, OperandType::kImm8)                                   \ | 
|  | 128   V(JumpIfToBooleanTrueConstant, OperandType::kIdx8)                           \ | 
|  | 129   V(JumpIfToBooleanFalse, OperandType::kImm8)                                  \ | 
|  | 130   V(JumpIfToBooleanFalseConstant, OperandType::kIdx8)                          \ | 
| 127   V(Return, OperandType::kNone) | 131   V(Return, OperandType::kNone) | 
| 128 | 132 | 
| 129 | 133 | 
| 130 // Enumeration of the size classes of operand types used by bytecodes. | 134 // Enumeration of the size classes of operand types used by bytecodes. | 
| 131 enum class OperandSize : uint8_t { | 135 enum class OperandSize : uint8_t { | 
| 132   kNone = 0, | 136   kNone = 0, | 
| 133   kByte = 1, | 137   kByte = 1, | 
| 134   kShort = 2, | 138   kShort = 2, | 
| 135 }; | 139 }; | 
| 136 | 140 | 
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 266 | 270 | 
| 267 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 271 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 
| 268 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 272 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 
| 269 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 273 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 
| 270 | 274 | 
| 271 }  // namespace interpreter | 275 }  // namespace interpreter | 
| 272 }  // namespace internal | 276 }  // namespace internal | 
| 273 }  // namespace v8 | 277 }  // namespace v8 | 
| 274 | 278 | 
| 275 #endif  // V8_INTERPRETER_BYTECODES_H_ | 279 #endif  // V8_INTERPRETER_BYTECODES_H_ | 
| OLD | NEW | 
|---|