mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
LibJS: Align Instructions as void* and roundup variably sized ones sizes
Both is indeed needed, the standard alignment would have been 4, but some Instructions, like Jumps need an alignment of 8 Fixes #12127.
This commit is contained in:
parent
89408d5f64
commit
911506af9f
3 changed files with 9 additions and 5 deletions
|
@ -92,7 +92,7 @@
|
|||
|
||||
namespace JS::Bytecode {
|
||||
|
||||
class Instruction {
|
||||
class alignas(void*) Instruction {
|
||||
public:
|
||||
constexpr static bool IsTerminator = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue