| Index: src/log.cc
|
| diff --git a/src/log.cc b/src/log.cc
|
| index 83e2ae9f28a287b7260f0f641ab6df4675ae065b..b7a5507df3f14b07e00a0d156106726dca673cb0 100644
|
| --- a/src/log.cc
|
| +++ b/src/log.cc
|
| @@ -645,15 +645,9 @@ 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;
|
| + sample.Init(isolate, state, TickSample::kIncludeCEntryFrame, true);
|
| profiler_->Insert(&sample);
|
| }
|
|
|
|
|