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/ast-numbering.h" |
| 10 #include "src/ast/prettyprinter.h" |
| 11 #include "src/ast/scopeinfo.h" |
| 12 #include "src/ast/scopes.h" |
10 #include "src/bootstrapper.h" | 13 #include "src/bootstrapper.h" |
11 #include "src/codegen.h" | 14 #include "src/codegen.h" |
12 #include "src/compilation-cache.h" | 15 #include "src/compilation-cache.h" |
13 #include "src/compiler/pipeline.h" | 16 #include "src/compiler/pipeline.h" |
14 #include "src/crankshaft/hydrogen.h" | 17 #include "src/crankshaft/hydrogen.h" |
15 #include "src/crankshaft/lithium.h" | 18 #include "src/crankshaft/lithium.h" |
16 #include "src/crankshaft/typing.h" | 19 #include "src/crankshaft/typing.h" |
17 #include "src/debug/debug.h" | 20 #include "src/debug/debug.h" |
18 #include "src/debug/liveedit.h" | 21 #include "src/debug/liveedit.h" |
19 #include "src/deoptimizer.h" | 22 #include "src/deoptimizer.h" |
20 #include "src/full-codegen/full-codegen.h" | 23 #include "src/full-codegen/full-codegen.h" |
21 #include "src/gdb-jit.h" | 24 #include "src/gdb-jit.h" |
22 #include "src/interpreter/interpreter.h" | 25 #include "src/interpreter/interpreter.h" |
23 #include "src/isolate-inl.h" | 26 #include "src/isolate-inl.h" |
24 #include "src/log-inl.h" | 27 #include "src/log-inl.h" |
25 #include "src/messages.h" | 28 #include "src/messages.h" |
26 #include "src/parser.h" | 29 #include "src/parsing/parser.h" |
27 #include "src/prettyprinter.h" | 30 #include "src/parsing/rewriter.h" |
| 31 #include "src/parsing/scanner-character-streams.h" |
28 #include "src/profiler/cpu-profiler.h" | 32 #include "src/profiler/cpu-profiler.h" |
29 #include "src/rewriter.h" | |
30 #include "src/runtime-profiler.h" | 33 #include "src/runtime-profiler.h" |
31 #include "src/scanner-character-streams.h" | |
32 #include "src/scopeinfo.h" | |
33 #include "src/scopes.h" | |
34 #include "src/snapshot/serialize.h" | 34 #include "src/snapshot/serialize.h" |
35 #include "src/vm-state-inl.h" | 35 #include "src/vm-state-inl.h" |
36 | 36 |
37 namespace v8 { | 37 namespace v8 { |
38 namespace internal { | 38 namespace internal { |
39 | 39 |
40 std::ostream& operator<<(std::ostream& os, const SourcePosition& p) { | 40 std::ostream& operator<<(std::ostream& os, const SourcePosition& p) { |
41 if (p.IsUnknown()) { | 41 if (p.IsUnknown()) { |
42 return os << "<?>"; | 42 return os << "<?>"; |
43 } else if (FLAG_hydrogen_track_positions) { | 43 } else if (FLAG_hydrogen_track_positions) { |
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1802 } | 1802 } |
1803 | 1803 |
1804 #if DEBUG | 1804 #if DEBUG |
1805 void CompilationInfo::PrintAstForTesting() { | 1805 void CompilationInfo::PrintAstForTesting() { |
1806 PrintF("--- Source from AST ---\n%s\n", | 1806 PrintF("--- Source from AST ---\n%s\n", |
1807 PrettyPrinter(isolate()).PrintProgram(literal())); | 1807 PrettyPrinter(isolate()).PrintProgram(literal())); |
1808 } | 1808 } |
1809 #endif | 1809 #endif |
1810 } // namespace internal | 1810 } // namespace internal |
1811 } // namespace v8 | 1811 } // namespace v8 |
OLD | NEW |