Index: runtime/vm/profiler.cc |
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc |
index 3773df5cf9b8cb9185d3a33f9d46c38a7e151755..5307d996fd04be5da9542acd8ebbe7fcfbbf9cbe 100644 |
--- a/runtime/vm/profiler.cc |
+++ b/runtime/vm/profiler.cc |
@@ -950,6 +950,9 @@ void Profiler::SampleThread(Thread* thread, |
Simulator* simulator = NULL; |
#endif |
+ ASSERT(thread != NULL); |
+ Isolate* isolate = thread->isolate(); |
+ |
if (in_dart_code) { |
// If we're in Dart code, use the Dart stack pointer. |
#if defined(USING_SIMULATOR) |
@@ -969,8 +972,6 @@ void Profiler::SampleThread(Thread* thread, |
return; |
} |
- ASSERT(thread != NULL); |
- Isolate* isolate = thread->isolate(); |
if (!CheckIsolate(isolate)) { |
return; |
} |