зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1525873: Temporary workaround to reload TLS state after a Cranelift call; r=sunfish
--HG-- extra : rebase_source : 2630b368ff86e057ee4d699f54ed10f1868f9de8
This commit is contained in:
Родитель
550c39c9a8
Коммит
18f2199cba
|
@ -88,6 +88,13 @@ static bool GenerateCraneliftCode(WasmMacroAssembler& masm,
|
|||
return false;
|
||||
}
|
||||
|
||||
// Cranelift isn't aware of pinned registers in general, so we need to reload
|
||||
// both TLS and pinned regs from the stack.
|
||||
// TODO(bug 1507820): We should teach Cranelift to reload this register
|
||||
// itself, so we don't have to do it manually.
|
||||
masm.loadWasmTlsRegFromFrame();
|
||||
masm.loadWasmPinnedRegsFromTls();
|
||||
|
||||
wasm::GenerateFunctionEpilogue(masm, func.framePushed, offsets);
|
||||
|
||||
masm.flush();
|
||||
|
|
Загрузка…
Ссылка в новой задаче