OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 void Processor::VisitBreakStatement(BreakStatement* node) { | 195 void Processor::VisitBreakStatement(BreakStatement* node) { |
196 is_set_ = false; | 196 is_set_ = false; |
197 } | 197 } |
198 | 198 |
199 | 199 |
200 // Do nothing: | 200 // Do nothing: |
201 void Processor::VisitDeclaration(Declaration* node) {} | 201 void Processor::VisitDeclaration(Declaration* node) {} |
202 void Processor::VisitEmptyStatement(EmptyStatement* node) {} | 202 void Processor::VisitEmptyStatement(EmptyStatement* node) {} |
203 void Processor::VisitReturnStatement(ReturnStatement* node) {} | 203 void Processor::VisitReturnStatement(ReturnStatement* node) {} |
204 void Processor::VisitEnterWithContextStatement( | 204 void Processor::VisitWithStatement(WithStatement* node) {} |
205 EnterWithContextStatement* node) { | |
206 } | |
207 void Processor::VisitExitContextStatement(ExitContextStatement* node) {} | 205 void Processor::VisitExitContextStatement(ExitContextStatement* node) {} |
208 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} | 206 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} |
209 | 207 |
210 | 208 |
211 // Expressions are never visited yet. | 209 // Expressions are never visited yet. |
212 #define DEF_VISIT(type) \ | 210 #define DEF_VISIT(type) \ |
213 void Processor::Visit##type(type* expr) { UNREACHABLE(); } | 211 void Processor::Visit##type(type* expr) { UNREACHABLE(); } |
214 EXPRESSION_NODE_LIST(DEF_VISIT) | 212 EXPRESSION_NODE_LIST(DEF_VISIT) |
215 #undef DEF_VISIT | 213 #undef DEF_VISIT |
216 | 214 |
(...skipping 21 matching lines...) Expand all Loading... |
238 VariableProxy* result_proxy = new(zone) VariableProxy(isolate, result); | 236 VariableProxy* result_proxy = new(zone) VariableProxy(isolate, result); |
239 body->Add(new(zone) ReturnStatement(result_proxy)); | 237 body->Add(new(zone) ReturnStatement(result_proxy)); |
240 } | 238 } |
241 } | 239 } |
242 | 240 |
243 return true; | 241 return true; |
244 } | 242 } |
245 | 243 |
246 | 244 |
247 } } // namespace v8::internal | 245 } } // namespace v8::internal |
OLD | NEW |