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

Side by Side Diff: src/crankshaft/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 V(SeqStringSetChar) \ 126 V(SeqStringSetChar) \
127 V(ShiftI) \ 127 V(ShiftI) \
128 V(SmiTag) \ 128 V(SmiTag) \
129 V(SmiUntag) \ 129 V(SmiUntag) \
130 V(StackCheck) \ 130 V(StackCheck) \
131 V(StoreCodeEntry) \ 131 V(StoreCodeEntry) \
132 V(StoreContextSlot) \ 132 V(StoreContextSlot) \
133 V(StoreKeyed) \ 133 V(StoreKeyed) \
134 V(StoreKeyedGeneric) \ 134 V(StoreKeyedGeneric) \
135 V(StoreNamedField) \ 135 V(StoreNamedField) \
136 V(StoreNamedGeneric) \
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) \
146 V(Typeof) \ 145 V(Typeof) \
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1962 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 1961 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
1963 1962
1964 void PrintDataTo(StringStream* stream) override; 1963 void PrintDataTo(StringStream* stream) override;
1965 1964
1966 Representation representation() const { 1965 Representation representation() const {
1967 return hydrogen()->field_representation(); 1966 return hydrogen()->field_representation();
1968 } 1967 }
1969 }; 1968 };
1970 1969
1971 1970
1972 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> {
1973 public:
1974 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value,
1975 LOperand* slot, LOperand* vector) {
1976 inputs_[0] = context;
1977 inputs_[1] = object;
1978 inputs_[2] = value;
1979 temps_[0] = slot;
1980 temps_[1] = vector;
1981 }
1982
1983 LOperand* context() { return inputs_[0]; }
1984 LOperand* object() { return inputs_[1]; }
1985 LOperand* value() { return inputs_[2]; }
1986 LOperand* temp_slot() { return temps_[0]; }
1987 LOperand* temp_vector() { return temps_[1]; }
1988
1989 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
1990 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
1991
1992 void PrintDataTo(StringStream* stream) override;
1993
1994 Handle<Object> name() const { return hydrogen()->name(); }
1995 LanguageMode language_mode() { return hydrogen()->language_mode(); }
1996 };
1997
1998
1999 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { 1971 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> {
2000 public: 1972 public:
2001 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, 1973 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value,
2002 LOperand* backing_store_owner) { 1974 LOperand* backing_store_owner) {
2003 inputs_[0] = object; 1975 inputs_[0] = object;
2004 inputs_[1] = key; 1976 inputs_[1] = key;
2005 inputs_[2] = value; 1977 inputs_[2] = value;
2006 inputs_[3] = backing_store_owner; 1978 inputs_[3] = backing_store_owner;
2007 } 1979 }
2008 1980
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2561 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2590 }; 2562 };
2591 2563
2592 #undef DECLARE_HYDROGEN_ACCESSOR 2564 #undef DECLARE_HYDROGEN_ACCESSOR
2593 #undef DECLARE_CONCRETE_INSTRUCTION 2565 #undef DECLARE_CONCRETE_INSTRUCTION
2594 2566
2595 } // namespace internal 2567 } // namespace internal
2596 } // namespace v8 2568 } // namespace v8
2597 2569
2598 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 2570 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698