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

Unified Diff: src/compiler.h

Issue 1013143003: CpuProfiler: push the collected information about deopts to cpu profiler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments addressed Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index e58562664732af04b5fb4fa589440ec30b5482bc..883dfdbcc172f35518f7ea1d0f0f71a4b6dc1864 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -97,7 +97,7 @@ struct InlinedFunctionInfo {
SourcePosition inline_position;
int script_id;
int start_position;
- std::vector<int> deopt_pc_offsets;
+ std::vector<size_t> deopt_pc_offsets;
static const int kNoParentId = -1;
};
@@ -349,6 +349,9 @@ class CompilationInfo {
int start_position_for(uint32_t inlining_id) {
return inlined_function_infos_.at(inlining_id).start_position;
}
+ const std::vector<InlinedFunctionInfo>& inlined_function_infos() {
Sven Panne 2015/03/24 10:25:30 Hmmm, returning this by reference is not nice: Loo
loislo 2015/03/24 10:46:34 1) We pass CompilationInfo to logger when we finis
Sven Panne 2015/03/24 10:56:54 To be exact: It doesn't copy the inlining info at
+ return inlined_function_infos_;
+ }
void LogDeoptCallPosition(int pc_offset, int inlining_id);
int TraceInlinedFunction(Handle<SharedFunctionInfo> shared,
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698