Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(875)

Side by Side Diff: src/profiler/profile-generator.h

Issue 1956693002: [compiler] Pass inlining_id via relocation info. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/profiler/cpu-profiler-inl.h ('k') | src/profiler/profile-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PROFILER_PROFILE_GENERATOR_H_ 5 #ifndef V8_PROFILER_PROFILE_GENERATOR_H_
6 #define V8_PROFILER_PROFILE_GENERATOR_H_ 6 #define V8_PROFILER_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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 int script_id() const { return script_id_; } 57 int script_id() const { return script_id_; }
58 void set_script_id(int script_id) { script_id_ = script_id; } 58 void set_script_id(int script_id) { script_id_ = script_id; }
59 int position() const { return position_; } 59 int position() const { return position_; }
60 void set_position(int position) { position_ = position; } 60 void set_position(int position) { position_ = position; }
61 void set_bailout_reason(const char* bailout_reason) { 61 void set_bailout_reason(const char* bailout_reason) {
62 bailout_reason_ = bailout_reason; 62 bailout_reason_ = bailout_reason;
63 } 63 }
64 const char* bailout_reason() const { return bailout_reason_; } 64 const char* bailout_reason() const { return bailout_reason_; }
65 65
66 void set_deopt_info(const char* deopt_reason, SourcePosition position, 66 void set_deopt_info(const char* deopt_reason, SourcePosition position,
67 size_t pc_offset) { 67 int inlining_id) {
68 DCHECK(deopt_position_.IsUnknown()); 68 DCHECK(deopt_position_.IsUnknown());
69 deopt_reason_ = deopt_reason; 69 deopt_reason_ = deopt_reason;
70 deopt_position_ = position; 70 deopt_position_ = position;
71 pc_offset_ = pc_offset; 71 deopt_inlining_id_ = inlining_id;
72 } 72 }
73 CpuProfileDeoptInfo GetDeoptInfo(); 73 CpuProfileDeoptInfo GetDeoptInfo();
74 const char* deopt_reason() const { return deopt_reason_; } 74 const char* deopt_reason() const { return deopt_reason_; }
75 SourcePosition deopt_position() const { return deopt_position_; } 75 SourcePosition deopt_position() const { return deopt_position_; }
76 bool has_deopt_info() const { return !deopt_position_.IsUnknown(); } 76 bool has_deopt_info() const { return !deopt_position_.IsUnknown(); }
77 void clear_deopt_info() { 77 void clear_deopt_info() {
78 deopt_reason_ = kNoDeoptReason; 78 deopt_reason_ = kNoDeoptReason;
79 deopt_position_ = SourcePosition::Unknown(); 79 deopt_position_ = SourcePosition::Unknown();
80 } 80 }
81 81
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const char* name_prefix_; 118 const char* name_prefix_;
119 const char* name_; 119 const char* name_;
120 const char* resource_name_; 120 const char* resource_name_;
121 int line_number_; 121 int line_number_;
122 int column_number_; 122 int column_number_;
123 int script_id_; 123 int script_id_;
124 int position_; 124 int position_;
125 const char* bailout_reason_; 125 const char* bailout_reason_;
126 const char* deopt_reason_; 126 const char* deopt_reason_;
127 SourcePosition deopt_position_; 127 SourcePosition deopt_position_;
128 size_t pc_offset_; 128 int deopt_inlining_id_;
129 JITLineInfoTable* line_info_; 129 JITLineInfoTable* line_info_;
130 Address instruction_start_; 130 Address instruction_start_;
131 // Should be an unordered_map, but it doesn't currently work on Win & MacOS. 131 // Should be an unordered_map, but it doesn't currently work on Win & MacOS.
132 std::map<int, std::vector<CodeEntry*>> inline_locations_; 132 std::map<int, std::vector<CodeEntry*>> inline_locations_;
133 133
134 std::vector<InlinedFunctionInfo> inlined_function_infos_; 134 std::vector<InlinedFunctionInfo> inlined_function_infos_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(CodeEntry); 136 DISALLOW_COPY_AND_ASSIGN(CodeEntry);
137 }; 137 };
138 138
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 CodeEntry* unresolved_entry_; 386 CodeEntry* unresolved_entry_;
387 387
388 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); 388 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator);
389 }; 389 };
390 390
391 391
392 } // namespace internal 392 } // namespace internal
393 } // namespace v8 393 } // namespace v8
394 394
395 #endif // V8_PROFILER_PROFILE_GENERATOR_H_ 395 #endif // V8_PROFILER_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/profiler/cpu-profiler-inl.h ('k') | src/profiler/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698