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

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

Issue 2670073002: [stubs] Fix naming of CallIC and CallICTrampoline. (Closed)
Patch Set: Created 3 years, 10 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/compiler/js-call-reducer.cc » ('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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // static 82 // static
83 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) { 83 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) {
84 return Callable(isolate->builtins()->KeyedLoadIC(), 84 return Callable(isolate->builtins()->KeyedLoadIC(),
85 LoadWithVectorDescriptor(isolate)); 85 LoadWithVectorDescriptor(isolate));
86 } 86 }
87 87
88 // static 88 // static
89 Callable CodeFactory::CallIC(Isolate* isolate, ConvertReceiverMode mode, 89 Callable CodeFactory::CallIC(Isolate* isolate, ConvertReceiverMode mode,
90 TailCallMode tail_call_mode) { 90 TailCallMode tail_call_mode) {
91 CallICStub stub(isolate, CallICState(mode, tail_call_mode));
92 return make_callable(stub);
93 }
94
95 // static
96 Callable CodeFactory::CallICTrampoline(Isolate* isolate,
97 ConvertReceiverMode mode,
98 TailCallMode tail_call_mode) {
91 CallICTrampolineStub stub(isolate, CallICState(mode, tail_call_mode)); 99 CallICTrampolineStub stub(isolate, CallICState(mode, tail_call_mode));
92 return make_callable(stub); 100 return make_callable(stub);
93 } 101 }
94 102
95 // static
96 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate,
97 ConvertReceiverMode mode,
98 TailCallMode tail_call_mode) {
99 CallICStub stub(isolate, CallICState(mode, tail_call_mode));
100 return make_callable(stub);
101 }
102
103 // static 103 // static
104 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { 104 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) {
105 return Callable(language_mode == STRICT 105 return Callable(language_mode == STRICT
106 ? isolate->builtins()->StoreICStrictTrampoline() 106 ? isolate->builtins()->StoreICStrictTrampoline()
107 : isolate->builtins()->StoreICTrampoline(), 107 : isolate->builtins()->StoreICTrampoline(),
108 StoreDescriptor(isolate)); 108 StoreDescriptor(isolate));
109 } 109 }
110 110
111 // static 111 // static
112 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, 112 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate,
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 475 }
476 476
477 // static 477 // static
478 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 478 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
479 return Callable(isolate->builtins()->FunctionPrototypeBind(), 479 return Callable(isolate->builtins()->FunctionPrototypeBind(),
480 BuiltinDescriptor(isolate)); 480 BuiltinDescriptor(isolate));
481 } 481 }
482 482
483 } // namespace internal 483 } // namespace internal
484 } // namespace v8 484 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698