mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 900487: Fix bailoutIf to be complaint with parallel js. (r=shu)
This commit is contained in:
parent
f57942b911
commit
5c73aeee58
@ -171,6 +171,22 @@ CodeGeneratorARM::generateOutOfLineCode()
|
||||
bool
|
||||
CodeGeneratorARM::bailoutIf(Assembler::Condition condition, LSnapshot *snapshot)
|
||||
{
|
||||
CompileInfo &info = snapshot->mir()->block()->info();
|
||||
switch (info.executionMode()) {
|
||||
|
||||
case ParallelExecution: {
|
||||
// in parallel mode, make no attempt to recover, just signal an error.
|
||||
OutOfLineAbortPar *ool = oolAbortPar(ParallelBailoutUnsupported,
|
||||
snapshot->mir()->block(),
|
||||
snapshot->mir()->pc());
|
||||
masm.ma_b(ool->entry(), condition);
|
||||
return true;
|
||||
}
|
||||
case SequentialExecution:
|
||||
break;
|
||||
default:
|
||||
MOZ_ASSUME_UNREACHABLE("No such execution mode");
|
||||
}
|
||||
if (!encode(snapshot))
|
||||
return false;
|
||||
|
||||
@ -205,6 +221,7 @@ CodeGeneratorARM::bailoutFrom(Label *label, LSnapshot *snapshot)
|
||||
|
||||
CompileInfo &info = snapshot->mir()->block()->info();
|
||||
switch (info.executionMode()) {
|
||||
|
||||
case ParallelExecution: {
|
||||
// in parallel mode, make no attempt to recover, just signal an error.
|
||||
OutOfLineAbortPar *ool = oolAbortPar(ParallelBailoutUnsupported,
|
||||
|
Loading…
Reference in New Issue
Block a user