mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 13:28:03 +00:00
Fix simulator builds
BUG= Review URL: https://codereview.chromium.org/1412903007 .
This commit is contained in:
parent
ceb12c4f69
commit
8269e837e3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue