Skip to content

Conversation

@renatahodovan
Copy link
Contributor

Inspired by qjs, a new helper method was added to create the JS context, that can be reused to create context in workers, too.

Inspired by qjs, a new helper method was added to create the JS
context, that can be reused to create context in workers, too.
@renatahodovan
Copy link
Contributor Author

@saghul Thanks for your approval! Could someone land it please?

@renatahodovan
Copy link
Contributor Author

@bellard Could you please take a look?

zenHeart pushed a commit to zenHeart/quickjs that referenced this pull request Mar 25, 2025
Translate IC opcodes to their non-IC variants before writing them out.
Before this commit they were not byte-swapped properly, breaking the
ability to load serialized bytecode containing ICs on systems with
different endianness. Inline caches are recomputed as needed now.

A pleasing side effect of this change is that serialized bytecode is,
on average, a little smaller because fewer atoms are duplicated now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants