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

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

Issue 6708085: Enable GVN for polymorphic loads by not expanding them at the HIR level. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 V(Label) \ 118 V(Label) \
119 V(LazyBailout) \ 119 V(LazyBailout) \
120 V(LoadContextSlot) \ 120 V(LoadContextSlot) \
121 V(LoadElements) \ 121 V(LoadElements) \
122 V(LoadExternalArrayPointer) \ 122 V(LoadExternalArrayPointer) \
123 V(LoadFunctionPrototype) \ 123 V(LoadFunctionPrototype) \
124 V(LoadGlobal) \ 124 V(LoadGlobal) \
125 V(LoadKeyedFastElement) \ 125 V(LoadKeyedFastElement) \
126 V(LoadKeyedGeneric) \ 126 V(LoadKeyedGeneric) \
127 V(LoadNamedField) \ 127 V(LoadNamedField) \
128 V(LoadNamedFieldPolymorphic) \
128 V(LoadNamedGeneric) \ 129 V(LoadNamedGeneric) \
129 V(LoadPixelArrayElement) \ 130 V(LoadPixelArrayElement) \
130 V(ModI) \ 131 V(ModI) \
131 V(MulI) \ 132 V(MulI) \
132 V(NumberTagD) \ 133 V(NumberTagD) \
133 V(NumberTagI) \ 134 V(NumberTagI) \
134 V(NumberUntagD) \ 135 V(NumberUntagD) \
135 V(ObjectLiteral) \ 136 V(ObjectLiteral) \
136 V(OsrEntry) \ 137 V(OsrEntry) \
137 V(OuterContext) \ 138 V(OuterContext) \
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 1165
1165 1166
1166 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { 1167 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
1167 public: 1168 public:
1168 explicit LLoadNamedField(LOperand* object) { 1169 explicit LLoadNamedField(LOperand* object) {
1169 inputs_[0] = object; 1170 inputs_[0] = object;
1170 } 1171 }
1171 1172
1172 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1173 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1173 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1174 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1175
1176 LOperand* object() { return inputs_[0]; }
1177 };
1178
1179
1180 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> {
1181 public:
1182 explicit LLoadNamedFieldPolymorphic(LOperand* object) {
1183 inputs_[0] = object;
1184 }
1185
1186 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic")
1187 DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic)
1188
1189 LOperand* object() { return inputs_[0]; }
1174 }; 1190 };
1175 1191
1176 1192
1177 class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> { 1193 class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> {
1178 public: 1194 public:
1179 LLoadNamedGeneric(LOperand* context, LOperand* object) { 1195 LLoadNamedGeneric(LOperand* context, LOperand* object) {
1180 inputs_[0] = context; 1196 inputs_[0] = context;
1181 inputs_[1] = object; 1197 inputs_[1] = object;
1182 } 1198 }
1183 1199
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2180 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2165 }; 2181 };
2166 2182
2167 #undef DECLARE_HYDROGEN_ACCESSOR 2183 #undef DECLARE_HYDROGEN_ACCESSOR
2168 #undef DECLARE_INSTRUCTION 2184 #undef DECLARE_INSTRUCTION
2169 #undef DECLARE_CONCRETE_INSTRUCTION 2185 #undef DECLARE_CONCRETE_INSTRUCTION
2170 2186
2171 } } // namespace v8::internal 2187 } } // namespace v8::internal
2172 2188
2173 #endif // V8_IA32_LITHIUM_IA32_H_ 2189 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698