mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1040441 - Fix ForkJoinGetSlice stub when JS_THREADPOOL_STEAL=0. (r=nmatsakis)
This commit is contained in:
parent
916e4f08fb
commit
9307487176
@ -2129,6 +2129,8 @@ JitRuntime::generateForkJoinGetSliceStub(JSContext *cx)
|
|||||||
|
|
||||||
// It's not technically correct to test whether work-stealing is turned on
|
// It's not technically correct to test whether work-stealing is turned on
|
||||||
// only during stub-generation time, but it's a DEBUG only thing.
|
// only during stub-generation time, but it's a DEBUG only thing.
|
||||||
|
//
|
||||||
|
// If stealing is off, stealWork falls through to noMoreWork.
|
||||||
if (cx->runtime()->threadPool.workStealing()) {
|
if (cx->runtime()->threadPool.workStealing()) {
|
||||||
Label stealWorkLoopHead;
|
Label stealWorkLoopHead;
|
||||||
masm.bind(&stealWorkLoopHead);
|
masm.bind(&stealWorkLoopHead);
|
||||||
@ -2196,6 +2198,8 @@ JitRuntime::generateForkJoinGetSliceStub(JSContext *cx)
|
|||||||
#endif
|
#endif
|
||||||
// Copies lower 16 bits only.
|
// Copies lower 16 bits only.
|
||||||
masm.movzwl(output, output);
|
masm.movzwl(output, output);
|
||||||
|
} else {
|
||||||
|
masm.jump(&noMoreWork);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we successfully got a slice, decrement pool->pendingSlices_ and
|
// If we successfully got a slice, decrement pool->pendingSlices_ and
|
||||||
|
Loading…
Reference in New Issue
Block a user