| 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/compiler.h" | 5 #include "src/compiler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "src/ast-numbering.h" | 9 #include "src/ast-numbering.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 set_source_position(old_position); \ | 299 set_source_position(old_position); \ |
| 300 } \ | 300 } \ |
| 301 } | 301 } |
| 302 STATEMENT_NODE_LIST(DEF_VISIT) | 302 STATEMENT_NODE_LIST(DEF_VISIT) |
| 303 #undef DEF_VISIT | 303 #undef DEF_VISIT |
| 304 | 304 |
| 305 #define DEF_VISIT(type) \ | 305 #define DEF_VISIT(type) \ |
| 306 void Visit##type(type* node) override { \ | 306 void Visit##type(type* node) override { \ |
| 307 HOptimizedGraphBuilder::Visit##type(node); \ | 307 HOptimizedGraphBuilder::Visit##type(node); \ |
| 308 } | 308 } |
| 309 MODULE_NODE_LIST(DEF_VISIT) | |
| 310 DECLARATION_NODE_LIST(DEF_VISIT) | 309 DECLARATION_NODE_LIST(DEF_VISIT) |
| 311 #undef DEF_VISIT | 310 #undef DEF_VISIT |
| 312 }; | 311 }; |
| 313 | 312 |
| 314 | 313 |
| 315 OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { | 314 OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
| 316 DCHECK(info()->IsOptimizing()); | 315 DCHECK(info()->IsOptimizing()); |
| 317 DCHECK(!info()->IsCompilingForDebugging()); | 316 DCHECK(!info()->IsCompilingForDebugging()); |
| 318 | 317 |
| 319 // Do not use Crankshaft/TurboFan if we need to be able to set break points. | 318 // Do not use Crankshaft/TurboFan if we need to be able to set break points. |
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1544 } | 1543 } |
| 1545 | 1544 |
| 1546 | 1545 |
| 1547 #if DEBUG | 1546 #if DEBUG |
| 1548 void CompilationInfo::PrintAstForTesting() { | 1547 void CompilationInfo::PrintAstForTesting() { |
| 1549 PrintF("--- Source from AST ---\n%s\n", | 1548 PrintF("--- Source from AST ---\n%s\n", |
| 1550 PrettyPrinter(isolate(), zone()).PrintProgram(function())); | 1549 PrettyPrinter(isolate(), zone()).PrintProgram(function())); |
| 1551 } | 1550 } |
| 1552 #endif | 1551 #endif |
| 1553 } } // namespace v8::internal | 1552 } } // namespace v8::internal |
| OLD | NEW |