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

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

Issue 2113673002: [stubs]: Convert FastNewContext stub to turbofan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename based on feedback Created 4 years, 5 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/arm64/interface-descriptors-arm64.cc ('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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 // static 448 // static
449 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { 449 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) {
450 FastCloneShallowObjectStub stub(isolate, length); 450 FastCloneShallowObjectStub stub(isolate, length);
451 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 451 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
452 } 452 }
453 453
454 454
455 // static 455 // static
456 Callable CodeFactory::FastNewContext(Isolate* isolate, int slot_count) { 456 Callable CodeFactory::FastNewContext(Isolate* isolate, int slot_count) {
457 FastNewContextStub stub(isolate, slot_count); 457 FastNewFunctionContextStub stub(isolate, slot_count);
458 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 458 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
459 } 459 }
460 460
461 461
462 // static 462 // static
463 Callable CodeFactory::FastNewClosure(Isolate* isolate) { 463 Callable CodeFactory::FastNewClosure(Isolate* isolate) {
464 FastNewClosureStub stub(isolate); 464 FastNewClosureStub stub(isolate);
465 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 465 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
466 } 466 }
467 467
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 // static 571 // static
572 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 572 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
573 // Note: If we ever use fpregs in the interpreter then we will need to 573 // Note: If we ever use fpregs in the interpreter then we will need to
574 // save fpregs too. 574 // save fpregs too.
575 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 575 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
576 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 576 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
577 } 577 }
578 578
579 } // namespace internal 579 } // namespace internal
580 } // namespace v8 580 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698