Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Unified Diff: runtime/vm/profiler.cc

Issue 1411723013: Fix simulator build failure in profiler.cc (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698