| Index: src/log.cc
|
| diff --git a/src/log.cc b/src/log.cc
|
| index f3dff830834dde4d3d0b80664580e4b0b1e1e8cf..69efd0c02f4ecf5b40d07d4da8471fb9fc3ad5e6 100644
|
| --- a/src/log.cc
|
| +++ b/src/log.cc
|
| @@ -645,15 +645,11 @@ class Ticker: public sampler::Sampler {
|
|
|
| void SampleStack(const v8::RegisterState& state) override {
|
| if (!profiler_) return;
|
| -#if defined(USE_SIMULATOR)
|
| - Isolate* i_isolate = reinterpret_cast<Isolate*>(isolate());
|
| - v8::RegisterState regs;
|
| - if (!SimulatorHelper::FillRegisters(i_isolate, ®s)) return;
|
| -#else
|
| - const v8::RegisterState& regs = state;
|
| -#endif
|
| - v8::TickSample sample;
|
| - sample.Init(isolate(), regs, v8::TickSample::kIncludeCEntryFrame, true);
|
| + Isolate* isolate = reinterpret_cast<Isolate*>(this->isolate());
|
| + TickSample sample;
|
| + RegisterState updated_state;
|
| + sample.Init(isolate, state, updated_state, TickSample::kIncludeCEntryFrame,
|
| + true);
|
| profiler_->Insert(&sample);
|
| }
|
|
|
|
|