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

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

Issue 6693066: Extend crankshaft support for global stores (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments 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-codegen-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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 V(Parameter) \ 140 V(Parameter) \
141 V(Power) \ 141 V(Power) \
142 V(PushArgument) \ 142 V(PushArgument) \
143 V(RegExpLiteral) \ 143 V(RegExpLiteral) \
144 V(Return) \ 144 V(Return) \
145 V(ShiftI) \ 145 V(ShiftI) \
146 V(SmiTag) \ 146 V(SmiTag) \
147 V(SmiUntag) \ 147 V(SmiUntag) \
148 V(StackCheck) \ 148 V(StackCheck) \
149 V(StoreContextSlot) \ 149 V(StoreContextSlot) \
150 V(StoreGlobal) \ 150 V(StoreGlobalCell) \
151 V(StoreGlobalGeneric) \
151 V(StoreKeyedFastElement) \ 152 V(StoreKeyedFastElement) \
152 V(StoreKeyedGeneric) \ 153 V(StoreKeyedGeneric) \
153 V(StoreKeyedSpecializedArrayElement) \ 154 V(StoreKeyedSpecializedArrayElement) \
154 V(StoreNamedField) \ 155 V(StoreNamedField) \
155 V(StoreNamedGeneric) \ 156 V(StoreNamedGeneric) \
156 V(StringCharCodeAt) \ 157 V(StringCharCodeAt) \
157 V(StringCharFromCode) \ 158 V(StringCharFromCode) \
158 V(StringLength) \ 159 V(StringLength) \
159 V(SubI) \ 160 V(SubI) \
160 V(TaggedToI) \ 161 V(TaggedToI) \
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") 1311 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1311 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) 1312 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1312 1313
1313 LOperand* context() { return inputs_[0]; } 1314 LOperand* context() { return inputs_[0]; }
1314 LOperand* global_object() { return inputs_[1]; } 1315 LOperand* global_object() { return inputs_[1]; }
1315 Handle<Object> name() const { return hydrogen()->name(); } 1316 Handle<Object> name() const { return hydrogen()->name(); }
1316 bool for_typeof() const { return hydrogen()->for_typeof(); } 1317 bool for_typeof() const { return hydrogen()->for_typeof(); }
1317 }; 1318 };
1318 1319
1319 1320
1320 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { 1321 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 0> {
1321 public: 1322 public:
1322 explicit LStoreGlobal(LOperand* value) { 1323 explicit LStoreGlobalCell(LOperand* value) {
1323 inputs_[0] = value; 1324 inputs_[0] = value;
1324 } 1325 }
1325 1326
1326 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1327 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
1327 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) 1328 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
1328 }; 1329 };
1329 1330
1330 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
1331 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { 1352 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1332 public: 1353 public:
1333 explicit LLoadContextSlot(LOperand* context) { 1354 explicit LLoadContextSlot(LOperand* context) {
1334 inputs_[0] = context; 1355 inputs_[0] = context;
1335 } 1356 }
1336 1357
1337 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1358 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1338 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1359 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1339 1360
1340 LOperand* context() { return InputAt(0); } 1361 LOperand* context() { return InputAt(0); }
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2226 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2206 }; 2227 };
2207 2228
2208 #undef DECLARE_HYDROGEN_ACCESSOR 2229 #undef DECLARE_HYDROGEN_ACCESSOR
2209 #undef DECLARE_INSTRUCTION 2230 #undef DECLARE_INSTRUCTION
2210 #undef DECLARE_CONCRETE_INSTRUCTION 2231 #undef DECLARE_CONCRETE_INSTRUCTION
2211 2232
2212 } } // namespace v8::internal 2233 } } // namespace v8::internal
2213 2234
2214 #endif // V8_IA32_LITHIUM_IA32_H_ 2235 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698