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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 CompareDescriptor(isolate)); | 331 CompareDescriptor(isolate)); |
332 } | 332 } |
333 | 333 |
334 // static | 334 // static |
335 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) { | 335 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) { |
336 return Callable(isolate->builtins()->StringGreaterThanOrEqual(), | 336 return Callable(isolate->builtins()->StringGreaterThanOrEqual(), |
337 CompareDescriptor(isolate)); | 337 CompareDescriptor(isolate)); |
338 } | 338 } |
339 | 339 |
340 // static | 340 // static |
| 341 Callable CodeFactory::StringIndexOf(Isolate* isolate) { |
| 342 return Callable(isolate->builtins()->StringIndexOf(), |
| 343 StringIndexOfDescriptor(isolate)); |
| 344 } |
| 345 |
| 346 // static |
341 Callable CodeFactory::SubString(Isolate* isolate) { | 347 Callable CodeFactory::SubString(Isolate* isolate) { |
342 SubStringStub stub(isolate); | 348 SubStringStub stub(isolate); |
343 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 349 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
344 } | 350 } |
345 | 351 |
346 // static | 352 // static |
347 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { | 353 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { |
348 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), | 354 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), |
349 ResumeGeneratorDescriptor(isolate)); | 355 ResumeGeneratorDescriptor(isolate)); |
350 } | 356 } |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 } | 520 } |
515 | 521 |
516 // static | 522 // static |
517 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 523 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
518 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 524 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
519 BuiltinDescriptor(isolate)); | 525 BuiltinDescriptor(isolate)); |
520 } | 526 } |
521 | 527 |
522 } // namespace internal | 528 } // namespace internal |
523 } // namespace v8 | 529 } // namespace v8 |
OLD | NEW |