| 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 case Token::VOID: | 928 case Token::VOID: |
| 929 case Token::NOT: | 929 case Token::NOT: |
| 930 case Token::TYPEOF: | 930 case Token::TYPEOF: |
| 931 Visit(expr->expression()); | 931 Visit(expr->expression()); |
| 932 break; | 932 break; |
| 933 case Token::BIT_NOT: | 933 case Token::BIT_NOT: |
| 934 BAILOUT("UnaryOperataion: BIT_NOT"); | 934 BAILOUT("UnaryOperataion: BIT_NOT"); |
| 935 case Token::DELETE: | 935 case Token::DELETE: |
| 936 BAILOUT("UnaryOperataion: DELETE"); | 936 BAILOUT("UnaryOperataion: DELETE"); |
| 937 default: | 937 default: |
| 938 UNREACHABLE(); | 938 BAILOUT("UnaryOperataion"); |
| 939 } | 939 } |
| 940 } | 940 } |
| 941 | 941 |
| 942 | 942 |
| 943 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { | 943 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { |
| 944 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); | 944 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); |
| 945 Property* prop = expr->expression()->AsProperty(); | 945 Property* prop = expr->expression()->AsProperty(); |
| 946 ASSERT(var == NULL || prop == NULL); | 946 ASSERT(var == NULL || prop == NULL); |
| 947 if (var != NULL) { | 947 if (var != NULL) { |
| 948 // All global variables are supported. | 948 // All global variables are supported. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 979 } | 979 } |
| 980 | 980 |
| 981 | 981 |
| 982 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {} | 982 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {} |
| 983 | 983 |
| 984 #undef BAILOUT | 984 #undef BAILOUT |
| 985 #undef CHECK_BAILOUT | 985 #undef CHECK_BAILOUT |
| 986 | 986 |
| 987 | 987 |
| 988 } } // namespace v8::internal | 988 } } // namespace v8::internal |
| OLD | NEW |