Skip to content

Conversation

@mmarchini
Copy link
Contributor

Type of String::Length changed from SMI to int32. This commit changes
String::Length to use the new type. String::Length now returns a
CheckedType, and places calling String::Length will check the type using
.Check instead of Error::Fail, making the code more resilient in case
the String length can't be loaded properly.

Type of String::Length changed from SMI to int32. This commit changes
String::Length to use the new type. String::Length now returns a
CheckedType, and places calling String::Length will check the type using
.Check instead of Error::Fail, making the code more resilient in case
the String length can't be loaded properly.
@mmarchini mmarchini force-pushed the fix-string-len-node12 branch from d2fa4cc to a3c7f2b Compare September 30, 2019 15:19
@codecov-io
Copy link

codecov-io commented Sep 30, 2019

Codecov Report

Merging #302 into master will increase coverage by 0.4%.
The diff coverage is 58.06%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #302     +/-   ##
=======================================
+ Coverage    78.6%    79%   +0.4%     
=======================================
  Files          33     33             
  Lines        4225   4244     +19     
=======================================
+ Hits         3321   3353     +32     
+ Misses        904    891     -13
Impacted Files Coverage Δ
src/llv8.h 83.33% <ø> (+2.38%) ⬆️
src/llv8-constants.h 100% <ø> (+1.51%) ⬆️
src/llv8.cc 72.81% <0%> (+1.69%) ⬆️
src/llv8-constants.cc 83.06% <50%> (+0.54%) ⬆️
src/llv8-inl.h 92.91% <80%> (+0.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c4c99c...a3c7f2b. Read the comment docs.

@mmarchini
Copy link
Contributor Author

For posterity, the SMI to int32 change happened here: https://chromium-review.googlesource.com/c/v8/v8/+/1224432/

I'm not sure this pull request fixes all the problems though. I'm still seeing a lot of frames not loading with v8 bt...

@mmarchini
Copy link
Contributor Author

cc @nodejs/llnode

mmarchini added a commit that referenced this pull request Oct 7, 2019
Type of String::Length changed from SMI to int32. This commit changes
String::Length to use the new type. String::Length now returns a
CheckedType, and places calling String::Length will check the type using
.Check instead of Error::Fail, making the code more resilient in case
the String length can't be loaded properly.

PR-URL: #302
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@mmarchini
Copy link
Contributor Author

Landed in a79a008

@mmarchini mmarchini closed this Oct 7, 2019
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.

3 participants