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 19 matching lines...) Expand all Loading... | |
30 bool empty() const { return pc_offset_map_.empty(); } | 30 bool empty() const { return pc_offset_map_.empty(); } |
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 typedef v8::CpuProfileDeoptInfo DeoptInfo; |
yurys
2015/03/30 20:33:16
Can we use original type without the alias. It see
loislo
2015/03/31 08:22:51
done
| |
41 const char* deopt_reason; | |
42 struct Frame { | |
43 int script_id; | |
44 int position; | |
45 }; | |
46 std::vector<Frame> stack; | |
47 }; | |
48 | |
49 | 41 |
50 class CodeEntry { | 42 class CodeEntry { |
51 public: | 43 public: |
52 // CodeEntry doesn't own name strings, just references them. | 44 // CodeEntry doesn't own name strings, just references them. |
53 inline CodeEntry(Logger::LogEventsAndTags tag, const char* name, | 45 inline CodeEntry(Logger::LogEventsAndTags tag, const char* name, |
54 const char* name_prefix = CodeEntry::kEmptyNamePrefix, | 46 const char* name_prefix = CodeEntry::kEmptyNamePrefix, |
55 const char* resource_name = CodeEntry::kEmptyResourceName, | 47 const char* resource_name = CodeEntry::kEmptyResourceName, |
56 int line_number = v8::CpuProfileNode::kNoLineNumberInfo, | 48 int line_number = v8::CpuProfileNode::kNoLineNumberInfo, |
57 int column_number = v8::CpuProfileNode::kNoColumnNumberInfo, | 49 int column_number = v8::CpuProfileNode::kNoColumnNumberInfo, |
58 JITLineInfoTable* line_info = NULL, | 50 JITLineInfoTable* line_info = NULL, |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
389 CodeEntry* gc_entry_; | 381 CodeEntry* gc_entry_; |
390 CodeEntry* unresolved_entry_; | 382 CodeEntry* unresolved_entry_; |
391 | 383 |
392 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); | 384 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |
393 }; | 385 }; |
394 | 386 |
395 | 387 |
396 } } // namespace v8::internal | 388 } } // namespace v8::internal |
397 | 389 |
398 #endif // V8_PROFILE_GENERATOR_H_ | 390 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |