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

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

Issue 2380973002: [stubs] replaced ToString MacroAssembler Stub with CodeStubAssembler builtin (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/v8/v8 into ToStringTFStub 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-hydrogen.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 25 matching lines...) Expand all
36 V(InternalArrayConstructor) \ 36 V(InternalArrayConstructor) \
37 V(JSEntry) \ 37 V(JSEntry) \
38 V(LoadIndexedString) \ 38 V(LoadIndexedString) \
39 V(MathPow) \ 39 V(MathPow) \
40 V(ProfileEntryHook) \ 40 V(ProfileEntryHook) \
41 V(RecordWrite) \ 41 V(RecordWrite) \
42 V(RegExpExec) \ 42 V(RegExpExec) \
43 V(StoreBufferOverflow) \ 43 V(StoreBufferOverflow) \
44 V(StoreElement) \ 44 V(StoreElement) \
45 V(SubString) \ 45 V(SubString) \
46 V(ToString) \
47 V(StoreIC) \ 46 V(StoreIC) \
48 V(KeyedStoreIC) \ 47 V(KeyedStoreIC) \
49 V(KeyedLoadIC) \ 48 V(KeyedLoadIC) \
50 V(LoadIC) \ 49 V(LoadIC) \
51 V(LoadGlobalIC) \ 50 V(LoadGlobalIC) \
52 V(FastNewObject) \ 51 V(FastNewObject) \
53 V(FastNewRestParameter) \ 52 V(FastNewRestParameter) \
54 V(FastNewSloppyArguments) \ 53 V(FastNewSloppyArguments) \
55 V(FastNewStrictArguments) \ 54 V(FastNewStrictArguments) \
56 V(NameDictionaryLookup) \ 55 V(NameDictionaryLookup) \
(...skipping 3050 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 assembler->Parameter(Descriptor::kString), 3106 assembler->Parameter(Descriptor::kString),
3108 assembler->Parameter(Descriptor::kFrom), 3107 assembler->Parameter(Descriptor::kFrom),
3109 assembler->Parameter(Descriptor::kTo), 3108 assembler->Parameter(Descriptor::kTo),
3110 assembler->Parameter(Descriptor::kContext))); 3109 assembler->Parameter(Descriptor::kContext)));
3111 } 3110 }
3112 3111
3113 DEFINE_CALL_INTERFACE_DESCRIPTOR(SubString); 3112 DEFINE_CALL_INTERFACE_DESCRIPTOR(SubString);
3114 DEFINE_CODE_STUB(SubString, TurboFanCodeStub); 3113 DEFINE_CODE_STUB(SubString, TurboFanCodeStub);
3115 }; 3114 };
3116 3115
3117 class ToStringStub final : public PlatformCodeStub {
3118 public:
3119 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3120
3121 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
3122 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub);
3123 };
3124
3125 class ToObjectStub final : public TurboFanCodeStub { 3116 class ToObjectStub final : public TurboFanCodeStub {
3126 public: 3117 public:
3127 explicit ToObjectStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 3118 explicit ToObjectStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
3128 3119
3129 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 3120 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
3130 DEFINE_TURBOFAN_CODE_STUB(ToObject, TurboFanCodeStub); 3121 DEFINE_TURBOFAN_CODE_STUB(ToObject, TurboFanCodeStub);
3131 }; 3122 };
3132 3123
3133 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 3124 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
3134 #undef DEFINE_PLATFORM_CODE_STUB 3125 #undef DEFINE_PLATFORM_CODE_STUB
3135 #undef DEFINE_HANDLER_CODE_STUB 3126 #undef DEFINE_HANDLER_CODE_STUB
3136 #undef DEFINE_HYDROGEN_CODE_STUB 3127 #undef DEFINE_HYDROGEN_CODE_STUB
3137 #undef DEFINE_CODE_STUB 3128 #undef DEFINE_CODE_STUB
3138 #undef DEFINE_CODE_STUB_BASE 3129 #undef DEFINE_CODE_STUB_BASE
3139 3130
3140 extern Representation RepresentationFromMachineType(MachineType type); 3131 extern Representation RepresentationFromMachineType(MachineType type);
3141 3132
3142 } // namespace internal 3133 } // namespace internal
3143 } // namespace v8 3134 } // namespace v8
3144 3135
3145 #endif // V8_CODE_STUBS_H_ 3136 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698