Starlight-JS / starlight

JS engine in Rust
https://teletype.in/@starlight-js
Mozilla Public License 2.0
511 stars 9 forks source link

Switch to other NaN boxing scheme #73

Open playXE opened 3 years ago

playXE commented 3 years ago

Right now we use NaN boxing that is derived from Hermes, a Facebook JS engine. This scheme is very portable and implementation is really small but its performance is not the best. What I want to do is to switch to what JavaScriptCore has. JSCs NaN boxing scheme is used in Escargot and a few other JS engines, it is also portable but at the same time there's quite a lot of code to implement it but I guess it is worth to switch to it.