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

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

Issue 2031753003: [stubs] Introducing LoadICTFStub and LoadICTrampolineTFStub and a switch to enable them instead of … (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments 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 | « no previous file | src/code-stub-assembler.h » ('j') | test/cctest/test-code-stub-assembler.cc » ('J')
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 {
11 namespace internal { 11 namespace internal {
12 12
13 13
14 // static 14 // static
15 Callable CodeFactory::LoadIC(Isolate* isolate, TypeofMode typeof_mode) { 15 Callable CodeFactory::LoadIC(Isolate* isolate, TypeofMode typeof_mode) {
16 if (FLAG_tf_load_ic_stub) {
17 LoadICTrampolineTFStub stub(isolate, LoadICState(typeof_mode));
18 return Callable(stub.GetCode(), LoadDescriptor(isolate));
19 }
16 LoadICTrampolineStub stub(isolate, LoadICState(typeof_mode)); 20 LoadICTrampolineStub stub(isolate, LoadICState(typeof_mode));
17 return Callable(stub.GetCode(), LoadDescriptor(isolate)); 21 return Callable(stub.GetCode(), LoadDescriptor(isolate));
18 } 22 }
19 23
20 // static 24 // static
21 Callable CodeFactory::ApiGetter(Isolate* isolate) { 25 Callable CodeFactory::ApiGetter(Isolate* isolate) {
22 CallApiGetterStub stub(isolate); 26 CallApiGetterStub stub(isolate);
23 return Callable(stub.GetCode(), ApiGetterDescriptor(isolate)); 27 return Callable(stub.GetCode(), ApiGetterDescriptor(isolate));
24 } 28 }
25 29
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 // static 562 // static
559 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 563 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
560 // Note: If we ever use fpregs in the interpreter then we will need to 564 // Note: If we ever use fpregs in the interpreter then we will need to
561 // save fpregs too. 565 // save fpregs too.
562 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 566 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
563 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 567 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
564 } 568 }
565 569
566 } // namespace internal 570 } // namespace internal
567 } // namespace v8 571 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.h » ('j') | test/cctest/test-code-stub-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698