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

Unified Diff: runtime/vm/profiler.cc

Issue 1412903007: Fix simulator builds (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..6edff105306efce455e4fb4e1c16eb294aff0afc 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -933,6 +933,9 @@ void Profiler::SampleAllocation(Thread* thread, intptr_t cid) {
void Profiler::SampleThread(Thread* thread,
const InterruptedThreadState& state) {
+ ASSERT(thread != NULL);
+ Isolate* isolate = thread->isolate();
+
if (StubCode::HasBeenInitialized() &&
StubCode::InJumpToExceptionHandlerStub(state.pc)) {
// The JumpToExceptionHandler stub manually adjusts the stack pointer,
@@ -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