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

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

Issue 2142273003: [interpreter] Inline Star on dispatch for some bytecodes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: restrict InterpreterAssemblerTest.Jump to jumps Created 4 years, 5 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 | « no previous file | 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 615
616 // Returns true if |operand_type| is any type of register operand. 616 // Returns true if |operand_type| is any type of register operand.
617 static bool IsRegisterOperandType(OperandType operand_type); 617 static bool IsRegisterOperandType(OperandType operand_type);
618 618
619 // Returns true if |operand_type| represents a register used as an input. 619 // Returns true if |operand_type| represents a register used as an input.
620 static bool IsRegisterInputOperandType(OperandType operand_type); 620 static bool IsRegisterInputOperandType(OperandType operand_type);
621 621
622 // Returns true if |operand_type| represents a register used as an output. 622 // Returns true if |operand_type| represents a register used as an output.
623 static bool IsRegisterOutputOperandType(OperandType operand_type); 623 static bool IsRegisterOutputOperandType(OperandType operand_type);
624 624
625 // Returns true if the handler for |bytecode| should look ahead and inline a
626 // dispatch to a Star bytecode.
627 static bool IsStarLookahead(Bytecode bytecode, OperandScale operand_scale);
628
625 // Returns the number of registers represented by a register operand. For 629 // Returns the number of registers represented by a register operand. For
626 // instance, a RegPair represents two registers. 630 // instance, a RegPair represents two registers.
627 static int GetNumberOfRegistersRepresentedBy(OperandType operand_type); 631 static int GetNumberOfRegistersRepresentedBy(OperandType operand_type);
628 632
629 // Returns true if |operand_type| is a maybe register operand 633 // Returns true if |operand_type| is a maybe register operand
630 // (kMaybeReg). 634 // (kMaybeReg).
631 static bool IsMaybeRegisterOperandType(OperandType operand_type); 635 static bool IsMaybeRegisterOperandType(OperandType operand_type);
632 636
633 // Returns true if |operand_type| is a runtime-id operand (kRuntimeId). 637 // Returns true if |operand_type| is a runtime-id operand (kRuntimeId).
634 static bool IsRuntimeIdOperandType(OperandType operand_type); 638 static bool IsRuntimeIdOperandType(OperandType operand_type);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 703 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
700 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 704 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
701 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 705 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
702 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 706 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
703 707
704 } // namespace interpreter 708 } // namespace interpreter
705 } // namespace internal 709 } // namespace internal
706 } // namespace v8 710 } // namespace v8
707 711
708 #endif // V8_INTERPRETER_BYTECODES_H_ 712 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698