-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different results from JSC_Eval to JSC_Eval_Bytecode #15
Comments
Have you seen this https://webkit.org/blog/9329/a-new-bytecode-format-for-javascriptcore/ ? |
The link you posted is the foundation of JSC.js's bytecode compiler. If you look at the code JSC.js is basically calling into the bytecode compiler to dump the code cache and then output as binary array. It's was not possible before JSC introduce that feature, and that's why I started this project years ago but only tested bytecode compiler since last year. |
Ah so you don’t know if they have updated it? |
unless I do another update and try again. |
ah is that hard to do? |
not hard, just takes time |
Are you planning on updating it soon? |
maybe not very soon, but I'll try to find some time when possible |
Would be very nice! Thanks for your hard work! |
I am getting different results when evaluation js vs compiling that js and evaluating it with jsc_eval_bytecode.
Here is the code :
If I do
Module.cwrap('jsc_eval', 'string', ['string'])
I get 784 as the result.If I compile it and evaluate that I get this error :
No idea what is causing this as I am just using the string returned from
Module.cwrap('jsc_compile')
to feed to jsc_eval.The text was updated successfully, but these errors were encountered: