1. 21 Oct, 2021 17 commits
  2. 20 Oct, 2021 20 commits
  3. 19 Oct, 2021 3 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