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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
222 V(ToObject, AccumulatorUse::kRead, OperandType::kRegOut) \ | 222 V(ToObject, AccumulatorUse::kRead, OperandType::kRegOut) \ |
223 \ | 223 \ |
224 /* Literals */ \ | 224 /* Literals */ \ |
225 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ | 225 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ |
226 OperandType::kIdx, OperandType::kFlag8) \ | 226 OperandType::kIdx, OperandType::kFlag8) \ |
227 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ | 227 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ |
228 OperandType::kIdx, OperandType::kFlag8) \ | 228 OperandType::kIdx, OperandType::kFlag8) \ |
229 V(CreateObjectLiteral, AccumulatorUse::kNone, OperandType::kIdx, \ | 229 V(CreateObjectLiteral, AccumulatorUse::kNone, OperandType::kIdx, \ |
230 OperandType::kIdx, OperandType::kFlag8, OperandType::kRegOut) \ | 230 OperandType::kIdx, OperandType::kFlag8, OperandType::kRegOut) \ |
231 \ | 231 \ |
232 /* Block context allocation */ \ | |
233 V(CreateBlockContext, AccumulatorUse::kReadWrite, OperandType::kIdx) \ | |
rmcilroy
2016/08/15 16:01:04
nit - move this under CreateFunctionContext (no ne
Michael Starzinger
2016/08/16 08:23:41
+1
klaasb
2016/08/16 10:40:09
Done.
| |
234 \ | |
232 /* Closure allocation */ \ | 235 /* Closure allocation */ \ |
233 V(CreateClosure, AccumulatorUse::kWrite, OperandType::kIdx, \ | 236 V(CreateClosure, AccumulatorUse::kWrite, OperandType::kIdx, \ |
234 OperandType::kFlag8) \ | 237 OperandType::kFlag8) \ |
235 \ | 238 \ |
236 /* Context allocation */ \ | 239 /* Context allocation */ \ |
237 /* TODO(klaasb) rename Idx or add unsigned Imm OperandType? */ \ | 240 /* TODO(klaasb) rename Idx or add unsigned Imm OperandType? */ \ |
238 V(CreateFunctionContext, AccumulatorUse::kWrite, OperandType::kIdx) \ | 241 V(CreateFunctionContext, AccumulatorUse::kWrite, OperandType::kIdx) \ |
239 \ | 242 \ |
240 /* Arguments allocation */ \ | 243 /* Arguments allocation */ \ |
241 V(CreateMappedArguments, AccumulatorUse::kWrite) \ | 244 V(CreateMappedArguments, AccumulatorUse::kWrite) \ |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
581 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 584 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
582 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 585 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); |
583 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 586 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
584 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 587 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
585 | 588 |
586 } // namespace interpreter | 589 } // namespace interpreter |
587 } // namespace internal | 590 } // namespace internal |
588 } // namespace v8 | 591 } // namespace v8 |
589 | 592 |
590 #endif // V8_INTERPRETER_BYTECODES_H_ | 593 #endif // V8_INTERPRETER_BYTECODES_H_ |
OLD | NEW |