mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 620562 - Fix JSOP_STOP recording when in an imacro (r=dmandelin)
This commit is contained in:
parent
611a1ac7e3
commit
9c54c5a295
@ -15752,14 +15752,14 @@ TraceRecorder::record_JSOP_CALLELEM()
|
|||||||
JS_REQUIRES_STACK AbortableRecordingStatus
|
JS_REQUIRES_STACK AbortableRecordingStatus
|
||||||
TraceRecorder::record_JSOP_STOP()
|
TraceRecorder::record_JSOP_STOP()
|
||||||
{
|
{
|
||||||
|
JSStackFrame *fp = cx->fp();
|
||||||
|
|
||||||
/* A return from callDepth 0 terminates the current loop, except for recursion. */
|
/* A return from callDepth 0 terminates the current loop, except for recursion. */
|
||||||
if (callDepth == 0) {
|
if (callDepth == 0 && !fp->hasImacropc()) {
|
||||||
AUDIT(returnLoopExits);
|
AUDIT(returnLoopExits);
|
||||||
return endLoop();
|
return endLoop();
|
||||||
}
|
}
|
||||||
|
|
||||||
JSStackFrame *fp = cx->fp();
|
|
||||||
|
|
||||||
if (fp->hasImacropc()) {
|
if (fp->hasImacropc()) {
|
||||||
/*
|
/*
|
||||||
* End of imacro, so return true to the interpreter immediately. The
|
* End of imacro, so return true to the interpreter immediately. The
|
||||||
|
Loading…
Reference in New Issue
Block a user