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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 228 V(JumpIfToBooleanTrueConstantWide, OperandType::kIdx16) \ | 228 V(JumpIfToBooleanTrueConstantWide, OperandType::kIdx16) \ |
| 229 V(JumpIfToBooleanFalse, OperandType::kImm8) \ | 229 V(JumpIfToBooleanFalse, OperandType::kImm8) \ |
| 230 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ | 230 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ |
| 231 V(JumpIfToBooleanFalseConstantWide, OperandType::kIdx16) \ | 231 V(JumpIfToBooleanFalseConstantWide, OperandType::kIdx16) \ |
| 232 V(JumpIfNull, OperandType::kImm8) \ | 232 V(JumpIfNull, OperandType::kImm8) \ |
| 233 V(JumpIfNullConstant, OperandType::kIdx8) \ | 233 V(JumpIfNullConstant, OperandType::kIdx8) \ |
| 234 V(JumpIfNullConstantWide, OperandType::kIdx16) \ | 234 V(JumpIfNullConstantWide, OperandType::kIdx16) \ |
| 235 V(JumpIfUndefined, OperandType::kImm8) \ | 235 V(JumpIfUndefined, OperandType::kImm8) \ |
| 236 V(JumpIfUndefinedConstant, OperandType::kIdx8) \ | 236 V(JumpIfUndefinedConstant, OperandType::kIdx8) \ |
| 237 V(JumpIfUndefinedConstantWide, OperandType::kIdx16) \ | 237 V(JumpIfUndefinedConstantWide, OperandType::kIdx16) \ |
| 238 V(JumpIfHole, OperandType::kImm8) \ | |
| 239 V(JumpIfNotHole, OperandType::kImm8) \ | |
|
rmcilroy
2016/01/26 14:37:28
It seems dangerous to have these without Constant
mythria
2016/02/01 10:02:18
Done.
| |
| 238 \ | 240 \ |
| 239 /* Complex flow control For..in */ \ | 241 /* Complex flow control For..in */ \ |
| 240 V(ForInPrepare, OperandType::kRegTriple8) \ | 242 V(ForInPrepare, OperandType::kRegTriple8) \ |
| 241 V(ForInPrepareWide, OperandType::kRegTriple16) \ | 243 V(ForInPrepareWide, OperandType::kRegTriple16) \ |
| 242 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ | 244 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ |
| 243 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ | 245 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ |
| 244 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ | 246 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ |
| 245 OperandType::kRegPair16) \ | 247 OperandType::kRegPair16) \ |
| 246 V(ForInStep, OperandType::kReg8) \ | 248 V(ForInStep, OperandType::kReg8) \ |
| 247 \ | 249 \ |
| 248 /* Non-local flow control */ \ | 250 /* Non-local flow control */ \ |
| 249 V(Throw, OperandType::kNone) \ | 251 V(Throw, OperandType::kNone) \ |
| 250 V(ReThrow, OperandType::kNone) \ | 252 V(ReThrow, OperandType::kNone) \ |
| 251 V(Return, OperandType::kNone) | 253 V(Return, OperandType::kNone) |
| 252 | 254 |
| 253 | |
| 254 // Enumeration of the size classes of operand types used by bytecodes. | 255 // Enumeration of the size classes of operand types used by bytecodes. |
| 255 enum class OperandSize : uint8_t { | 256 enum class OperandSize : uint8_t { |
| 256 kNone = 0, | 257 kNone = 0, |
| 257 kByte = 1, | 258 kByte = 1, |
| 258 kShort = 2, | 259 kShort = 2, |
| 259 }; | 260 }; |
| 260 | 261 |
| 261 | 262 |
| 262 // Enumeration of operand types used by bytecodes. | 263 // Enumeration of operand types used by bytecodes. |
| 263 enum class OperandType : uint8_t { | 264 enum class OperandType : uint8_t { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 440 | 441 |
| 441 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 442 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 442 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 443 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 443 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 444 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 444 | 445 |
| 445 } // namespace interpreter | 446 } // namespace interpreter |
| 446 } // namespace internal | 447 } // namespace internal |
| 447 } // namespace v8 | 448 } // namespace v8 |
| 448 | 449 |
| 449 #endif // V8_INTERPRETER_BYTECODES_H_ | 450 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |