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 #ifndef V8_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 2784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 | 2795 |
2796 DISALLOW_COPY_AND_ASSIGN(HPhase); | 2796 DISALLOW_COPY_AND_ASSIGN(HPhase); |
2797 }; | 2797 }; |
2798 | 2798 |
2799 | 2799 |
2800 class HTracer V8_FINAL : public Malloced { | 2800 class HTracer V8_FINAL : public Malloced { |
2801 public: | 2801 public: |
2802 explicit HTracer(int isolate_id) | 2802 explicit HTracer(int isolate_id) |
2803 : trace_(&string_allocator_), indent_(0) { | 2803 : trace_(&string_allocator_), indent_(0) { |
2804 if (FLAG_trace_hydrogen_file == NULL) { | 2804 if (FLAG_trace_hydrogen_file == NULL) { |
2805 OS::SNPrintF(filename_, | 2805 SNPrintF(filename_, |
2806 "hydrogen-%d-%d.cfg", | 2806 "hydrogen-%d-%d.cfg", |
2807 OS::GetCurrentProcessId(), | 2807 OS::GetCurrentProcessId(), |
2808 isolate_id); | 2808 isolate_id); |
2809 } else { | 2809 } else { |
2810 OS::StrNCpy(filename_, FLAG_trace_hydrogen_file, filename_.length()); | 2810 StrNCpy(filename_, FLAG_trace_hydrogen_file, filename_.length()); |
2811 } | 2811 } |
2812 WriteChars(filename_.start(), "", 0, false); | 2812 WriteChars(filename_.start(), "", 0, false); |
2813 } | 2813 } |
2814 | 2814 |
2815 void TraceCompilation(CompilationInfo* info); | 2815 void TraceCompilation(CompilationInfo* info); |
2816 void TraceHydrogen(const char* name, HGraph* graph); | 2816 void TraceHydrogen(const char* name, HGraph* graph); |
2817 void TraceLithium(const char* name, LChunk* chunk); | 2817 void TraceLithium(const char* name, LChunk* chunk); |
2818 void TraceLiveRanges(const char* name, LAllocator* allocator); | 2818 void TraceLiveRanges(const char* name, LAllocator* allocator); |
2819 | 2819 |
2820 private: | 2820 private: |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2894 } | 2894 } |
2895 | 2895 |
2896 private: | 2896 private: |
2897 HGraphBuilder* builder_; | 2897 HGraphBuilder* builder_; |
2898 }; | 2898 }; |
2899 | 2899 |
2900 | 2900 |
2901 } } // namespace v8::internal | 2901 } } // namespace v8::internal |
2902 | 2902 |
2903 #endif // V8_HYDROGEN_H_ | 2903 #endif // V8_HYDROGEN_H_ |
OLD | NEW |