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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 CHECK_BAILOUT; | 126 CHECK_BAILOUT; |
127 Visit(stmt->else_statement()); | 127 Visit(stmt->else_statement()); |
128 } | 128 } |
129 | 129 |
130 | 130 |
131 void FullCodeGenSyntaxChecker::VisitContinueStatement(ContinueStatement* stmt) { | 131 void FullCodeGenSyntaxChecker::VisitContinueStatement(ContinueStatement* stmt) { |
132 // Supported. | 132 // Supported. |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 void FullCodeGenSyntaxChecker::VisitBreakStatement(BreakStatement* stmt) {} | 136 void FullCodeGenSyntaxChecker::VisitBreakStatement(BreakStatement* stmt) { |
| 137 // Supported. |
| 138 } |
137 | 139 |
138 | 140 |
139 void FullCodeGenSyntaxChecker::VisitReturnStatement(ReturnStatement* stmt) { | 141 void FullCodeGenSyntaxChecker::VisitReturnStatement(ReturnStatement* stmt) { |
140 Visit(stmt->expression()); | 142 Visit(stmt->expression()); |
141 } | 143 } |
142 | 144 |
143 | 145 |
144 void FullCodeGenSyntaxChecker::VisitWithEnterStatement( | 146 void FullCodeGenSyntaxChecker::VisitWithEnterStatement( |
145 WithEnterStatement* stmt) { | 147 WithEnterStatement* stmt) { |
146 Visit(stmt->expression()); | 148 Visit(stmt->expression()); |
(...skipping 18 matching lines...) Expand all Loading... |
165 | 167 |
166 | 168 |
167 void FullCodeGenSyntaxChecker::VisitWhileStatement(WhileStatement* stmt) { | 169 void FullCodeGenSyntaxChecker::VisitWhileStatement(WhileStatement* stmt) { |
168 Visit(stmt->cond()); | 170 Visit(stmt->cond()); |
169 CHECK_BAILOUT; | 171 CHECK_BAILOUT; |
170 Visit(stmt->body()); | 172 Visit(stmt->body()); |
171 } | 173 } |
172 | 174 |
173 | 175 |
174 void FullCodeGenSyntaxChecker::VisitForStatement(ForStatement* stmt) { | 176 void FullCodeGenSyntaxChecker::VisitForStatement(ForStatement* stmt) { |
175 if (!FLAG_always_fast_compiler) BAILOUT("ForStatement"); | 177 if (!FLAG_always_full_compiler) BAILOUT("ForStatement"); |
176 if (stmt->init() != NULL) { | 178 if (stmt->init() != NULL) { |
177 Visit(stmt->init()); | 179 Visit(stmt->init()); |
178 CHECK_BAILOUT; | 180 CHECK_BAILOUT; |
179 } | 181 } |
180 if (stmt->cond() != NULL) { | 182 if (stmt->cond() != NULL) { |
181 Visit(stmt->cond()); | 183 Visit(stmt->cond()); |
182 CHECK_BAILOUT; | 184 CHECK_BAILOUT; |
183 } | 185 } |
184 Visit(stmt->body()); | 186 Visit(stmt->body()); |
185 if (stmt->next() != NULL) { | 187 if (stmt->next() != NULL) { |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 __ Drop(stack_depth); | 1188 __ Drop(stack_depth); |
1187 __ PopTryHandler(); | 1189 __ PopTryHandler(); |
1188 return 0; | 1190 return 0; |
1189 } | 1191 } |
1190 | 1192 |
1191 | 1193 |
1192 #undef __ | 1194 #undef __ |
1193 | 1195 |
1194 | 1196 |
1195 } } // namespace v8::internal | 1197 } } // namespace v8::internal |
OLD | NEW |