Fix simulator builds

BUG=

Review URL: https://codereview.chromium.org/1412903007 .
This commit is contained in:
John McCutchan 2015-11-04 08:50:20 -08:00
parent ceb12c4f69
commit 8269e837e3

View file

@ -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;
}