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

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

Issue 1254623002: Remove ExternalArray, derived types, and element kinds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 4 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
« no previous file with comments | « include/v8.h ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 LLoadKeyed(LOperand* elements, LOperand* key) { 1640 LLoadKeyed(LOperand* elements, LOperand* key) {
1641 inputs_[0] = elements; 1641 inputs_[0] = elements;
1642 inputs_[1] = key; 1642 inputs_[1] = key;
1643 } 1643 }
1644 1644
1645 LOperand* elements() { return inputs_[0]; } 1645 LOperand* elements() { return inputs_[0]; }
1646 LOperand* key() { return inputs_[1]; } 1646 LOperand* key() { return inputs_[1]; }
1647 ElementsKind elements_kind() const { 1647 ElementsKind elements_kind() const {
1648 return hydrogen()->elements_kind(); 1648 return hydrogen()->elements_kind();
1649 } 1649 }
1650 bool is_external() const {
1651 return hydrogen()->is_external();
1652 }
1653 bool is_fixed_typed_array() const { 1650 bool is_fixed_typed_array() const {
1654 return hydrogen()->is_fixed_typed_array(); 1651 return hydrogen()->is_fixed_typed_array();
1655 } 1652 }
1656 bool is_typed_elements() const {
1657 return is_external() || is_fixed_typed_array();
1658 }
1659 1653
1660 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1654 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1661 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1655 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1662 1656
1663 void PrintDataTo(StringStream* stream) override; 1657 void PrintDataTo(StringStream* stream) override;
1664 uint32_t base_offset() const { return hydrogen()->base_offset(); } 1658 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1665 }; 1659 };
1666 1660
1667 1661
1668 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> { 1662 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> {
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 2242
2249 2243
2250 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2244 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> {
2251 public: 2245 public:
2252 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2246 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2253 inputs_[0] = object; 2247 inputs_[0] = object;
2254 inputs_[1] = key; 2248 inputs_[1] = key;
2255 inputs_[2] = value; 2249 inputs_[2] = value;
2256 } 2250 }
2257 2251
2258 bool is_external() const { return hydrogen()->is_external(); }
2259 bool is_fixed_typed_array() const { 2252 bool is_fixed_typed_array() const {
2260 return hydrogen()->is_fixed_typed_array(); 2253 return hydrogen()->is_fixed_typed_array();
2261 } 2254 }
2262 bool is_typed_elements() const {
2263 return is_external() || is_fixed_typed_array();
2264 }
2265 LOperand* elements() { return inputs_[0]; } 2255 LOperand* elements() { return inputs_[0]; }
2266 LOperand* key() { return inputs_[1]; } 2256 LOperand* key() { return inputs_[1]; }
2267 LOperand* value() { return inputs_[2]; } 2257 LOperand* value() { return inputs_[2]; }
2268 ElementsKind elements_kind() const { 2258 ElementsKind elements_kind() const {
2269 return hydrogen()->elements_kind(); 2259 return hydrogen()->elements_kind();
2270 } 2260 }
2271 2261
2272 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2262 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2273 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2263 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2274 2264
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
2934 2924
2935 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2925 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2936 }; 2926 };
2937 2927
2938 #undef DECLARE_HYDROGEN_ACCESSOR 2928 #undef DECLARE_HYDROGEN_ACCESSOR
2939 #undef DECLARE_CONCRETE_INSTRUCTION 2929 #undef DECLARE_CONCRETE_INSTRUCTION
2940 2930
2941 } } // namespace v8::internal 2931 } } // namespace v8::internal
2942 2932
2943 #endif // V8_ARM_LITHIUM_ARM_H_ 2933 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698