Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: src/interpreter/bytecodes.h

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 /* - [Forward jumps] */ \ 219 /* - [Forward jumps] */ \
220 V(Jump, AccumulatorUse::kNone, OperandType::kImm) \ 220 V(Jump, AccumulatorUse::kNone, OperandType::kImm) \
221 /* - [Start constant jumps] */ \ 221 /* - [Start constant jumps] */ \
222 V(JumpConstant, AccumulatorUse::kNone, OperandType::kIdx) \ 222 V(JumpConstant, AccumulatorUse::kNone, OperandType::kIdx) \
223 /* - [Conditional jumps] */ \ 223 /* - [Conditional jumps] */ \
224 /* - [Conditional constant jumps] */ \ 224 /* - [Conditional constant jumps] */ \
225 V(JumpIfNullConstant, AccumulatorUse::kRead, OperandType::kIdx) \ 225 V(JumpIfNullConstant, AccumulatorUse::kRead, OperandType::kIdx) \
226 V(JumpIfUndefinedConstant, AccumulatorUse::kRead, OperandType::kIdx) \ 226 V(JumpIfUndefinedConstant, AccumulatorUse::kRead, OperandType::kIdx) \
227 V(JumpIfTrueConstant, AccumulatorUse::kRead, OperandType::kIdx) \ 227 V(JumpIfTrueConstant, AccumulatorUse::kRead, OperandType::kIdx) \
228 V(JumpIfFalseConstant, AccumulatorUse::kRead, OperandType::kIdx) \ 228 V(JumpIfFalseConstant, AccumulatorUse::kRead, OperandType::kIdx) \
229 V(JumpIfJSReceiverConstant, AccumulatorUse::kRead, OperandType::kIdx) \
229 V(JumpIfNotHoleConstant, AccumulatorUse::kRead, OperandType::kIdx) \ 230 V(JumpIfNotHoleConstant, AccumulatorUse::kRead, OperandType::kIdx) \
230 /* - [Start ToBoolean jumps] */ \ 231 /* - [Start ToBoolean jumps] */ \
231 V(JumpIfToBooleanTrueConstant, AccumulatorUse::kRead, OperandType::kIdx) \ 232 V(JumpIfToBooleanTrueConstant, AccumulatorUse::kRead, OperandType::kIdx) \
232 V(JumpIfToBooleanFalseConstant, AccumulatorUse::kRead, OperandType::kIdx) \ 233 V(JumpIfToBooleanFalseConstant, AccumulatorUse::kRead, OperandType::kIdx) \
233 /* - [End constant jumps] */ \ 234 /* - [End constant jumps] */ \
234 /* - [Conditional immediate jumps] */ \ 235 /* - [Conditional immediate jumps] */ \
235 V(JumpIfToBooleanTrue, AccumulatorUse::kRead, OperandType::kImm) \ 236 V(JumpIfToBooleanTrue, AccumulatorUse::kRead, OperandType::kImm) \
236 V(JumpIfToBooleanFalse, AccumulatorUse::kRead, OperandType::kImm) \ 237 V(JumpIfToBooleanFalse, AccumulatorUse::kRead, OperandType::kImm) \
237 /* - [End ToBoolean jumps] */ \ 238 /* - [End ToBoolean jumps] */ \
238 V(JumpIfTrue, AccumulatorUse::kRead, OperandType::kImm) \ 239 V(JumpIfTrue, AccumulatorUse::kRead, OperandType::kImm) \
239 V(JumpIfFalse, AccumulatorUse::kRead, OperandType::kImm) \ 240 V(JumpIfFalse, AccumulatorUse::kRead, OperandType::kImm) \
240 V(JumpIfNull, AccumulatorUse::kRead, OperandType::kImm) \ 241 V(JumpIfNull, AccumulatorUse::kRead, OperandType::kImm) \
241 V(JumpIfUndefined, AccumulatorUse::kRead, OperandType::kImm) \ 242 V(JumpIfUndefined, AccumulatorUse::kRead, OperandType::kImm) \
243 V(JumpIfJSReceiver, AccumulatorUse::kRead, OperandType::kImm) \
242 V(JumpIfNotHole, AccumulatorUse::kRead, OperandType::kImm) \ 244 V(JumpIfNotHole, AccumulatorUse::kRead, OperandType::kImm) \
243 \ 245 \
244 /* Complex flow control For..in */ \ 246 /* Complex flow control For..in */ \
245 V(ForInPrepare, AccumulatorUse::kNone, OperandType::kReg, \ 247 V(ForInPrepare, AccumulatorUse::kNone, OperandType::kReg, \
246 OperandType::kRegOutTriple) \ 248 OperandType::kRegOutTriple) \
247 V(ForInContinue, AccumulatorUse::kWrite, OperandType::kReg, \ 249 V(ForInContinue, AccumulatorUse::kWrite, OperandType::kReg, \
248 OperandType::kReg) \ 250 OperandType::kReg) \
249 V(ForInNext, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ 251 V(ForInNext, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \
250 OperandType::kRegPair, OperandType::kIdx) \ 252 OperandType::kRegPair, OperandType::kIdx) \
251 V(ForInStep, AccumulatorUse::kWrite, OperandType::kReg) \ 253 V(ForInStep, AccumulatorUse::kWrite, OperandType::kReg) \
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 #undef CONSTEXPR 814 #undef CONSTEXPR
813 815
814 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, 816 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os,
815 const Bytecode& bytecode); 817 const Bytecode& bytecode);
816 818
817 } // namespace interpreter 819 } // namespace interpreter
818 } // namespace internal 820 } // namespace internal
819 } // namespace v8 821 } // namespace v8
820 822
821 #endif // V8_INTERPRETER_BYTECODES_H_ 823 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698