Skip to content
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

Node 12 (JITless) support #873

Merged
merged 15 commits into from
Mar 23, 2019
Merged

Node 12 (JITless) support #873

merged 15 commits into from
Mar 23, 2019

Conversation

avaer
Copy link
Member

@avaer avaer commented Mar 20, 2019

V8 now supports running in JITless mode and there is a PR to bring it into node.

With this feature, we can run Exokit on more platforms, including iOS, which disallow the executable writable memory policy that V8 uses by default.

The main task for us in exoland is to make sure we are compatible with Node 12. The V8 API changed a bit re: v8::Handle here, and some deprecated methods were removed. This PR makes the necessary changes to exokit and collects the needed external module updates.

Notably we would need to do this work anyway when Node 12 comes around in April.

Continuation of #871; thanks to @shawwn for the research and bootstrapping that work.

@avaer avaer force-pushed the node-12-jitless branch 2 times, most recently from 90dccfd to 2d6b398 Compare March 20, 2019 05:58
@avaer
Copy link
Member Author

avaer commented Mar 20, 2019

This should be building on node 12 now.

@avaer avaer mentioned this pull request Mar 20, 2019
Copy link
Member Author

@avaer avaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I manually looked over this PR and couldn't find any errors.

However, it should still be tested on Node 11 + 12, as well as Magic Leap.

exokit.cpp Outdated Show resolved Hide resolved
@avaer avaer merged commit 5003476 into master Mar 23, 2019
@avaer avaer deleted the node-12-jitless branch March 23, 2019 04:17
@avaer avaer mentioned this pull request Mar 23, 2019
@avaer
Copy link
Member Author

avaer commented Mar 23, 2019

Note that to use this feature, you probably want the Node 12 --jitless flag:

  --jitless (Disable runtime allocation of executable memory.)
        type: bool  default: false

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