| 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 BAILOUT("ForInStatement"); | 747 BAILOUT("ForInStatement"); |
| 748 } | 748 } |
| 749 | 749 |
| 750 | 750 |
| 751 void CodeGenSelector::VisitTryCatchStatement(TryCatchStatement* stmt) { | 751 void CodeGenSelector::VisitTryCatchStatement(TryCatchStatement* stmt) { |
| 752 BAILOUT("TryCatchStatement"); | 752 BAILOUT("TryCatchStatement"); |
| 753 } | 753 } |
| 754 | 754 |
| 755 | 755 |
| 756 void CodeGenSelector::VisitTryFinallyStatement(TryFinallyStatement* stmt) { | 756 void CodeGenSelector::VisitTryFinallyStatement(TryFinallyStatement* stmt) { |
| 757 BAILOUT("TryFinallyStatement"); | 757 if (stmt->escaping_targets()->length() > 0) { |
| 758 BAILOUT("TryFinallyStatement has break or continue leaving try block."); |
| 759 } |
| 760 Visit(stmt->try_block()); |
| 761 CHECK_BAILOUT; |
| 762 Visit(stmt->finally_block()); |
| 758 } | 763 } |
| 759 | 764 |
| 760 | 765 |
| 761 void CodeGenSelector::VisitDebuggerStatement(DebuggerStatement* stmt) { | 766 void CodeGenSelector::VisitDebuggerStatement(DebuggerStatement* stmt) { |
| 762 // Debugger statement is supported. | 767 // Debugger statement is supported. |
| 763 } | 768 } |
| 764 | 769 |
| 765 | 770 |
| 766 void CodeGenSelector::VisitFunctionLiteral(FunctionLiteral* expr) { | 771 void CodeGenSelector::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 767 // Function literal is supported. | 772 // Function literal is supported. |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 | 1108 |
| 1104 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 1109 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
| 1105 BAILOUT("ThisFunction"); | 1110 BAILOUT("ThisFunction"); |
| 1106 } | 1111 } |
| 1107 | 1112 |
| 1108 #undef BAILOUT | 1113 #undef BAILOUT |
| 1109 #undef CHECK_BAILOUT | 1114 #undef CHECK_BAILOUT |
| 1110 | 1115 |
| 1111 | 1116 |
| 1112 } } // namespace v8::internal | 1117 } } // namespace v8::internal |
| OLD | NEW |