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

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

Issue 6691054: [Arguments] Merge (7442,7496] from bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 8 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 | « src/ia32/lithium-gap-resolver-ia32.cc ('k') | src/ia32/lithium-ia32.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 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 V(IsSmiAndBranch) \ 114 V(IsSmiAndBranch) \
115 V(IsConstructCall) \ 115 V(IsConstructCall) \
116 V(IsConstructCallAndBranch) \ 116 V(IsConstructCallAndBranch) \
117 V(JSArrayLength) \ 117 V(JSArrayLength) \
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(LoadGlobalCell) \
125 V(LoadGlobalGeneric) \
125 V(LoadKeyedFastElement) \ 126 V(LoadKeyedFastElement) \
126 V(LoadKeyedGeneric) \ 127 V(LoadKeyedGeneric) \
127 V(LoadKeyedSpecializedArrayElement) \ 128 V(LoadKeyedSpecializedArrayElement) \
128 V(LoadNamedField) \ 129 V(LoadNamedField) \
129 V(LoadNamedFieldPolymorphic) \ 130 V(LoadNamedFieldPolymorphic) \
130 V(LoadNamedGeneric) \ 131 V(LoadNamedGeneric) \
131 V(ModI) \ 132 V(ModI) \
132 V(MulI) \ 133 V(MulI) \
133 V(NumberTagD) \ 134 V(NumberTagD) \
134 V(NumberTagI) \ 135 V(NumberTagI) \
135 V(NumberUntagD) \ 136 V(NumberUntagD) \
136 V(ObjectLiteral) \ 137 V(ObjectLiteral) \
137 V(OsrEntry) \ 138 V(OsrEntry) \
138 V(OuterContext) \ 139 V(OuterContext) \
139 V(Parameter) \ 140 V(Parameter) \
140 V(Power) \ 141 V(Power) \
141 V(PushArgument) \ 142 V(PushArgument) \
142 V(RegExpLiteral) \ 143 V(RegExpLiteral) \
143 V(Return) \ 144 V(Return) \
144 V(ShiftI) \ 145 V(ShiftI) \
145 V(SmiTag) \ 146 V(SmiTag) \
146 V(SmiUntag) \ 147 V(SmiUntag) \
147 V(StackCheck) \ 148 V(StackCheck) \
148 V(StoreContextSlot) \ 149 V(StoreContextSlot) \
149 V(StoreGlobal) \ 150 V(StoreGlobalCell) \
151 V(StoreGlobalGeneric) \
150 V(StoreKeyedFastElement) \ 152 V(StoreKeyedFastElement) \
151 V(StoreKeyedGeneric) \ 153 V(StoreKeyedGeneric) \
152 V(StoreKeyedSpecializedArrayElement) \ 154 V(StoreKeyedSpecializedArrayElement) \
153 V(StoreNamedField) \ 155 V(StoreNamedField) \
154 V(StoreNamedGeneric) \ 156 V(StoreNamedGeneric) \
155 V(StringCharCodeAt) \ 157 V(StringCharCodeAt) \
156 V(StringCharFromCode) \ 158 V(StringCharFromCode) \
157 V(StringLength) \ 159 V(StringLength) \
158 V(SubI) \ 160 V(SubI) \
159 V(TaggedToI) \ 161 V(TaggedToI) \
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 } 1287 }
1286 1288
1287 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1289 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1288 1290
1289 LOperand* context() { return inputs_[0]; } 1291 LOperand* context() { return inputs_[0]; }
1290 LOperand* object() { return inputs_[1]; } 1292 LOperand* object() { return inputs_[1]; }
1291 LOperand* key() { return inputs_[2]; } 1293 LOperand* key() { return inputs_[2]; }
1292 }; 1294 };
1293 1295
1294 1296
1295 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { 1297 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
1296 public: 1298 public:
1297 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") 1299 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
1298 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) 1300 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
1299 }; 1301 };
1300 1302
1301 1303
1302 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { 1304 class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> {
1303 public: 1305 public:
1304 explicit LStoreGlobal(LOperand* value) { 1306 LLoadGlobalGeneric(LOperand* context, LOperand* global_object) {
1307 inputs_[0] = context;
1308 inputs_[1] = global_object;
1309 }
1310
1311 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1312 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1313
1314 LOperand* context() { return inputs_[0]; }
1315 LOperand* global_object() { return inputs_[1]; }
1316 Handle<Object> name() const { return hydrogen()->name(); }
1317 bool for_typeof() const { return hydrogen()->for_typeof(); }
1318 };
1319
1320
1321 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 0> {
1322 public:
1323 explicit LStoreGlobalCell(LOperand* value) {
1305 inputs_[0] = value; 1324 inputs_[0] = value;
1306 } 1325 }
1307 1326
1308 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1327 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
1309 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) 1328 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
1310 }; 1329 };
1311 1330
1312 1331
1332 class LStoreGlobalGeneric: public LTemplateInstruction<0, 3, 0> {
1333 public:
1334 explicit LStoreGlobalGeneric(LOperand* context,
1335 LOperand* global_object,
1336 LOperand* value) {
1337 inputs_[0] = context;
1338 inputs_[1] = global_object;
1339 inputs_[2] = value;
1340 }
1341
1342 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
1343 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
1344
1345 LOperand* context() { return InputAt(0); }
1346 LOperand* global_object() { return InputAt(1); }
1347 Handle<Object> name() const { return hydrogen()->name(); }
1348 LOperand* value() { return InputAt(2); }
1349 };
1350
1351
1313 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { 1352 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1314 public: 1353 public:
1315 explicit LLoadContextSlot(LOperand* context) { 1354 explicit LLoadContextSlot(LOperand* context) {
1316 inputs_[0] = context; 1355 inputs_[0] = context;
1317 } 1356 }
1318 1357
1319 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1358 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1320 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1359 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1321 1360
1322 LOperand* context() { return InputAt(0); } 1361 LOperand* context() { return InputAt(0); }
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2226 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2188 }; 2227 };
2189 2228
2190 #undef DECLARE_HYDROGEN_ACCESSOR 2229 #undef DECLARE_HYDROGEN_ACCESSOR
2191 #undef DECLARE_INSTRUCTION 2230 #undef DECLARE_INSTRUCTION
2192 #undef DECLARE_CONCRETE_INSTRUCTION 2231 #undef DECLARE_CONCRETE_INSTRUCTION
2193 2232
2194 } } // namespace v8::internal 2233 } } // namespace v8::internal
2195 2234
2196 #endif // V8_IA32_LITHIUM_IA32_H_ 2235 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-gap-resolver-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698