Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 43c3981bcabaa61309b71accc2c80d3880fe05a9..3e7677edf1955400cae41889f69e06544b8e7301 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -647,8 +647,9 @@ class Ticker: public sampler::Sampler { |
v8::Isolate* v8_isolate = isolate(); |
Isolate* isolate = reinterpret_cast<Isolate*>(v8_isolate); |
#if defined(USE_SIMULATOR) |
- SimulatorHelper::FillRegisters(isolate, |
- const_cast<v8::RegisterState*>(&state)); |
+ if (!SimulatorHelper::FillRegisters(isolate, |
+ const_cast<v8::RegisterState*>(&state))) |
+ return; |
#endif |
TickSample* sample = isolate->cpu_profiler()->StartTickSample(); |
TickSample sample_obj; |