1. 18 Jul, 2022 7 commits
  2. 17 Jul, 2022 1 commit
  3. 16 Jul, 2022 2 commits
  4. 15 Jul, 2022 24 commits
  5. 14 Jul, 2022 6 commits
    • Shu-yu Guo's avatar
      [shared-struct] Add Atomics.Condition · e2066ff6
      Shu-yu Guo authored
      Bug: v8:12547
      Change-Id: Id439aef9cab3348171a23378cdd47ede5f4d7288
      Cq-Include-Trybots: luci.v8.try:v8_linux_arm64_rel_ng,v8_linux64_tsan_rel_ng
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3630350Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
      Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
      Commit-Queue: Shu-yu Guo <syg@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#81734}
      e2066ff6
    • Milad Fa's avatar
      PPC: Fix vector scratch usage in macro-asm and code-gen · 608f63b4
      Milad Fa authored
      This CL adds a new vector scratch reg to PPC (v15)
      and uses it during Simd swap operations.
      
      Functions are also changed to accept scratch registers
      as input.
      
      Change-Id: I0220504ddf154148d2b83207b42ab2b7a794698c
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3763863Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
      Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
      Cr-Commit-Position: refs/heads/main@{#81733}
      608f63b4
    • ishell@chromium.org's avatar
      [pku] Move PKU support from Wasm to base/platform · 2be21090
      ishell@chromium.org authored
      The header is only slightly refactored:
      * function names are slightly shortened,
      * global functions and enums are converted to static methods and enums
        of a MemoryProtectionKey class.
      
      This is a first step towards adding PKU support for V8 code space.
      
      Bug: v8:13023
      Change-Id: Iebcb075b07286d18d6834fbcf6697327f08c9f50
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3762584Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
      Commit-Queue: Igor Sheludko <ishell@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#81732}
      2be21090
    • Samuel Groß's avatar
      Revert "[sandbox] Sandboxify Foreign external pointer" · c360a250
      Samuel Groß authored
      This reverts commit 543b54da.
      
      Reason for revert: Causes crashes on Android due to TBI: https://crbug.com/chromium/1344581
      
      Original change's description:
      > [sandbox] Sandboxify Foreign external pointer
      >
      > Bug: v8:10391
      > Change-Id: I4c5c209454db316fe86f379f6b2e6dfc7ba7754e
      > Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng
      > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757340
      > Reviewed-by: Igor Sheludko <ishell@chromium.org>
      > Commit-Queue: Samuel Groß <saelo@chromium.org>
      > Cr-Commit-Position: refs/heads/main@{#81703}
      
      Bug: v8:10391
      Change-Id: I88899def209c592cd353dd4ed81003f1bbb7a760
      Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3764440
      Commit-Queue: Igor Sheludko <ishell@chromium.org>
      Auto-Submit: Samuel Groß <saelo@chromium.org>
      Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#81731}
      c360a250
    • Adam Klein's avatar
      Revert "[wasm] Reset PKRU before spawning new threads" · 5ada213c
      Adam Klein authored
      This reverts commit 8218c061.
      
      Reason for revert: compile failures, e.g.:
      https://ci.chromium.org/ui/p/v8/builders/ci/V8%20Mac%20-%20arm64%20-%20release%20builder/11040/overview
      
      Original change's description:
      > [wasm] Reset PKRU before spawning new threads
      >
      > We sometimes hit the DCHECK in the wasm code manager:
      >   DCHECK_IMPLIES(writable, !MemoryProtectionKeyWritable());
      >
      > This is because we spawn new threads while having a
      > {CodeSpaceWriteScope} open. In the case of PKU, this changes the PKRU
      > register to allow writes to the code space, and the value of that
      > register is inherited by any new thread. If this thread then tries to
      > switch to writable code spaces, it hits the DCHECK. It would hit a
      > similar DCHECK when trying to execute code.
      >
      > We fix this issue by temporarily resetting the PKRU register to
      > non-writable while we call the {NotifyConcurrencyIncrease} method. This
      > is not a very robust solution, as any new call that potentially happens
      > inside a {CodeSpaceWriteScope} needs to do the same, but refactoring the
      > code to avoid spawning new threads while being in writable state would
      > be a lot of work with other downsides.
      >
      > R=​jkummerow@chromium.org
      >
      > Bug: v8:13075
      > Change-Id: Ibc7270aa597902dc6d9649cb6bcdfce8b1a9bafc
      > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3762579
      > Commit-Queue: Clemens Backes <clemensb@chromium.org>
      > Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
      > Cr-Commit-Position: refs/heads/main@{#81729}
      
      Bug: v8:13075
      Change-Id: I235e7263856a37cf0f4aa1c27493aac8e6db7910
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3763587
      Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      Auto-Submit: Adam Klein <adamk@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#81730}
      5ada213c
    • Clemens Backes's avatar
      [wasm] Reset PKRU before spawning new threads · 8218c061
      Clemens Backes authored
      We sometimes hit the DCHECK in the wasm code manager:
        DCHECK_IMPLIES(writable, !MemoryProtectionKeyWritable());
      
      This is because we spawn new threads while having a
      {CodeSpaceWriteScope} open. In the case of PKU, this changes the PKRU
      register to allow writes to the code space, and the value of that
      register is inherited by any new thread. If this thread then tries to
      switch to writable code spaces, it hits the DCHECK. It would hit a
      similar DCHECK when trying to execute code.
      
      We fix this issue by temporarily resetting the PKRU register to
      non-writable while we call the {NotifyConcurrencyIncrease} method. This
      is not a very robust solution, as any new call that potentially happens
      inside a {CodeSpaceWriteScope} needs to do the same, but refactoring the
      code to avoid spawning new threads while being in writable state would
      be a lot of work with other downsides.
      
      R=jkummerow@chromium.org
      
      Bug: v8:13075
      Change-Id: Ibc7270aa597902dc6d9649cb6bcdfce8b1a9bafc
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3762579
      Commit-Queue: Clemens Backes <clemensb@chromium.org>
      Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#81729}
      8218c061