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

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

Issue 10829169: Refactor Math.min/max to be a single HInstruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback; removed VORR instruction 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
« no previous file with comments | « no previous file | src/arm/lithium-arm.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 // 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) \
135 V(MathFloorOfDiv) \ 134 V(MathFloorOfDiv) \
135 V(MathMinMax) \
136 V(ModI) \ 136 V(ModI) \
137 V(MulI) \ 137 V(MulI) \
138 V(NumberTagD) \ 138 V(NumberTagD) \
139 V(NumberTagI) \ 139 V(NumberTagI) \
140 V(NumberUntagD) \ 140 V(NumberUntagD) \
141 V(ObjectLiteral) \ 141 V(ObjectLiteral) \
142 V(OsrEntry) \ 142 V(OsrEntry) \
143 V(OuterContext) \ 143 V(OuterContext) \
144 V(Parameter) \ 144 V(Parameter) \
145 V(Power) \ 145 V(Power) \
(...skipping 10 matching lines...) Expand all
156 V(StoreGlobalGeneric) \ 156 V(StoreGlobalGeneric) \
157 V(StoreKeyedFastDoubleElement) \ 157 V(StoreKeyedFastDoubleElement) \
158 V(StoreKeyedFastElement) \ 158 V(StoreKeyedFastElement) \
159 V(StoreKeyedGeneric) \ 159 V(StoreKeyedGeneric) \
160 V(StoreKeyedSpecializedArrayElement) \ 160 V(StoreKeyedSpecializedArrayElement) \
161 V(StoreNamedField) \ 161 V(StoreNamedField) \
162 V(StoreNamedGeneric) \ 162 V(StoreNamedGeneric) \
163 V(StringAdd) \ 163 V(StringAdd) \
164 V(StringCharCodeAt) \ 164 V(StringCharCodeAt) \
165 V(StringCharFromCode) \ 165 V(StringCharFromCode) \
166 V(StringCompareAndBranch) \
166 V(StringLength) \ 167 V(StringLength) \
167 V(SubI) \ 168 V(SubI) \
168 V(TaggedToI) \ 169 V(TaggedToI) \
169 V(ThisFunction) \ 170 V(ThisFunction) \
170 V(Throw) \ 171 V(Throw) \
171 V(ToFastProperties) \ 172 V(ToFastProperties) \
172 V(TransitionElementsKind) \ 173 V(TransitionElementsKind) \
173 V(Typeof) \ 174 V(Typeof) \
174 V(TypeofIsAndBranch) \ 175 V(TypeofIsAndBranch) \
175 V(UnaryMathOperation) \ 176 V(UnaryMathOperation) \
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 LAddI(LOperand* left, LOperand* right) { 1078 LAddI(LOperand* left, LOperand* right) {
1078 inputs_[0] = left; 1079 inputs_[0] = left;
1079 inputs_[1] = right; 1080 inputs_[1] = right;
1080 } 1081 }
1081 1082
1082 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i") 1083 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
1083 DECLARE_HYDROGEN_ACCESSOR(Add) 1084 DECLARE_HYDROGEN_ACCESSOR(Add)
1084 }; 1085 };
1085 1086
1086 1087
1088 class LMathMinMax: public LTemplateInstruction<1, 2, 0> {
1089 public:
1090 LMathMinMax(LOperand* left, LOperand* right) {
1091 inputs_[0] = left;
1092 inputs_[1] = right;
1093 }
1094
1095 DECLARE_CONCRETE_INSTRUCTION(MathMinMax, "min-max")
1096 DECLARE_HYDROGEN_ACCESSOR(MathMinMax)
1097 };
1098
1099
1087 class LPower: public LTemplateInstruction<1, 2, 0> { 1100 class LPower: public LTemplateInstruction<1, 2, 0> {
1088 public: 1101 public:
1089 LPower(LOperand* left, LOperand* right) { 1102 LPower(LOperand* left, LOperand* right) {
1090 inputs_[0] = left; 1103 inputs_[0] = left;
1091 inputs_[1] = right; 1104 inputs_[1] = right;
1092 } 1105 }
1093 1106
1094 DECLARE_CONCRETE_INSTRUCTION(Power, "power") 1107 DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1095 DECLARE_HYDROGEN_ACCESSOR(Power) 1108 DECLARE_HYDROGEN_ACCESSOR(Power)
1096 }; 1109 };
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2388 2401
2389 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2402 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2390 }; 2403 };
2391 2404
2392 #undef DECLARE_HYDROGEN_ACCESSOR 2405 #undef DECLARE_HYDROGEN_ACCESSOR
2393 #undef DECLARE_CONCRETE_INSTRUCTION 2406 #undef DECLARE_CONCRETE_INSTRUCTION
2394 2407
2395 } } // namespace v8::internal 2408 } } // namespace v8::internal
2396 2409
2397 #endif // V8_ARM_LITHIUM_ARM_H_ 2410 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698