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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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/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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) \ 135 V(StoreKeyedGeneric) \
136 V(StoreNamedField) \ 136 V(StoreNamedField) \
137 V(StoreNamedGeneric) \
138 V(StringAdd) \ 137 V(StringAdd) \
139 V(StringCharCodeAt) \ 138 V(StringCharCodeAt) \
140 V(StringCharFromCode) \ 139 V(StringCharFromCode) \
141 V(StringCompareAndBranch) \ 140 V(StringCompareAndBranch) \
142 V(SubI) \ 141 V(SubI) \
143 V(TaggedToI) \ 142 V(TaggedToI) \
144 V(ThisFunction) \ 143 V(ThisFunction) \
145 V(TransitionElementsKind) \ 144 V(TransitionElementsKind) \
146 V(TrapAllocationMemento) \ 145 V(TrapAllocationMemento) \
147 V(Typeof) \ 146 V(Typeof) \
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2005 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2007 2006
2008 void PrintDataTo(StringStream* stream) override; 2007 void PrintDataTo(StringStream* stream) override;
2009 2008
2010 Representation representation() const { 2009 Representation representation() const {
2011 return hydrogen()->field_representation(); 2010 return hydrogen()->field_representation();
2012 } 2011 }
2013 }; 2012 };
2014 2013
2015 2014
2016 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> {
2017 public:
2018 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value,
2019 LOperand* slot, LOperand* vector) {
2020 inputs_[0] = context;
2021 inputs_[1] = object;
2022 inputs_[2] = value;
2023 temps_[0] = slot;
2024 temps_[1] = vector;
2025 }
2026
2027 LOperand* context() { return inputs_[0]; }
2028 LOperand* object() { return inputs_[1]; }
2029 LOperand* value() { return inputs_[2]; }
2030 LOperand* temp_slot() { return temps_[0]; }
2031 LOperand* temp_vector() { return temps_[1]; }
2032
2033 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2034 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2035
2036 void PrintDataTo(StringStream* stream) override;
2037
2038 Handle<Object> name() const { return hydrogen()->name(); }
2039 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2040 };
2041
2042
2043 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { 2015 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> {
2044 public: 2016 public:
2045 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, 2017 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value,
2046 LOperand* backing_store_owner) { 2018 LOperand* backing_store_owner) {
2047 inputs_[0] = object; 2019 inputs_[0] = object;
2048 inputs_[1] = key; 2020 inputs_[1] = key;
2049 inputs_[2] = value; 2021 inputs_[2] = value;
2050 inputs_[3] = backing_store_owner; 2022 inputs_[3] = backing_store_owner;
2051 } 2023 }
2052 2024
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2636 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2608 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2637 }; 2609 };
2638 2610
2639 #undef DECLARE_HYDROGEN_ACCESSOR 2611 #undef DECLARE_HYDROGEN_ACCESSOR
2640 #undef DECLARE_CONCRETE_INSTRUCTION 2612 #undef DECLARE_CONCRETE_INSTRUCTION
2641 2613
2642 } // namespace internal 2614 } // namespace internal
2643 } // namespace v8 2615 } // namespace v8
2644 2616
2645 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2617 #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