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

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

Issue 172133003: Harmony: optimize Math.clz32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 10 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') | no next file with comments »
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 V(LoadKeyedExternal) \ 123 V(LoadKeyedExternal) \
124 V(LoadKeyedFixed) \ 124 V(LoadKeyedFixed) \
125 V(LoadKeyedFixedDouble) \ 125 V(LoadKeyedFixedDouble) \
126 V(LoadKeyedGeneric) \ 126 V(LoadKeyedGeneric) \
127 V(LoadNamedField) \ 127 V(LoadNamedField) \
128 V(LoadNamedGeneric) \ 128 V(LoadNamedGeneric) \
129 V(LoadRoot) \ 129 V(LoadRoot) \
130 V(MapEnumLength) \ 130 V(MapEnumLength) \
131 V(MathAbs) \ 131 V(MathAbs) \
132 V(MathAbsTagged) \ 132 V(MathAbsTagged) \
133 V(MathClz32) \
133 V(MathExp) \ 134 V(MathExp) \
134 V(MathFloor) \ 135 V(MathFloor) \
135 V(MathFloorOfDiv) \ 136 V(MathFloorOfDiv) \
136 V(MathLog) \ 137 V(MathLog) \
137 V(MathMinMax) \ 138 V(MathMinMax) \
138 V(MathPowHalf) \ 139 V(MathPowHalf) \
139 V(MathRound) \ 140 V(MathRound) \
140 V(MathSqrt) \ 141 V(MathSqrt) \
141 V(ModI) \ 142 V(ModI) \
142 V(MulConstIS) \ 143 V(MulConstIS) \
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 }; 1900 };
1900 1901
1901 1902
1902 class LMathLog V8_FINAL : public LUnaryMathOperation<0> { 1903 class LMathLog V8_FINAL : public LUnaryMathOperation<0> {
1903 public: 1904 public:
1904 explicit LMathLog(LOperand* value) : LUnaryMathOperation<0>(value) { } 1905 explicit LMathLog(LOperand* value) : LUnaryMathOperation<0>(value) { }
1905 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") 1906 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log")
1906 }; 1907 };
1907 1908
1908 1909
1910 class LMathClz32 V8_FINAL : public LUnaryMathOperation<0> {
1911 public:
1912 explicit LMathClz32(LOperand* value) : LUnaryMathOperation<0>(value) { }
1913 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32")
1914 };
1915
1916
1909 class LMathMinMax V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1917 class LMathMinMax V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1910 public: 1918 public:
1911 LMathMinMax(LOperand* left, LOperand* right) { 1919 LMathMinMax(LOperand* left, LOperand* right) {
1912 inputs_[0] = left; 1920 inputs_[0] = left;
1913 inputs_[1] = right; 1921 inputs_[1] = right;
1914 } 1922 }
1915 1923
1916 LOperand* left() { return inputs_[0]; } 1924 LOperand* left() { return inputs_[0]; }
1917 LOperand* right() { return inputs_[1]; } 1925 LOperand* right() { return inputs_[1]; }
1918 1926
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
2958 2966
2959 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2967 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2960 }; 2968 };
2961 2969
2962 #undef DECLARE_HYDROGEN_ACCESSOR 2970 #undef DECLARE_HYDROGEN_ACCESSOR
2963 #undef DECLARE_CONCRETE_INSTRUCTION 2971 #undef DECLARE_CONCRETE_INSTRUCTION
2964 2972
2965 } } // namespace v8::internal 2973 } } // namespace v8::internal
2966 2974
2967 #endif // V8_A64_LITHIUM_A64_H_ 2975 #endif // V8_A64_LITHIUM_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698