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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.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_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 V(SeqStringSetChar) \ 131 V(SeqStringSetChar) \
132 V(ShiftI) \ 132 V(ShiftI) \
133 V(SmiTag) \ 133 V(SmiTag) \
134 V(SmiUntag) \ 134 V(SmiUntag) \
135 V(StackCheck) \ 135 V(StackCheck) \
136 V(StoreCodeEntry) \ 136 V(StoreCodeEntry) \
137 V(StoreContextSlot) \ 137 V(StoreContextSlot) \
138 V(StoreKeyed) \ 138 V(StoreKeyed) \
139 V(StoreKeyedGeneric) \ 139 V(StoreKeyedGeneric) \
140 V(StoreNamedField) \ 140 V(StoreNamedField) \
141 V(StoreNamedGeneric) \
142 V(StringAdd) \ 141 V(StringAdd) \
143 V(StringCharCodeAt) \ 142 V(StringCharCodeAt) \
144 V(StringCharFromCode) \ 143 V(StringCharFromCode) \
145 V(StringCompareAndBranch) \ 144 V(StringCompareAndBranch) \
146 V(SubI) \ 145 V(SubI) \
147 V(TaggedToI) \ 146 V(TaggedToI) \
148 V(ThisFunction) \ 147 V(ThisFunction) \
149 V(TransitionElementsKind) \ 148 V(TransitionElementsKind) \
150 V(TrapAllocationMemento) \ 149 V(TrapAllocationMemento) \
151 V(Typeof) \ 150 V(Typeof) \
(...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 LOperand* temp() { return temps_[0]; } 2014 LOperand* temp() { return temps_[0]; }
2016 LOperand* temp_map() { return temps_[1]; } 2015 LOperand* temp_map() { return temps_[1]; }
2017 2016
2018 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 2017 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
2019 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2018 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2020 2019
2021 void PrintDataTo(StringStream* stream) override; 2020 void PrintDataTo(StringStream* stream) override;
2022 }; 2021 };
2023 2022
2024 2023
2025 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> {
2026 public:
2027 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value,
2028 LOperand* slot, LOperand* vector) {
2029 inputs_[0] = context;
2030 inputs_[1] = object;
2031 inputs_[2] = value;
2032 temps_[0] = slot;
2033 temps_[1] = vector;
2034 }
2035
2036 LOperand* context() { return inputs_[0]; }
2037 LOperand* object() { return inputs_[1]; }
2038 LOperand* value() { return inputs_[2]; }
2039 LOperand* temp_slot() { return temps_[0]; }
2040 LOperand* temp_vector() { return temps_[1]; }
2041
2042 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2043 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2044
2045 void PrintDataTo(StringStream* stream) override;
2046 Handle<Object> name() const { return hydrogen()->name(); }
2047 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2048 };
2049
2050
2051 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { 2024 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> {
2052 public: 2025 public:
2053 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val, 2026 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val,
2054 LOperand* backing_store_owner) { 2027 LOperand* backing_store_owner) {
2055 inputs_[0] = obj; 2028 inputs_[0] = obj;
2056 inputs_[1] = key; 2029 inputs_[1] = key;
2057 inputs_[2] = val; 2030 inputs_[2] = val;
2058 inputs_[3] = backing_store_owner; 2031 inputs_[3] = backing_store_owner;
2059 } 2032 }
2060 2033
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
2651 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2624 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2652 }; 2625 };
2653 2626
2654 #undef DECLARE_HYDROGEN_ACCESSOR 2627 #undef DECLARE_HYDROGEN_ACCESSOR
2655 #undef DECLARE_CONCRETE_INSTRUCTION 2628 #undef DECLARE_CONCRETE_INSTRUCTION
2656 2629
2657 } // namespace internal 2630 } // namespace internal
2658 } // namespace v8 2631 } // namespace v8
2659 2632
2660 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 2633 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698