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

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

Issue 2363333003: [turbofan] Lower StringEqual and friends in EffectControlLinearizer. (Closed)
Patch Set: 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
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 return StringGreaterThanOrEqual(isolate); 395 return StringGreaterThanOrEqual(isolate);
396 default: 396 default:
397 break; 397 break;
398 } 398 }
399 UNREACHABLE(); 399 UNREACHABLE();
400 return StringEqual(isolate); 400 return StringEqual(isolate);
401 } 401 }
402 402
403 // static 403 // static
404 Callable CodeFactory::StringEqual(Isolate* isolate) { 404 Callable CodeFactory::StringEqual(Isolate* isolate) {
405 StringEqualStub stub(isolate); 405 return Callable(isolate->builtins()->StringEqual(),
406 return make_callable(stub); 406 CompareDescriptor(isolate));
407 } 407 }
408 408
409 // static 409 // static
410 Callable CodeFactory::StringNotEqual(Isolate* isolate) { 410 Callable CodeFactory::StringNotEqual(Isolate* isolate) {
411 StringNotEqualStub stub(isolate); 411 return Callable(isolate->builtins()->StringNotEqual(),
412 return make_callable(stub); 412 CompareDescriptor(isolate));
413 } 413 }
414 414
415 // static 415 // static
416 Callable CodeFactory::StringLessThan(Isolate* isolate) { 416 Callable CodeFactory::StringLessThan(Isolate* isolate) {
417 StringLessThanStub stub(isolate); 417 return Callable(isolate->builtins()->StringLessThan(),
418 return make_callable(stub); 418 CompareDescriptor(isolate));
419 } 419 }
420 420
421 // static 421 // static
422 Callable CodeFactory::StringLessThanOrEqual(Isolate* isolate) { 422 Callable CodeFactory::StringLessThanOrEqual(Isolate* isolate) {
423 StringLessThanOrEqualStub stub(isolate); 423 return Callable(isolate->builtins()->StringLessThanOrEqual(),
424 return make_callable(stub); 424 CompareDescriptor(isolate));
425 } 425 }
426 426
427 // static 427 // static
428 Callable CodeFactory::StringGreaterThan(Isolate* isolate) { 428 Callable CodeFactory::StringGreaterThan(Isolate* isolate) {
429 StringGreaterThanStub stub(isolate); 429 return Callable(isolate->builtins()->StringGreaterThan(),
430 return make_callable(stub); 430 CompareDescriptor(isolate));
431 } 431 }
432 432
433 // static 433 // static
434 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) { 434 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) {
435 StringGreaterThanOrEqualStub stub(isolate); 435 return Callable(isolate->builtins()->StringGreaterThanOrEqual(),
436 return make_callable(stub); 436 CompareDescriptor(isolate));
437 } 437 }
438 438
439 // static 439 // static
440 Callable CodeFactory::SubString(Isolate* isolate) { 440 Callable CodeFactory::SubString(Isolate* isolate) {
441 SubStringStub stub(isolate); 441 SubStringStub stub(isolate);
442 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 442 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
443 } 443 }
444 444
445 // static 445 // static
446 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { 446 Callable CodeFactory::ResumeGenerator(Isolate* isolate) {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 } 620 }
621 621
622 // static 622 // static
623 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 623 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
624 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 624 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
625 ContextOnlyDescriptor(isolate)); 625 ContextOnlyDescriptor(isolate));
626 } 626 }
627 627
628 } // namespace internal 628 } // namespace internal
629 } // namespace v8 629 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698