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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 V(ToName, OperandType::kNone) \ | 154 V(ToName, OperandType::kNone) \ |
155 V(ToNumber, OperandType::kNone) \ | 155 V(ToNumber, OperandType::kNone) \ |
156 V(ToObject, OperandType::kNone) \ | 156 V(ToObject, OperandType::kNone) \ |
157 \ | 157 \ |
158 /* Literals */ \ | 158 /* Literals */ \ |
159 V(CreateRegExpLiteral, OperandType::kIdx8, OperandType::kImm8) \ | 159 V(CreateRegExpLiteral, OperandType::kIdx8, OperandType::kImm8) \ |
160 V(CreateArrayLiteral, OperandType::kIdx8, OperandType::kImm8) \ | 160 V(CreateArrayLiteral, OperandType::kIdx8, OperandType::kImm8) \ |
161 V(CreateObjectLiteral, OperandType::kIdx8, OperandType::kImm8) \ | 161 V(CreateObjectLiteral, OperandType::kIdx8, OperandType::kImm8) \ |
162 \ | 162 \ |
163 /* Closure allocation */ \ | 163 /* Closure allocation */ \ |
164 V(CreateClosure, OperandType::kImm8) \ | 164 V(CreateClosure, OperandType::kIdx8, OperandType::kImm8) \ |
| 165 V(CreateClosureWide, OperandType::kIdx16, OperandType::kImm8) \ |
165 \ | 166 \ |
166 /* Arguments allocation */ \ | 167 /* Arguments allocation */ \ |
167 V(CreateMappedArguments, OperandType::kNone) \ | 168 V(CreateMappedArguments, OperandType::kNone) \ |
168 V(CreateUnmappedArguments, OperandType::kNone) \ | 169 V(CreateUnmappedArguments, OperandType::kNone) \ |
169 \ | 170 \ |
170 /* Control Flow */ \ | 171 /* Control Flow */ \ |
171 V(Jump, OperandType::kImm8) \ | 172 V(Jump, OperandType::kImm8) \ |
172 V(JumpConstant, OperandType::kIdx8) \ | 173 V(JumpConstant, OperandType::kIdx8) \ |
173 V(JumpIfTrue, OperandType::kImm8) \ | 174 V(JumpIfTrue, OperandType::kImm8) \ |
174 V(JumpIfTrueConstant, OperandType::kIdx8) \ | 175 V(JumpIfTrueConstant, OperandType::kIdx8) \ |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 350 |
350 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 351 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
351 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 352 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
352 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 353 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
353 | 354 |
354 } // namespace interpreter | 355 } // namespace interpreter |
355 } // namespace internal | 356 } // namespace internal |
356 } // namespace v8 | 357 } // namespace v8 |
357 | 358 |
358 #endif // V8_INTERPRETER_BYTECODES_H_ | 359 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |