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

Side by Side Diff: src/crankshaft/s390/lithium-s390.h

Issue 2358533002: [crankshaft] Remove HStoreNamedGeneric and use HCallWithDescriptor instead to call StoreIC. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/s390/lithium-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_CRANKSHAFT_S390_LITHIUM_S390_H_ 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_
6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 V(SeqStringSetChar) \ 127 V(SeqStringSetChar) \
128 V(ShiftI) \ 128 V(ShiftI) \
129 V(SmiTag) \ 129 V(SmiTag) \
130 V(SmiUntag) \ 130 V(SmiUntag) \
131 V(StackCheck) \ 131 V(StackCheck) \
132 V(StoreCodeEntry) \ 132 V(StoreCodeEntry) \
133 V(StoreContextSlot) \ 133 V(StoreContextSlot) \
134 V(StoreKeyed) \ 134 V(StoreKeyed) \
135 V(StoreKeyedGeneric) \ 135 V(StoreKeyedGeneric) \
136 V(StoreNamedField) \ 136 V(StoreNamedField) \
137 V(StoreNamedGeneric) \
138 V(StringAdd) \ 137 V(StringAdd) \
139 V(StringCharCodeAt) \ 138 V(StringCharCodeAt) \
140 V(StringCharFromCode) \ 139 V(StringCharFromCode) \
141 V(StringCompareAndBranch) \ 140 V(StringCompareAndBranch) \
142 V(SubI) \ 141 V(SubI) \
143 V(RSubI) \ 142 V(RSubI) \
144 V(TaggedToI) \ 143 V(TaggedToI) \
145 V(ThisFunction) \ 144 V(ThisFunction) \
146 V(TransitionElementsKind) \ 145 V(TransitionElementsKind) \
147 V(TrapAllocationMemento) \ 146 V(TrapAllocationMemento) \
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1815 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 1814 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
1816 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 1815 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
1817 1816
1818 void PrintDataTo(StringStream* stream) override; 1817 void PrintDataTo(StringStream* stream) override;
1819 1818
1820 Representation representation() const { 1819 Representation representation() const {
1821 return hydrogen()->field_representation(); 1820 return hydrogen()->field_representation();
1822 } 1821 }
1823 }; 1822 };
1824 1823
1825 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> {
1826 public:
1827 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value,
1828 LOperand* slot, LOperand* vector) {
1829 inputs_[0] = context;
1830 inputs_[1] = object;
1831 inputs_[2] = value;
1832 temps_[0] = slot;
1833 temps_[1] = vector;
1834 }
1835
1836 LOperand* context() { return inputs_[0]; }
1837 LOperand* object() { return inputs_[1]; }
1838 LOperand* value() { return inputs_[2]; }
1839 LOperand* temp_slot() { return temps_[0]; }
1840 LOperand* temp_vector() { return temps_[1]; }
1841
1842 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
1843 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
1844
1845 void PrintDataTo(StringStream* stream) override;
1846
1847 Handle<Object> name() const { return hydrogen()->name(); }
1848 LanguageMode language_mode() { return hydrogen()->language_mode(); }
1849 };
1850
1851 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { 1824 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> {
1852 public: 1825 public:
1853 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, 1826 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value,
1854 LOperand* backing_store_owner) { 1827 LOperand* backing_store_owner) {
1855 inputs_[0] = object; 1828 inputs_[0] = object;
1856 inputs_[1] = key; 1829 inputs_[1] = key;
1857 inputs_[2] = value; 1830 inputs_[2] = value;
1858 inputs_[3] = backing_store_owner; 1831 inputs_[3] = backing_store_owner;
1859 } 1832 }
1860 1833
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 2365
2393 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2366 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2394 }; 2367 };
2395 2368
2396 #undef DECLARE_HYDROGEN_ACCESSOR 2369 #undef DECLARE_HYDROGEN_ACCESSOR
2397 #undef DECLARE_CONCRETE_INSTRUCTION 2370 #undef DECLARE_CONCRETE_INSTRUCTION
2398 } // namespace internal 2371 } // namespace internal
2399 } // namespace v8 2372 } // namespace v8
2400 2373
2401 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 2374 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/s390/lithium-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698