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

Side by Side Diff: src/code-factory.cc

Issue 1516753006: [turbofan] Some more cleanup on the intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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.h ('k') | src/compiler/access-builder.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 191
192 // static 192 // static
193 Callable CodeFactory::RegExpConstructResult(Isolate* isolate) { 193 Callable CodeFactory::RegExpConstructResult(Isolate* isolate) {
194 RegExpConstructResultStub stub(isolate); 194 RegExpConstructResultStub stub(isolate);
195 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 195 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
196 } 196 }
197 197
198 198
199 // static 199 // static
200 Callable CodeFactory::RegExpExec(Isolate* isolate) {
201 RegExpExecStub stub(isolate);
202 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
203 }
204
205
206 // static
200 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, 207 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags,
201 PretenureFlag pretenure_flag) { 208 PretenureFlag pretenure_flag) {
202 StringAddStub stub(isolate, flags, pretenure_flag); 209 StringAddStub stub(isolate, flags, pretenure_flag);
203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 210 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
204 } 211 }
205 212
206 213
207 // static 214 // static
208 Callable CodeFactory::StringCompare(Isolate* isolate) { 215 Callable CodeFactory::StringCompare(Isolate* isolate) {
209 StringCompareStub stub(isolate); 216 StringCompareStub stub(isolate);
210 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 217 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
211 } 218 }
212 219
213 220
214 // static 221 // static
222 Callable CodeFactory::SubString(Isolate* isolate) {
223 SubStringStub stub(isolate);
224 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
225 }
226
227
228 // static
215 Callable CodeFactory::Typeof(Isolate* isolate) { 229 Callable CodeFactory::Typeof(Isolate* isolate) {
216 TypeofStub stub(isolate); 230 TypeofStub stub(isolate);
217 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 231 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
218 } 232 }
219 233
220 234
221 // static 235 // static
222 Callable CodeFactory::FastCloneRegExp(Isolate* isolate) { 236 Callable CodeFactory::FastCloneRegExp(Isolate* isolate) {
223 FastCloneRegExpStub stub(isolate); 237 FastCloneRegExpStub stub(isolate);
224 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 238 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { 355 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) {
342 // TODO(rmcilroy): Deal with runtime functions that return two values. 356 // TODO(rmcilroy): Deal with runtime functions that return two values.
343 // Note: If we ever use fpregs in the interpreter then we will need to 357 // Note: If we ever use fpregs in the interpreter then we will need to
344 // save fpregs too. 358 // save fpregs too.
345 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); 359 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister);
346 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 360 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
347 } 361 }
348 362
349 } // namespace internal 363 } // namespace internal
350 } // namespace v8 364 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/access-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698