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

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

Issue 2302923002: [stubs] Port ToName stub to TurboFan. (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
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 24 matching lines...) Expand all
35 V(JSEntry) \ 35 V(JSEntry) \
36 V(LoadIndexedString) \ 36 V(LoadIndexedString) \
37 V(MathPow) \ 37 V(MathPow) \
38 V(ProfileEntryHook) \ 38 V(ProfileEntryHook) \
39 V(RecordWrite) \ 39 V(RecordWrite) \
40 V(RegExpExec) \ 40 V(RegExpExec) \
41 V(StoreBufferOverflow) \ 41 V(StoreBufferOverflow) \
42 V(StoreElement) \ 42 V(StoreElement) \
43 V(SubString) \ 43 V(SubString) \
44 V(ToString) \ 44 V(ToString) \
45 V(ToName) \
46 V(StoreIC) \ 45 V(StoreIC) \
47 V(KeyedStoreIC) \ 46 V(KeyedStoreIC) \
48 V(KeyedLoadIC) \ 47 V(KeyedLoadIC) \
49 V(LoadIC) \ 48 V(LoadIC) \
50 V(LoadGlobalIC) \ 49 V(LoadGlobalIC) \
51 V(FastNewObject) \ 50 V(FastNewObject) \
52 V(FastNewRestParameter) \ 51 V(FastNewRestParameter) \
53 V(FastNewSloppyArguments) \ 52 V(FastNewSloppyArguments) \
54 V(FastNewStrictArguments) \ 53 V(FastNewStrictArguments) \
55 V(NameDictionaryLookup) \ 54 V(NameDictionaryLookup) \
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 V(StrictEqual) \ 153 V(StrictEqual) \
155 V(StrictNotEqual) \ 154 V(StrictNotEqual) \
156 V(StringEqual) \ 155 V(StringEqual) \
157 V(StringNotEqual) \ 156 V(StringNotEqual) \
158 V(StringLessThan) \ 157 V(StringLessThan) \
159 V(StringLessThanOrEqual) \ 158 V(StringLessThanOrEqual) \
160 V(StringGreaterThan) \ 159 V(StringGreaterThan) \
161 V(StringGreaterThanOrEqual) \ 160 V(StringGreaterThanOrEqual) \
162 V(ToInteger) \ 161 V(ToInteger) \
163 V(ToLength) \ 162 V(ToLength) \
163 V(ToName) \
164 V(HasProperty) \ 164 V(HasProperty) \
165 V(ForInFilter) \ 165 V(ForInFilter) \
166 V(GetProperty) \ 166 V(GetProperty) \
167 V(LoadICTF) \ 167 V(LoadICTF) \
168 V(KeyedLoadICTF) \ 168 V(KeyedLoadICTF) \
169 V(StoreInterceptor) \ 169 V(StoreInterceptor) \
170 V(LoadApiGetter) \ 170 V(LoadApiGetter) \
171 V(LoadIndexedInterceptor) \ 171 V(LoadIndexedInterceptor) \
172 V(GrowArrayElements) \ 172 V(GrowArrayElements) \
173 /* These are only called from FGC and */ \ 173 /* These are only called from FGC and */ \
(...skipping 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after
3194 }; 3194 };
3195 3195
3196 class ToStringStub final : public PlatformCodeStub { 3196 class ToStringStub final : public PlatformCodeStub {
3197 public: 3197 public:
3198 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 3198 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3199 3199
3200 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 3200 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
3201 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); 3201 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub);
3202 }; 3202 };
3203 3203
3204 class ToNameStub final : public PlatformCodeStub { 3204 class ToNameStub final : public TurboFanCodeStub {
3205 public: 3205 public:
3206 explicit ToNameStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 3206 explicit ToNameStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
3207 3207
3208 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 3208 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
3209 DEFINE_PLATFORM_CODE_STUB(ToName, PlatformCodeStub); 3209 DEFINE_TURBOFAN_UNARY_OP_CODE_STUB(ToName, TurboFanCodeStub);
3210 }; 3210 };
3211 3211
3212 class ToObjectStub final : public TurboFanCodeStub { 3212 class ToObjectStub final : public TurboFanCodeStub {
3213 public: 3213 public:
3214 explicit ToObjectStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 3214 explicit ToObjectStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
3215 3215
3216 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 3216 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
3217 DEFINE_TURBOFAN_CODE_STUB(ToObject, TurboFanCodeStub); 3217 DEFINE_TURBOFAN_CODE_STUB(ToObject, TurboFanCodeStub);
3218 }; 3218 };
3219 3219
3220 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 3220 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
3221 #undef DEFINE_PLATFORM_CODE_STUB 3221 #undef DEFINE_PLATFORM_CODE_STUB
3222 #undef DEFINE_HANDLER_CODE_STUB 3222 #undef DEFINE_HANDLER_CODE_STUB
3223 #undef DEFINE_HYDROGEN_CODE_STUB 3223 #undef DEFINE_HYDROGEN_CODE_STUB
3224 #undef DEFINE_CODE_STUB 3224 #undef DEFINE_CODE_STUB
3225 #undef DEFINE_CODE_STUB_BASE 3225 #undef DEFINE_CODE_STUB_BASE
3226 3226
3227 extern Representation RepresentationFromType(Type* type); 3227 extern Representation RepresentationFromType(Type* type);
3228 3228
3229 } // namespace internal 3229 } // namespace internal
3230 } // namespace v8 3230 } // namespace v8
3231 3231
3232 #endif // V8_CODE_STUBS_H_ 3232 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.cc » ('j') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698