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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 return StringGreaterThanOrEqual(isolate); | 403 return StringGreaterThanOrEqual(isolate); |
404 default: | 404 default: |
405 break; | 405 break; |
406 } | 406 } |
407 UNREACHABLE(); | 407 UNREACHABLE(); |
408 return StringEqual(isolate); | 408 return StringEqual(isolate); |
409 } | 409 } |
410 | 410 |
411 // static | 411 // static |
412 Callable CodeFactory::StringEqual(Isolate* isolate) { | 412 Callable CodeFactory::StringEqual(Isolate* isolate) { |
413 StringEqualStub stub(isolate); | 413 return Callable(isolate->builtins()->StringEqual(), |
414 return make_callable(stub); | 414 CompareDescriptor(isolate)); |
415 } | 415 } |
416 | 416 |
417 // static | 417 // static |
418 Callable CodeFactory::StringNotEqual(Isolate* isolate) { | 418 Callable CodeFactory::StringNotEqual(Isolate* isolate) { |
419 StringNotEqualStub stub(isolate); | 419 return Callable(isolate->builtins()->StringNotEqual(), |
420 return make_callable(stub); | 420 CompareDescriptor(isolate)); |
421 } | 421 } |
422 | 422 |
423 // static | 423 // static |
424 Callable CodeFactory::StringLessThan(Isolate* isolate) { | 424 Callable CodeFactory::StringLessThan(Isolate* isolate) { |
425 StringLessThanStub stub(isolate); | 425 return Callable(isolate->builtins()->StringLessThan(), |
426 return make_callable(stub); | 426 CompareDescriptor(isolate)); |
427 } | 427 } |
428 | 428 |
429 // static | 429 // static |
430 Callable CodeFactory::StringLessThanOrEqual(Isolate* isolate) { | 430 Callable CodeFactory::StringLessThanOrEqual(Isolate* isolate) { |
431 StringLessThanOrEqualStub stub(isolate); | 431 return Callable(isolate->builtins()->StringLessThanOrEqual(), |
432 return make_callable(stub); | 432 CompareDescriptor(isolate)); |
433 } | 433 } |
434 | 434 |
435 // static | 435 // static |
436 Callable CodeFactory::StringGreaterThan(Isolate* isolate) { | 436 Callable CodeFactory::StringGreaterThan(Isolate* isolate) { |
437 StringGreaterThanStub stub(isolate); | 437 return Callable(isolate->builtins()->StringGreaterThan(), |
438 return make_callable(stub); | 438 CompareDescriptor(isolate)); |
439 } | 439 } |
440 | 440 |
441 // static | 441 // static |
442 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) { | 442 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) { |
443 StringGreaterThanOrEqualStub stub(isolate); | 443 return Callable(isolate->builtins()->StringGreaterThanOrEqual(), |
444 return make_callable(stub); | 444 CompareDescriptor(isolate)); |
445 } | 445 } |
446 | 446 |
447 // static | 447 // static |
448 Callable CodeFactory::SubString(Isolate* isolate) { | 448 Callable CodeFactory::SubString(Isolate* isolate) { |
449 SubStringStub stub(isolate); | 449 SubStringStub stub(isolate); |
450 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 450 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
451 } | 451 } |
452 | 452 |
453 // static | 453 // static |
454 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { | 454 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 } | 628 } |
629 | 629 |
630 // static | 630 // static |
631 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 631 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
632 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 632 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
633 ContextOnlyDescriptor(isolate)); | 633 ContextOnlyDescriptor(isolate)); |
634 } | 634 } |
635 | 635 |
636 } // namespace internal | 636 } // namespace internal |
637 } // namespace v8 | 637 } // namespace v8 |
OLD | NEW |