| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |