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 <cstdint> | 8 #include <cstdint> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 OperandType::kReg, OperandType::kIdx) \ | 134 OperandType::kReg, OperandType::kIdx) \ |
| 135 \ | 135 \ |
| 136 /* Unary Operators */ \ | 136 /* Unary Operators */ \ |
| 137 V(Inc, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | 137 V(Inc, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
| 138 V(Dec, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | 138 V(Dec, AccumulatorUse::kReadWrite, OperandType::kIdx) \ |
| 139 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ | 139 V(ToBooleanLogicalNot, AccumulatorUse::kReadWrite) \ |
| 140 V(LogicalNot, AccumulatorUse::kReadWrite) \ | 140 V(LogicalNot, AccumulatorUse::kReadWrite) \ |
| 141 V(TypeOf, AccumulatorUse::kReadWrite) \ | 141 V(TypeOf, AccumulatorUse::kReadWrite) \ |
| 142 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 142 V(DeletePropertyStrict, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 143 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ | 143 V(DeletePropertySloppy, AccumulatorUse::kReadWrite, OperandType::kReg) \ |
| 144 V(GetSuperConstructor, AccumulatorUse::kReadWrite) \ | |
|
rmcilroy
2016/11/23 21:55:37
This isn't really a unary op (in the sense of JS u
| |
| 144 \ | 145 \ |
| 145 /* Call operations */ \ | 146 /* Call operations */ \ |
| 146 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kRegList, \ | 147 V(Call, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kRegList, \ |
| 147 OperandType::kRegCount, OperandType::kIdx) \ | 148 OperandType::kRegCount, OperandType::kIdx) \ |
| 148 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, \ | 149 V(TailCall, AccumulatorUse::kWrite, OperandType::kReg, \ |
| 149 OperandType::kRegList, OperandType::kRegCount, OperandType::kIdx) \ | 150 OperandType::kRegList, OperandType::kRegCount, OperandType::kIdx) \ |
| 150 V(CallRuntime, AccumulatorUse::kWrite, OperandType::kRuntimeId, \ | 151 V(CallRuntime, AccumulatorUse::kWrite, OperandType::kRuntimeId, \ |
| 151 OperandType::kRegList, OperandType::kRegCount) \ | 152 OperandType::kRegList, OperandType::kRegCount) \ |
| 152 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \ | 153 V(CallRuntimeForPair, AccumulatorUse::kNone, OperandType::kRuntimeId, \ |
| 153 OperandType::kRegList, OperandType::kRegCount, OperandType::kRegOutPair) \ | 154 OperandType::kRegList, OperandType::kRegCount, OperandType::kRegOutPair) \ |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 734 #undef CONSTEXPR | 735 #undef CONSTEXPR |
| 735 | 736 |
| 736 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 737 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
| 737 const Bytecode& bytecode); | 738 const Bytecode& bytecode); |
| 738 | 739 |
| 739 } // namespace interpreter | 740 } // namespace interpreter |
| 740 } // namespace internal | 741 } // namespace internal |
| 741 } // namespace v8 | 742 } // namespace v8 |
| 742 | 743 |
| 743 #endif // V8_INTERPRETER_BYTECODES_H_ | 744 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |