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

Side by Side Diff: src/mips/lithium-mips.h

Issue 8432010: MIPS: Merge IR classes for different bitwise operations AND, OR and XOR into one class. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: Created 9 years, 1 month 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 | « no previous file | src/mips/lithium-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 789
790 LOperand* index() { return inputs_[0]; } 790 LOperand* index() { return inputs_[0]; }
791 LOperand* length() { return inputs_[1]; } 791 LOperand* length() { return inputs_[1]; }
792 792
793 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check") 793 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
794 }; 794 };
795 795
796 796
797 class LBitI: public LTemplateInstruction<1, 2, 0> { 797 class LBitI: public LTemplateInstruction<1, 2, 0> {
798 public: 798 public:
799 LBitI(Token::Value op, LOperand* left, LOperand* right) 799 LBitI(LOperand* left, LOperand* right) {
800 : op_(op) {
801 inputs_[0] = left; 800 inputs_[0] = left;
802 inputs_[1] = right; 801 inputs_[1] = right;
803 } 802 }
804 803
805 Token::Value op() const { return op_; } 804 Token::Value op() const { return hydrogen()->op(); }
806 805
807 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i") 806 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i")
808 807 DECLARE_HYDROGEN_ACCESSOR(Bitwise)
809 private:
810 Token::Value op_;
811 }; 808 };
812 809
813 810
814 class LShiftI: public LTemplateInstruction<1, 2, 0> { 811 class LShiftI: public LTemplateInstruction<1, 2, 0> {
815 public: 812 public:
816 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) 813 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt)
817 : op_(op), can_deopt_(can_deopt) { 814 : op_(op), can_deopt_(can_deopt) {
818 inputs_[0] = left; 815 inputs_[0] = left;
819 inputs_[1] = right; 816 inputs_[1] = right;
820 } 817 }
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
2214 2211
2215 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2212 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2216 }; 2213 };
2217 2214
2218 #undef DECLARE_HYDROGEN_ACCESSOR 2215 #undef DECLARE_HYDROGEN_ACCESSOR
2219 #undef DECLARE_CONCRETE_INSTRUCTION 2216 #undef DECLARE_CONCRETE_INSTRUCTION
2220 2217
2221 } } // namespace v8::internal 2218 } } // namespace v8::internal
2222 2219
2223 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2220 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698