Chromium Code Reviews| Index: src/frames.cc |
| diff --git a/src/frames.cc b/src/frames.cc |
| index 6df5d3544601e3eb135ea9b3e17e791b421da742..5337689aa8a7416bc8a2e0d1a964caf9b9c03512 100644 |
| --- a/src/frames.cc |
| +++ b/src/frames.cc |
| @@ -941,7 +941,7 @@ void OptimizedFrame::Summarize(List<FrameSummary>* frames) { |
| if (frame_opcode == Translation::JS_FRAME || |
| frame_opcode == Translation::INTERPRETED_FRAME) { |
| jsframe_count--; |
| - BailoutId const ast_id = BailoutId(it.Next()); |
| + BailoutId const bailout_id = BailoutId(it.Next()); |
| SharedFunctionInfo* const shared_info = |
| SharedFunctionInfo::cast(literal_array->get(it.Next())); |
| it.Next(); // Skip height. |
| @@ -988,14 +988,14 @@ void OptimizedFrame::Summarize(List<FrameSummary>* frames) { |
| DeoptimizationOutputData* const output_data = |
| DeoptimizationOutputData::cast(code->deoptimization_data()); |
| unsigned const entry = |
| - Deoptimizer::GetOutputInfo(output_data, ast_id, shared_info); |
| + Deoptimizer::GetOutputInfo(output_data, bailout_id, shared_info); |
| code_offset = FullCodeGenerator::PcField::decode(entry); |
| abstract_code = AbstractCode::cast(code); |
| } else { |
| // TODO(rmcilroy): Modify FrameSummary to enable us to summarize |
| // based on the BytecodeArray and bytecode offset. |
|
rmcilroy
2016/02/25 16:46:02
Remove this TODO please
mythria
2016/02/26 13:23:39
Done.
|
| DCHECK_EQ(frame_opcode, Translation::INTERPRETED_FRAME); |
| - code_offset = 0; |
| + code_offset = bailout_id.ToInt(); |
| abstract_code = AbstractCode::cast(shared_info->bytecode_array()); |
| } |
| FrameSummary summary(receiver, function, abstract_code, code_offset, |