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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 } | 818 } |
819 // Check all arguments to the call. (Relies on TEMP meaning STACK.) | 819 // Check all arguments to the call. (Relies on TEMP meaning STACK.) |
820 for (int i = 0; i < expr->arguments()->length(); i++) { | 820 for (int i = 0; i < expr->arguments()->length(); i++) { |
821 ProcessExpression(expr->arguments()->at(i), Expression::kValue); | 821 ProcessExpression(expr->arguments()->at(i), Expression::kValue); |
822 CHECK_BAILOUT; | 822 CHECK_BAILOUT; |
823 } | 823 } |
824 } | 824 } |
825 | 825 |
826 | 826 |
827 void CodeGenSelector::VisitUnaryOperation(UnaryOperation* expr) { | 827 void CodeGenSelector::VisitUnaryOperation(UnaryOperation* expr) { |
828 BAILOUT("UnaryOperation"); | 828 switch (expr->op()) { |
| 829 case Token::VOID: |
| 830 ProcessExpression(expr->expression(), Expression::kEffect); |
| 831 break; |
| 832 default: |
| 833 BAILOUT("UnaryOperation"); |
| 834 } |
829 } | 835 } |
830 | 836 |
831 | 837 |
832 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { | 838 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { |
833 BAILOUT("CountOperation"); | 839 BAILOUT("CountOperation"); |
834 } | 840 } |
835 | 841 |
836 | 842 |
837 void CodeGenSelector::VisitBinaryOperation(BinaryOperation* expr) { | 843 void CodeGenSelector::VisitBinaryOperation(BinaryOperation* expr) { |
838 switch (expr->op()) { | 844 switch (expr->op()) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 | 883 |
878 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 884 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
879 BAILOUT("ThisFunction"); | 885 BAILOUT("ThisFunction"); |
880 } | 886 } |
881 | 887 |
882 #undef BAILOUT | 888 #undef BAILOUT |
883 #undef CHECK_BAILOUT | 889 #undef CHECK_BAILOUT |
884 | 890 |
885 | 891 |
886 } } // namespace v8::internal | 892 } } // namespace v8::internal |
OLD | NEW |