1. 26 Oct, 2021 1 commit
  2. 26 Aug, 2021 1 commit
    • Jakob Gruber's avatar
      [regexp] Early errors 🤯 · a56874d3
      Jakob Gruber authored
      This CL implements early SyntaxErrors for regular expressions. Early
      errors are thrown when a malformed pattern is parsed, rather than when
      the code first runs.
      
      We do this by having the JS parser call into the regexp parser when
      a regexp pattern is found. Regexps are expected to be relatively
      rare, small, and cheap to parse - that's why we currently accept that
      the regexp parser does unnecessary work (e.g. creating the AST
      structures).
      
      If needed, we can optimize in the future. Ideas:
      
      - Split up the regexp parser to avoid useless work for syntax validation.
      - Preserve parser results to avoid reparsing later.
      
      Bug: v8:896
      Change-Id: I3d1ec18c980ba94439576ac3764138552418b85d
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3106647
      Commit-Queue: Jakob Gruber <jgruber@chromium.org>
      Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
      Reviewed-by: 's avatarPatrick Thier <pthier@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#76502}
      a56874d3
  3. 28 Aug, 2020 1 commit
  4. 14 Apr, 2020 1 commit
  5. 18 Feb, 2020 1 commit
  6. 25 Nov, 2019 1 commit
  7. 15 Oct, 2019 1 commit
  8. 23 Jul, 2019 1 commit
  9. 07 Mar, 2019 1 commit
  10. 09 Jan, 2019 1 commit
  11. 12 Dec, 2018 1 commit
  12. 21 Aug, 2018 2 commits
    • Ben L. Titzer's avatar
      Reland "[asmjs] Properly validate asm.js heap sizes" · 438e7ec6
      Ben L. Titzer authored
      This is a reland of 5c309271
      (the CL was reverted because of a Chromium test that is now fixed)
      
      Original change's description:
      > Reland "[asmjs] Properly validate asm.js heap sizes"
      >
      > This is a reland of 5d69010e
      >
      > Original change's description:
      > > [asmjs] Properly validate asm.js heap sizes
      > >
      > > Enforce both engine limitations and spec (http://asmjs.org/spec/latest/)
      > > limitations on the size of asm.js heaps.
      > >
      > > R=clemensh@chromium.org
      > > CC=​mstarzinger@chromium.org
      > >
      > > Bug: chromium:873600
      > > Change-Id: I104c23bbd0a9a7c494f97f8f9e83ac5a37496dfd
      > > Reviewed-on: https://chromium-review.googlesource.com/1174411
      > > Commit-Queue: Ben Titzer <titzer@chromium.org>
      > > Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
      > > Cr-Commit-Position: refs/heads/master@{#55163}
      >
      > Bug: chromium:873600
      > Change-Id: Id24070bda3aafb9e1a32af0732a1b18f633ef932
      > Reviewed-on: https://chromium-review.googlesource.com/1179681
      > Commit-Queue: Ben Titzer <titzer@chromium.org>
      > Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#55193}
      
      Bug: chromium:873600
      Change-Id: I6eca2a89589070837b109278f964fc8e9a0fd6f1
      Reviewed-on: https://chromium-review.googlesource.com/1183081Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
      Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
      Commit-Queue: Ben Titzer <titzer@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#55249}
      438e7ec6
    • Aseem Garg's avatar
      Revert "Reland "[asmjs] Properly validate asm.js heap sizes"" · dd65e4b8
      Aseem Garg authored
      This reverts commit 5c309271.
      
      Reason for revert: Broke fast/workers/worker-shared-asm-buffer.html
      
      Original change's description:
      > Reland "[asmjs] Properly validate asm.js heap sizes"
      >
      > This is a reland of 5d69010e
      >
      > Original change's description:
      > > [asmjs] Properly validate asm.js heap sizes
      > >
      > > Enforce both engine limitations and spec (http://asmjs.org/spec/latest/)
      > > limitations on the size of asm.js heaps.
      > >
      > > R=clemensh@chromium.org
      > > CC=​mstarzinger@chromium.org
      > >
      > > Bug: chromium:873600
      > > Change-Id: I104c23bbd0a9a7c494f97f8f9e83ac5a37496dfd
      > > Reviewed-on: https://chromium-review.googlesource.com/1174411
      > > Commit-Queue: Ben Titzer <titzer@chromium.org>
      > > Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
      > > Cr-Commit-Position: refs/heads/master@{#55163}
      >
      > Bug: chromium:873600
      > Change-Id: Id24070bda3aafb9e1a32af0732a1b18f633ef932
      > Reviewed-on: https://chromium-review.googlesource.com/1179681
      > Commit-Queue: Ben Titzer <titzer@chromium.org>
      > Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#55193}
      
      TBR=mstarzinger@chromium.org,titzer@chromium.org
      
      # Not skipping CQ checks because original CL landed > 1 day ago.
      
      Bug: chromium:873600
      Change-Id: I5845c584c7ac399b9b7939f5fd50c09b7b2cc3d2
      Reviewed-on: https://chromium-review.googlesource.com/1182616
      Commit-Queue: Aseem Garg <aseemgarg@chromium.org>
      Reviewed-by: 's avatarAseem Garg <aseemgarg@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#55242}
      dd65e4b8
  13. 17 Aug, 2018 1 commit
  14. 16 Aug, 2018 2 commits
  15. 25 Sep, 2017 1 commit
  16. 04 Sep, 2017 1 commit
  17. 10 Aug, 2017 1 commit
  18. 02 Aug, 2017 1 commit
  19. 13 Jul, 2017 1 commit
  20. 10 Jul, 2017 1 commit
  21. 20 Jun, 2017 1 commit
    • Michael Starzinger's avatar
      [asm.js] Ensure coercion of imports is non-observable. · 21cbc914
      Michael Starzinger authored
      This makes sure that the coercion of global import values to numbers
      remains non-observable to JavaScript. It allows instantiation failures
      to fall back to JavaScript proper without accidentally causing some
      side-effect to happen twice. Also coercions might invalidate previous
      checks done during linking or throw exceptions.
      
      R=clemensh@chromium.org
      TEST=mjsunit/regress/regress-6431
      BUG=v8:6431
      
      Change-Id: Ibe2f7a336bc0fb25532d526746ecc802e04bbd5c
      Reviewed-on: https://chromium-review.googlesource.com/512544
      Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
      Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46051}
      21cbc914
  22. 01 Jun, 2017 1 commit
  23. 23 May, 2017 1 commit
  24. 12 May, 2017 1 commit
  25. 11 May, 2017 1 commit
  26. 10 May, 2017 2 commits
  27. 09 May, 2017 1 commit
  28. 05 May, 2017 1 commit
  29. 04 May, 2017 1 commit
  30. 03 May, 2017 1 commit
  31. 27 Apr, 2017 1 commit
  32. 26 Apr, 2017 2 commits
  33. 25 Apr, 2017 1 commit
  34. 21 Apr, 2017 1 commit
  35. 13 Apr, 2017 1 commit
    • Michael Starzinger's avatar
      [asm.js] Test and fix "|0" annotation of calls. · f0946038
      Michael Starzinger authored
      This fixes the validation of "|0" annotations of call sites that are
      used to indicate a "signed" return type of functions. We use lookahead
      during call validation and request deferred validation as part of the
      actual OR-expression. Special care has to be taken to get precedence
      levels of all involved operators right.
      
      R=clemensh@chromium.org
      TEST=mjsunit/asm/call-annotation
      BUG=v8:6183
      
      Change-Id: If0586f669e7cee26a13425b0fd9f41098e852d68
      Reviewed-on: https://chromium-review.googlesource.com/475871
      Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
      Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#44639}
      f0946038
  36. 11 Apr, 2017 1 commit