Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: src/compiler.cc

Issue 397010: A start on allowing non-local control flow, for exceptions, try-finally, and ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/fast-codegen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/fast-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698