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

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

Issue 453043002: MIPS: Add support for arch. revision 6 to mips32 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_
6 #define V8_MIPS_LITHIUM_MIPS_H_ 6 #define V8_MIPS_LITHIUM_MIPS_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 int32_t divisor() const { return divisor_; } 688 int32_t divisor() const { return divisor_; }
689 689
690 DECLARE_CONCRETE_INSTRUCTION(DivByConstI, "div-by-const-i") 690 DECLARE_CONCRETE_INSTRUCTION(DivByConstI, "div-by-const-i")
691 DECLARE_HYDROGEN_ACCESSOR(Div) 691 DECLARE_HYDROGEN_ACCESSOR(Div)
692 692
693 private: 693 private:
694 int32_t divisor_; 694 int32_t divisor_;
695 }; 695 };
696 696
697 697
698 class LDivI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 698 class LDivI V8_FINAL : public LTemplateInstruction<1, 2, 1> {
699 public: 699 public:
700 LDivI(LOperand* dividend, LOperand* divisor) { 700 LDivI(LOperand* dividend, LOperand* divisor, LOperand* temp) {
701 inputs_[0] = dividend; 701 inputs_[0] = dividend;
702 inputs_[1] = divisor; 702 inputs_[1] = divisor;
703 temps_[0] = temp;
703 } 704 }
704 705
705 LOperand* dividend() { return inputs_[0]; } 706 LOperand* dividend() { return inputs_[0]; }
706 LOperand* divisor() { return inputs_[1]; } 707 LOperand* divisor() { return inputs_[1]; }
708 LOperand* temp() { return temps_[0]; }
707 709
708 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") 710 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
709 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) 711 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation)
710 }; 712 };
711 713
712 714
713 class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> { 715 class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> {
714 public: 716 public:
715 LFlooringDivByPowerOf2I(LOperand* dividend, int32_t divisor) { 717 LFlooringDivByPowerOf2I(LOperand* dividend, int32_t divisor) {
716 inputs_[0] = dividend; 718 inputs_[0] = dividend;
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after
2853 2855
2854 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2856 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2855 }; 2857 };
2856 2858
2857 #undef DECLARE_HYDROGEN_ACCESSOR 2859 #undef DECLARE_HYDROGEN_ACCESSOR
2858 #undef DECLARE_CONCRETE_INSTRUCTION 2860 #undef DECLARE_CONCRETE_INSTRUCTION
2859 2861
2860 } } // namespace v8::internal 2862 } } // namespace v8::internal
2861 2863
2862 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2864 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698