Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/compiler.cc

Issue 1106383008: Remove unused Module-related AST nodes and associated codegen (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/bailout-reason.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/bailout-reason.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698