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 2890023004: [turbofan] Avoid allocating rest parameters for spread calls. (Closed)
Patch Set: Created 3 years, 7 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/compiler/js-call-reducer.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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 ConstructTrampolineDescriptor(isolate)); 451 ConstructTrampolineDescriptor(isolate));
452 } 452 }
453 453
454 // static 454 // static
455 Callable CodeFactory::ConstructFunction(Isolate* isolate) { 455 Callable CodeFactory::ConstructFunction(Isolate* isolate) {
456 return Callable(isolate->builtins()->ConstructFunction(), 456 return Callable(isolate->builtins()->ConstructFunction(),
457 ConstructTrampolineDescriptor(isolate)); 457 ConstructTrampolineDescriptor(isolate));
458 } 458 }
459 459
460 // static 460 // static
461 Callable CodeFactory::ConstructForwardVarargs(Isolate* isolate) {
462 return Callable(isolate->builtins()->ConstructForwardVarargs(),
463 ConstructForwardVarargsDescriptor(isolate));
464 }
465
466 // static
467 Callable CodeFactory::ConstructFunctionForwardVarargs(Isolate* isolate) {
468 return Callable(isolate->builtins()->ConstructFunctionForwardVarargs(),
469 ConstructForwardVarargsDescriptor(isolate));
470 }
471
472 // static
461 Callable CodeFactory::InterpreterPushArgsThenCall( 473 Callable CodeFactory::InterpreterPushArgsThenCall(
462 Isolate* isolate, ConvertReceiverMode receiver_mode, 474 Isolate* isolate, ConvertReceiverMode receiver_mode,
463 TailCallMode tail_call_mode, InterpreterPushArgsMode mode) { 475 TailCallMode tail_call_mode, InterpreterPushArgsMode mode) {
464 return Callable(isolate->builtins()->InterpreterPushArgsThenCall( 476 return Callable(isolate->builtins()->InterpreterPushArgsThenCall(
465 receiver_mode, tail_call_mode, mode), 477 receiver_mode, tail_call_mode, mode),
466 InterpreterPushArgsThenCallDescriptor(isolate)); 478 InterpreterPushArgsThenCallDescriptor(isolate));
467 } 479 }
468 480
469 // static 481 // static
470 Callable CodeFactory::InterpreterPushArgsThenConstruct( 482 Callable CodeFactory::InterpreterPushArgsThenConstruct(
(...skipping 39 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/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698