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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.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_X64_LITHIUM_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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(TaggedToI) \ 141 V(TaggedToI) \
143 V(ThisFunction) \ 142 V(ThisFunction) \
144 V(TransitionElementsKind) \ 143 V(TransitionElementsKind) \
145 V(TrapAllocationMemento) \ 144 V(TrapAllocationMemento) \
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 2032
2034 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2033 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2035 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2034 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2036 2035
2037 void PrintDataTo(StringStream* stream) override; 2036 void PrintDataTo(StringStream* stream) override;
2038 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2037 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
2039 uint32_t base_offset() const { return hydrogen()->base_offset(); } 2038 uint32_t base_offset() const { return hydrogen()->base_offset(); }
2040 }; 2039 };
2041 2040
2042 2041
2043 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> {
2044 public:
2045 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key,
2046 LOperand* value, LOperand* slot, LOperand* vector) {
2047 inputs_[0] = context;
2048 inputs_[1] = object;
2049 inputs_[2] = key;
2050 inputs_[3] = value;
2051 temps_[0] = slot;
2052 temps_[1] = vector;
2053 }
2054
2055 LOperand* context() { return inputs_[0]; }
2056 LOperand* object() { return inputs_[1]; }
2057 LOperand* key() { return inputs_[2]; }
2058 LOperand* value() { return inputs_[3]; }
2059 LOperand* temp_slot() { return temps_[0]; }
2060 LOperand* temp_vector() { return temps_[1]; }
2061
2062 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
2063 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
2064
2065 void PrintDataTo(StringStream* stream) override;
2066
2067 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2068 };
2069
2070
2071 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 2> { 2042 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 2> {
2072 public: 2043 public:
2073 LTransitionElementsKind(LOperand* object, 2044 LTransitionElementsKind(LOperand* object,
2074 LOperand* context, 2045 LOperand* context,
2075 LOperand* new_map_temp, 2046 LOperand* new_map_temp,
2076 LOperand* temp) { 2047 LOperand* temp) {
2077 inputs_[0] = object; 2048 inputs_[0] = object;
2078 inputs_[1] = context; 2049 inputs_[1] = context;
2079 temps_[0] = new_map_temp; 2050 temps_[0] = new_map_temp;
2080 temps_[1] = temp; 2051 temps_[1] = temp;
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
2608 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2579 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2609 }; 2580 };
2610 2581
2611 #undef DECLARE_HYDROGEN_ACCESSOR 2582 #undef DECLARE_HYDROGEN_ACCESSOR
2612 #undef DECLARE_CONCRETE_INSTRUCTION 2583 #undef DECLARE_CONCRETE_INSTRUCTION
2613 2584
2614 } // namespace internal 2585 } // namespace internal
2615 } // namespace v8 2586 } // namespace v8
2616 2587
2617 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2588 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698