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

[v12.x] Backport of deps: update V8 to 7.5 #28005

Merged
merged 21 commits into from Jun 4, 2019

Commits on Jun 4, 2019

  1. deps: update V8 to 7.5.288.22

    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    86a8bb7 View commit details
    Browse the repository at this point in the history
  2. build: reset embedder string to "-node.0"

    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    21bcfb6 View commit details
    Browse the repository at this point in the history
  3. build,v8: sync V8 gypfiles with 7.5

    Co-authored-by: Ujjwal Sharma <usharma1998@gmail.com>
    Co-authored-by: Michaël Zasso <targos@protonmail.com>
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    5101e4c View commit details
    Browse the repository at this point in the history
  4. tools,gyp: introduce MSVS 2019

    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    018159d View commit details
    Browse the repository at this point in the history
  5. deps: V8: fix filename manipulation for Windows

    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    4a61bdb View commit details
    Browse the repository at this point in the history
  6. deps: V8: un-cherry-pick bd019bd

    Original commit message:
    
        [testrunner] delete ancient junit compatible format support
    
        Testrunner has ancient support for JUnit compatible XML output.
    
        This CL removes this old feature.
    
        R=mstarzinger@chromium.org,jgruber@chromium.org,jkummerow@chromium.org
        CC=​machenbach@chromium.org
    
        Bug: v8:8728
        Change-Id: I7e1beb011dbaec3aa1a27398a5c52abdd778eaf0
        Reviewed-on: https://chromium-review.googlesource.com/c/1430065
        Reviewed-by: Jakob Gruber <jgruber@chromium.org>
        Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
        Commit-Queue: Tamer Tas <tmrts@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#59045}
    
    Refs: v8/v8@bd019bd
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#26685
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    ca8e5aa View commit details
    Browse the repository at this point in the history
  7. deps: V8: silence irrelevant warning

    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#26685
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    targos committed Jun 4, 2019
    Copy the full SHA
    2f92b15 View commit details
    Browse the repository at this point in the history
  8. deps: V8: update postmortem metadata generation script

    Update postmortem metadata constants for V8 7.5 in Node.js.
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#26685
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    cjihrig authored and targos committed Jun 4, 2019
    Copy the full SHA
    55e9944 View commit details
    Browse the repository at this point in the history
  9. deps: V8: cherry-pick cca9ae3c9a

    Original commit message:
    
        Remove recursion from NeedsCheckHeapObject.
    
        We use the predicate NeedsCheckHeapObject in the compiler frontend to
        determine whether we can skip introducing CheckHeapObject nodes. But
        this predicate would also walk up the graph in case of Phis, which can
        result in really long compilation times (on the main thread). In the
        report in nodejs#27667, the compiler
        frontend alone took around 4-5mins of main thread time for a single
        function. With this patch the time goes down to 4-5ms.
    
        Bug: v8:9250
        Refs: nodejs#27667
        Change-Id: I231eb780ff04f949fa1669714f9af6ebfbcade05
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1612897
        Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
        Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#61503}
    
    Fixes: nodejs#27667
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27729
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    bmeurer authored and targos committed Jun 4, 2019
    Copy the full SHA
    8b8fe87 View commit details
    Browse the repository at this point in the history
  10. deps: V8: backport f89e555

    Original commit message:
    
        [api] Fix compilation issue with macOS
    
        Fixes the following error caught by the Node.js CI:
    
        ../deps/v8/src/api.cc:8943:10:
          error: no viable conversion from returned value of type
          'unique_ptr<v8::internal::MicrotaskQueue, default_delete<v8::internal::MicrotaskQueue>>'
          to function return type
          'unique_ptr<v8::MicrotaskQueue, default_delete<v8::MicrotaskQueue>>'
    
          return microtask_queue;
                 ^~~~~~~~~~~~~~~
    
        Change-Id: Ic09dab46bb8f87a2b3b59f5836e0883bfe0e9681
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1627533
        Commit-Queue: Michaël Zasso <mic.besace@gmail.com>
        Commit-Queue: Yang Guo <yangguo@chromium.org>
        Reviewed-by: Yang Guo <yangguo@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#61789}
    
    Refs: v8/v8@f89e555
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    targos committed Jun 4, 2019
    Copy the full SHA
    fa6dfec View commit details
    Browse the repository at this point in the history
  11. deps: V8: patch register-arm64.h

    Fixes a compilation issue on some platforms
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    445bb81 View commit details
    Browse the repository at this point in the history
  12. deps: V8: forward declaration of Rtl*FunctionTable

    This should be semver-patch since actual invocation is version
    conditional.
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    c08d94b View commit details
    Browse the repository at this point in the history
  13. deps: V8: use ATOMIC_VAR_INIT instead of std::atomic_init

    `std::atomic_init<size_t>` is not implemented in all platforms.
    
    * pragma to ignore `-Wbraced-scalar-init`
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    b411114 View commit details
    Browse the repository at this point in the history
  14. deps: V8: template explicit instantiation for GCC-8

    Fails to link for missing:
    void JSObject::ApplyAttributesToDictionary<NumberDictionary>(...)
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    0a5ff4c View commit details
    Browse the repository at this point in the history
  15. deps: V8: workaround for MSVC 14.20 optimizer bug

    Refs: https://developercommunity.visualstudio.com/content/problem/512352/compiler-doesnt-finish-142027508.html
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    f8a33ab View commit details
    Browse the repository at this point in the history
  16. deps: V8: fix BUILDING_V8_SHARED issues

    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    bb729a4 View commit details
    Browse the repository at this point in the history
  17. deps: V8: backport 3a75c1f

    Original commit message:
    
        Fixing a possible freeze on abort with 'v8_win64_unwinding_info'
    
        Win64 unwind data can specify a language-specific handler function which is
        called as part of the search for an exception handler, as described in
        https://docs.microsoft.com/en-us/cpp/build/exception-handling-x64?view=vs-2019.
        This is used for example by Crashpad to register its own exception handler for
        exceptions in V8-generated code.
        There is a problem in the code that may cause a freeze on abort: in file
        \deps\v8\src\unwinding-info-win64.cc in function CRASH_HANDLER_FUNCTION_NAME the
        line:
            return EXCEPTION_CONTINUE_SEARCH;
        should be
            return ExceptionContinueSearch;
    
        These constants are both used in the context of Win32 exception handlers, but
        they have different semantics and unfortunately different values:
        EXCEPTION_CONTINUE_SEARCH (=0) should be returned by an exception filter
        while a language-specific handler should return an EXCEPTION_DISPOSITION value,
        and more precisely ExceptionContinueSearch (=1) in this case.
    
        Bug: v8:9295
        Change-Id: I1a3aaabf357e52a909611814f1ea013cf652ae06
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1629795
        Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
        Commit-Queue: Paolo Severini <paolosev@microsoft.com>
        Cr-Commit-Position: refs/heads/master@{#61867}
    
    Refs: v8/v8@3a75c1f
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    e4aa869 View commit details
    Browse the repository at this point in the history
  18. deps: bump minimum icu version to 64

    Bump minimum version of ICU needed to build node to 64.
    
    Refs: v8/v8@ccbe3d0
    
    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    targos committed Jun 4, 2019
    Copy the full SHA
    ad3a164 View commit details
    Browse the repository at this point in the history
  19. test: drain platform before unregistering isolate

    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    ab1a4eb View commit details
    Browse the repository at this point in the history
  20. test: fail test-worker-prof on internal timeout

    Backport-PR-URL: nodejs#28005
    PR-URL: nodejs#27375
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    refack authored and targos committed Jun 4, 2019
    Copy the full SHA
    92d1ca9 View commit details
    Browse the repository at this point in the history
  21. deps: patch V8 to be API/ABI compatible with 7.4

    Reverts v8/v8@1b51dca
    Reverts v8/v8@1ab717d
    Partially reverts v8/v8@b0077b3
    
    PR-URL: nodejs#28005
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
    targos committed Jun 4, 2019
    Copy the full SHA
    40a1a11 View commit details
    Browse the repository at this point in the history