Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index 47fc1ce1b2f62ba22dd739aeba225c14da1b9230..41517249624e7b716ef538f5a7a32b50c23819d7 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -7522,7 +7522,14 @@ bool Isolate::GetHeapObjectStatisticsAtLastGC( |
| void Isolate::GetStackSample(const RegisterState& state, void** frames, |
| size_t frames_limit, SampleInfo* sample_info) { |
| i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
| - i::TickSample::GetStackSample(isolate, state, i::TickSample::kSkipCEntryFrame, |
| + RegisterState regs; |
| + regs.pc = state.pc; |
|
alph
2016/04/29 18:55:06
nit: you don't need to do the copy for non-simulat
lpy
2016/04/29 19:51:58
Done.
|
| + regs.sp = state.sp; |
| + regs.fp = state.fp; |
| +#if defined(USE_SIMULATOR) |
| + i::SimulatorHelper::FillRegisters(isolate, ®s); |
| +#endif |
| + i::TickSample::GetStackSample(isolate, regs, i::TickSample::kSkipCEntryFrame, |
| frames, frames_limit, sample_info); |
| } |