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

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

Issue 1998203002: [Interpreter] Preserve source positions in peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nitlet on last patch set. 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/interpreter/bytecode-pipeline.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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 558
559 // Returns true if the bytecode is Ldar or Star. 559 // Returns true if the bytecode is Ldar or Star.
560 static bool IsLdarOrStar(Bytecode bytecode); 560 static bool IsLdarOrStar(Bytecode bytecode);
561 561
562 // Returns true if the bytecode has wider operand forms. 562 // Returns true if the bytecode has wider operand forms.
563 static bool IsBytecodeWithScalableOperands(Bytecode bytecode); 563 static bool IsBytecodeWithScalableOperands(Bytecode bytecode);
564 564
565 // Returns true if the bytecode is a scaling prefix bytecode. 565 // Returns true if the bytecode is a scaling prefix bytecode.
566 static bool IsPrefixScalingBytecode(Bytecode bytecode); 566 static bool IsPrefixScalingBytecode(Bytecode bytecode);
567 567
568 // Returns true if the bytecode has no effects outside the current
569 // interpreter frame.
570 static bool IsWithoutExternalSideEffects(Bytecode bytecode);
571
568 // Returns true if |operand_type| is any type of register operand. 572 // Returns true if |operand_type| is any type of register operand.
569 static bool IsRegisterOperandType(OperandType operand_type); 573 static bool IsRegisterOperandType(OperandType operand_type);
570 574
571 // Returns true if |operand_type| represents a register used as an input. 575 // Returns true if |operand_type| represents a register used as an input.
572 static bool IsRegisterInputOperandType(OperandType operand_type); 576 static bool IsRegisterInputOperandType(OperandType operand_type);
573 577
574 // Returns true if |operand_type| represents a register used as an output. 578 // Returns true if |operand_type| represents a register used as an output.
575 static bool IsRegisterOutputOperandType(OperandType operand_type); 579 static bool IsRegisterOutputOperandType(OperandType operand_type);
576 580
577 // Returns the number of registers represented by a register operand. For 581 // Returns the number of registers represented by a register operand. For
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 649 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
646 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 650 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
647 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 651 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
648 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 652 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
649 653
650 } // namespace interpreter 654 } // namespace interpreter
651 } // namespace internal 655 } // namespace internal
652 } // namespace v8 656 } // namespace v8
653 657
654 #endif // V8_INTERPRETER_BYTECODES_H_ 658 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-pipeline.cc ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698