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

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

Issue 2605893002: [builtins] More stubs to the builtin-o-sphere. (Closed)
Patch Set: Fixed compile error. Created 3 years, 11 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.h ('k') | src/code-stubs.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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 331 }
332 332
333 // static 333 // static
334 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { 334 Callable CodeFactory::ResumeGenerator(Isolate* isolate) {
335 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), 335 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(),
336 ResumeGeneratorDescriptor(isolate)); 336 ResumeGeneratorDescriptor(isolate));
337 } 337 }
338 338
339 // static 339 // static
340 Callable CodeFactory::FastCloneRegExp(Isolate* isolate) { 340 Callable CodeFactory::FastCloneRegExp(Isolate* isolate) {
341 FastCloneRegExpStub stub(isolate); 341 return Callable(isolate->builtins()->FastCloneRegExp(),
342 return make_callable(stub); 342 FastCloneRegExpDescriptor(isolate));
343 } 343 }
344 344
345 // static 345 // static
346 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) { 346 Callable CodeFactory::FastCloneShallowArray(
347 // TODO(mstarzinger): Thread through AllocationSiteMode at some point. 347 Isolate* isolate, AllocationSiteMode allocation_mode) {
348 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); 348 return Callable(isolate->builtins()->NewCloneShallowArray(allocation_mode),
349 return make_callable(stub); 349 FastCloneShallowArrayDescriptor(isolate));
350 } 350 }
351 351
352 // static 352 // static
353 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { 353 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) {
354 FastCloneShallowObjectStub stub(isolate, length); 354 return Callable(isolate->builtins()->NewCloneShallowObject(length),
355 return make_callable(stub); 355 FastCloneShallowObjectDescriptor(isolate));
356 } 356 }
357 357
358
359 // static 358 // static
360 Callable CodeFactory::FastNewFunctionContext(Isolate* isolate, 359 Callable CodeFactory::FastNewFunctionContext(Isolate* isolate,
361 ScopeType scope_type) { 360 ScopeType scope_type) {
362 return Callable(isolate->builtins()->NewFunctionContext(scope_type), 361 return Callable(isolate->builtins()->NewFunctionContext(scope_type),
363 FastNewFunctionContextDescriptor(isolate)); 362 FastNewFunctionContextDescriptor(isolate));
364 } 363 }
365 364
366 // static 365 // static
367 Callable CodeFactory::FastNewClosure(Isolate* isolate) { 366 Callable CodeFactory::FastNewClosure(Isolate* isolate) {
368 return Callable(isolate->builtins()->FastNewClosure(), 367 return Callable(isolate->builtins()->FastNewClosure(),
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 } 501 }
503 502
504 // static 503 // static
505 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 504 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
506 return Callable(isolate->builtins()->FunctionPrototypeBind(), 505 return Callable(isolate->builtins()->FunctionPrototypeBind(),
507 BuiltinDescriptor(isolate)); 506 BuiltinDescriptor(isolate));
508 } 507 }
509 508
510 } // namespace internal 509 } // namespace internal
511 } // namespace v8 510 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698