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

build: add --v8-lite-mode flag #33541

Closed
wants to merge 1 commit into from
Closed

build: add --v8-lite-mode flag #33541

wants to merge 1 commit into from

Conversation

cician
Copy link
Contributor

@cician cician commented May 24, 2020

This small change just exposes the V8 compilation option for Lite Mode (see https://v8.dev/blog/v8-lite) which also implies jitless (see https://v8.dev/blog/jitless) when set.

It should be useful in some niche scenarios like compiling for memory constrained platforms or those that don't allow for just in time compilation (like iOS).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
    The tests do not pass when compiling with this flag activated due to V8 not supporting webassebly in lite mode. The normal build is unaffected and the tests pass.
  • tests and/or benchmarks are included
    No additional tests or benchmarks added. The V8 team has an extensive overview of the lite mode.
  • documentation is changed or added
    I'm not sure if the flag needs to be added to documentation. It's pretty niche and other similar flags don't seem to be documented as far as I can tell.
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to build files or the CI. label May 24, 2020
Copy link
Member

@juanarbol juanarbol left a comment

Choose a reason for hiding this comment

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

Nice.

Copy link
Member

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

Not opposed, just want to point out that a "lite mode" build is identical to starting node with --lite_mode --jitless (and --lite_mode is a no-op nowadays, only --jitless does something.)

In other words, this PR is shorthand for ./configure --v8-options="--lite_mode --jitless" but with a better help text. :-)

@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 27, 2020
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 27, 2020

CI: https://ci.nodejs.org/job/node-test-pull-request/31589/ 💛 (known flake: parallel/test-http2-reset-flood)

BridgeAR pushed a commit to BridgeAR/node that referenced this pull request May 30, 2020
PR-URL: nodejs#33541
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@BridgeAR
Copy link
Member

Landed in 01c4455

@BridgeAR BridgeAR closed this May 30, 2020
codebytere pushed a commit that referenced this pull request Jun 18, 2020
PR-URL: #33541
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
PR-URL: #33541
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
codebytere pushed a commit that referenced this pull request Jul 8, 2020
PR-URL: #33541
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@codebytere codebytere mentioned this pull request Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. build Issues and PRs related to build files or the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants