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

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.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/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 V(SmiTag) \ 138 V(SmiTag) \
139 V(SmiUntag) \ 139 V(SmiUntag) \
140 V(StackCheck) \ 140 V(StackCheck) \
141 V(StoreCodeEntry) \ 141 V(StoreCodeEntry) \
142 V(StoreContextSlot) \ 142 V(StoreContextSlot) \
143 V(StoreKeyedExternal) \ 143 V(StoreKeyedExternal) \
144 V(StoreKeyedFixed) \ 144 V(StoreKeyedFixed) \
145 V(StoreKeyedFixedDouble) \ 145 V(StoreKeyedFixedDouble) \
146 V(StoreKeyedGeneric) \ 146 V(StoreKeyedGeneric) \
147 V(StoreNamedField) \ 147 V(StoreNamedField) \
148 V(StoreNamedGeneric) \
149 V(StringAdd) \ 148 V(StringAdd) \
150 V(StringCharCodeAt) \ 149 V(StringCharCodeAt) \
151 V(StringCharFromCode) \ 150 V(StringCharFromCode) \
152 V(StringCompareAndBranch) \ 151 V(StringCompareAndBranch) \
153 V(SubI) \ 152 V(SubI) \
154 V(SubS) \ 153 V(SubS) \
155 V(TaggedToI) \ 154 V(TaggedToI) \
156 V(ThisFunction) \ 155 V(ThisFunction) \
157 V(TransitionElementsKind) \ 156 V(TransitionElementsKind) \
158 V(TrapAllocationMemento) \ 157 V(TrapAllocationMemento) \
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2382 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2384 2383
2385 void PrintDataTo(StringStream* stream) override; 2384 void PrintDataTo(StringStream* stream) override;
2386 2385
2387 Representation representation() const { 2386 Representation representation() const {
2388 return hydrogen()->field_representation(); 2387 return hydrogen()->field_representation();
2389 } 2388 }
2390 }; 2389 };
2391 2390
2392 2391
2393 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> {
2394 public:
2395 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value,
2396 LOperand* slot, LOperand* vector) {
2397 inputs_[0] = context;
2398 inputs_[1] = object;
2399 inputs_[2] = value;
2400 temps_[0] = slot;
2401 temps_[1] = vector;
2402 }
2403
2404 LOperand* context() { return inputs_[0]; }
2405 LOperand* object() { return inputs_[1]; }
2406 LOperand* value() { return inputs_[2]; }
2407 LOperand* temp_slot() { return temps_[0]; }
2408 LOperand* temp_vector() { return temps_[1]; }
2409
2410 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2411 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2412
2413 void PrintDataTo(StringStream* stream) override;
2414
2415 Handle<Object> name() const { return hydrogen()->name(); }
2416 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2417 };
2418
2419
2420 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { 2392 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> {
2421 public: 2393 public:
2422 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, 2394 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements,
2423 LOperand* key, LOperand* current_capacity) { 2395 LOperand* key, LOperand* current_capacity) {
2424 inputs_[0] = context; 2396 inputs_[0] = context;
2425 inputs_[1] = object; 2397 inputs_[1] = object;
2426 inputs_[2] = elements; 2398 inputs_[2] = elements;
2427 inputs_[3] = key; 2399 inputs_[3] = key;
2428 inputs_[4] = current_capacity; 2400 inputs_[4] = current_capacity;
2429 } 2401 }
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2964 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2993 }; 2965 };
2994 2966
2995 #undef DECLARE_HYDROGEN_ACCESSOR 2967 #undef DECLARE_HYDROGEN_ACCESSOR
2996 #undef DECLARE_CONCRETE_INSTRUCTION 2968 #undef DECLARE_CONCRETE_INSTRUCTION
2997 2969
2998 } // namespace internal 2970 } // namespace internal
2999 } // namespace v8 2971 } // namespace v8
3000 2972
3001 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 2973 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698