| 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 | 717 |
| 718 | 718 |
| 719 void CodeGenSelector::VisitCatchExtensionObject(CatchExtensionObject* expr) { | 719 void CodeGenSelector::VisitCatchExtensionObject(CatchExtensionObject* expr) { |
| 720 BAILOUT("CatchExtensionObject"); | 720 BAILOUT("CatchExtensionObject"); |
| 721 } | 721 } |
| 722 | 722 |
| 723 | 723 |
| 724 void CodeGenSelector::VisitAssignment(Assignment* expr) { | 724 void CodeGenSelector::VisitAssignment(Assignment* expr) { |
| 725 // We support plain non-compound assignments to properties, parameters and | 725 // We support plain non-compound assignments to properties, parameters and |
| 726 // non-context (stack-allocated) locals, and global variables. | 726 // non-context (stack-allocated) locals, and global variables. |
| 727 if (expr->starts_initialization_block() || | |
| 728 expr->ends_initialization_block()) { | |
| 729 BAILOUT("initialization block start"); | |
| 730 } | |
| 731 | |
| 732 Token::Value op = expr->op(); | 727 Token::Value op = expr->op(); |
| 733 if (op == Token::INIT_CONST) BAILOUT("initialize constant"); | 728 if (op == Token::INIT_CONST) BAILOUT("initialize constant"); |
| 734 if (op != Token::ASSIGN && op != Token::INIT_VAR) { | 729 if (op != Token::ASSIGN && op != Token::INIT_VAR) { |
| 735 BAILOUT("compound assignment"); | 730 BAILOUT("compound assignment"); |
| 736 } | 731 } |
| 737 | 732 |
| 738 Variable* var = expr->target()->AsVariableProxy()->AsVariable(); | 733 Variable* var = expr->target()->AsVariableProxy()->AsVariable(); |
| 739 Property* prop = expr->target()->AsProperty(); | 734 Property* prop = expr->target()->AsProperty(); |
| 740 if (var != NULL) { | 735 if (var != NULL) { |
| 741 // All global variables are supported. | 736 // All global variables are supported. |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 | 949 |
| 955 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 950 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
| 956 BAILOUT("ThisFunction"); | 951 BAILOUT("ThisFunction"); |
| 957 } | 952 } |
| 958 | 953 |
| 959 #undef BAILOUT | 954 #undef BAILOUT |
| 960 #undef CHECK_BAILOUT | 955 #undef CHECK_BAILOUT |
| 961 | 956 |
| 962 | 957 |
| 963 } } // namespace v8::internal | 958 } } // namespace v8::internal |
| OLD | NEW |