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

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

Issue 1969423002: [Interpreter] Remove InterpreterExitTrampoline and replace with returning to the entry trampoline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 7 months 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/ia32/builtins-ia32.cc ('k') | src/interpreter/bytecodes.cc » ('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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 V(ForInNext, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \ 232 V(ForInNext, AccumulatorUse::kWrite, OperandType::kReg, OperandType::kReg, \
233 OperandType::kRegPair, OperandType::kIdx) \ 233 OperandType::kRegPair, OperandType::kIdx) \
234 V(ForInStep, AccumulatorUse::kWrite, OperandType::kReg) \ 234 V(ForInStep, AccumulatorUse::kWrite, OperandType::kReg) \
235 \ 235 \
236 /* Perform a stack guard check */ \ 236 /* Perform a stack guard check */ \
237 V(StackCheck, AccumulatorUse::kNone) \ 237 V(StackCheck, AccumulatorUse::kNone) \
238 \ 238 \
239 /* Non-local flow control */ \ 239 /* Non-local flow control */ \
240 V(Throw, AccumulatorUse::kRead) \ 240 V(Throw, AccumulatorUse::kRead) \
241 V(ReThrow, AccumulatorUse::kRead) \ 241 V(ReThrow, AccumulatorUse::kRead) \
242 V(Return, AccumulatorUse::kNone) \ 242 V(Return, AccumulatorUse::kRead) \
243 \ 243 \
244 /* Generators */ \ 244 /* Generators */ \
245 V(SuspendGenerator, AccumulatorUse::kRead, OperandType::kReg) \ 245 V(SuspendGenerator, AccumulatorUse::kRead, OperandType::kReg) \
246 V(ResumeGenerator, AccumulatorUse::kWrite, OperandType::kReg) \ 246 V(ResumeGenerator, AccumulatorUse::kWrite, OperandType::kReg) \
247 \ 247 \
248 /* Debugger */ \ 248 /* Debugger */ \
249 V(Debugger, AccumulatorUse::kNone) \ 249 V(Debugger, AccumulatorUse::kNone) \
250 DEBUG_BREAK_BYTECODE_LIST(V) \ 250 DEBUG_BREAK_BYTECODE_LIST(V) \
251 \ 251 \
252 /* Illegal bytecode (terminates execution) */ \ 252 /* Illegal bytecode (terminates execution) */ \
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 // Returns a debug break bytecode to replace |bytecode|. 502 // Returns a debug break bytecode to replace |bytecode|.
503 static Bytecode GetDebugBreak(Bytecode bytecode); 503 static Bytecode GetDebugBreak(Bytecode bytecode);
504 504
505 // Returns the size of the bytecode including its operands for the 505 // Returns the size of the bytecode including its operands for the
506 // given |operand_scale|. 506 // given |operand_scale|.
507 static int Size(Bytecode bytecode, OperandScale operand_scale); 507 static int Size(Bytecode bytecode, OperandScale operand_scale);
508 508
509 // Returns the size of |operand|. 509 // Returns the size of |operand|.
510 static OperandSize SizeOfOperand(OperandType operand, OperandScale scale); 510 static OperandSize SizeOfOperand(OperandType operand, OperandScale scale);
511 511
512 // Returns the number of values which |bytecode| returns.
513 static size_t ReturnCount(Bytecode bytecode);
514
512 // Returns true if the bytecode is a conditional jump taking 515 // Returns true if the bytecode is a conditional jump taking
513 // an immediate byte operand (OperandType::kImm). 516 // an immediate byte operand (OperandType::kImm).
514 static bool IsConditionalJumpImmediate(Bytecode bytecode); 517 static bool IsConditionalJumpImmediate(Bytecode bytecode);
515 518
516 // Returns true if the bytecode is a conditional jump taking 519 // Returns true if the bytecode is a conditional jump taking
517 // a constant pool entry (OperandType::kIdx). 520 // a constant pool entry (OperandType::kIdx).
518 static bool IsConditionalJumpConstant(Bytecode bytecode); 521 static bool IsConditionalJumpConstant(Bytecode bytecode);
519 522
520 // Returns true if the bytecode is a conditional jump taking 523 // Returns true if the bytecode is a conditional jump taking
521 // any kind of operand. 524 // any kind of operand.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 644 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
642 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 645 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
643 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 646 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
644 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 647 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
645 648
646 } // namespace interpreter 649 } // namespace interpreter
647 } // namespace internal 650 } // namespace internal
648 } // namespace v8 651 } // namespace v8
649 652
650 #endif // V8_INTERPRETER_BYTECODES_H_ 653 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698