| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 bool set_after_body = is_set_; | 201 bool set_after_body = is_set_; |
| 202 Visit(node->statement()); | 202 Visit(node->statement()); |
| 203 is_set_ = is_set_ && set_after_body; | 203 is_set_ = is_set_ && set_after_body; |
| 204 } | 204 } |
| 205 | 205 |
| 206 | 206 |
| 207 // Do nothing: | 207 // Do nothing: |
| 208 void Processor::VisitDeclaration(Declaration* node) {} | 208 void Processor::VisitDeclaration(Declaration* node) {} |
| 209 void Processor::VisitEmptyStatement(EmptyStatement* node) {} | 209 void Processor::VisitEmptyStatement(EmptyStatement* node) {} |
| 210 void Processor::VisitReturnStatement(ReturnStatement* node) {} | 210 void Processor::VisitReturnStatement(ReturnStatement* node) {} |
| 211 void Processor::VisitExitContextStatement(ExitContextStatement* node) {} | |
| 212 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} | 211 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} |
| 213 | 212 |
| 214 | 213 |
| 215 // Expressions are never visited yet. | 214 // Expressions are never visited yet. |
| 216 #define DEF_VISIT(type) \ | 215 #define DEF_VISIT(type) \ |
| 217 void Processor::Visit##type(type* expr) { UNREACHABLE(); } | 216 void Processor::Visit##type(type* expr) { UNREACHABLE(); } |
| 218 EXPRESSION_NODE_LIST(DEF_VISIT) | 217 EXPRESSION_NODE_LIST(DEF_VISIT) |
| 219 #undef DEF_VISIT | 218 #undef DEF_VISIT |
| 220 | 219 |
| 221 | 220 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 242 VariableProxy* result_proxy = new(zone) VariableProxy(isolate, result); | 241 VariableProxy* result_proxy = new(zone) VariableProxy(isolate, result); |
| 243 body->Add(new(zone) ReturnStatement(result_proxy)); | 242 body->Add(new(zone) ReturnStatement(result_proxy)); |
| 244 } | 243 } |
| 245 } | 244 } |
| 246 | 245 |
| 247 return true; | 246 return true; |
| 248 } | 247 } |
| 249 | 248 |
| 250 | 249 |
| 251 } } // namespace v8::internal | 250 } } // namespace v8::internal |
| OLD | NEW |