| 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 <cstdint> | 8 #include <cstdint> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 /* Cast operators */ \ | 213 /* Cast operators */ \ |
| 214 V(ToName, AccumulatorUse::kRead, OperandType::kRegOut) \ | 214 V(ToName, AccumulatorUse::kRead, OperandType::kRegOut) \ |
| 215 V(ToNumber, AccumulatorUse::kRead, OperandType::kRegOut) \ | 215 V(ToNumber, AccumulatorUse::kRead, OperandType::kRegOut) \ |
| 216 V(ToObject, AccumulatorUse::kRead, OperandType::kRegOut) \ | 216 V(ToObject, AccumulatorUse::kRead, OperandType::kRegOut) \ |
| 217 \ | 217 \ |
| 218 /* Literals */ \ | 218 /* Literals */ \ |
| 219 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ | 219 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ |
| 220 OperandType::kIdx, OperandType::kFlag8) \ | 220 OperandType::kIdx, OperandType::kFlag8) \ |
| 221 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ | 221 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ |
| 222 OperandType::kIdx, OperandType::kFlag8) \ | 222 OperandType::kIdx, OperandType::kFlag8) \ |
| 223 V(CreateObjectLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ | 223 V(CreateObjectLiteral, AccumulatorUse::kNone, OperandType::kIdx, \ |
| 224 OperandType::kIdx, OperandType::kFlag8) \ | 224 OperandType::kIdx, OperandType::kFlag8, OperandType::kRegOut) \ |
| 225 \ | 225 \ |
| 226 /* Closure allocation */ \ | 226 /* Closure allocation */ \ |
| 227 V(CreateClosure, AccumulatorUse::kWrite, OperandType::kIdx, \ | 227 V(CreateClosure, AccumulatorUse::kWrite, OperandType::kIdx, \ |
| 228 OperandType::kFlag8) \ | 228 OperandType::kFlag8) \ |
| 229 \ | 229 \ |
| 230 /* Context allocation */ \ | 230 /* Context allocation */ \ |
| 231 /* TODO(klaasb) rename Idx or add unsigned Imm OperandType? */ \ | 231 /* TODO(klaasb) rename Idx or add unsigned Imm OperandType? */ \ |
| 232 V(CreateFunctionContext, AccumulatorUse::kWrite, OperandType::kIdx) \ | 232 V(CreateFunctionContext, AccumulatorUse::kWrite, OperandType::kIdx) \ |
| 233 \ | 233 \ |
| 234 /* Arguments allocation */ \ | 234 /* Arguments allocation */ \ |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 575 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
| 576 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 576 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
| 577 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 577 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
| 578 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 578 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 579 | 579 |
| 580 } // namespace interpreter | 580 } // namespace interpreter |
| 581 } // namespace internal | 581 } // namespace internal |
| 582 } // namespace v8 | 582 } // namespace v8 |
| 583 | 583 |
| 584 #endif // V8_INTERPRETER_BYTECODES_H_ | 584 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |