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

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

Issue 7849017: Mechanical refactor to move ElementsKind type out of JSObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: latest changes Created 9 years, 3 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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 inputs_[0] = external_pointer; 1151 inputs_[0] = external_pointer;
1152 inputs_[1] = key; 1152 inputs_[1] = key;
1153 } 1153 }
1154 1154
1155 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, 1155 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1156 "load-keyed-specialized-array-element") 1156 "load-keyed-specialized-array-element")
1157 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) 1157 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement)
1158 1158
1159 LOperand* external_pointer() { return inputs_[0]; } 1159 LOperand* external_pointer() { return inputs_[0]; }
1160 LOperand* key() { return inputs_[1]; } 1160 LOperand* key() { return inputs_[1]; }
1161 JSObject::ElementsKind elements_kind() const { 1161 ElementsKind elements_kind() const {
1162 return hydrogen()->elements_kind(); 1162 return hydrogen()->elements_kind();
1163 } 1163 }
1164 }; 1164 };
1165 1165
1166 1166
1167 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { 1167 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1168 public: 1168 public:
1169 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { 1169 LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1170 inputs_[0] = obj; 1170 inputs_[0] = obj;
1171 inputs_[1] = key; 1171 inputs_[1] = key;
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 inputs_[2] = val; 1655 inputs_[2] = val;
1656 } 1656 }
1657 1657
1658 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, 1658 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
1659 "store-keyed-specialized-array-element") 1659 "store-keyed-specialized-array-element")
1660 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) 1660 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
1661 1661
1662 LOperand* external_pointer() { return inputs_[0]; } 1662 LOperand* external_pointer() { return inputs_[0]; }
1663 LOperand* key() { return inputs_[1]; } 1663 LOperand* key() { return inputs_[1]; }
1664 LOperand* value() { return inputs_[2]; } 1664 LOperand* value() { return inputs_[2]; }
1665 JSObject::ElementsKind elements_kind() const { 1665 ElementsKind elements_kind() const {
1666 return hydrogen()->elements_kind(); 1666 return hydrogen()->elements_kind();
1667 } 1667 }
1668 }; 1668 };
1669 1669
1670 1670
1671 class LStringAdd: public LTemplateInstruction<1, 2, 0> { 1671 class LStringAdd: public LTemplateInstruction<1, 2, 0> {
1672 public: 1672 public:
1673 LStringAdd(LOperand* left, LOperand* right) { 1673 LStringAdd(LOperand* left, LOperand* right) {
1674 inputs_[0] = left; 1674 inputs_[0] = left;
1675 inputs_[1] = right; 1675 inputs_[1] = right;
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 2186
2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2188 }; 2188 };
2189 2189
2190 #undef DECLARE_HYDROGEN_ACCESSOR 2190 #undef DECLARE_HYDROGEN_ACCESSOR
2191 #undef DECLARE_CONCRETE_INSTRUCTION 2191 #undef DECLARE_CONCRETE_INSTRUCTION
2192 2192
2193 } } // namespace v8::internal 2193 } } // namespace v8::internal
2194 2194
2195 #endif // V8_ARM_LITHIUM_ARM_H_ 2195 #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