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

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

Issue 1531693002: [Interpreter] Implement ForIn in bytecode graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth-0009-phi
Patch Set: Minor clean-up/simplication in Runtime_InterpreterForInPrepare. Created 5 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
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/control-flow-builders.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 V(JumpIfToBooleanTrue, OperandType::kImm8) \ 192 V(JumpIfToBooleanTrue, OperandType::kImm8) \
193 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ 193 V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \
194 V(JumpIfToBooleanFalse, OperandType::kImm8) \ 194 V(JumpIfToBooleanFalse, OperandType::kImm8) \
195 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ 195 V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \
196 V(JumpIfNull, OperandType::kImm8) \ 196 V(JumpIfNull, OperandType::kImm8) \
197 V(JumpIfNullConstant, OperandType::kIdx8) \ 197 V(JumpIfNullConstant, OperandType::kIdx8) \
198 V(JumpIfUndefined, OperandType::kImm8) \ 198 V(JumpIfUndefined, OperandType::kImm8) \
199 V(JumpIfUndefinedConstant, OperandType::kIdx8) \ 199 V(JumpIfUndefinedConstant, OperandType::kIdx8) \
200 \ 200 \
201 /* Complex flow control For..in */ \ 201 /* Complex flow control For..in */ \
202 V(ForInPrepare, OperandType::kReg8) \ 202 V(ForInPrepare, OperandType::kReg8, OperandType::kReg8, OperandType::kReg8) \
203 V(ForInNext, OperandType::kReg8, OperandType::kReg8) \ 203 V(ForInDone, OperandType::kReg8, OperandType::kReg8) \
204 V(ForInDone, OperandType::kReg8) \ 204 V(ForInNext, OperandType::kReg8, OperandType::kReg8, OperandType::kReg8, \
205 OperandType::kReg8) \
206 V(ForInStep, OperandType::kReg8) \
205 \ 207 \
206 /* Non-local flow control */ \ 208 /* Non-local flow control */ \
207 V(Throw, OperandType::kNone) \ 209 V(Throw, OperandType::kNone) \
208 V(Return, OperandType::kNone) 210 V(Return, OperandType::kNone)
209 211
210 212
211 // Enumeration of the size classes of operand types used by bytecodes. 213 // Enumeration of the size classes of operand types used by bytecodes.
212 enum class OperandSize : uint8_t { 214 enum class OperandSize : uint8_t {
213 kNone = 0, 215 kNone = 0,
214 kByte = 1, 216 kByte = 1,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 385
384 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 386 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
385 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 387 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
386 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 388 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
387 389
388 } // namespace interpreter 390 } // namespace interpreter
389 } // namespace internal 391 } // namespace internal
390 } // namespace v8 392 } // namespace v8
391 393
392 #endif // V8_INTERPRETER_BYTECODES_H_ 394 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/control-flow-builders.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698