mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 909826 - Tidy up stack overflow exit (r=mjrosenb)
--HG-- extra : rebase_source : d1df34f829ec031e027cad7b05146b6987251c26
This commit is contained in:
parent
1c31bc2c66
commit
e68684938d
@ -5932,16 +5932,9 @@ GenerateStackOverflowExit(ModuleCompiler &m, Label *throwLabel)
|
||||
LoadAsmJSActivationIntoRegister(masm, eax);
|
||||
LoadJSContextFromActivation(masm, eax, eax);
|
||||
masm.storePtr(eax, Address(StackPointer, 0));
|
||||
#elif defined(JS_CPU_X64)
|
||||
LoadAsmJSActivationIntoRegister(masm, IntArgReg0);
|
||||
LoadJSContextFromActivation(masm, IntArgReg0, IntArgReg0);
|
||||
#else
|
||||
|
||||
// on ARM, we should always be aligned, just do the context manipulation
|
||||
// and make the call.
|
||||
LoadAsmJSActivationIntoRegister(masm, IntArgReg0);
|
||||
LoadJSContextFromActivation(masm, IntArgReg0, IntArgReg0);
|
||||
|
||||
#endif
|
||||
void (*pf)(JSContext*) = js_ReportOverRecursed;
|
||||
masm.call(ImmWord(JS_FUNC_TO_DATA_PTR(void*, pf)));
|
||||
|
Loading…
Reference in New Issue
Block a user