| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/rewriter.h" | 7 #include "src/rewriter.h" |
| 8 | 8 |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 } | 199 } |
| 200 | 200 |
| 201 | 201 |
| 202 // Do nothing: | 202 // Do nothing: |
| 203 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {} | 203 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {} |
| 204 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {} | 204 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {} |
| 205 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {} | 205 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {} |
| 206 void Processor::VisitImportDeclaration(ImportDeclaration* node) {} | 206 void Processor::VisitImportDeclaration(ImportDeclaration* node) {} |
| 207 void Processor::VisitExportDeclaration(ExportDeclaration* node) {} | 207 void Processor::VisitExportDeclaration(ExportDeclaration* node) {} |
| 208 void Processor::VisitModuleLiteral(ModuleLiteral* node) {} | 208 void Processor::VisitModuleLiteral(ModuleLiteral* node) {} |
| 209 void Processor::VisitModuleVariable(ModuleVariable* node) {} | |
| 210 void Processor::VisitModulePath(ModulePath* node) {} | 209 void Processor::VisitModulePath(ModulePath* node) {} |
| 211 void Processor::VisitModuleUrl(ModuleUrl* node) {} | 210 void Processor::VisitModuleUrl(ModuleUrl* node) {} |
| 212 void Processor::VisitEmptyStatement(EmptyStatement* node) {} | 211 void Processor::VisitEmptyStatement(EmptyStatement* node) {} |
| 213 void Processor::VisitReturnStatement(ReturnStatement* node) {} | 212 void Processor::VisitReturnStatement(ReturnStatement* node) {} |
| 214 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} | 213 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} |
| 215 | 214 |
| 216 | 215 |
| 217 // Expressions are never visited yet. | 216 // Expressions are never visited yet. |
| 218 #define DEF_VISIT(type) \ | 217 #define DEF_VISIT(type) \ |
| 219 void Processor::Visit##type(type* expr) { UNREACHABLE(); } | 218 void Processor::Visit##type(type* expr) { UNREACHABLE(); } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 processor.factory()->NewReturnStatement(result_proxy, pos); | 254 processor.factory()->NewReturnStatement(result_proxy, pos); |
| 256 body->Add(result_statement, info->zone()); | 255 body->Add(result_statement, info->zone()); |
| 257 } | 256 } |
| 258 } | 257 } |
| 259 | 258 |
| 260 return true; | 259 return true; |
| 261 } | 260 } |
| 262 | 261 |
| 263 | 262 |
| 264 } } // namespace v8::internal | 263 } } // namespace v8::internal |
| OLD | NEW |