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

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

Issue 152133003: A64: Add support for SMI representation to MulConstI. Also add a test. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Rename LMulConstI to LMulConstIS 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 V(MathFloor) \ 140 V(MathFloor) \
141 V(MathFloorOfDiv) \ 141 V(MathFloorOfDiv) \
142 V(MathLog) \ 142 V(MathLog) \
143 V(MathMinMax) \ 143 V(MathMinMax) \
144 V(MathPowHalf) \ 144 V(MathPowHalf) \
145 V(MathRound) \ 145 V(MathRound) \
146 V(MathSin) \ 146 V(MathSin) \
147 V(MathSqrt) \ 147 V(MathSqrt) \
148 V(MathTan) \ 148 V(MathTan) \
149 V(ModI) \ 149 V(ModI) \
150 V(MulConstI) \ 150 V(MulConstIS) \
151 V(MulI) \ 151 V(MulI) \
152 V(MulS) \ 152 V(MulS) \
153 V(NumberTagD) \ 153 V(NumberTagD) \
154 V(NumberTagU) \ 154 V(NumberTagU) \
155 V(NumberUntagD) \ 155 V(NumberUntagD) \
156 V(OsrEntry) \ 156 V(OsrEntry) \
157 V(OuterContext) \ 157 V(OuterContext) \
158 V(Parameter) \ 158 V(Parameter) \
159 V(Power) \ 159 V(Power) \
160 V(PushArgument) \ 160 V(PushArgument) \
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 } 1952 }
1953 1953
1954 LOperand* left() { return inputs_[0]; } 1954 LOperand* left() { return inputs_[0]; }
1955 LOperand* right() { return inputs_[1]; } 1955 LOperand* right() { return inputs_[1]; }
1956 1956
1957 DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i") 1957 DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i")
1958 DECLARE_HYDROGEN_ACCESSOR(Mod) 1958 DECLARE_HYDROGEN_ACCESSOR(Mod)
1959 }; 1959 };
1960 1960
1961 1961
1962 class LMulConstI: public LTemplateInstruction<1, 2, 0> { 1962 class LMulConstIS: public LTemplateInstruction<1, 2, 0> {
1963 public: 1963 public:
1964 LMulConstI(LOperand* left, LConstantOperand* right) { 1964 LMulConstIS(LOperand* left, LConstantOperand* right) {
1965 inputs_[0] = left; 1965 inputs_[0] = left;
1966 inputs_[1] = right; 1966 inputs_[1] = right;
1967 } 1967 }
1968 1968
1969 LOperand* left() { return inputs_[0]; } 1969 LOperand* left() { return inputs_[0]; }
1970 LConstantOperand* right() { return LConstantOperand::cast(inputs_[1]); } 1970 LConstantOperand* right() { return LConstantOperand::cast(inputs_[1]); }
1971 1971
1972 DECLARE_CONCRETE_INSTRUCTION(MulConstI, "mul-const-i") 1972 DECLARE_CONCRETE_INSTRUCTION(MulConstIS, "mul-const-i-s")
1973 DECLARE_HYDROGEN_ACCESSOR(Mul) 1973 DECLARE_HYDROGEN_ACCESSOR(Mul)
1974 }; 1974 };
1975 1975
1976 1976
1977 class LMulI: public LTemplateInstruction<1, 2, 0> { 1977 class LMulI: public LTemplateInstruction<1, 2, 0> {
1978 public: 1978 public:
1979 LMulI(LOperand* left, LOperand* right) { 1979 LMulI(LOperand* left, LOperand* right) {
1980 inputs_[0] = left; 1980 inputs_[0] = left;
1981 inputs_[1] = right; 1981 inputs_[1] = right;
1982 } 1982 }
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
2903 2903
2904 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2904 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2905 }; 2905 };
2906 2906
2907 #undef DECLARE_HYDROGEN_ACCESSOR 2907 #undef DECLARE_HYDROGEN_ACCESSOR
2908 #undef DECLARE_CONCRETE_INSTRUCTION 2908 #undef DECLARE_CONCRETE_INSTRUCTION
2909 2909
2910 } } // namespace v8::internal 2910 } } // namespace v8::internal
2911 2911
2912 #endif // V8_A64_LITHIUM_A64_H_ 2912 #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