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

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

Issue 1262583002: Reland of "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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
2246 2240
2247 2241
2248 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2242 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> {
2249 public: 2243 public:
2250 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2244 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2251 inputs_[0] = object; 2245 inputs_[0] = object;
2252 inputs_[1] = key; 2246 inputs_[1] = key;
2253 inputs_[2] = value; 2247 inputs_[2] = value;
2254 } 2248 }
2255 2249
2256 bool is_external() const { return hydrogen()->is_external(); }
2257 bool is_fixed_typed_array() const { 2250 bool is_fixed_typed_array() const {
2258 return hydrogen()->is_fixed_typed_array(); 2251 return hydrogen()->is_fixed_typed_array();
2259 } 2252 }
2260 bool is_typed_elements() const {
2261 return is_external() || is_fixed_typed_array();
2262 }
2263 LOperand* elements() { return inputs_[0]; } 2253 LOperand* elements() { return inputs_[0]; }
2264 LOperand* key() { return inputs_[1]; } 2254 LOperand* key() { return inputs_[1]; }
2265 LOperand* value() { return inputs_[2]; } 2255 LOperand* value() { return inputs_[2]; }
2266 ElementsKind elements_kind() const { 2256 ElementsKind elements_kind() const {
2267 return hydrogen()->elements_kind(); 2257 return hydrogen()->elements_kind();
2268 } 2258 }
2269 2259
2270 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2260 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2271 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2261 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2272 2262
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
2932 2922
2933 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2923 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2934 }; 2924 };
2935 2925
2936 #undef DECLARE_HYDROGEN_ACCESSOR 2926 #undef DECLARE_HYDROGEN_ACCESSOR
2937 #undef DECLARE_CONCRETE_INSTRUCTION 2927 #undef DECLARE_CONCRETE_INSTRUCTION
2938 2928
2939 } } // namespace v8::internal 2929 } } // namespace v8::internal
2940 2930
2941 #endif // V8_ARM_LITHIUM_ARM_H_ 2931 #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