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

Nodejs v12 support #330

Closed
wants to merge 9 commits into from
Closed

Conversation

mmarchini
Copy link
Contributor

@mmarchini mmarchini commented Jan 16, 2020

This PR contains all commits necessary to make llnode work on v12, plus changes to CI to run tests on v12, drop v8 and v11, and bump the major version since we're dropping support and adding new one. I made a PR on nodejs/node to update the list of postmortem constants used, but I noticed some of the constants here already changes on v13, so we'll have to work on that.

V8 changed DescriptorArray from a FixedArray to a proper HeapObject.
These changes update accessors for DescriptorArray fields to make them
compatible with FixedArray-like and HeapObject-like access.

Ref: nodejs#255
V8 changed the function name inference algorithm, which affected one of
our test cases. Even if it's reverted/fixed upstream, it won't make it's
way into v12, so skip that particular test for this version.

Ref: https://bugs.chromium.org/p/v8/issues/detail?id=9807
Some Node.js v12 versions will have String postmortem metadata as
`String__FIELD_offset__int` instead of `String__FIELD_offset__TYPE`.
Handle both cases so llnode can work on more versions.
Instead of crashing if llnode fails to parse a Symbol, just return  a
??? token.
mmarchini added a commit to mmarchini/node that referenced this pull request Jan 16, 2020
mmarchini added a commit to mmarchini/node that referenced this pull request Jan 16, 2020
@mmarchini mmarchini marked this pull request as ready for review January 16, 2020 22:10
@mmarchini
Copy link
Contributor Author

cc cc @nodejs/llnode @nodejs/diagnostics

Copy link
Member

@gireeshpunathil gireeshpunathil left a comment

Choose a reason for hiding this comment

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

RSLTGM

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

Ruber stampish LGTM

Trott pushed a commit to nodejs/node that referenced this pull request Jan 18, 2020
Ref: nodejs/llnode#330

PR-URL: #31391
Refs: nodejs/llnode#330
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
V8 changed DescriptorArray from a FixedArray to a proper HeapObject.
These changes update accessors for DescriptorArray fields to make them
compatible with FixedArray-like and HeapObject-like access.

Ref: #255

PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
V8 changed the function name inference algorithm, which affected one of
our test cases. Even if it's reverted/fixed upstream, it won't make it's
way into v12, so skip that particular test for this version.

Ref: https://bugs.chromium.org/p/v8/issues/detail?id=9807

PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
Some Node.js v12 versions will have String postmortem metadata as
`String__FIELD_offset__int` instead of `String__FIELD_offset__TYPE`.
Handle both cases so llnode can work on more versions.

PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
Instead of crashing if llnode fails to parse a Symbol, just return  a
??? token.

PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
mmarchini added a commit that referenced this pull request Jan 21, 2020
PR-URL: #330
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@mmarchini
Copy link
Contributor Author

Landed in 878b514...e8896e0

@mmarchini mmarchini closed this Jan 21, 2020
codebytere pushed a commit to nodejs/node that referenced this pull request Feb 17, 2020
Ref: nodejs/llnode#330

PR-URL: #31391
Refs: nodejs/llnode#330
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
codebytere pushed a commit to nodejs/node that referenced this pull request Mar 14, 2020
Ref: nodejs/llnode#330

PR-URL: #31391
Refs: nodejs/llnode#330
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
codebytere pushed a commit to nodejs/node that referenced this pull request Mar 17, 2020
Ref: nodejs/llnode#330

PR-URL: #31391
Refs: nodejs/llnode#330
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 330c52db684732798ed6adca9233a96591ae7829-PR-330

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 192 of 286 (67.13%) changed or added relevant lines in 9 files are covered.
  • 107 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+3.6%) to 78.609%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/llv8-constants.h 1 2 50.0%
test/plugin/frame-test.js 3 8 37.5%
src/llv8-constants.cc 48 60 80.0%
src/llv8.cc 17 30 56.67%
src/printer.cc 37 56 66.07%
src/llv8-inl.h 78 122 63.93%
Files with Coverage Reduction New Missed Lines %
src/llv8-constants.h 1 95.59%
src/printer.cc 1 76.9%
src/llv8.h 2 78.57%
src/llv8-constants.cc 5 81.96%
src/llv8-inl.h 98 69.44%
Totals Coverage Status
Change from base Build 878b514e2919e1adf7974694bf36cdd7286cdec8: 3.6%
Covered Lines: 3707
Relevant Lines: 4703

💛 - Coveralls

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.

4 participants