| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 V(JumpIfToBooleanTrueConstantWide, OperandType::kIdx16) \ | 245 V(JumpIfToBooleanTrueConstantWide, OperandType::kIdx16) \ |
| 246 V(JumpIfToBooleanFalse, OperandType::kImm8) \ | 246 V(JumpIfToBooleanFalse, OperandType::kImm8) \ |
| 247 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ | 247 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ |
| 248 V(JumpIfToBooleanFalseConstantWide, OperandType::kIdx16) \ | 248 V(JumpIfToBooleanFalseConstantWide, OperandType::kIdx16) \ |
| 249 V(JumpIfNull, OperandType::kImm8) \ | 249 V(JumpIfNull, OperandType::kImm8) \ |
| 250 V(JumpIfNullConstant, OperandType::kIdx8) \ | 250 V(JumpIfNullConstant, OperandType::kIdx8) \ |
| 251 V(JumpIfNullConstantWide, OperandType::kIdx16) \ | 251 V(JumpIfNullConstantWide, OperandType::kIdx16) \ |
| 252 V(JumpIfUndefined, OperandType::kImm8) \ | 252 V(JumpIfUndefined, OperandType::kImm8) \ |
| 253 V(JumpIfUndefinedConstant, OperandType::kIdx8) \ | 253 V(JumpIfUndefinedConstant, OperandType::kIdx8) \ |
| 254 V(JumpIfUndefinedConstantWide, OperandType::kIdx16) \ | 254 V(JumpIfUndefinedConstantWide, OperandType::kIdx16) \ |
| 255 /* TODO(mythria): Replace with opcodes that throw on a hole */ \ |
| 256 V(JumpIfHole, OperandType::kImm8) \ |
| 257 V(JumpIfNotHole, OperandType::kImm8) \ |
| 255 \ | 258 \ |
| 256 /* Complex flow control For..in */ \ | 259 /* Complex flow control For..in */ \ |
| 257 V(ForInPrepare, OperandType::kRegOutTriple8) \ | 260 V(ForInPrepare, OperandType::kRegOutTriple8) \ |
| 258 V(ForInPrepareWide, OperandType::kRegOutTriple16) \ | 261 V(ForInPrepareWide, OperandType::kRegOutTriple16) \ |
| 259 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ | 262 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \ |
| 260 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ | 263 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kRegPair8) \ |
| 261 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ | 264 V(ForInNextWide, OperandType::kReg16, OperandType::kReg16, \ |
| 262 OperandType::kRegPair16) \ | 265 OperandType::kRegPair16) \ |
| 263 V(ForInStep, OperandType::kReg8) \ | 266 V(ForInStep, OperandType::kReg8) \ |
| 264 \ | 267 \ |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 | 493 |
| 491 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 494 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 492 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 495 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 493 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 496 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 494 | 497 |
| 495 } // namespace interpreter | 498 } // namespace interpreter |
| 496 } // namespace internal | 499 } // namespace internal |
| 497 } // namespace v8 | 500 } // namespace v8 |
| 498 | 501 |
| 499 #endif // V8_INTERPRETER_BYTECODES_H_ | 502 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |