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

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

Issue 2930623002: [builtins] Start refactoring the Apply builtin. (Closed)
Patch Set: Address feedback. Created 3 years, 6 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/ia32/interface-descriptors-ia32.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 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/builtins/builtins-descriptors.h" 8 #include "src/builtins/builtins-descriptors.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 } 403 }
404 404
405 // static 405 // static
406 Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode, 406 Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode,
407 TailCallMode tail_call_mode) { 407 TailCallMode tail_call_mode) {
408 return Callable(isolate->builtins()->CallFunction(mode, tail_call_mode), 408 return Callable(isolate->builtins()->CallFunction(mode, tail_call_mode),
409 CallTrampolineDescriptor(isolate)); 409 CallTrampolineDescriptor(isolate));
410 } 410 }
411 411
412 // static 412 // static
413 Callable CodeFactory::CallVarargs(Isolate* isolate) {
414 return Callable(isolate->builtins()->CallVarargs(),
415 CallVarargsDescriptor(isolate));
416 }
417
418 // static
413 Callable CodeFactory::CallForwardVarargs(Isolate* isolate) { 419 Callable CodeFactory::CallForwardVarargs(Isolate* isolate) {
414 return Callable(isolate->builtins()->CallForwardVarargs(), 420 return Callable(isolate->builtins()->CallForwardVarargs(),
415 CallForwardVarargsDescriptor(isolate)); 421 CallForwardVarargsDescriptor(isolate));
416 } 422 }
417 423
418 // static 424 // static
419 Callable CodeFactory::CallFunctionForwardVarargs(Isolate* isolate) { 425 Callable CodeFactory::CallFunctionForwardVarargs(Isolate* isolate) {
420 return Callable(isolate->builtins()->CallFunctionForwardVarargs(), 426 return Callable(isolate->builtins()->CallFunctionForwardVarargs(),
421 CallForwardVarargsDescriptor(isolate)); 427 CallForwardVarargsDescriptor(isolate));
422 } 428 }
(...skipping 10 matching lines...) Expand all
433 ConstructTrampolineDescriptor(isolate)); 439 ConstructTrampolineDescriptor(isolate));
434 } 440 }
435 441
436 // static 442 // static
437 Callable CodeFactory::ConstructFunction(Isolate* isolate) { 443 Callable CodeFactory::ConstructFunction(Isolate* isolate) {
438 return Callable(isolate->builtins()->ConstructFunction(), 444 return Callable(isolate->builtins()->ConstructFunction(),
439 ConstructTrampolineDescriptor(isolate)); 445 ConstructTrampolineDescriptor(isolate));
440 } 446 }
441 447
442 // static 448 // static
449 Callable CodeFactory::ConstructVarargs(Isolate* isolate) {
450 return Callable(isolate->builtins()->ConstructVarargs(),
451 ConstructVarargsDescriptor(isolate));
452 }
453
454 // static
443 Callable CodeFactory::ConstructForwardVarargs(Isolate* isolate) { 455 Callable CodeFactory::ConstructForwardVarargs(Isolate* isolate) {
444 return Callable(isolate->builtins()->ConstructForwardVarargs(), 456 return Callable(isolate->builtins()->ConstructForwardVarargs(),
445 ConstructForwardVarargsDescriptor(isolate)); 457 ConstructForwardVarargsDescriptor(isolate));
446 } 458 }
447 459
448 // static 460 // static
449 Callable CodeFactory::ConstructFunctionForwardVarargs(Isolate* isolate) { 461 Callable CodeFactory::ConstructFunctionForwardVarargs(Isolate* isolate) {
450 return Callable(isolate->builtins()->ConstructFunctionForwardVarargs(), 462 return Callable(isolate->builtins()->ConstructFunctionForwardVarargs(),
451 ConstructForwardVarargsDescriptor(isolate)); 463 ConstructForwardVarargsDescriptor(isolate));
452 } 464 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 } 522 }
511 523
512 // static 524 // static
513 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 525 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
514 return Callable(isolate->builtins()->FunctionPrototypeBind(), 526 return Callable(isolate->builtins()->FunctionPrototypeBind(),
515 BuiltinDescriptor(isolate)); 527 BuiltinDescriptor(isolate));
516 } 528 }
517 529
518 } // namespace internal 530 } // namespace internal
519 } // namespace v8 531 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698