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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 case Token::GTE: | 287 case Token::GTE: |
288 return StringGreaterThanOrEqual(isolate); | 288 return StringGreaterThanOrEqual(isolate); |
289 default: | 289 default: |
290 break; | 290 break; |
291 } | 291 } |
292 UNREACHABLE(); | 292 UNREACHABLE(); |
293 return StringEqual(isolate); | 293 return StringEqual(isolate); |
294 } | 294 } |
295 | 295 |
296 // static | 296 // static |
| 297 Callable CodeFactory::StringIndexOf(Isolate* isolate) { |
| 298 return Callable(isolate->builtins()->StringIndexOf(), |
| 299 StringIndexOfDescriptor(isolate)); |
| 300 } |
| 301 |
| 302 // static |
297 Callable CodeFactory::SubString(Isolate* isolate) { | 303 Callable CodeFactory::SubString(Isolate* isolate) { |
298 SubStringStub stub(isolate); | 304 SubStringStub stub(isolate); |
299 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 305 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
300 } | 306 } |
301 | 307 |
302 // static | 308 // static |
303 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { | 309 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { |
304 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), | 310 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), |
305 ResumeGeneratorDescriptor(isolate)); | 311 ResumeGeneratorDescriptor(isolate)); |
306 } | 312 } |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 } | 445 } |
440 | 446 |
441 // static | 447 // static |
442 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 448 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
443 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 449 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
444 BuiltinDescriptor(isolate)); | 450 BuiltinDescriptor(isolate)); |
445 } | 451 } |
446 | 452 |
447 } // namespace internal | 453 } // namespace internal |
448 } // namespace v8 | 454 } // namespace v8 |
OLD | NEW |