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

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

Issue 2161563002: Revert of [interpeter] Move to table based peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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
« no previous file with comments | « src/interpreter/bytecode-peephole-table.h ('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 <cstdint> 8 #include <cstdint>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <string> 10 #include <string>
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 507
508 // Returns true if the bytecode is a call to the runtime. 508 // Returns true if the bytecode is a call to the runtime.
509 static bool IsCallRuntime(Bytecode bytecode); 509 static bool IsCallRuntime(Bytecode bytecode);
510 510
511 // Returns true if the bytecode is a debug break. 511 // Returns true if the bytecode is a debug break.
512 static bool IsDebugBreak(Bytecode bytecode); 512 static bool IsDebugBreak(Bytecode bytecode);
513 513
514 // Returns true if the bytecode is Ldar or Star. 514 // Returns true if the bytecode is Ldar or Star.
515 static bool IsLdarOrStar(Bytecode bytecode); 515 static bool IsLdarOrStar(Bytecode bytecode);
516 516
517 // Returns true if the bytecode is LdaSmi or LdaZero.
518 static bool IsLdaSmiOrLdaZero(Bytecode bytecode);
519
517 // Returns true if the bytecode has wider operand forms. 520 // Returns true if the bytecode has wider operand forms.
518 static bool IsBytecodeWithScalableOperands(Bytecode bytecode); 521 static bool IsBytecodeWithScalableOperands(Bytecode bytecode);
519 522
520 // Returns true if the bytecode is a scaling prefix bytecode. 523 // Returns true if the bytecode is a scaling prefix bytecode.
521 static bool IsPrefixScalingBytecode(Bytecode bytecode); 524 static bool IsPrefixScalingBytecode(Bytecode bytecode);
522 525
523 // Returns true if |bytecode| puts a name in the accumulator.
524 static bool PutsNameInAccumulator(Bytecode bytecode);
525
526 // Returns true if |operand_type| is any type of register operand. 526 // Returns true if |operand_type| is any type of register operand.
527 static bool IsRegisterOperandType(OperandType operand_type); 527 static bool IsRegisterOperandType(OperandType operand_type);
528 528
529 // Returns true if |operand_type| represents a register used as an input. 529 // Returns true if |operand_type| represents a register used as an input.
530 static bool IsRegisterInputOperandType(OperandType operand_type); 530 static bool IsRegisterInputOperandType(OperandType operand_type);
531 531
532 // Returns true if |operand_type| represents a register used as an output. 532 // Returns true if |operand_type| represents a register used as an output.
533 static bool IsRegisterOutputOperandType(OperandType operand_type); 533 static bool IsRegisterOutputOperandType(OperandType operand_type);
534 534
535 // Returns the number of registers represented by a register operand. For 535 // Returns the number of registers represented by a register operand. For
(...skipping 27 matching lines...) Expand all
563 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 563 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
564 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 564 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
565 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 565 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
566 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 566 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
567 567
568 } // namespace interpreter 568 } // namespace interpreter
569 } // namespace internal 569 } // namespace internal
570 } // namespace v8 570 } // namespace v8
571 571
572 #endif // V8_INTERPRETER_BYTECODES_H_ 572 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-peephole-table.h ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698