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 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1792 ? FLAG_trace_hydrogen_stubs | 1792 ? FLAG_trace_hydrogen_stubs |
1793 : (FLAG_trace_hydrogen && | 1793 : (FLAG_trace_hydrogen && |
1794 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); | 1794 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); |
1795 return (tracing_on && | 1795 return (tracing_on && |
1796 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); | 1796 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); |
1797 } | 1797 } |
1798 | 1798 |
1799 #if DEBUG | 1799 #if DEBUG |
1800 void CompilationInfo::PrintAstForTesting() { | 1800 void CompilationInfo::PrintAstForTesting() { |
1801 PrintF("--- Source from AST ---\n%s\n", | 1801 PrintF("--- Source from AST ---\n%s\n", |
1802 PrettyPrinter(isolate(), zone()).PrintProgram(literal())); | 1802 PrettyPrinter(isolate()).PrintProgram(literal())); |
1803 } | 1803 } |
1804 #endif | 1804 #endif |
1805 } // namespace internal | 1805 } // namespace internal |
1806 } // namespace v8 | 1806 } // namespace v8 |
OLD | NEW |