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

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

Issue 2363333003: [turbofan] Lower StringEqual and friends in EffectControlLinearizer. (Closed)
Patch Set: Preinitialize interface descriptors and drop TODO. Created 4 years, 2 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/builtins/builtins-string.cc ('k') | src/code-stubs.h » ('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/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
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
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
OLDNEW
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698