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

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

Issue 2118183002: [interpeter] Move to table based peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undo experimental in last patch set. 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
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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 591
592 // Returns true if the bytecode is Ldar or Star. 592 // Returns true if the bytecode is Ldar or Star.
593 static bool IsLdarOrStar(Bytecode bytecode); 593 static bool IsLdarOrStar(Bytecode bytecode);
594 594
595 // Returns true if the bytecode has wider operand forms. 595 // Returns true if the bytecode has wider operand forms.
596 static bool IsBytecodeWithScalableOperands(Bytecode bytecode); 596 static bool IsBytecodeWithScalableOperands(Bytecode bytecode);
597 597
598 // Returns true if the bytecode is a scaling prefix bytecode. 598 // Returns true if the bytecode is a scaling prefix bytecode.
599 static bool IsPrefixScalingBytecode(Bytecode bytecode); 599 static bool IsPrefixScalingBytecode(Bytecode bytecode);
600 600
601 // Returns true if |bytecode| puts a name in the accumulator.
602 static bool PutsNameInAccumulator(Bytecode bytecode);
603
601 // Returns true if |operand_type| is any type of register operand. 604 // Returns true if |operand_type| is any type of register operand.
602 static bool IsRegisterOperandType(OperandType operand_type); 605 static bool IsRegisterOperandType(OperandType operand_type);
603 606
604 // Returns true if |operand_type| represents a register used as an input. 607 // Returns true if |operand_type| represents a register used as an input.
605 static bool IsRegisterInputOperandType(OperandType operand_type); 608 static bool IsRegisterInputOperandType(OperandType operand_type);
606 609
607 // Returns true if |operand_type| represents a register used as an output. 610 // Returns true if |operand_type| represents a register used as an output.
608 static bool IsRegisterOutputOperandType(OperandType operand_type); 611 static bool IsRegisterOutputOperandType(OperandType operand_type);
609 612
610 // Returns the number of registers represented by a register operand. For 613 // Returns the number of registers represented by a register operand. For
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 687 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
685 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 688 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
686 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 689 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
687 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 690 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
688 691
689 } // namespace interpreter 692 } // namespace interpreter
690 } // namespace internal 693 } // namespace internal
691 } // namespace v8 694 } // namespace v8
692 695
693 #endif // V8_INTERPRETER_BYTECODES_H_ 696 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698