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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 inputs_[2] = val; 1743 inputs_[2] = val;
1744 } 1744 }
1745 1745
1746 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, 1746 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
1747 "store-keyed-specialized-array-element") 1747 "store-keyed-specialized-array-element")
1748 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) 1748 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
1749 1749
1750 LOperand* external_pointer() { return inputs_[0]; } 1750 LOperand* external_pointer() { return inputs_[0]; }
1751 LOperand* key() { return inputs_[1]; } 1751 LOperand* key() { return inputs_[1]; }
1752 LOperand* value() { return inputs_[2]; } 1752 LOperand* value() { return inputs_[2]; }
1753 ExternalArrayType array_type() const { 1753 JSObject::ElementsKind elements_kind() const {
1754 return hydrogen()->array_type(); 1754 return hydrogen()->elements_kind();
1755 } 1755 }
1756 }; 1756 };
1757 1757
1758 1758
1759 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { 1759 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> {
1760 public: 1760 public:
1761 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { 1761 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) {
1762 inputs_[0] = object; 1762 inputs_[0] = object;
1763 inputs_[1] = key; 1763 inputs_[1] = key;
1764 inputs_[2] = value; 1764 inputs_[2] = value;
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 2303
2304 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2304 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2305 }; 2305 };
2306 2306
2307 #undef DECLARE_HYDROGEN_ACCESSOR 2307 #undef DECLARE_HYDROGEN_ACCESSOR
2308 #undef DECLARE_CONCRETE_INSTRUCTION 2308 #undef DECLARE_CONCRETE_INSTRUCTION
2309 2309
2310 } } // namespace v8::int 2310 } } // namespace v8::int
2311 2311
2312 #endif // V8_X64_LITHIUM_X64_H_ 2312 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698