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

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

Issue 1196213004: [turbofan] Add CodeFactory::Instanceof helper. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/compiler/js-generic-lowering.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // static 104 // static
105 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op, 105 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op,
106 Strength strength) { 106 Strength strength) {
107 BinaryOpICStub stub(isolate, op, strength); 107 BinaryOpICStub stub(isolate, op, strength);
108 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 108 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
109 } 109 }
110 110
111 111
112 // static 112 // static
113 Callable CodeFactory::Instanceof(Isolate* isolate,
114 InstanceofStub::Flags flags) {
115 InstanceofStub stub(isolate, flags);
116 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
117 }
118
119
120 // static
113 Callable CodeFactory::ToBoolean(Isolate* isolate, 121 Callable CodeFactory::ToBoolean(Isolate* isolate,
114 ToBooleanStub::ResultMode mode, 122 ToBooleanStub::ResultMode mode,
115 ToBooleanStub::Types types) { 123 ToBooleanStub::Types types) {
116 ToBooleanStub stub(isolate, mode, types); 124 ToBooleanStub stub(isolate, mode, types);
117 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 125 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
118 } 126 }
119 127
120 128
121 // static 129 // static
122 Callable CodeFactory::ToNumber(Isolate* isolate) { 130 Callable CodeFactory::ToNumber(Isolate* isolate) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 181
174 // static 182 // static
175 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 183 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
176 CallFunctionFlags flags) { 184 CallFunctionFlags flags) {
177 CallFunctionStub stub(isolate, argc, flags); 185 CallFunctionStub stub(isolate, argc, flags);
178 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 186 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
179 } 187 }
180 188
181 } // namespace internal 189 } // namespace internal
182 } // namespace v8 190 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698