| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_PROFILE_GENERATOR_H_ | 5 #ifndef V8_PROFILE_GENERATOR_H_ |
| 6 #define V8_PROFILE_GENERATOR_H_ | 6 #define V8_PROFILE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include "include/v8-profiler.h" | 9 #include "include/v8-profiler.h" |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 // pc_offset -> source line | 33 // pc_offset -> source line |
| 34 typedef std::map<int, int> PcOffsetMap; | 34 typedef std::map<int, int> PcOffsetMap; |
| 35 PcOffsetMap pc_offset_map_; | 35 PcOffsetMap pc_offset_map_; |
| 36 DISALLOW_COPY_AND_ASSIGN(JITLineInfoTable); | 36 DISALLOW_COPY_AND_ASSIGN(JITLineInfoTable); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 | 39 |
| 40 struct DeoptInfo { | 40 struct DeoptInfo { |
| 41 typedef v8::CpuProfileDeoptInfo::Frame Frame; |
| 41 const char* deopt_reason; | 42 const char* deopt_reason; |
| 42 struct Frame { | |
| 43 int script_id; | |
| 44 int position; | |
| 45 }; | |
| 46 std::vector<Frame> stack; | 43 std::vector<Frame> stack; |
| 47 }; | 44 }; |
| 48 | 45 |
| 49 | 46 |
| 50 class CodeEntry { | 47 class CodeEntry { |
| 51 public: | 48 public: |
| 52 // CodeEntry doesn't own name strings, just references them. | 49 // CodeEntry doesn't own name strings, just references them. |
| 53 inline CodeEntry(Logger::LogEventsAndTags tag, const char* name, | 50 inline CodeEntry(Logger::LogEventsAndTags tag, const char* name, |
| 54 const char* name_prefix = CodeEntry::kEmptyNamePrefix, | 51 const char* name_prefix = CodeEntry::kEmptyNamePrefix, |
| 55 const char* resource_name = CodeEntry::kEmptyResourceName, | 52 const char* resource_name = CodeEntry::kEmptyResourceName, |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 CodeEntry* gc_entry_; | 386 CodeEntry* gc_entry_; |
| 390 CodeEntry* unresolved_entry_; | 387 CodeEntry* unresolved_entry_; |
| 391 | 388 |
| 392 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); | 389 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |
| 393 }; | 390 }; |
| 394 | 391 |
| 395 | 392 |
| 396 } } // namespace v8::internal | 393 } } // namespace v8::internal |
| 397 | 394 |
| 398 #endif // V8_PROFILE_GENERATOR_H_ | 395 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |