镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

deps: update v8.gyp, fix torque on windows - #58

Closed
bnoordhuis wants to merge 17 commits into
nodejs:canaryfrom
bnoordhuis:fix57
Closed

bnoordhuis wants to merge 17 commits into
nodejs:canaryfrom
bnoordhuis:fix57

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented May 1, 2018 •

Copy link
Copy Markdown
Member

Turn on exceptions and RTTI, torque uses both. They were already
enabled on UNIX platforms.

CI: https://ci.nodejs.org/job/node-test-pull-request/14616/

nodejs-ci and others added 17 commits May 1, 2018 09:22
Major V8 updates are usually API/ABI incompatible with previous
versions. This commit adapts NODE_MODULE_VERSION for V8 6.8.

Refs: https://github.com/nodejs/CTC/blob/master/meetings/2016-09-28.md
Synchronize source files list with upstream's BUILD.gn.
v8.getHeapSpaceStatistics() now includes read_only_space
in its results. Update test-v8-stats.js to account for this.

Fixes: #44
This commit updates the following postmortem metadata constants:

- v8dbg_class_SharedFunctionInfo__code__Code
  - This is now combined with SharedFunctionInfo's function_data.
  - Renamed: v8dbg_class_SharedFunctionInfo__function_data__Object
  - V8 commit: v8/v8@51ded9d

- v8dbg_class_SharedFunctionInfo__raw_name__Object and
- v8dbg_class_SharedFunctionInfo__scope_info__ScopeInfo
  - These are now combined as name_or_scope_info.
  - Renamed: v8dbg_class_SharedFunctionInfo__name_or_scope_info__Object
  - V8 commit: v8/v8@74a663b

- v8dbg_class_SharedFunctionInfo__compiler_hints__int
  - Renamed: v8dbg_class_SharedFunctionInfo__flags__int
  - V8 commit: v8/v8@071b01b#diff-f3f182b0510ba2ee39ae87e421ff110b

Fixes: #44
Fixes: #48
This commit renames V8DBG_CLASS_SHAREDFUNCTIONINFO__RAW_NAME__OBJECT
to V8DBG_CLASS_SHAREDFUNCTIONINFO__NAME_OR_SCOPE_INFO__OBJECT
following an upstream change.
As per Node.js docs, vm.Script instance is not bound to any context.

However, this test was expecting otherwise and depended on
implementation details which are going to change.

Refs: https://chromium-review.googlesource.com/c/v8/v8/+/1013581
Teach v8.gyp to build and run torque, V8's DSL for generating builtins.
until 8466b71ad81a71a7fccace84c034af251591c5c0
Turn on exceptions and RTTI, torque uses both.  They were already
enabled on UNIX platforms.
Use of Internals::IsValidSmi() looks questionable anyway, it won't work
right when cross-compiling from 32 bits to 64 bits or vice versa.
@targos

targos commented May 2, 2018

Copy link
Copy Markdown
Member

@bnoordhuis is the second commit to fix "unresolved externals" errors?

@targos

targos commented May 7, 2018 •

Copy link
Copy Markdown
Member

I just tested this on my Windows machine and it works! Are you going to upstream the change in torque's file?

@bnoordhuis

Copy link
Copy Markdown
Member Author

Yes, I just need to get back to this. Bit behind on schedule due to a back injury.

@targos targos mentioned this pull request May 10, 2018
@mhdawson mhdawson mentioned this pull request May 10, 2018
@nodejs-ci
nodejs-ci force-pushed the canary branch 2 times, most recently from 1c20870 to d97ee1b Compare May 12, 2018 06:46
@nodejs-ci
nodejs-ci force-pushed the canary branch 5 times, most recently from 056b78f to 5af732e Compare May 18, 2018 13:10
@nodejs-ci
nodejs-ci force-pushed the canary branch 2 times, most recently from b2733b8 to 491eb0f Compare May 23, 2018 07:10
@refack

refack commented May 24, 2018

Copy link
Copy Markdown

Superseded by #61

@refack refack closed this May 24, 2018
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.

6 participants