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

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

Issue 145273005: A64: Implement LMathFloorOfDiv and enable the instruction in hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | « no previous file | src/a64/lithium-a64.cc » ('j') | src/a64/lithium-codegen-a64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 V(LoadKeyedGeneric) \ 132 V(LoadKeyedGeneric) \
133 V(LoadNamedField) \ 133 V(LoadNamedField) \
134 V(LoadNamedFieldPolymorphic) \ 134 V(LoadNamedFieldPolymorphic) \
135 V(LoadNamedGeneric) \ 135 V(LoadNamedGeneric) \
136 V(MapEnumLength) \ 136 V(MapEnumLength) \
137 V(MathAbs) \ 137 V(MathAbs) \
138 V(MathCos) \ 138 V(MathCos) \
139 V(MathAbsTagged) \ 139 V(MathAbsTagged) \
140 V(MathExp) \ 140 V(MathExp) \
141 V(MathFloor) \ 141 V(MathFloor) \
142 V(MathFloorOfDiv) \
142 V(MathLog) \ 143 V(MathLog) \
143 V(MathMinMax) \ 144 V(MathMinMax) \
144 V(MathPowHalf) \ 145 V(MathPowHalf) \
145 V(MathRound) \ 146 V(MathRound) \
146 V(MathSin) \ 147 V(MathSin) \
147 V(MathSqrt) \ 148 V(MathSqrt) \
148 V(MathTan) \ 149 V(MathTan) \
149 V(MulConstI) \ 150 V(MulConstI) \
150 V(MulI) \ 151 V(MulI) \
151 V(NumberTagD) \ 152 V(NumberTagD) \
(...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 }; 1827 };
1827 1828
1828 1829
1829 class LMathFloor: public LUnaryMathOperation<0> { 1830 class LMathFloor: public LUnaryMathOperation<0> {
1830 public: 1831 public:
1831 explicit LMathFloor(LOperand* value) : LUnaryMathOperation<0>(value) { } 1832 explicit LMathFloor(LOperand* value) : LUnaryMathOperation<0>(value) { }
1832 DECLARE_CONCRETE_INSTRUCTION(MathFloor, "math-floor") 1833 DECLARE_CONCRETE_INSTRUCTION(MathFloor, "math-floor")
1833 }; 1834 };
1834 1835
1835 1836
1837 class LMathFloorOfDiv : public LTemplateInstruction<1, 2, 1> {
1838 public:
1839 LMathFloorOfDiv(LOperand* left,
1840 LOperand* right,
1841 LOperand* temp = NULL) {
1842 inputs_[0] = left;
1843 inputs_[1] = right;
1844 temps_[0] = temp;
1845 }
1846
1847 LOperand* left() { return inputs_[0]; }
1848 LOperand* right() { return inputs_[1]; }
1849 LOperand* temp() { return temps_[0]; }
1850
1851 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div")
1852 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv)
1853 };
1854
1855
1836 class LMathLog: public LUnaryMathOperation<0> { 1856 class LMathLog: public LUnaryMathOperation<0> {
1837 public: 1857 public:
1838 explicit LMathLog(LOperand* value) : LUnaryMathOperation<0>(value) { } 1858 explicit LMathLog(LOperand* value) : LUnaryMathOperation<0>(value) { }
1839 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") 1859 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log")
1840 }; 1860 };
1841 1861
1842 1862
1843 class LMathMinMax: public LTemplateInstruction<1, 2, 0> { 1863 class LMathMinMax: public LTemplateInstruction<1, 2, 0> {
1844 public: 1864 public:
1845 LMathMinMax(LOperand* left, LOperand* right) { 1865 LMathMinMax(LOperand* left, LOperand* right) {
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 2783
2764 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2784 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2765 }; 2785 };
2766 2786
2767 #undef DECLARE_HYDROGEN_ACCESSOR 2787 #undef DECLARE_HYDROGEN_ACCESSOR
2768 #undef DECLARE_CONCRETE_INSTRUCTION 2788 #undef DECLARE_CONCRETE_INSTRUCTION
2769 2789
2770 } } // namespace v8::internal 2790 } } // namespace v8::internal
2771 2791
2772 #endif // V8_A64_LITHIUM_A64_H_ 2792 #endif // V8_A64_LITHIUM_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-a64.cc » ('j') | src/a64/lithium-codegen-a64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698