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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.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_CRANKSHAFT_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 V(Return) \ 128 V(Return) \
129 V(SeqStringGetChar) \ 129 V(SeqStringGetChar) \
130 V(SeqStringSetChar) \ 130 V(SeqStringSetChar) \
131 V(ShiftI) \ 131 V(ShiftI) \
132 V(SmiTag) \ 132 V(SmiTag) \
133 V(SmiUntag) \ 133 V(SmiUntag) \
134 V(StackCheck) \ 134 V(StackCheck) \
135 V(StoreCodeEntry) \ 135 V(StoreCodeEntry) \
136 V(StoreContextSlot) \ 136 V(StoreContextSlot) \
137 V(StoreKeyed) \ 137 V(StoreKeyed) \
138 V(StoreKeyedGeneric) \
139 V(StoreNamedField) \ 138 V(StoreNamedField) \
140 V(StringAdd) \ 139 V(StringAdd) \
141 V(StringCharCodeAt) \ 140 V(StringCharCodeAt) \
142 V(StringCharFromCode) \ 141 V(StringCharFromCode) \
143 V(StringCompareAndBranch) \ 142 V(StringCompareAndBranch) \
144 V(SubI) \ 143 V(SubI) \
145 V(TaggedToI) \ 144 V(TaggedToI) \
146 V(ThisFunction) \ 145 V(ThisFunction) \
147 V(TransitionElementsKind) \ 146 V(TransitionElementsKind) \
148 V(TrapAllocationMemento) \ 147 V(TrapAllocationMemento) \
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 2029
2031 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2030 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2032 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2031 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2033 2032
2034 void PrintDataTo(StringStream* stream) override; 2033 void PrintDataTo(StringStream* stream) override;
2035 uint32_t base_offset() const { return hydrogen()->base_offset(); } 2034 uint32_t base_offset() const { return hydrogen()->base_offset(); }
2036 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2035 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
2037 }; 2036 };
2038 2037
2039 2038
2040 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> {
2041 public:
2042 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key,
2043 LOperand* value, LOperand* slot, LOperand* vector) {
2044 inputs_[0] = context;
2045 inputs_[1] = object;
2046 inputs_[2] = key;
2047 inputs_[3] = value;
2048 temps_[0] = slot;
2049 temps_[1] = vector;
2050 }
2051
2052 LOperand* context() { return inputs_[0]; }
2053 LOperand* object() { return inputs_[1]; }
2054 LOperand* key() { return inputs_[2]; }
2055 LOperand* value() { return inputs_[3]; }
2056 LOperand* temp_slot() { return temps_[0]; }
2057 LOperand* temp_vector() { return temps_[1]; }
2058
2059 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
2060 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
2061
2062 void PrintDataTo(StringStream* stream) override;
2063
2064 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2065 };
2066
2067
2068 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 2> { 2039 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 2> {
2069 public: 2040 public:
2070 LTransitionElementsKind(LOperand* object, 2041 LTransitionElementsKind(LOperand* object,
2071 LOperand* context, 2042 LOperand* context,
2072 LOperand* new_map_temp, 2043 LOperand* new_map_temp,
2073 LOperand* temp) { 2044 LOperand* temp) {
2074 inputs_[0] = object; 2045 inputs_[0] = object;
2075 inputs_[1] = context; 2046 inputs_[1] = context;
2076 temps_[0] = new_map_temp; 2047 temps_[0] = new_map_temp;
2077 temps_[1] = temp; 2048 temps_[1] = temp;
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2618 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2619 }; 2590 };
2620 2591
2621 #undef DECLARE_HYDROGEN_ACCESSOR 2592 #undef DECLARE_HYDROGEN_ACCESSOR
2622 #undef DECLARE_CONCRETE_INSTRUCTION 2593 #undef DECLARE_CONCRETE_INSTRUCTION
2623 2594
2624 } // namespace internal 2595 } // namespace internal
2625 } // namespace v8 2596 } // namespace v8
2626 2597
2627 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2598 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698