mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWasm: Push call results back in reverse order to preserve stack order
This commit is contained in:
parent
6760ea33a0
commit
846b2c8a99
Notes:
sideshowbarker
2024-07-17 11:35:48 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/846b2c8a99 Pull-request: https://github.com/SerenityOS/serenity/pull/13770 Reviewed-by: https://github.com/sin-ack ✅
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ void BytecodeInterpreter::call_address(Configuration& configuration, FunctionAdd
|
|||
}
|
||||
|
||||
configuration.stack().entries().ensure_capacity(configuration.stack().size() + result.values().size());
|
||||
for (auto& entry : result.values())
|
||||
for (auto& entry : result.values().in_reverse())
|
||||
configuration.stack().entries().unchecked_append(move(entry));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue