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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 V(JumpConstant, OperandType::kIdx8) \ | 134 V(JumpConstant, OperandType::kIdx8) \ |
| 135 V(JumpIfTrue, OperandType::kImm8) \ | 135 V(JumpIfTrue, OperandType::kImm8) \ |
| 136 V(JumpIfTrueConstant, OperandType::kIdx8) \ | 136 V(JumpIfTrueConstant, OperandType::kIdx8) \ |
| 137 V(JumpIfFalse, OperandType::kImm8) \ | 137 V(JumpIfFalse, OperandType::kImm8) \ |
| 138 V(JumpIfFalseConstant, OperandType::kIdx8) \ | 138 V(JumpIfFalseConstant, OperandType::kIdx8) \ |
| 139 V(JumpIfToBooleanTrue, OperandType::kImm8) \ | 139 V(JumpIfToBooleanTrue, OperandType::kImm8) \ |
| 140 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ | 140 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ |
| 141 V(JumpIfToBooleanFalse, OperandType::kImm8) \ | 141 V(JumpIfToBooleanFalse, OperandType::kImm8) \ |
| 142 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ | 142 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ |
| 143 V(Throw, OperandType::kNone) \ | 143 V(Throw, OperandType::kNone) \ |
| 144 V(Return, OperandType::kNone) | 144 V(Return, OperandType::kNone) \ |
| 145 \ | |
| 146 /* For..in */ \ | |
|
rmcilroy
2015/10/26 14:04:01
nit - move Throw and Return below these
oth
2015/10/28 11:53:12
Done.
| |
| 147 V(ForInPrepare, OperandType::kNone) \ | |
| 148 V(ForInNext, OperandType::kReg8) \ | |
| 149 V(ForInDone, OperandType::kReg8) | |
| 145 | 150 |
| 146 | 151 |
| 147 // Enumeration of the size classes of operand types used by bytecodes. | 152 // Enumeration of the size classes of operand types used by bytecodes. |
| 148 enum class OperandSize : uint8_t { | 153 enum class OperandSize : uint8_t { |
| 149 kNone = 0, | 154 kNone = 0, |
| 150 kByte = 1, | 155 kByte = 1, |
| 151 kShort = 2, | 156 kShort = 2, |
| 152 }; | 157 }; |
| 153 | 158 |
| 154 | 159 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 302 | 307 |
| 303 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 308 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 304 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 309 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 305 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 310 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 306 | 311 |
| 307 } // namespace interpreter | 312 } // namespace interpreter |
| 308 } // namespace internal | 313 } // namespace internal |
| 309 } // namespace v8 | 314 } // namespace v8 |
| 310 | 315 |
| 311 #endif // V8_INTERPRETER_BYTECODES_H_ | 316 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |