Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 348724d9f04eaee3f27365a3e851ec42ef89a4b6..c83b4821cad9ac30d2d64f76825751318723583e 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -8333,8 +8333,8 @@ CpuProfile* CpuProfiler::StopProfiling(Local<String> title) { |
void CpuProfiler::SetIdle(bool is_idle) { |
i::CpuProfiler* profiler = reinterpret_cast<i::CpuProfiler*>(this); |
- if (!profiler->is_profiling()) return; |
i::Isolate* isolate = profiler->isolate(); |
+ if (!isolate->is_profiling()) return; |
v8::StateTag state = isolate->current_vm_state(); |
DCHECK(state == v8::EXTERNAL || state == v8::IDLE); |
if (isolate->js_entry_sp() != NULL) return; |