Skip to content

Conversation

@vouillon
Copy link
Collaborator

Some optimizations were no longer applied after the array initialization fix in #113. The following functions from Js.Unsafe were affected: call, fun_call, meth_call and new_obj.

The OCaml string is converted to a JavaScript string at compile time. This make us generate better code for the functions Ojs.{get,set,delete}_prop_ascii from gen_js_api.

@vouillon vouillon changed the title Fix an improve the optimization of JavaScript interoperability primitives Fix and improve the optimization of JavaScript interoperability primitives Nov 22, 2024
Some optimizations were no longer applied after the array initialization
fix in #113. The following functions from `Js.Unsafe` were affected:
`call`, `fun_call`, `meth_call` and `new_obj`.
…a key

The OCaml string is converted to a JavaScript string at compile time.
This make us generate better code for the functions
`Ojs.{get,set,delete}_prop_ascii` from gen_js_api.
@vouillon vouillon merged commit 7bfec53 into main Nov 26, 2024
31 checks passed
@vouillon vouillon deleted the js-prim-fixes branch November 26, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants