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

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

Issue 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: MIPS64 port 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/compiler/bytecode-graph-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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 CallTrampolineDescriptor(isolate)); 459 CallTrampolineDescriptor(isolate));
460 } 460 }
461 461
462 // static 462 // static
463 Callable CodeFactory::Construct(Isolate* isolate) { 463 Callable CodeFactory::Construct(Isolate* isolate) {
464 return Callable(isolate->builtins()->Construct(), 464 return Callable(isolate->builtins()->Construct(),
465 ConstructTrampolineDescriptor(isolate)); 465 ConstructTrampolineDescriptor(isolate));
466 } 466 }
467 467
468 // static 468 // static
469 Callable CodeFactory::ConstructWithSpread(Isolate* isolate) {
470 return Callable(isolate->builtins()->ConstructWithSpread(),
471 ConstructTrampolineDescriptor(isolate));
472 }
473
474 // static
469 Callable CodeFactory::ConstructFunction(Isolate* isolate) { 475 Callable CodeFactory::ConstructFunction(Isolate* isolate) {
470 return Callable(isolate->builtins()->ConstructFunction(), 476 return Callable(isolate->builtins()->ConstructFunction(),
471 ConstructTrampolineDescriptor(isolate)); 477 ConstructTrampolineDescriptor(isolate));
472 } 478 }
473 479
474 // static 480 // static
475 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, 481 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate,
476 TailCallMode tail_call_mode, 482 TailCallMode tail_call_mode,
477 CallableType function_type) { 483 CallableType function_type) {
478 return Callable(isolate->builtins()->InterpreterPushArgsAndCall( 484 return Callable(isolate->builtins()->InterpreterPushArgsAndCall(
479 tail_call_mode, function_type), 485 tail_call_mode, function_type),
480 InterpreterPushArgsAndCallDescriptor(isolate)); 486 InterpreterPushArgsAndCallDescriptor(isolate));
481 } 487 }
482 488
483 // static 489 // static
484 Callable CodeFactory::InterpreterPushArgsAndConstruct( 490 Callable CodeFactory::InterpreterPushArgsAndConstruct(
485 Isolate* isolate, CallableType function_type) { 491 Isolate* isolate, PushArgsConstructMode mode) {
486 return Callable( 492 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(mode),
487 isolate->builtins()->InterpreterPushArgsAndConstruct(function_type), 493 InterpreterPushArgsAndConstructDescriptor(isolate));
488 InterpreterPushArgsAndConstructDescriptor(isolate));
489 } 494 }
490 495
491 // static 496 // static
492 Callable CodeFactory::InterpreterPushArgsAndConstructArray(Isolate* isolate) { 497 Callable CodeFactory::InterpreterPushArgsAndConstructArray(Isolate* isolate) {
493 return Callable(isolate->builtins()->InterpreterPushArgsAndConstructArray(), 498 return Callable(isolate->builtins()->InterpreterPushArgsAndConstructArray(),
494 InterpreterPushArgsAndConstructArrayDescriptor(isolate)); 499 InterpreterPushArgsAndConstructArrayDescriptor(isolate));
495 } 500 }
496 501
497 // static 502 // static
498 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 503 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
(...skipping 15 matching lines...) Expand all
514 } 519 }
515 520
516 // static 521 // static
517 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 522 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
518 return Callable(isolate->builtins()->FunctionPrototypeBind(), 523 return Callable(isolate->builtins()->FunctionPrototypeBind(),
519 BuiltinDescriptor(isolate)); 524 BuiltinDescriptor(isolate));
520 } 525 }
521 526
522 } // namespace internal 527 } // namespace internal
523 } // namespace v8 528 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/bytecode-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698