1. 21 Oct, 2021 15 commits
  2. 20 Oct, 2021 20 commits
  3. 19 Oct, 2021 5 commits
    • Jakob Gruber's avatar
      [regexp] Compact codegen for large character classes · 8bbb44e5
      Jakob Gruber authored
      Large character classes may easily be created when unicode
      properties (e.g.: /\p{L}/u and /\P{L}/u) are used - these are
      expanded internally into character classes that consist of hundreds
      of character ranges. Previously to this CL, we'd emit branching code
      for each of these ranges, leading to very large regexp code objects.
      
      This CL adds a new codegen mode for large character classes (where
      'large' currently means > 16 ranges). Instead of emitting branching
      code inline, the ranges are written into a ByteArray and we call into
      the C function IsCharacterInRangeArray for the actual branching logic.
      The ByteArray is smaller than emitted code and is deduplicated if the
      same character class is matched repeatedly in the same pattern.
      
      Note this mode is *not* implemented for the interpreter, since we
      currently don't have a constant pool for irregexp bytecode, and thus
      cannot reference ByteArrays.
      
      Bug: v8:11069
      Change-Id: I2d728e42d85114b796c637f791848731a104cd54
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3229377Reviewed-by: 's avatarPatrick Thier <pthier@chromium.org>
      Auto-Submit: Jakob Gruber <jgruber@chromium.org>
      Commit-Queue: Jakob Gruber <jgruber@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#77463}
      8bbb44e5
    • Leszek Swirski's avatar
      [dict-tracking] Add turboprop as dict-tracking incompatible · fec145d1
      Leszek Swirski authored
      It also enables concurrent inlining.
      
      Change-Id: I894800b34e950a0e786d9f462b21273cc1d3b181
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3231342
      Commit-Queue: Leszek Swirski <leszeks@chromium.org>
      Commit-Queue: Igor Sheludko <ishell@chromium.org>
      Auto-Submit: Leszek Swirski <leszeks@chromium.org>
      Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#77462}
      fec145d1
    • Clemens Backes's avatar
      [compiler] Fall back to mid-tier register allocation · 184213d3
      Clemens Backes authored
      Huge functions can take a really long time (several minutes) in register
      allocation. This is caused by a big number of virtual registers combined
      with a big number of blocks.
      We can avoid such long-running register allocation by falling back to
      the mid-tier register allocation if we detect a huge number of virtual
      registers.
      Note that this is mostly relevant for bigger WebAssembly modules, but we
      implement it as a general TurboFan flag.
      
      The flag is off by default for now, since there seem to be bugs lurking
      in the mid-tier register allocator. Once those are fixed, we can stage
      it behind --future and then ship it.
      
      R=mslekova@chromium.org
      CC=thibaudm@chromium.org
      
      Bug: v8:12320
      Change-Id: Iff14de456c2b3a91ee2b2b12221295dd56b69463
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3231336Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
      Commit-Queue: Clemens Backes <clemensb@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#77461}
      184213d3
    • Leszek Swirski's avatar
      [test] Robustify wait in regress-bug-9161 · 70a0baaa
      Leszek Swirski authored
      mjsunit/regress/regress-crbug-9161 had two spinlocks on an atomic:
      
        1. WaitUntil(lock == kStageRunning)
        2. WaitUntil(lock == kStageDone)
      
      But, in theory the worker updating the "lock" could progress all the way
      to kStageDone before the first loop manages to check the lock value
      again.
      
      We can make this more robust by checking:
      
        1. WaitUntil(lock != kStageInit)
        2. WaitUntil(lock == kStageDone)
      
      That way both loops check for _any_ state past the state they want to
      progress past.
      
      Bug: v8:11437
      Change-Id: I5220e61070a305301c678928edb0925c04dae970
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3231339
      Auto-Submit: Leszek Swirski <leszeks@chromium.org>
      Commit-Queue: Shu-yu Guo <syg@chromium.org>
      Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#77460}
      70a0baaa
    • Igor Sheludko's avatar
      [ext-code-space] Prepare GC for making code space external · a20499e0
      Igor Sheludko authored
      ... by explicitly passing pointer compression cage base value to various
      IsXXX() and map() calls in order to avoid using incorrect auto-computed
      cage base value when applied to objects allocated in external code space.
      
      This CL also introduces IsCodeObject(HeapObject) predicate which checks
      the IS_EXECUTABLE bit in the page header's flags.
      
      Bug: v8:11880
      Change-Id: Ib44398c3125392e46e939044a9bd27e09d7944d5
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3229368Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
      Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
      Commit-Queue: Igor Sheludko <ishell@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#77459}
      a20499e0