1. 14 Dec, 2021 1 commit
  2. 13 Dec, 2021 10 commits
  3. 12 Dec, 2021 1 commit
  4. 11 Dec, 2021 2 commits
  5. 10 Dec, 2021 13 commits
  6. 09 Dec, 2021 13 commits
    • Michael Lippautz's avatar
      cppgc: Advance deprecation arounds write barrier · 3afcbf5c
      Michael Lippautz authored
      Advance deprecations and remove fully deprecated code.
      
      Bug: v8:12165
      Change-Id: I2cf1715d6878ff65e5b9beaddb8df7aec780b21e
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3328781
      Auto-Submit: Michael Lippautz <mlippautz@chromium.org>
      Reviewed-by: 's avatarAnton Bikineev <bikineev@chromium.org>
      Commit-Queue: Anton Bikineev <bikineev@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78329}
      3afcbf5c
    • Dominik Inführ's avatar
      Revert "[heap] Optimize time to reach global safepoint" · b51a100d
      Dominik Inführ authored
      This reverts commit 86038ecf.
      
      Reason for revert: Caused TSAN failures
      
      Original change's description:
      > [heap] Optimize time to reach global safepoint
      >
      > Initial support for global safepoints kept it simple by entering a
      > safepoint for each of them one after another. This means
      > time-to-global-safepoint is the sum of all time-to-safepoint operations.
      > We can improve this slightly by splitting up the safepoint iteration
      > into two operations:
      >
      > 1) Initiate safepoint lock (locks local_heaps_mutex_, arms the barrier
      >    and sets SafepointRequested flag for all client threads)
      > 2) Block until all runnning client threads reach a safepoint
      >
      > We now perform operation 1) for all clients first and only then start
      > with operation 2).
      >
      > Bug: v8:11708
      > Change-Id: Iaafd3c6d70bcf7026f722633e9250b04148b3da6
      > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3310910
      > Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
      > Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
      > Cr-Commit-Position: refs/heads/main@{#78308}
      
      Bug: v8:11708, v8:12492
      Change-Id: I32ef7139d4392adfadeffeb70c06f3ed18109ca8
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3328782
      Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78328}
      b51a100d
    • Omer Katz's avatar
      cppgc: Reflush in construction objects after parallel marking · 529b8d3c
      Omer Katz authored
      Concurrent marking could still push object to the in construction
      worklist after it is emptied at the start of the atomic pause.
      
      Bug: v8:12479
      Change-Id: I539e5857001c4689867a3de6adb11142f639cb5b
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3327143Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
      Commit-Queue: Omer Katz <omerkatz@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78327}
      529b8d3c
    • Manos Koukoutos's avatar
      [wasm][turbofan] Refactor/improve global operations · 2b985fb8
      Manos Koukoutos authored
      Changes:
      - Refactor all global base and offset computations into a single
        function and simplify GlobalGet and GlobalSet.
      - Remove unneeded pointer arithmetic in the simd case. This enables the
        use of object operators, including LoadImmutableFromObject, which
        might enable more loads to be eliminated.
      
      Bug: v8:11510
      
      Change-Id: Ieab45fd9433863780bcfd6d4596786c08e3951a6
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3320457Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
      Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78326}
      2b985fb8
    • Manos Koukoutos's avatar
      [wasm][turbofan] Immutable object operators · 4113cf64
      Manos Koukoutos authored
      Design doc: bit.ly/36MfD6Y
      
      We introduce simplified operators LoadImmutableFromObject and
      InitializeImmutableInObject. These are lowered to Loads and Stores like
      LoadFromObject and StoreToObject.
      We split CsaLoadElimination::AbstractState in two HalfStates,
      which represent the mutable and immutable component of the state.
      Immutable operators in the effect chain modify the immutable half-state,
      and plain operators modify the mutable half-state. The immutable part is
      maintained through write effects and loop headers. Immutable
      initializations do not lookup and kill previous overlapping stores,
      assuming each offset cannot be initialized more than once.
      
      Bug: v8:11510
      
      Change-Id: I0f5feca3354fdd3bdc1f511cc5214ec51e1407ad
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3268728Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
      Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
      Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78325}
      4113cf64
    • V8 Autoroll's avatar
      Version 9.9.0 · 002e39e9
      V8 Autoroll authored
      Change-Id: I3e803b880574fa17b276f8f3e3e78198a2920866
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3326439Reviewed-by: 's avatarLutz Vahl <vahl@chromium.org>
      Commit-Queue: Liviu Rau <liviurau@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78324}
      002e39e9
    • Maya Lekova's avatar
      Revert "[stack-traces] Don't hold on to code objects from StackFrameInfos." · 3ea957a6
      Maya Lekova authored
      This reverts commit 6b1fb003.
      
      Reason for revert: breaks gc stress bots - https://ci.chromium.org/ui/p/v8/builders/ci/V8%20Linux%20-%20gc%20stress/36626/overview
      
      Original change's description:
      > [stack-traces] Don't hold on to code objects from StackFrameInfos.
      >
      > Previously every `StackFrameInfo` instance would maintain a reference to
      > an AbstractCode object, which was used to resolve the `code_offset` on
      > that stack frame. However, it turns out that nowadays this is not
      > necessary anymore, since all `code_offset`s reported for JavaScript
      > frames are already bytecode offsets and thus can be resolved by just
      > looking at the functions' bytecode.
      >
      > For WebAssembly frames we will also eagerly resolve the `code_offset`
      > (which is different depending on whether we're looking at Liftoff or
      > TurboFan code) to the byte offset (relative to the function start) and
      > stash that away in the `StackFrameInfo`.
      >
      > For builtin exit frames, the `abstract_code` on the function always
      > refers to the builtin code object and thus, there's no point in keeping
      > an extra pointer to it around on the `StackFrameInfo`.
      >
      > This way the `StackFrameInfo` representation is somewhat uniform, and
      > more importantly, the `StackFrameInfo` instances will no longer need to
      > hold to concrete code objects.
      >
      > Drive-by-fix: Use `FixedArray::SetAndGrow()` when adding to the elements
      > in the `StackTraceBuilder`.
      >
      > Also-By: szuend@chromium.org, jarin@chromium.org
      > Bug: chromium:1258599, chromium:1077657, v8:8742, chromium:1069425
      > Change-Id: I650e400e0e1acd920281669bdc7b5e1199683ae8
      > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3323073
      > Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
      > Reviewed-by: Leszek Swirski <leszeks@chromium.org>
      > Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
      > Cr-Commit-Position: refs/heads/main@{#78320}
      
      Bug: chromium:1258599, chromium:1077657, v8:8742, chromium:1069425
      Change-Id: I20643ad8f0c383b754841fc52f9b3447b004c9d0
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3327141
      Auto-Submit: Maya Lekova <mslekova@chromium.org>
      Owners-Override: Maya Lekova <mslekova@chromium.org>
      Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      Cr-Commit-Position: refs/heads/main@{#78323}
      3ea957a6
    • Yu Liu's avatar
      Revert "[loong64][mips64][fastcall] Enable float support on loong64 · 6ab842f8
      Yu Liu authored
       and mips64"
      
      This reverts commit 1d6dc2b9.
      
      Reason for revert: this modify is inconsistent with the allocation
      method of the parameter register on the real machine on loong64.
      
      Original change's description:
      > [loong64][mips64][fastcall] Enable float support on loong64 and mips64
      >
      > Port commit 098f31f4
      >
      > Bug: chromium:1052746
      >
      > Change-Id: I4f9fd952c2ce8b51772eac89d4852d55363d1ed1
      > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3292352
      > Auto-Submit: Liu yu <liuyu@loongson.cn>
      > Reviewed-by: Toon Verwaest <verwaest@chromium.org>
      > Reviewed-by: Maya Lekova <mslekova@chromium.org>
      > Commit-Queue: Toon Verwaest <verwaest@chromium.org>
      > Cr-Commit-Position: refs/heads/main@{#78106}
      
      Bug: chromium:1052746
      Change-Id: I392f5634cf7ddf208fa9effd32d4ffff941f6179
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3324343Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
      Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
      Commit-Queue: Yu Liu <liuyu@loongson.cn>
      Cr-Commit-Position: refs/heads/main@{#78322}
      6ab842f8
    • Toon Verwaest's avatar
      Reland [json] Set options to share on JSON.parse error script · b8dae132
      Toon Verwaest authored
      This ensures that the unhandledrejection callback fires.
      
      Bug: chromium:1219363
      Change-Id: I367d9a90132443e8ec94c1db380b9ef3160625c7
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3326242Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
      Commit-Queue: Toon Verwaest <verwaest@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78321}
      b8dae132
    • Benedikt Meurer's avatar
      [stack-traces] Don't hold on to code objects from StackFrameInfos. · 6b1fb003
      Benedikt Meurer authored
      Previously every `StackFrameInfo` instance would maintain a reference to
      an AbstractCode object, which was used to resolve the `code_offset` on
      that stack frame. However, it turns out that nowadays this is not
      necessary anymore, since all `code_offset`s reported for JavaScript
      frames are already bytecode offsets and thus can be resolved by just
      looking at the functions' bytecode.
      
      For WebAssembly frames we will also eagerly resolve the `code_offset`
      (which is different depending on whether we're looking at Liftoff or
      TurboFan code) to the byte offset (relative to the function start) and
      stash that away in the `StackFrameInfo`.
      
      For builtin exit frames, the `abstract_code` on the function always
      refers to the builtin code object and thus, there's no point in keeping
      an extra pointer to it around on the `StackFrameInfo`.
      
      This way the `StackFrameInfo` representation is somewhat uniform, and
      more importantly, the `StackFrameInfo` instances will no longer need to
      hold to concrete code objects.
      
      Drive-by-fix: Use `FixedArray::SetAndGrow()` when adding to the elements
      in the `StackTraceBuilder`.
      
      Also-By: szuend@chromium.org, jarin@chromium.org
      Bug: chromium:1258599, chromium:1077657, v8:8742, chromium:1069425
      Change-Id: I650e400e0e1acd920281669bdc7b5e1199683ae8
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3323073Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
      Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
      Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78320}
      6b1fb003
    • Thibaud Michaud's avatar
      [wasm] Fix wasm stack segment iterator · a8d4ff7d
      Thibaud Michaud authored
      Only initialize the superclass fields initially. The constructor was
      using an overload of the same class's constructor instead. In most cases
      this still behaved as expected because the {frame_} field would be
      overwritten with the right value inside the constructor. But when the
      stack segment is empty we would keep the wrong value from the
      ThreadLocalTop info instead of {nullptr}.
      
      R=jkummerow@chromium.org
      
      Bug: v8:12191, v8:12485
      Change-Id: Iff6a7ea7c8501deaee9ac9f95cd066d965ddbe09
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3326241Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
      Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78319}
      a8d4ff7d
    • Camillo Bruni's avatar
      [api] Add LongTaskStats::v8_execute_us · ce02d2f4
      Camillo Bruni authored
      The execute_us is now tied to the --slow-histograms flag.
      This currently enabled on a small population as a persistent finch study
      which should give us enough coverage for now.
      
      Drive-by-fixes:
      - Rename counter: execute_precise() to execute()
      - Avoid Leave/Enter overhead in NestedTimedHistogramScope if the
        histogram is not enabled
      - Only stop timers in debug mode for NestedTimedHistogramScope
      
      Bug: chromium:1275056
      Change-Id: Id6a492bdd68edb5194cb191c7083829a9f90283f
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3320431Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
      Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
      Commit-Queue: Camillo Bruni <cbruni@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78318}
      ce02d2f4
    • Marja Hölttä's avatar
      [rab / gsab] Add RAB / GSAB support to TA.p.indexOf & lastIndexOf · bd2fce57
      Marja Hölttä authored
      Bug: v8:11111
      Change-Id: I243832c05b6eb1ba2f13dc98f9b8fb177b351112
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3315438Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
      Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
      Commit-Queue: Marja Hölttä <marja@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#78317}
      bd2fce57