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

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

Issue 2207553002: [stubs] Turn FastCloneRegExpStub into a TurboFan code stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix indexing. Created 4 years, 4 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 | « no previous file | 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 /* They can be removed when only the TF */ \ 60 /* They can be removed when only the TF */ \
61 /* version of the corresponding stub is */ \ 61 /* version of the corresponding stub is */ \
62 /* used universally */ \ 62 /* used universally */ \
63 V(CallICTrampoline) \ 63 V(CallICTrampoline) \
64 V(LoadICTrampoline) \ 64 V(LoadICTrampoline) \
65 V(KeyedLoadICTrampoline) \ 65 V(KeyedLoadICTrampoline) \
66 V(KeyedStoreICTrampoline) \ 66 V(KeyedStoreICTrampoline) \
67 V(StoreICTrampoline) \ 67 V(StoreICTrampoline) \
68 /* --- HydrogenCodeStubs --- */ \ 68 /* --- HydrogenCodeStubs --- */ \
69 V(ElementsTransitionAndStore) \ 69 V(ElementsTransitionAndStore) \
70 V(FastCloneRegExp) \
71 V(FastCloneShallowArray) \ 70 V(FastCloneShallowArray) \
72 V(GrowArrayElements) \ 71 V(GrowArrayElements) \
73 V(NumberToString) \ 72 V(NumberToString) \
74 V(StringAdd) \ 73 V(StringAdd) \
75 V(ToObject) \ 74 V(ToObject) \
76 V(Typeof) \ 75 V(Typeof) \
77 /* These builtins w/ JS linkage are */ \ 76 /* These builtins w/ JS linkage are */ \
78 /* just fast-cases of C++ builtins. They */ \ 77 /* just fast-cases of C++ builtins. They */ \
79 /* require varg support from TF */ \ 78 /* require varg support from TF */ \
80 V(FastArrayPush) \ 79 V(FastArrayPush) \
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 V(ShiftRightLogical) \ 130 V(ShiftRightLogical) \
132 V(ShiftLeft) \ 131 V(ShiftLeft) \
133 V(BitwiseAnd) \ 132 V(BitwiseAnd) \
134 V(BitwiseOr) \ 133 V(BitwiseOr) \
135 V(BitwiseXor) \ 134 V(BitwiseXor) \
136 V(Inc) \ 135 V(Inc) \
137 V(InternalArrayNoArgumentConstructor) \ 136 V(InternalArrayNoArgumentConstructor) \
138 V(InternalArraySingleArgumentConstructor) \ 137 V(InternalArraySingleArgumentConstructor) \
139 V(Dec) \ 138 V(Dec) \
140 V(FastCloneShallowObject) \ 139 V(FastCloneShallowObject) \
140 V(FastCloneRegExp) \
141 V(FastNewClosure) \ 141 V(FastNewClosure) \
142 V(FastNewFunctionContext) \ 142 V(FastNewFunctionContext) \
143 V(InstanceOf) \ 143 V(InstanceOf) \
144 V(LessThan) \ 144 V(LessThan) \
145 V(LessThanOrEqual) \ 145 V(LessThanOrEqual) \
146 V(GreaterThan) \ 146 V(GreaterThan) \
147 V(GreaterThanOrEqual) \ 147 V(GreaterThanOrEqual) \
148 V(Equal) \ 148 V(Equal) \
149 V(NotEqual) \ 149 V(NotEqual) \
150 V(StrictEqual) \ 150 V(StrictEqual) \
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 1153
1154 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewStrictArguments); 1154 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewStrictArguments);
1155 DEFINE_PLATFORM_CODE_STUB(FastNewStrictArguments, PlatformCodeStub); 1155 DEFINE_PLATFORM_CODE_STUB(FastNewStrictArguments, PlatformCodeStub);
1156 1156
1157 int skip_stub_frame() const { return SkipStubFrameBits::decode(minor_key_); } 1157 int skip_stub_frame() const { return SkipStubFrameBits::decode(minor_key_); }
1158 1158
1159 private: 1159 private:
1160 class SkipStubFrameBits : public BitField<bool, 0, 1> {}; 1160 class SkipStubFrameBits : public BitField<bool, 0, 1> {};
1161 }; 1161 };
1162 1162
1163 1163 class FastCloneRegExpStub final : public TurboFanCodeStub {
1164 class FastCloneRegExpStub final : public HydrogenCodeStub {
1165 public: 1164 public:
1166 explicit FastCloneRegExpStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} 1165 explicit FastCloneRegExpStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
1167 1166
1168 private: 1167 private:
1169 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneRegExp); 1168 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneRegExp);
1170 DEFINE_HYDROGEN_CODE_STUB(FastCloneRegExp, HydrogenCodeStub); 1169 DEFINE_TURBOFAN_CODE_STUB(FastCloneRegExp, TurboFanCodeStub);
1171 }; 1170 };
1172 1171
1173 1172
1174 class FastCloneShallowArrayStub : public HydrogenCodeStub { 1173 class FastCloneShallowArrayStub : public HydrogenCodeStub {
1175 public: 1174 public:
1176 FastCloneShallowArrayStub(Isolate* isolate, 1175 FastCloneShallowArrayStub(Isolate* isolate,
1177 AllocationSiteMode allocation_site_mode) 1176 AllocationSiteMode allocation_site_mode)
1178 : HydrogenCodeStub(isolate) { 1177 : HydrogenCodeStub(isolate) {
1179 set_sub_minor_key(AllocationSiteModeBits::encode(allocation_site_mode)); 1178 set_sub_minor_key(AllocationSiteModeBits::encode(allocation_site_mode));
1180 } 1179 }
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after
3136 #undef DEFINE_HYDROGEN_CODE_STUB 3135 #undef DEFINE_HYDROGEN_CODE_STUB
3137 #undef DEFINE_CODE_STUB 3136 #undef DEFINE_CODE_STUB
3138 #undef DEFINE_CODE_STUB_BASE 3137 #undef DEFINE_CODE_STUB_BASE
3139 3138
3140 extern Representation RepresentationFromType(Type* type); 3139 extern Representation RepresentationFromType(Type* type);
3141 3140
3142 } // namespace internal 3141 } // namespace internal
3143 } // namespace v8 3142 } // namespace v8
3144 3143
3145 #endif // V8_CODE_STUBS_H_ 3144 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698