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

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

Issue 2100883003: [Code Stubs] Convert FastNewClosureStub to a TurboFanCodeStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix ia32 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/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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 FastNewContextStub 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 LanguageMode language_mode, 464 FastNewClosureStub stub(isolate);
465 FunctionKind kind) {
466 FastNewClosureStub stub(isolate, language_mode, kind);
467 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 465 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
468 } 466 }
469 467
470 468
471 // static 469 // static
472 Callable CodeFactory::FastNewObject(Isolate* isolate) { 470 Callable CodeFactory::FastNewObject(Isolate* isolate) {
473 FastNewObjectStub stub(isolate); 471 FastNewObjectStub stub(isolate);
474 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 472 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
475 } 473 }
476 474
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // static 577 // static
580 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 578 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
581 // Note: If we ever use fpregs in the interpreter then we will need to 579 // Note: If we ever use fpregs in the interpreter then we will need to
582 // save fpregs too. 580 // save fpregs too.
583 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 581 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
584 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 582 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
585 } 583 }
586 584
587 } // namespace internal 585 } // namespace internal
588 } // namespace v8 586 } // 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