mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 635594 - Abort recording if closeLoop() fails (r=lw,a=dvander)
This commit is contained in:
parent
5ecac5c965
commit
ca2b3326cd
@ -7102,7 +7102,12 @@ RecordLoopEdge(JSContext* cx, TraceMonitor* tm, uintN& inlineCallCount)
|
||||
tm->recorder->assertInsideLoop();
|
||||
jsbytecode* pc = cx->regs->pc;
|
||||
if (pc == tm->recorder->tree->ip) {
|
||||
tm->recorder->closeLoop();
|
||||
AbortableRecordingStatus status = tm->recorder->closeLoop();
|
||||
if (status != ARECORD_COMPLETED) {
|
||||
if (tm->recorder)
|
||||
AbortRecording(cx, "closeLoop failed");
|
||||
return MONITOR_NOT_RECORDING;
|
||||
}
|
||||
} else {
|
||||
MonitorResult r = TraceRecorder::recordLoopEdge(cx, tm->recorder, inlineCallCount);
|
||||
JS_ASSERT((r == MONITOR_RECORDING) == (tm->recorder != NULL));
|
||||
|
Loading…
Reference in New Issue
Block a user