| 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" |
| 11 #include "src/codegen.h" | 11 #include "src/codegen.h" |
| 12 #include "src/compilation-cache.h" | 12 #include "src/compilation-cache.h" |
| 13 #include "src/compiler/pipeline.h" | 13 #include "src/compiler/pipeline.h" |
| 14 #include "src/crankshaft/hydrogen.h" |
| 15 #include "src/crankshaft/lithium.h" |
| 16 #include "src/crankshaft/typing.h" |
| 14 #include "src/debug/debug.h" | 17 #include "src/debug/debug.h" |
| 15 #include "src/debug/liveedit.h" | 18 #include "src/debug/liveedit.h" |
| 16 #include "src/deoptimizer.h" | 19 #include "src/deoptimizer.h" |
| 17 #include "src/full-codegen/full-codegen.h" | 20 #include "src/full-codegen/full-codegen.h" |
| 18 #include "src/gdb-jit.h" | 21 #include "src/gdb-jit.h" |
| 19 #include "src/hydrogen.h" | |
| 20 #include "src/interpreter/interpreter.h" | 22 #include "src/interpreter/interpreter.h" |
| 21 #include "src/isolate-inl.h" | 23 #include "src/isolate-inl.h" |
| 22 #include "src/lithium.h" | |
| 23 #include "src/log-inl.h" | 24 #include "src/log-inl.h" |
| 24 #include "src/messages.h" | 25 #include "src/messages.h" |
| 25 #include "src/parser.h" | 26 #include "src/parser.h" |
| 26 #include "src/prettyprinter.h" | 27 #include "src/prettyprinter.h" |
| 27 #include "src/profiler/cpu-profiler.h" | 28 #include "src/profiler/cpu-profiler.h" |
| 28 #include "src/rewriter.h" | 29 #include "src/rewriter.h" |
| 29 #include "src/runtime-profiler.h" | 30 #include "src/runtime-profiler.h" |
| 30 #include "src/scanner-character-streams.h" | 31 #include "src/scanner-character-streams.h" |
| 31 #include "src/scopeinfo.h" | 32 #include "src/scopeinfo.h" |
| 32 #include "src/scopes.h" | 33 #include "src/scopes.h" |
| 33 #include "src/snapshot/serialize.h" | 34 #include "src/snapshot/serialize.h" |
| 34 #include "src/typing.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) { |
| 44 return os << "<" << p.inlining_id() << ":" << p.position() << ">"; | 44 return os << "<" << p.inlining_id() << ":" << p.position() << ">"; |
| (...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1791 } | 1791 } |
| 1792 | 1792 |
| 1793 #if DEBUG | 1793 #if DEBUG |
| 1794 void CompilationInfo::PrintAstForTesting() { | 1794 void CompilationInfo::PrintAstForTesting() { |
| 1795 PrintF("--- Source from AST ---\n%s\n", | 1795 PrintF("--- Source from AST ---\n%s\n", |
| 1796 PrettyPrinter(isolate()).PrintProgram(literal())); | 1796 PrettyPrinter(isolate()).PrintProgram(literal())); |
| 1797 } | 1797 } |
| 1798 #endif | 1798 #endif |
| 1799 } // namespace internal | 1799 } // namespace internal |
| 1800 } // namespace v8 | 1800 } // namespace v8 |
| OLD | NEW |