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

Unified Diff: src/profile-generator.cc

Issue 1045753002: CpuProfiler: public API for deopt info in cpu profiler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: size_t 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
Index: src/profile-generator.cc
diff --git a/src/profile-generator.cc b/src/profile-generator.cc
index 385e753025b58c9c91e3798685b13a3a3e97dfa9..9896a414dfe803b66cbd2c655238854f624a6d72 100644
--- a/src/profile-generator.cc
+++ b/src/profile-generator.cc
@@ -119,8 +119,7 @@ DeoptInfo CodeEntry::GetDeoptInfo() {
info.deopt_reason = deopt_reason_;
if (inlined_function_infos_.empty()) {
info.stack.push_back(DeoptInfo::Frame(
- {script_id_,
- static_cast<int>(position_ + deopt_position_.position())}));
+ {script_id_, position_ + deopt_position_.position()}));
return info;
}
// Copy the only branch from the inlining tree where the deopt happened.
@@ -138,7 +137,7 @@ DeoptInfo CodeEntry::GetDeoptInfo() {
InlinedFunctionInfo& inlined_info = inlined_function_infos_.at(inlining_id);
info.stack.push_back(DeoptInfo::Frame(
{inlined_info.script_id,
- static_cast<int>(inlined_info.start_position + position.raw())}));
+ inlined_info.start_position + position.raw()}));
position = inlined_info.inline_position;
inlining_id = inlined_info.parent_id;
}

Powered by Google App Engine
This is Rietveld 408576698