| 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 10 matching lines...) Expand all Loading... |
| 21 #include "src/lithium.h" | 21 #include "src/lithium.h" |
| 22 #include "src/liveedit.h" | 22 #include "src/liveedit.h" |
| 23 #include "src/messages.h" | 23 #include "src/messages.h" |
| 24 #include "src/parser.h" | 24 #include "src/parser.h" |
| 25 #include "src/prettyprinter.h" | 25 #include "src/prettyprinter.h" |
| 26 #include "src/rewriter.h" | 26 #include "src/rewriter.h" |
| 27 #include "src/runtime-profiler.h" | 27 #include "src/runtime-profiler.h" |
| 28 #include "src/scanner-character-streams.h" | 28 #include "src/scanner-character-streams.h" |
| 29 #include "src/scopeinfo.h" | 29 #include "src/scopeinfo.h" |
| 30 #include "src/scopes.h" | 30 #include "src/scopes.h" |
| 31 #include "src/snapshot/serialize.h" |
| 31 #include "src/typing.h" | 32 #include "src/typing.h" |
| 32 #include "src/vm-state-inl.h" | 33 #include "src/vm-state-inl.h" |
| 33 | 34 |
| 34 namespace v8 { | 35 namespace v8 { |
| 35 namespace internal { | 36 namespace internal { |
| 36 | 37 |
| 37 std::ostream& operator<<(std::ostream& os, const SourcePosition& p) { | 38 std::ostream& operator<<(std::ostream& os, const SourcePosition& p) { |
| 38 if (p.IsUnknown()) { | 39 if (p.IsUnknown()) { |
| 39 return os << "<?>"; | 40 return os << "<?>"; |
| 40 } else if (FLAG_hydrogen_track_positions) { | 41 } else if (FLAG_hydrogen_track_positions) { |
| (...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1577 } | 1578 } |
| 1578 | 1579 |
| 1579 | 1580 |
| 1580 #if DEBUG | 1581 #if DEBUG |
| 1581 void CompilationInfo::PrintAstForTesting() { | 1582 void CompilationInfo::PrintAstForTesting() { |
| 1582 PrintF("--- Source from AST ---\n%s\n", | 1583 PrintF("--- Source from AST ---\n%s\n", |
| 1583 PrettyPrinter(isolate(), zone()).PrintProgram(function())); | 1584 PrettyPrinter(isolate(), zone()).PrintProgram(function())); |
| 1584 } | 1585 } |
| 1585 #endif | 1586 #endif |
| 1586 } } // namespace v8::internal | 1587 } } // namespace v8::internal |
| OLD | NEW |