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

Side by Side Diff: src/compiler.cc

Issue 371064: Add function literals that always require non-lazy compilation to the top-lev... (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 | no next file » | 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 BAILOUT("TryFinallyStatement"); 750 BAILOUT("TryFinallyStatement");
751 } 751 }
752 752
753 753
754 void CodeGenSelector::VisitDebuggerStatement(DebuggerStatement* stmt) { 754 void CodeGenSelector::VisitDebuggerStatement(DebuggerStatement* stmt) {
755 // Debugger statement is supported. 755 // Debugger statement is supported.
756 } 756 }
757 757
758 758
759 void CodeGenSelector::VisitFunctionLiteral(FunctionLiteral* expr) { 759 void CodeGenSelector::VisitFunctionLiteral(FunctionLiteral* expr) {
760 if (!expr->AllowsLazyCompilation()) { 760 // FunctionLiteral is supported.
761 BAILOUT("FunctionLiteral does not allow lazy compilation");
762 }
763 } 761 }
764 762
765 763
766 void CodeGenSelector::VisitFunctionBoilerplateLiteral( 764 void CodeGenSelector::VisitFunctionBoilerplateLiteral(
767 FunctionBoilerplateLiteral* expr) { 765 FunctionBoilerplateLiteral* expr) {
768 BAILOUT("FunctionBoilerplateLiteral"); 766 BAILOUT("FunctionBoilerplateLiteral");
769 } 767 }
770 768
771 769
772 void CodeGenSelector::VisitConditional(Conditional* expr) { 770 void CodeGenSelector::VisitConditional(Conditional* expr) {
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 1096
1099 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 1097 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
1100 BAILOUT("ThisFunction"); 1098 BAILOUT("ThisFunction");
1101 } 1099 }
1102 1100
1103 #undef BAILOUT 1101 #undef BAILOUT
1104 #undef CHECK_BAILOUT 1102 #undef CHECK_BAILOUT
1105 1103
1106 1104
1107 } } // namespace v8::internal 1105 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698