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

Side by Side Diff: src/code-stubs.h

Issue 2411793004: [stubs] Rename StoreIC[Trampoline]TFStub to StoreIC[Trampoline]Stub. (Closed)
Patch Set: Created 4 years, 2 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/code-factory.cc ('k') | src/code-stubs.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_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 V(KeyedStoreSloppyArguments) \ 122 V(KeyedStoreSloppyArguments) \
123 V(LoadScriptContextField) \ 123 V(LoadScriptContextField) \
124 V(StoreScriptContextField) \ 124 V(StoreScriptContextField) \
125 V(NumberToString) \ 125 V(NumberToString) \
126 V(GetProperty) \ 126 V(GetProperty) \
127 V(LoadIC) \ 127 V(LoadIC) \
128 V(KeyedLoadICTF) \ 128 V(KeyedLoadICTF) \
129 V(StoreFastElement) \ 129 V(StoreFastElement) \
130 V(StoreField) \ 130 V(StoreField) \
131 V(StoreGlobal) \ 131 V(StoreGlobal) \
132 V(StoreICTF) \ 132 V(StoreIC) \
133 V(StoreInterceptor) \ 133 V(StoreInterceptor) \
134 V(StoreMap) \ 134 V(StoreMap) \
135 V(StoreTransition) \ 135 V(StoreTransition) \
136 V(LoadApiGetter) \ 136 V(LoadApiGetter) \
137 V(LoadIndexedInterceptor) \ 137 V(LoadIndexedInterceptor) \
138 V(GrowArrayElements) \ 138 V(GrowArrayElements) \
139 /* These are only called from FGC and */ \ 139 /* These are only called from FGC and */ \
140 /* can be removed when we use ignition */ \ 140 /* can be removed when we use ignition */ \
141 /* only */ \ 141 /* only */ \
142 V(LoadICTrampoline) \ 142 V(LoadICTrampoline) \
143 V(LoadGlobalICTrampoline) \ 143 V(LoadGlobalICTrampoline) \
144 V(KeyedLoadICTrampolineTF) \ 144 V(KeyedLoadICTrampolineTF) \
145 V(StoreICTrampolineTF) 145 V(StoreICTrampoline)
146 146
147 // List of code stubs only used on ARM 32 bits platforms. 147 // List of code stubs only used on ARM 32 bits platforms.
148 #if V8_TARGET_ARCH_ARM 148 #if V8_TARGET_ARCH_ARM
149 #define CODE_STUB_LIST_ARM(V) V(DirectCEntry) 149 #define CODE_STUB_LIST_ARM(V) V(DirectCEntry)
150 150
151 #else 151 #else
152 #define CODE_STUB_LIST_ARM(V) 152 #define CODE_STUB_LIST_ARM(V)
153 #endif 153 #endif
154 154
155 // List of code stubs only used on ARM 64 bits platforms. 155 // List of code stubs only used on ARM 64 bits platforms.
(...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 explicit KeyedLoadICTrampolineTFStub(Isolate* isolate) 2094 explicit KeyedLoadICTrampolineTFStub(Isolate* isolate)
2095 : LoadICTrampolineStub(isolate) {} 2095 : LoadICTrampolineStub(isolate) {}
2096 2096
2097 void GenerateAssembly(CodeStubAssembler* assembler) const override; 2097 void GenerateAssembly(CodeStubAssembler* assembler) const override;
2098 2098
2099 Code::Kind GetCodeKind() const override { return Code::KEYED_LOAD_IC; } 2099 Code::Kind GetCodeKind() const override { return Code::KEYED_LOAD_IC; }
2100 2100
2101 DEFINE_CODE_STUB(KeyedLoadICTrampolineTF, LoadICTrampolineStub); 2101 DEFINE_CODE_STUB(KeyedLoadICTrampolineTF, LoadICTrampolineStub);
2102 }; 2102 };
2103 2103
2104 class StoreICTrampolineTFStub : public TurboFanCodeStub { 2104 class StoreICTrampolineStub : public TurboFanCodeStub {
2105 public: 2105 public:
2106 StoreICTrampolineTFStub(Isolate* isolate, const StoreICState& state) 2106 StoreICTrampolineStub(Isolate* isolate, const StoreICState& state)
2107 : TurboFanCodeStub(isolate) { 2107 : TurboFanCodeStub(isolate) {
2108 minor_key_ = state.GetExtraICState(); 2108 minor_key_ = state.GetExtraICState();
2109 } 2109 }
2110 2110
2111 void GenerateAssembly(CodeStubAssembler* assembler) const override; 2111 void GenerateAssembly(CodeStubAssembler* assembler) const override;
2112 2112
2113 Code::Kind GetCodeKind() const override { return Code::STORE_IC; } 2113 Code::Kind GetCodeKind() const override { return Code::STORE_IC; }
2114 2114
2115 ExtraICState GetExtraICState() const final { 2115 ExtraICState GetExtraICState() const final {
2116 return static_cast<ExtraICState>(minor_key_); 2116 return static_cast<ExtraICState>(minor_key_);
2117 } 2117 }
2118 2118
2119 protected: 2119 protected:
2120 StoreICState state() const { return StoreICState(GetExtraICState()); } 2120 StoreICState state() const { return StoreICState(GetExtraICState()); }
2121 2121
2122 DEFINE_CALL_INTERFACE_DESCRIPTOR(Store); 2122 DEFINE_CALL_INTERFACE_DESCRIPTOR(Store);
2123 DEFINE_CODE_STUB(StoreICTrampolineTF, TurboFanCodeStub); 2123 DEFINE_CODE_STUB(StoreICTrampoline, TurboFanCodeStub);
2124 }; 2124 };
2125 2125
2126 class KeyedStoreICTrampolineStub : public PlatformCodeStub { 2126 class KeyedStoreICTrampolineStub : public PlatformCodeStub {
2127 public: 2127 public:
2128 KeyedStoreICTrampolineStub(Isolate* isolate, const StoreICState& state) 2128 KeyedStoreICTrampolineStub(Isolate* isolate, const StoreICState& state)
2129 : PlatformCodeStub(isolate) { 2129 : PlatformCodeStub(isolate) {
2130 minor_key_ = state.GetExtraICState(); 2130 minor_key_ = state.GetExtraICState();
2131 } 2131 }
2132 2132
2133 Code::Kind GetCodeKind() const override { return Code::KEYED_STORE_IC; } 2133 Code::Kind GetCodeKind() const override { return Code::KEYED_STORE_IC; }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
2217 public: 2217 public:
2218 explicit KeyedLoadICTFStub(Isolate* isolate) : LoadICStub(isolate) {} 2218 explicit KeyedLoadICTFStub(Isolate* isolate) : LoadICStub(isolate) {}
2219 2219
2220 void GenerateAssembly(CodeStubAssembler* assembler) const override; 2220 void GenerateAssembly(CodeStubAssembler* assembler) const override;
2221 2221
2222 Code::Kind GetCodeKind() const override { return Code::KEYED_LOAD_IC; } 2222 Code::Kind GetCodeKind() const override { return Code::KEYED_LOAD_IC; }
2223 2223
2224 DEFINE_CODE_STUB(KeyedLoadICTF, LoadICStub); 2224 DEFINE_CODE_STUB(KeyedLoadICTF, LoadICStub);
2225 }; 2225 };
2226 2226
2227 class StoreICTFStub : public TurboFanCodeStub { 2227 class StoreICStub : public TurboFanCodeStub {
2228 public: 2228 public:
2229 StoreICTFStub(Isolate* isolate, const StoreICState& state) 2229 StoreICStub(Isolate* isolate, const StoreICState& state)
2230 : TurboFanCodeStub(isolate) { 2230 : TurboFanCodeStub(isolate) {
2231 minor_key_ = state.GetExtraICState(); 2231 minor_key_ = state.GetExtraICState();
2232 } 2232 }
2233 2233
2234 void GenerateAssembly(CodeStubAssembler* assembler) const override; 2234 void GenerateAssembly(CodeStubAssembler* assembler) const override;
2235 2235
2236 Code::Kind GetCodeKind() const override { return Code::STORE_IC; } 2236 Code::Kind GetCodeKind() const override { return Code::STORE_IC; }
2237 ExtraICState GetExtraICState() const final { 2237 ExtraICState GetExtraICState() const final {
2238 return static_cast<ExtraICState>(minor_key_); 2238 return static_cast<ExtraICState>(minor_key_);
2239 } 2239 }
2240 2240
2241 DEFINE_CALL_INTERFACE_DESCRIPTOR(StoreWithVector); 2241 DEFINE_CALL_INTERFACE_DESCRIPTOR(StoreWithVector);
2242 DEFINE_CODE_STUB(StoreICTF, TurboFanCodeStub); 2242 DEFINE_CODE_STUB(StoreIC, TurboFanCodeStub);
2243 }; 2243 };
2244 2244
2245 class KeyedStoreICStub : public PlatformCodeStub { 2245 class KeyedStoreICStub : public PlatformCodeStub {
2246 public: 2246 public:
2247 KeyedStoreICStub(Isolate* isolate, const StoreICState& state) 2247 KeyedStoreICStub(Isolate* isolate, const StoreICState& state)
2248 : PlatformCodeStub(isolate) { 2248 : PlatformCodeStub(isolate) {
2249 minor_key_ = state.GetExtraICState(); 2249 minor_key_ = state.GetExtraICState();
2250 } 2250 }
2251 2251
2252 void GenerateForTrampoline(MacroAssembler* masm); 2252 void GenerateForTrampoline(MacroAssembler* masm);
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
2830 #undef DEFINE_HYDROGEN_CODE_STUB 2830 #undef DEFINE_HYDROGEN_CODE_STUB
2831 #undef DEFINE_CODE_STUB 2831 #undef DEFINE_CODE_STUB
2832 #undef DEFINE_CODE_STUB_BASE 2832 #undef DEFINE_CODE_STUB_BASE
2833 2833
2834 extern Representation RepresentationFromMachineType(MachineType type); 2834 extern Representation RepresentationFromMachineType(MachineType type);
2835 2835
2836 } // namespace internal 2836 } // namespace internal
2837 } // namespace v8 2837 } // namespace v8
2838 2838
2839 #endif // V8_CODE_STUBS_H_ 2839 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698