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

Side by Side Diff: src/arm/lithium-arm.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 | « 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 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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 inputs_[0] = external_pointer; 1290 inputs_[0] = external_pointer;
1291 inputs_[1] = key; 1291 inputs_[1] = key;
1292 } 1292 }
1293 1293
1294 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, 1294 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1295 "load-keyed-specialized-array-element") 1295 "load-keyed-specialized-array-element")
1296 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) 1296 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement)
1297 1297
1298 LOperand* external_pointer() { return inputs_[0]; } 1298 LOperand* external_pointer() { return inputs_[0]; }
1299 LOperand* key() { return inputs_[1]; } 1299 LOperand* key() { return inputs_[1]; }
1300 ExternalArrayType array_type() const { 1300 JSObject::ElementsKind elements_kind() const {
1301 return hydrogen()->array_type(); 1301 return hydrogen()->elements_kind();
1302 } 1302 }
1303 }; 1303 };
1304 1304
1305 1305
1306 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { 1306 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1307 public: 1307 public:
1308 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { 1308 LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1309 inputs_[0] = obj; 1309 inputs_[0] = obj;
1310 inputs_[1] = key; 1310 inputs_[1] = key;
1311 } 1311 }
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 inputs_[2] = val; 1771 inputs_[2] = val;
1772 } 1772 }
1773 1773
1774 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, 1774 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
1775 "store-keyed-specialized-array-element") 1775 "store-keyed-specialized-array-element")
1776 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) 1776 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
1777 1777
1778 LOperand* external_pointer() { return inputs_[0]; } 1778 LOperand* external_pointer() { return inputs_[0]; }
1779 LOperand* key() { return inputs_[1]; } 1779 LOperand* key() { return inputs_[1]; }
1780 LOperand* value() { return inputs_[2]; } 1780 LOperand* value() { return inputs_[2]; }
1781 ExternalArrayType array_type() const { 1781 JSObject::ElementsKind elements_kind() const {
1782 return hydrogen()->array_type(); 1782 return hydrogen()->elements_kind();
1783 } 1783 }
1784 }; 1784 };
1785 1785
1786 1786
1787 class LStringAdd: public LTemplateInstruction<1, 2, 0> { 1787 class LStringAdd: public LTemplateInstruction<1, 2, 0> {
1788 public: 1788 public:
1789 LStringAdd(LOperand* left, LOperand* right) { 1789 LStringAdd(LOperand* left, LOperand* right) {
1790 inputs_[0] = left; 1790 inputs_[0] = left;
1791 inputs_[1] = right; 1791 inputs_[1] = right;
1792 } 1792 }
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
2318 2318
2319 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2319 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2320 }; 2320 };
2321 2321
2322 #undef DECLARE_HYDROGEN_ACCESSOR 2322 #undef DECLARE_HYDROGEN_ACCESSOR
2323 #undef DECLARE_CONCRETE_INSTRUCTION 2323 #undef DECLARE_CONCRETE_INSTRUCTION
2324 2324
2325 } } // namespace v8::internal 2325 } } // namespace v8::internal
2326 2326
2327 #endif // V8_ARM_LITHIUM_ARM_H_ 2327 #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