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

Side by Side Diff: src/compiler.cc

Issue 334006: Simple toplevel code generator support for short-circuited boolean OR... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 BAILOUT("UnaryOperation"); 743 BAILOUT("UnaryOperation");
744 } 744 }
745 745
746 746
747 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { 747 void CodeGenSelector::VisitCountOperation(CountOperation* expr) {
748 BAILOUT("CountOperation"); 748 BAILOUT("CountOperation");
749 } 749 }
750 750
751 751
752 void CodeGenSelector::VisitBinaryOperation(BinaryOperation* expr) { 752 void CodeGenSelector::VisitBinaryOperation(BinaryOperation* expr) {
753 BAILOUT("BinaryOperation"); 753 switch (expr->op()) {
754 case Token::OR:
755 Visit(expr->left());
756 CHECK_BAILOUT;
757 Visit(expr->right());
758 break;
759
760 default:
761 BAILOUT("Unsupported binary operation");
762 }
754 } 763 }
755 764
756 765
757 void CodeGenSelector::VisitCompareOperation(CompareOperation* expr) { 766 void CodeGenSelector::VisitCompareOperation(CompareOperation* expr) {
758 BAILOUT("CompareOperation"); 767 BAILOUT("CompareOperation");
759 } 768 }
760 769
761 770
762 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 771 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
763 BAILOUT("ThisFunction"); 772 BAILOUT("ThisFunction");
764 } 773 }
765 774
766 #undef BAILOUT 775 #undef BAILOUT
767 #undef CHECK_BAILOUT 776 #undef CHECK_BAILOUT
768 777
769 778
770 } } // namespace v8::internal 779 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/fast-codegen.cc » ('j') | src/ia32/fast-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698