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

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

Issue 7112010: Plumbing changes to merge various element kind implementaions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 6 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 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 inputs_[0] = external_pointer; 1311 inputs_[0] = external_pointer;
1312 inputs_[1] = key; 1312 inputs_[1] = key;
1313 } 1313 }
1314 1314
1315 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, 1315 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1316 "load-keyed-specialized-array-element") 1316 "load-keyed-specialized-array-element")
1317 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) 1317 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement)
1318 1318
1319 LOperand* external_pointer() { return inputs_[0]; } 1319 LOperand* external_pointer() { return inputs_[0]; }
1320 LOperand* key() { return inputs_[1]; } 1320 LOperand* key() { return inputs_[1]; }
1321 ExternalArrayType array_type() const { 1321 JSObject::ElementsKind elements_kind() const {
1322 return hydrogen()->array_type(); 1322 return hydrogen()->elements_kind();
1323 } 1323 }
1324 }; 1324 };
1325 1325
1326 1326
1327 class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> { 1327 class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> {
1328 public: 1328 public:
1329 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { 1329 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) {
1330 inputs_[0] = context; 1330 inputs_[0] = context;
1331 inputs_[1] = obj; 1331 inputs_[1] = obj;
1332 inputs_[2] = key; 1332 inputs_[2] = key;
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 inputs_[2] = val; 1799 inputs_[2] = val;
1800 } 1800 }
1801 1801
1802 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, 1802 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
1803 "store-keyed-specialized-array-element") 1803 "store-keyed-specialized-array-element")
1804 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) 1804 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
1805 1805
1806 LOperand* external_pointer() { return inputs_[0]; } 1806 LOperand* external_pointer() { return inputs_[0]; }
1807 LOperand* key() { return inputs_[1]; } 1807 LOperand* key() { return inputs_[1]; }
1808 LOperand* value() { return inputs_[2]; } 1808 LOperand* value() { return inputs_[2]; }
1809 ExternalArrayType array_type() const { 1809 JSObject::ElementsKind elements_kind() const {
1810 return hydrogen()->array_type(); 1810 return hydrogen()->elements_kind();
1811 } 1811 }
1812 }; 1812 };
1813 1813
1814 1814
1815 class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> { 1815 class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> {
1816 public: 1816 public:
1817 LStoreKeyedGeneric(LOperand* context, 1817 LStoreKeyedGeneric(LOperand* context,
1818 LOperand* object, 1818 LOperand* object,
1819 LOperand* key, 1819 LOperand* key,
1820 LOperand* value) { 1820 LOperand* value) {
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2363 2363
2364 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2364 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2365 }; 2365 };
2366 2366
2367 #undef DECLARE_HYDROGEN_ACCESSOR 2367 #undef DECLARE_HYDROGEN_ACCESSOR
2368 #undef DECLARE_CONCRETE_INSTRUCTION 2368 #undef DECLARE_CONCRETE_INSTRUCTION
2369 2369
2370 } } // namespace v8::internal 2370 } } // namespace v8::internal
2371 2371
2372 #endif // V8_IA32_LITHIUM_IA32_H_ 2372 #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