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

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

Issue 1257223002: Revert of Remove ExternalArray, derived types, and element kinds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 }
1650 bool is_fixed_typed_array() const { 1653 bool is_fixed_typed_array() const {
1651 return hydrogen()->is_fixed_typed_array(); 1654 return hydrogen()->is_fixed_typed_array();
1652 } 1655 }
1656 bool is_typed_elements() const {
1657 return is_external() || is_fixed_typed_array();
1658 }
1653 1659
1654 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1660 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1655 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1661 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1656 1662
1657 void PrintDataTo(StringStream* stream) override; 1663 void PrintDataTo(StringStream* stream) override;
1658 uint32_t base_offset() const { return hydrogen()->base_offset(); } 1664 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1659 }; 1665 };
1660 1666
1661 1667
1662 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> { 1668 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> {
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 2248
2243 2249
2244 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2250 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> {
2245 public: 2251 public:
2246 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2252 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2247 inputs_[0] = object; 2253 inputs_[0] = object;
2248 inputs_[1] = key; 2254 inputs_[1] = key;
2249 inputs_[2] = value; 2255 inputs_[2] = value;
2250 } 2256 }
2251 2257
2258 bool is_external() const { return hydrogen()->is_external(); }
2252 bool is_fixed_typed_array() const { 2259 bool is_fixed_typed_array() const {
2253 return hydrogen()->is_fixed_typed_array(); 2260 return hydrogen()->is_fixed_typed_array();
2254 } 2261 }
2262 bool is_typed_elements() const {
2263 return is_external() || is_fixed_typed_array();
2264 }
2255 LOperand* elements() { return inputs_[0]; } 2265 LOperand* elements() { return inputs_[0]; }
2256 LOperand* key() { return inputs_[1]; } 2266 LOperand* key() { return inputs_[1]; }
2257 LOperand* value() { return inputs_[2]; } 2267 LOperand* value() { return inputs_[2]; }
2258 ElementsKind elements_kind() const { 2268 ElementsKind elements_kind() const {
2259 return hydrogen()->elements_kind(); 2269 return hydrogen()->elements_kind();
2260 } 2270 }
2261 2271
2262 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2272 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2263 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2273 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2264 2274
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
2924 2934
2925 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2935 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2926 }; 2936 };
2927 2937
2928 #undef DECLARE_HYDROGEN_ACCESSOR 2938 #undef DECLARE_HYDROGEN_ACCESSOR
2929 #undef DECLARE_CONCRETE_INSTRUCTION 2939 #undef DECLARE_CONCRETE_INSTRUCTION
2930 2940
2931 } } // namespace v8::internal 2941 } } // namespace v8::internal
2932 2942
2933 #endif // V8_ARM_LITHIUM_ARM_H_ 2943 #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