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

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: Attempt gn build. 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 597
598 // Returns true if the bytecode is a call to the runtime. 598 // Returns true if the bytecode is a call to the runtime.
599 static bool IsCallRuntime(Bytecode bytecode); 599 static bool IsCallRuntime(Bytecode bytecode);
600 600
601 // Returns true if the bytecode is a debug break. 601 // Returns true if the bytecode is a debug break.
602 static bool IsDebugBreak(Bytecode bytecode); 602 static bool IsDebugBreak(Bytecode bytecode);
603 603
604 // Returns true if the bytecode is Ldar or Star. 604 // Returns true if the bytecode is Ldar or Star.
605 static bool IsLdarOrStar(Bytecode bytecode); 605 static bool IsLdarOrStar(Bytecode bytecode);
606 606
607 // Returns true if the bytecode is LdaSmi or LdaZero.
608 static bool IsLdaSmiOrLdaZero(Bytecode bytecode);
609
610 // Returns true if the bytecode has wider operand forms. 607 // Returns true if the bytecode has wider operand forms.
611 static bool IsBytecodeWithScalableOperands(Bytecode bytecode); 608 static bool IsBytecodeWithScalableOperands(Bytecode bytecode);
612 609
613 // Returns true if the bytecode is a scaling prefix bytecode. 610 // Returns true if the bytecode is a scaling prefix bytecode.
614 static bool IsPrefixScalingBytecode(Bytecode bytecode); 611 static bool IsPrefixScalingBytecode(Bytecode bytecode);
615 612
613 // Returns true if |bytecode| puts a name in the accumulator.
614 static bool PutsNameInAccumulator(Bytecode bytecode);
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 the number of registers represented by a register operand. For 625 // Returns the number of registers represented by a register operand. For
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 699 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
700 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 700 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
701 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 701 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
702 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 702 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
703 703
704 } // namespace interpreter 704 } // namespace interpreter
705 } // namespace internal 705 } // namespace internal
706 } // namespace v8 706 } // namespace v8
707 707
708 #endif // V8_INTERPRETER_BYTECODES_H_ 708 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698