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

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

Issue 10854053: MIPS: Refactor Math.min/max to be a single HInstruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 V(InstanceOfKnownGlobal) \ 108 V(InstanceOfKnownGlobal) \
109 V(InstructionGap) \ 109 V(InstructionGap) \
110 V(Integer32ToDouble) \ 110 V(Integer32ToDouble) \
111 V(InvokeFunction) \ 111 V(InvokeFunction) \
112 V(IsConstructCallAndBranch) \ 112 V(IsConstructCallAndBranch) \
113 V(IsNilAndBranch) \ 113 V(IsNilAndBranch) \
114 V(IsObjectAndBranch) \ 114 V(IsObjectAndBranch) \
115 V(IsStringAndBranch) \ 115 V(IsStringAndBranch) \
116 V(IsSmiAndBranch) \ 116 V(IsSmiAndBranch) \
117 V(IsUndetectableAndBranch) \ 117 V(IsUndetectableAndBranch) \
118 V(StringCompareAndBranch) \
119 V(JSArrayLength) \ 118 V(JSArrayLength) \
120 V(Label) \ 119 V(Label) \
121 V(LazyBailout) \ 120 V(LazyBailout) \
122 V(LoadContextSlot) \ 121 V(LoadContextSlot) \
123 V(LoadElements) \ 122 V(LoadElements) \
124 V(LoadExternalArrayPointer) \ 123 V(LoadExternalArrayPointer) \
125 V(LoadFunctionPrototype) \ 124 V(LoadFunctionPrototype) \
126 V(LoadGlobalCell) \ 125 V(LoadGlobalCell) \
127 V(LoadGlobalGeneric) \ 126 V(LoadGlobalGeneric) \
128 V(LoadKeyedFastDoubleElement) \ 127 V(LoadKeyedFastDoubleElement) \
129 V(LoadKeyedFastElement) \ 128 V(LoadKeyedFastElement) \
130 V(LoadKeyedGeneric) \ 129 V(LoadKeyedGeneric) \
131 V(LoadKeyedSpecializedArrayElement) \ 130 V(LoadKeyedSpecializedArrayElement) \
132 V(LoadNamedField) \ 131 V(LoadNamedField) \
133 V(LoadNamedFieldPolymorphic) \ 132 V(LoadNamedFieldPolymorphic) \
134 V(LoadNamedGeneric) \ 133 V(LoadNamedGeneric) \
134 V(MathMinMax) \
135 V(ModI) \ 135 V(ModI) \
136 V(MulI) \ 136 V(MulI) \
137 V(NumberTagD) \ 137 V(NumberTagD) \
138 V(NumberTagI) \ 138 V(NumberTagI) \
139 V(NumberUntagD) \ 139 V(NumberUntagD) \
140 V(ObjectLiteral) \ 140 V(ObjectLiteral) \
141 V(OsrEntry) \ 141 V(OsrEntry) \
142 V(OuterContext) \ 142 V(OuterContext) \
143 V(Parameter) \ 143 V(Parameter) \
144 V(Power) \ 144 V(Power) \
(...skipping 10 matching lines...) Expand all
155 V(StoreGlobalGeneric) \ 155 V(StoreGlobalGeneric) \
156 V(StoreKeyedFastDoubleElement) \ 156 V(StoreKeyedFastDoubleElement) \
157 V(StoreKeyedFastElement) \ 157 V(StoreKeyedFastElement) \
158 V(StoreKeyedGeneric) \ 158 V(StoreKeyedGeneric) \
159 V(StoreKeyedSpecializedArrayElement) \ 159 V(StoreKeyedSpecializedArrayElement) \
160 V(StoreNamedField) \ 160 V(StoreNamedField) \
161 V(StoreNamedGeneric) \ 161 V(StoreNamedGeneric) \
162 V(StringAdd) \ 162 V(StringAdd) \
163 V(StringCharCodeAt) \ 163 V(StringCharCodeAt) \
164 V(StringCharFromCode) \ 164 V(StringCharFromCode) \
165 V(StringCompareAndBranch) \
165 V(StringLength) \ 166 V(StringLength) \
166 V(SubI) \ 167 V(SubI) \
167 V(TaggedToI) \ 168 V(TaggedToI) \
168 V(ThisFunction) \ 169 V(ThisFunction) \
169 V(Throw) \ 170 V(Throw) \
170 V(ToFastProperties) \ 171 V(ToFastProperties) \
171 V(TransitionElementsKind) \ 172 V(TransitionElementsKind) \
172 V(Typeof) \ 173 V(Typeof) \
173 V(TypeofIsAndBranch) \ 174 V(TypeofIsAndBranch) \
174 V(UnaryMathOperation) \ 175 V(UnaryMathOperation) \
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 LAddI(LOperand* left, LOperand* right) { 1043 LAddI(LOperand* left, LOperand* right) {
1043 inputs_[0] = left; 1044 inputs_[0] = left;
1044 inputs_[1] = right; 1045 inputs_[1] = right;
1045 } 1046 }
1046 1047
1047 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i") 1048 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
1048 DECLARE_HYDROGEN_ACCESSOR(Add) 1049 DECLARE_HYDROGEN_ACCESSOR(Add)
1049 }; 1050 };
1050 1051
1051 1052
1053 class LMathMinMax: public LTemplateInstruction<1, 2, 0> {
1054 public:
1055 LMathMinMax(LOperand* left, LOperand* right) {
1056 inputs_[0] = left;
1057 inputs_[1] = right;
1058 }
1059
1060 DECLARE_CONCRETE_INSTRUCTION(MathMinMax, "min-max")
1061 DECLARE_HYDROGEN_ACCESSOR(MathMinMax)
1062 };
1063
1064
1052 class LPower: public LTemplateInstruction<1, 2, 0> { 1065 class LPower: public LTemplateInstruction<1, 2, 0> {
1053 public: 1066 public:
1054 LPower(LOperand* left, LOperand* right) { 1067 LPower(LOperand* left, LOperand* right) {
1055 inputs_[0] = left; 1068 inputs_[0] = left;
1056 inputs_[1] = right; 1069 inputs_[1] = right;
1057 } 1070 }
1058 1071
1059 DECLARE_CONCRETE_INSTRUCTION(Power, "power") 1072 DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1060 DECLARE_HYDROGEN_ACCESSOR(Power) 1073 DECLARE_HYDROGEN_ACCESSOR(Power)
1061 }; 1074 };
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 2364
2352 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2365 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2353 }; 2366 };
2354 2367
2355 #undef DECLARE_HYDROGEN_ACCESSOR 2368 #undef DECLARE_HYDROGEN_ACCESSOR
2356 #undef DECLARE_CONCRETE_INSTRUCTION 2369 #undef DECLARE_CONCRETE_INSTRUCTION
2357 2370
2358 } } // namespace v8::internal 2371 } } // namespace v8::internal
2359 2372
2360 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2373 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698