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

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

Issue 910773002: Propagate Deopt reason to cpu-profiler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments addressed Created 5 years, 10 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/ppc/lithium-codegen-ppc.cc ('k') | src/profile-generator-inl.h » ('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_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 const char* resource_name() const { return resource_name_; } 83 const char* resource_name() const { return resource_name_; }
84 int line_number() const { return line_number_; } 84 int line_number() const { return line_number_; }
85 int column_number() const { return column_number_; } 85 int column_number() const { return column_number_; }
86 const JITLineInfoTable* line_info() const { return line_info_; } 86 const JITLineInfoTable* line_info() const { return line_info_; }
87 void set_shared_id(int shared_id) { shared_id_ = shared_id; } 87 void set_shared_id(int shared_id) { shared_id_ = shared_id; }
88 int script_id() const { return script_id_; } 88 int script_id() const { return script_id_; }
89 void set_script_id(int script_id) { script_id_ = script_id; } 89 void set_script_id(int script_id) { script_id_ = script_id; }
90 void set_bailout_reason(const char* bailout_reason) { 90 void set_bailout_reason(const char* bailout_reason) {
91 bailout_reason_ = bailout_reason; 91 bailout_reason_ = bailout_reason;
92 } 92 }
93 void set_deopt_reason(const char* deopt_reason) {
94 deopt_reason_ = deopt_reason;
95 }
96 void set_deopt_location(int location) { deopt_location_ = location; }
93 const char* bailout_reason() const { return bailout_reason_; } 97 const char* bailout_reason() const { return bailout_reason_; }
94 98
95 static inline bool is_js_function_tag(Logger::LogEventsAndTags tag); 99 static inline bool is_js_function_tag(Logger::LogEventsAndTags tag);
96 100
97 List<OffsetRange>* no_frame_ranges() const { return no_frame_ranges_; } 101 List<OffsetRange>* no_frame_ranges() const { return no_frame_ranges_; }
98 void set_no_frame_ranges(List<OffsetRange>* ranges) { 102 void set_no_frame_ranges(List<OffsetRange>* ranges) {
99 no_frame_ranges_ = ranges; 103 no_frame_ranges_ = ranges;
100 } 104 }
101 105
102 void SetBuiltinId(Builtins::Name id); 106 void SetBuiltinId(Builtins::Name id);
(...skipping 20 matching lines...) Expand all
123 uint32_t bit_field_; 127 uint32_t bit_field_;
124 const char* name_prefix_; 128 const char* name_prefix_;
125 const char* name_; 129 const char* name_;
126 const char* resource_name_; 130 const char* resource_name_;
127 int line_number_; 131 int line_number_;
128 int column_number_; 132 int column_number_;
129 int shared_id_; 133 int shared_id_;
130 int script_id_; 134 int script_id_;
131 List<OffsetRange>* no_frame_ranges_; 135 List<OffsetRange>* no_frame_ranges_;
132 const char* bailout_reason_; 136 const char* bailout_reason_;
137 const char* deopt_reason_;
138 int deopt_location_;
133 JITLineInfoTable* line_info_; 139 JITLineInfoTable* line_info_;
134 Address instruction_start_; 140 Address instruction_start_;
135 141
136 DISALLOW_COPY_AND_ASSIGN(CodeEntry); 142 DISALLOW_COPY_AND_ASSIGN(CodeEntry);
137 }; 143 };
138 144
139 145
140 class ProfileTree; 146 class ProfileTree;
141 147
142 class ProfileNode { 148 class ProfileNode {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 CodeEntry* gc_entry_; 379 CodeEntry* gc_entry_;
374 CodeEntry* unresolved_entry_; 380 CodeEntry* unresolved_entry_;
375 381
376 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); 382 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator);
377 }; 383 };
378 384
379 385
380 } } // namespace v8::internal 386 } } // namespace v8::internal
381 387
382 #endif // V8_PROFILE_GENERATOR_H_ 388 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/ppc/lithium-codegen-ppc.cc ('k') | src/profile-generator-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698