Index: src/profiler/profile-generator.cc |
diff --git a/src/profiler/profile-generator.cc b/src/profiler/profile-generator.cc |
index 9f6fdc98c8c0696f6e7a3d0a1fec8e2ffc44333f..15265a6e714851f8393003a4ab5dacaa4a6df1a7 100644 |
--- a/src/profiler/profile-generator.cc |
+++ b/src/profiler/profile-generator.cc |
@@ -138,15 +138,7 @@ CpuProfileDeoptInfo CodeEntry::GetDeoptInfo() { |
} |
// Copy the only branch from the inlining tree where the deopt happened. |
SourcePosition position = deopt_position_; |
- int inlining_id = InlinedFunctionInfo::kNoParentId; |
- for (size_t i = 0; i < inlined_function_infos_.size(); ++i) { |
- InlinedFunctionInfo& current_info = inlined_function_infos_.at(i); |
- if (std::binary_search(current_info.deopt_pc_offsets.begin(), |
- current_info.deopt_pc_offsets.end(), pc_offset_)) { |
- inlining_id = static_cast<int>(i); |
- break; |
- } |
- } |
+ int inlining_id = deopt_inlining_id_; |
while (inlining_id != InlinedFunctionInfo::kNoParentId) { |
InlinedFunctionInfo& inlined_info = inlined_function_infos_.at(inlining_id); |
info.stack.push_back( |