Index: src/profiler/tick-sample.cc |
diff --git a/src/profiler/tick-sample.cc b/src/profiler/tick-sample.cc |
index 4b481325fa64734fa818b85b158f44ee6a123cd4..2595404c13a08070208ec2be8b8c024ba1436b1a 100644 |
--- a/src/profiler/tick-sample.cc |
+++ b/src/profiler/tick-sample.cc |
@@ -125,7 +125,8 @@ bool TickSample::GetStackSample(Isolate* isolate, const v8::RegisterState& regs, |
if (sample_info->vm_state == GC) return true; |
Address js_entry_sp = isolate->js_entry_sp(); |
- if (js_entry_sp == 0) return true; // Not executing JS now. |
+ if (js_entry_sp == nullptr) return true; // Not executing JS now. |
+ DCHECK(regs.sp); |
if (regs.pc && IsNoFrameRegion(static_cast<Address>(regs.pc))) { |
// Can't collect stack. |