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

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

Issue 2412493006: [stubs] Rename LoadIC[Trampoline]TFStub to LoadIC[Trampoline]Stub. (Closed)
Patch Set: Created 4 years, 2 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-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 {
11 namespace internal { 11 namespace internal {
12 12
13 namespace { 13 namespace {
14 14
15 // TODO(ishell): make it (const Stub& stub) once CodeStub::GetCode() is const. 15 // TODO(ishell): make it (const Stub& stub) once CodeStub::GetCode() is const.
16 template <typename Stub> 16 template <typename Stub>
17 Callable make_callable(Stub& stub) { 17 Callable make_callable(Stub& stub) {
18 typedef typename Stub::Descriptor Descriptor; 18 typedef typename Stub::Descriptor Descriptor;
19 return Callable(stub.GetCode(), Descriptor(stub.isolate())); 19 return Callable(stub.GetCode(), Descriptor(stub.isolate()));
20 } 20 }
21 21
22 } // namespace 22 } // namespace
23 23
24 // static 24 // static
25 Callable CodeFactory::LoadIC(Isolate* isolate) { 25 Callable CodeFactory::LoadIC(Isolate* isolate) {
26 LoadICTrampolineTFStub stub(isolate); 26 LoadICTrampolineStub stub(isolate);
27 return make_callable(stub); 27 return make_callable(stub);
28 } 28 }
29 29
30 // static 30 // static
31 Callable CodeFactory::ApiGetter(Isolate* isolate) { 31 Callable CodeFactory::ApiGetter(Isolate* isolate) {
32 CallApiGetterStub stub(isolate); 32 CallApiGetterStub stub(isolate);
33 return make_callable(stub); 33 return make_callable(stub);
34 } 34 }
35 35
36 // static 36 // static
37 Callable CodeFactory::LoadICInOptimizedCode(Isolate* isolate) { 37 Callable CodeFactory::LoadICInOptimizedCode(Isolate* isolate) {
38 LoadICTFStub stub(isolate); 38 LoadICStub stub(isolate);
39 return make_callable(stub); 39 return make_callable(stub);
40 } 40 }
41 41
42 // static 42 // static
43 Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) { 43 Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) {
44 LoadGlobalICTrampolineStub stub(isolate, LoadGlobalICState(typeof_mode)); 44 LoadGlobalICTrampolineStub stub(isolate, LoadGlobalICState(typeof_mode));
45 return make_callable(stub); 45 return make_callable(stub);
46 } 46 }
47 47
48 // static 48 // static
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 498 }
499 499
500 // static 500 // static
501 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 501 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
502 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 502 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
503 ContextOnlyDescriptor(isolate)); 503 ContextOnlyDescriptor(isolate));
504 } 504 }
505 505
506 } // namespace internal 506 } // namespace internal
507 } // namespace v8 507 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698