-
Notifications
You must be signed in to change notification settings - Fork 30k
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
deps: patch the V8 API to be forward compatible with 6.7 #19999
Conversation
Thanks! Can you please:
|
Diff: https://gist.github.com/targos/5b700e76921be024a7ea06127953cf93 Edit: to be clear, this is the output of |
Is this part OK? @@ -6193,24 +6263,6 @@ typedef void* (*CreateHistogramCallback)(const char* name,
typedef void (*AddHistogramSampleCallback)(void* histogram, int sample);
-// --- Memory Allocation Callback ---
-enum ObjectSpace {
- kObjectSpaceNewSpace = 1 << 0,
- kObjectSpaceOldSpace = 1 << 1,
- kObjectSpaceCodeSpace = 1 << 2,
- kObjectSpaceMapSpace = 1 << 3,
- kObjectSpaceLoSpace = 1 << 4,
- kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldSpace |
- kObjectSpaceCodeSpace | kObjectSpaceMapSpace |
- kObjectSpaceLoSpace
-};
-
- enum AllocationAction {
- kAllocationActionAllocate = 1 << 0,
- kAllocationActionFree = 1 << 1,
- kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree
- };
-
// --- Enter/Leave Script Callback ---
typedef void (*BeforeCallEnteredCallback)(Isolate*);
typedef void (*CallCompletedCallback)(Isolate*); |
3b7202a
to
92ed818
Compare
I amended the commit with the version number increments. I think it's OK to leave the |
Probably missing an |
92ed818
to
61fa424
Compare
Updated it with the include, thanks |
virtual size_t NumberOfAvailableBackgroundThreads() { return 0; } | ||
V8_DEPRECATE_SOON( | ||
"NumberOfAvailableBackgroundThreads() is deprecated, use " | ||
"NumberOfAvailableBackgroundThreads() instead.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is supposed to say NumberOfWorkerThreads()
, right? Not that it matters much, but the message might be … confusing? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This typo is still present in V8 master, so should be fixed there first.
Do we want to land this on master or on 10.x-staging? |
Why not on master? |
The last time around we didn’t land it on master, but I agree that I don’t really see a problem with doing so. |
If this is going directly to 10.x-staging, please allow me to land it as part of the next round of updates that I make to that. If it lands in master, I'll cherry-pick it back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Peter!
CI is green. I'm going to land this on master if there are no objections. That way we can immediately work on replacing our usage of deprecated APIs |
@targos ... if you can, please land this today before noon pacific so I can make sure it is in today's 10.0.0 test build. |
This has to land after #20105. I won't be around soon enough to do it myself. |
landed in 8bcefd0 |
PR-URL: #19999 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #19999 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes@addaleax @MylesBorins