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

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

Issue 2041913002: [interpreter] Remove OperandScale from front stages of pipeline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Minor clean-up. Created 4 years, 6 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // Returns true if a handler is generated for a bytecode at a given 637 // Returns true if a handler is generated for a bytecode at a given
638 // operand scale. All bytecodes have handlers at OperandScale::kSingle, 638 // operand scale. All bytecodes have handlers at OperandScale::kSingle,
639 // but only bytecodes with scalable operands have handlers with larger 639 // but only bytecodes with scalable operands have handlers with larger
640 // OperandScale values. 640 // OperandScale values.
641 static bool BytecodeHasHandler(Bytecode bytecode, OperandScale operand_scale); 641 static bool BytecodeHasHandler(Bytecode bytecode, OperandScale operand_scale);
642 642
643 // Return the operand size required to hold a signed operand. 643 // Return the operand size required to hold a signed operand.
644 static OperandSize SizeForSignedOperand(int value); 644 static OperandSize SizeForSignedOperand(int value);
645 645
646 // Return the operand size required to hold an unsigned operand. 646 // Return the operand size required to hold an unsigned operand.
647 static OperandSize SizeForUnsignedOperand(int value); 647 static OperandSize SizeForUnsignedOperand(uint32_t value);
648
649 // Return the operand size required to hold an unsigned operand.
650 static OperandSize SizeForUnsignedOperand(size_t value);
651 648
652 // Return the OperandScale required for bytecode emission of 649 // Return the OperandScale required for bytecode emission of
653 // operand sizes. 650 // operand sizes.
654 static OperandScale OperandSizesToScale(OperandSize size0); 651 static OperandScale OperandSizesToScale(OperandSize size0);
655 static OperandScale OperandSizesToScale(OperandSize size0, OperandSize size1); 652 static OperandScale OperandSizesToScale(OperandSize size0, OperandSize size1);
656 static OperandScale OperandSizesToScale( 653 static OperandScale OperandSizesToScale(
657 OperandSize size0, OperandSize size1, OperandSize size2, 654 OperandSize size0, OperandSize size1, OperandSize size2,
658 OperandSize size3 = OperandSize::kByte); 655 OperandSize size3 = OperandSize::kByte);
659 656
660 private: 657 private:
(...skipping 12 matching lines...) Expand all
673 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 670 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
674 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 671 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
675 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 672 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
676 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 673 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
677 674
678 } // namespace interpreter 675 } // namespace interpreter
679 } // namespace internal 676 } // namespace internal
680 } // namespace v8 677 } // namespace v8
681 678
682 #endif // V8_INTERPRETER_BYTECODES_H_ 679 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698