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

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

Issue 2051573002: [Interpreter] Add intrinsics called as stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix leak Created 4 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/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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 ConstructTrampolineDescriptor(isolate)); 548 ConstructTrampolineDescriptor(isolate));
549 } 549 }
550 550
551 // static 551 // static
552 Callable CodeFactory::HasProperty(Isolate* isolate) { 552 Callable CodeFactory::HasProperty(Isolate* isolate) {
553 HasPropertyStub stub(isolate); 553 HasPropertyStub stub(isolate);
554 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 554 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
555 } 555 }
556 556
557 // static 557 // static
558 Callable CodeFactory::MathPow(Isolate* isolate) {
559 MathPowStub stub(isolate, MathPowStub::ON_STACK);
560 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
561 }
562
563 // static
558 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, 564 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate,
559 TailCallMode tail_call_mode) { 565 TailCallMode tail_call_mode) {
560 return Callable( 566 return Callable(
561 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), 567 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode),
562 InterpreterPushArgsAndCallDescriptor(isolate)); 568 InterpreterPushArgsAndCallDescriptor(isolate));
563 } 569 }
564 570
565 571
566 // static 572 // static
567 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { 573 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) {
568 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), 574 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(),
569 InterpreterPushArgsAndConstructDescriptor(isolate)); 575 InterpreterPushArgsAndConstructDescriptor(isolate));
570 } 576 }
571 577
572 578
573 // static 579 // static
574 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 580 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
575 // Note: If we ever use fpregs in the interpreter then we will need to 581 // Note: If we ever use fpregs in the interpreter then we will need to
576 // save fpregs too. 582 // save fpregs too.
577 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 583 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
578 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 584 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
579 } 585 }
580 586
581 } // namespace internal 587 } // namespace internal
582 } // namespace v8 588 } // 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