OLD | NEW |
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 // static | 192 // static |
193 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, | 193 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, |
194 PretenureFlag pretenure_flag) { | 194 PretenureFlag pretenure_flag) { |
195 StringAddStub stub(isolate, flags, pretenure_flag); | 195 StringAddStub stub(isolate, flags, pretenure_flag); |
196 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 196 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
197 } | 197 } |
198 | 198 |
199 | 199 |
200 // static | 200 // static |
| 201 Callable CodeFactory::StringCompare(Isolate* isolate) { |
| 202 StringCompareStub stub(isolate); |
| 203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 204 } |
| 205 |
| 206 |
| 207 // static |
201 Callable CodeFactory::Typeof(Isolate* isolate) { | 208 Callable CodeFactory::Typeof(Isolate* isolate) { |
202 TypeofStub stub(isolate); | 209 TypeofStub stub(isolate); |
203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 210 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
204 } | 211 } |
205 | 212 |
206 | 213 |
207 // static | 214 // static |
208 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) { | 215 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) { |
209 // TODO(mstarzinger): Thread through AllocationSiteMode at some point. | 216 // TODO(mstarzinger): Thread through AllocationSiteMode at some point. |
210 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); | 217 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 251 |
245 | 252 |
246 // static | 253 // static |
247 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) { | 254 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) { |
248 return Callable(isolate->builtins()->PushArgsAndCall(), | 255 return Callable(isolate->builtins()->PushArgsAndCall(), |
249 PushArgsAndCallDescriptor(isolate)); | 256 PushArgsAndCallDescriptor(isolate)); |
250 } | 257 } |
251 | 258 |
252 } // namespace internal | 259 } // namespace internal |
253 } // namespace v8 | 260 } // namespace v8 |
OLD | NEW |