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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 CHECK_BAILOUT; | 830 CHECK_BAILOUT; |
831 } | 831 } |
832 } | 832 } |
833 | 833 |
834 | 834 |
835 void CodeGenSelector::VisitUnaryOperation(UnaryOperation* expr) { | 835 void CodeGenSelector::VisitUnaryOperation(UnaryOperation* expr) { |
836 switch (expr->op()) { | 836 switch (expr->op()) { |
837 case Token::VOID: | 837 case Token::VOID: |
838 ProcessExpression(expr->expression(), Expression::kEffect); | 838 ProcessExpression(expr->expression(), Expression::kEffect); |
839 break; | 839 break; |
| 840 case Token::NOT: |
| 841 ProcessExpression(expr->expression(), Expression::kTest); |
| 842 break; |
840 default: | 843 default: |
841 BAILOUT("UnaryOperation"); | 844 BAILOUT("UnaryOperation"); |
842 } | 845 } |
843 } | 846 } |
844 | 847 |
845 | 848 |
846 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { | 849 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { |
847 BAILOUT("CountOperation"); | 850 BAILOUT("CountOperation"); |
848 } | 851 } |
849 | 852 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 | 932 |
930 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 933 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
931 BAILOUT("ThisFunction"); | 934 BAILOUT("ThisFunction"); |
932 } | 935 } |
933 | 936 |
934 #undef BAILOUT | 937 #undef BAILOUT |
935 #undef CHECK_BAILOUT | 938 #undef CHECK_BAILOUT |
936 | 939 |
937 | 940 |
938 } } // namespace v8::internal | 941 } } // namespace v8::internal |
OLD | NEW |