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

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

Issue 2350423002: [crankshaft] Remove HStoreKeyedGeneric and use HCallWithDescriptor instead to call KeyedStoreIC. (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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 V(Return) \ 125 V(Return) \
126 V(SeqStringGetChar) \ 126 V(SeqStringGetChar) \
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) \
136 V(StoreNamedField) \ 135 V(StoreNamedField) \
137 V(StringAdd) \ 136 V(StringAdd) \
138 V(StringCharCodeAt) \ 137 V(StringCharCodeAt) \
139 V(StringCharFromCode) \ 138 V(StringCharFromCode) \
140 V(StringCompareAndBranch) \ 139 V(StringCompareAndBranch) \
141 V(SubI) \ 140 V(SubI) \
142 V(RSubI) \ 141 V(RSubI) \
143 V(TaggedToI) \ 142 V(TaggedToI) \
144 V(ThisFunction) \ 143 V(ThisFunction) \
145 V(TransitionElementsKind) \ 144 V(TransitionElementsKind) \
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 bool NeedsCanonicalization() { 1846 bool NeedsCanonicalization() {
1848 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || 1847 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() ||
1849 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { 1848 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) {
1850 return false; 1849 return false;
1851 } 1850 }
1852 return hydrogen()->NeedsCanonicalization(); 1851 return hydrogen()->NeedsCanonicalization();
1853 } 1852 }
1854 uint32_t base_offset() const { return hydrogen()->base_offset(); } 1853 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1855 }; 1854 };
1856 1855
1857 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> {
1858 public:
1859 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key,
1860 LOperand* value, LOperand* slot, LOperand* vector) {
1861 inputs_[0] = context;
1862 inputs_[1] = object;
1863 inputs_[2] = key;
1864 inputs_[3] = value;
1865 temps_[0] = slot;
1866 temps_[1] = vector;
1867 }
1868
1869 LOperand* context() { return inputs_[0]; }
1870 LOperand* object() { return inputs_[1]; }
1871 LOperand* key() { return inputs_[2]; }
1872 LOperand* value() { return inputs_[3]; }
1873 LOperand* temp_slot() { return temps_[0]; }
1874 LOperand* temp_vector() { return temps_[1]; }
1875
1876 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1877 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
1878
1879 void PrintDataTo(StringStream* stream) override;
1880
1881 LanguageMode language_mode() { return hydrogen()->language_mode(); }
1882 };
1883
1884 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { 1856 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> {
1885 public: 1857 public:
1886 LTransitionElementsKind(LOperand* object, LOperand* context, 1858 LTransitionElementsKind(LOperand* object, LOperand* context,
1887 LOperand* new_map_temp) { 1859 LOperand* new_map_temp) {
1888 inputs_[0] = object; 1860 inputs_[0] = object;
1889 inputs_[1] = context; 1861 inputs_[1] = context;
1890 temps_[0] = new_map_temp; 1862 temps_[0] = new_map_temp;
1891 } 1863 }
1892 1864
1893 LOperand* context() { return inputs_[1]; } 1865 LOperand* context() { return inputs_[1]; }
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 2337
2366 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2338 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2367 }; 2339 };
2368 2340
2369 #undef DECLARE_HYDROGEN_ACCESSOR 2341 #undef DECLARE_HYDROGEN_ACCESSOR
2370 #undef DECLARE_CONCRETE_INSTRUCTION 2342 #undef DECLARE_CONCRETE_INSTRUCTION
2371 } // namespace internal 2343 } // namespace internal
2372 } // namespace v8 2344 } // namespace v8
2373 2345
2374 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 2346 #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