1. 12 Feb, 2017 1 commit
    • littledan's avatar
      Revert of [typedarrays] move %TypedArray%.prototype.copyWithin to C++... · 4530f0dc
      littledan authored
      Revert of [typedarrays] move %TypedArray%.prototype.copyWithin to C++ (patchset #6 id:100001 of https://codereview.chromium.org/2671233002/ )
      
      Reason for revert:
      Due to security issue described in review thread.
      
      Original issue's description:
      > [typedarrays] move %TypedArray%.prototype.copyWithin to C++
      >
      > - Removes shared InnerArrayCopyWithin JS builtin from src/js/array.js
      > - Implements %TypedArray%.prototype.copyWithin as a C++ builtin, which
      > relies on std::memmove rather than accessing individual eleements.
      > - Fixes the case where copyWithin is invoked on a TypedArray with a
      > detached buffer.
      > - Add tests to ensure that +/-Infinity (for all 3 parameters) is handled correctly by the
      > algorithm
      >
      > The C++ version gets through the benchmark more than 25000 times as
      > quickly as the JS implementation.
      >
      > BUG=v8:5925, v8:5929, v8:4648
      > R=cbruni@chromium.org, adamk@chromium.org, littledan@chromium.org
      >
      > Review-Url: https://codereview.chromium.org/2671233002
      > Cr-Commit-Position: refs/heads/master@{#42975}
      > Committed: https://chromium.googlesource.com/v8/v8/+/0f1c626d556cbf84b0e572635eb803729f88cbb3
      
      TBR=cbruni@chromium.org,adamk@chromium.org,bmeurer@chromium.org,cwhan.tunz@gmail.com,caitp@igalia.com
      # Not skipping CQ checks because original CL landed more than 1 days ago.
      BUG=v8:5925, v8:5929, v8:4648
      
      Review-Url: https://codereview.chromium.org/2693753002
      Cr-Commit-Position: refs/heads/master@{#43132}
      4530f0dc
  2. 08 Feb, 2017 1 commit
  3. 06 Feb, 2017 1 commit
    • caitp's avatar
      [typedarrays] move %TypedArray%.prototype.copyWithin to C++ · 0f1c626d
      caitp authored
      - Removes shared InnerArrayCopyWithin JS builtin from src/js/array.js
      - Implements %TypedArray%.prototype.copyWithin as a C++ builtin, which
      relies on std::memmove rather than accessing individual eleements.
      - Fixes the case where copyWithin is invoked on a TypedArray with a
      detached buffer.
      - Add tests to ensure that +/-Infinity (for all 3 parameters) is handled correctly by the
      algorithm
      
      The C++ version gets through the benchmark more than 25000 times as
      quickly as the JS implementation.
      
      BUG=v8:5925, v8:5929, v8:4648
      R=cbruni@chromium.org, adamk@chromium.org, littledan@chromium.org
      
      Review-Url: https://codereview.chromium.org/2671233002
      Cr-Commit-Position: refs/heads/master@{#42975}
      0f1c626d
  4. 30 Jan, 2017 1 commit
  5. 27 Jan, 2017 1 commit
  6. 26 Jan, 2017 3 commits
  7. 25 Jan, 2017 1 commit
  8. 18 Jan, 2017 1 commit
  9. 03 Jan, 2017 1 commit
  10. 22 Dec, 2016 1 commit
  11. 19 Dec, 2016 1 commit
  12. 14 Dec, 2016 3 commits
  13. 07 Dec, 2016 1 commit
  14. 05 Dec, 2016 2 commits
    • ynovikov's avatar
      Reland of [typedarrays] remove invalid optimization in NAMEConstructor()... · f5cb17a8
      ynovikov authored
      Reland of [typedarrays] remove invalid optimization in NAMEConstructor() (patchset #1 id:1 of https://codereview.chromium.org/2548583003/ )
      
      Reason for revert:
      The bot was not affected by the revert. Speculation was wrong.
      
      Original issue's description:
      > Revert of [typedarrays] remove invalid optimization in NAMEConstructor() (patchset #1 id:1 of https://codereview.chromium.org/2544503002/ )
      >
      > Reason for revert:
      > Speculative revert for causing timeouts on Win Debug gpu fyi bot
      >
      > Nothing else looks even remotely relevant in the list of changes.
      > Will reland if this doesn't fix the issues.
      >
      > BUG=670396
      >
      > Original issue's description:
      > > [typedarrays] remove invalid optimization in NAMEConstructor()
      > >
      > > Before, we were treating objects with the builtin ArrayValues iterator
      > > method as array-like, where the iterator would iterate through to the
      > > full length of the object.
      > >
      > > This optimization was not sound, because it does not ensure that the
      > > next method hasn't been modified. Even if it hasn't been modified,
      > > it's entirely possible to be modified during iteration. Thus, this
      > > optimization has been removed due to its observability.
      > >
      > > BUG=v8:5699
      > > R=littledan@chromium.org, cbruni@chromium.org
      > >
      > > Committed: https://crrev.com/77df8c67d9609ada3b7d79e8e6d33f198bbad5a1
      > > Cr-Commit-Position: refs/heads/master@{#41394}
      >
      > TBR=cbruni@chromium.org,littledan@chromium.org,caitp@igalia.com
      > # Not skipping CQ checks because original CL landed more than 1 days ago.
      > BUG=v8:5699
      >
      > Committed: https://crrev.com/0ea4a542202d501c4e550474e89512532571f3a0
      > Cr-Commit-Position: refs/heads/master@{#41461}
      
      TBR=cbruni@chromium.org,littledan@chromium.org,caitp@igalia.com,enne@chromium.org
      # Not skipping CQ checks because original CL landed more than 1 days ago.
      BUG=670396
      
      Review-Url: https://codereview.chromium.org/2553873002
      Cr-Commit-Position: refs/heads/master@{#41504}
      f5cb17a8
    • neis's avatar
      [parsing] Fix bug in completion value of try-finally. · 67f1969a
      neis authored
      R=adamk@chromium.org, verwaest@chromium.org
      BUG=v8:5698
      
      Review-Url: https://codereview.chromium.org/2537413003
      Cr-Commit-Position: refs/heads/master@{#41495}
      67f1969a
  15. 02 Dec, 2016 1 commit
    • enne's avatar
      Revert of [typedarrays] remove invalid optimization in NAMEConstructor()... · 0ea4a542
      enne authored
      Revert of [typedarrays] remove invalid optimization in NAMEConstructor() (patchset #1 id:1 of https://codereview.chromium.org/2544503002/ )
      
      Reason for revert:
      Speculative revert for causing timeouts on Win Debug gpu fyi bot
      
      Nothing else looks even remotely relevant in the list of changes.
      Will reland if this doesn't fix the issues.
      
      BUG=670396
      
      Original issue's description:
      > [typedarrays] remove invalid optimization in NAMEConstructor()
      >
      > Before, we were treating objects with the builtin ArrayValues iterator
      > method as array-like, where the iterator would iterate through to the
      > full length of the object.
      >
      > This optimization was not sound, because it does not ensure that the
      > next method hasn't been modified. Even if it hasn't been modified,
      > it's entirely possible to be modified during iteration. Thus, this
      > optimization has been removed due to its observability.
      >
      > BUG=v8:5699
      > R=littledan@chromium.org, cbruni@chromium.org
      >
      > Committed: https://crrev.com/77df8c67d9609ada3b7d79e8e6d33f198bbad5a1
      > Cr-Commit-Position: refs/heads/master@{#41394}
      
      TBR=cbruni@chromium.org,littledan@chromium.org,caitp@igalia.com
      # Not skipping CQ checks because original CL landed more than 1 days ago.
      BUG=v8:5699
      
      Review-Url: https://codereview.chromium.org/2548583003
      Cr-Commit-Position: refs/heads/master@{#41461}
      0ea4a542
  16. 30 Nov, 2016 1 commit
    • caitp's avatar
      [typedarrays] remove invalid optimization in NAMEConstructor() · 77df8c67
      caitp authored
      Before, we were treating objects with the builtin ArrayValues iterator
      method as array-like, where the iterator would iterate through to the
      full length of the object.
      
      This optimization was not sound, because it does not ensure that the
      next method hasn't been modified. Even if it hasn't been modified,
      it's entirely possible to be modified during iteration. Thus, this
      optimization has been removed due to its observability.
      
      BUG=v8:5699
      R=littledan@chromium.org, cbruni@chromium.org
      
      Review-Url: https://codereview.chromium.org/2544503002
      Cr-Commit-Position: refs/heads/master@{#41394}
      77df8c67
  17. 29 Nov, 2016 3 commits
  18. 28 Nov, 2016 1 commit
  19. 22 Nov, 2016 2 commits
  20. 21 Nov, 2016 1 commit
    • jgruber's avatar
      [debug-wrapper] Adapt tests, breakpoint.actual_location · 1834ab72
      jgruber authored
      Adapted various tests to restrictions of inspector protocol:
      
      * osr-typing-debug-change: Don't set function variable value.
      * debug-evaluate-locals: Add variable introduced by eval, run typeof
        inside evaluate().
      * regress-419663: Don't set duplicate breakpoints.
      * regress-crbug-465298: Compare against function name instead of value.
      * regress-crbug-621361: Make evaluate return string results.
      * debug-script: Various counts were off due to new way tests are called.
                      Added new inspector script type.
      
      Breakpoints now contain the actual break position, and remote object
      reconstruction has been extended a bit.
      
      BUG=v8:5530
      
      Review-Url: https://codereview.chromium.org/2505363002
      Cr-Commit-Position: refs/heads/master@{#41129}
      1834ab72
  21. 18 Nov, 2016 2 commits
  22. 17 Nov, 2016 2 commits
  23. 16 Nov, 2016 2 commits
    • bmeurer's avatar
      [turbofan] Don't check for neutered array buffers eagerly. · 36e3af32
      bmeurer authored
      We don't need to check for neutered array buffers unless at least one
      JSArrayBuffer has been neutered (i.e. detached in TC39 speak). For this
      we introduce a protector cell that get's invalidated on first call to
      the JSArrayBuffer::Neuter() method.
      
      R=jarin@chromium.org,ulan@chromium.org
      BUG=v8:5267
      
      Review-Url: https://codereview.chromium.org/2504163002
      Cr-Commit-Position: refs/heads/master@{#41021}
      36e3af32
    • jgruber's avatar
      [debug-wrapper] Further extend the debug wrapper · b06c4ce5
      jgruber authored
      This CL further extends the debug wrapper, migrates around 60 tests, and
      removes a few tests that use functionality we will not support anymore.
      
      In more detail:
      
      * Removed tests that use:
        * enable/disable individual breakpoints
        * invocationText()
        * the ScriptCollected event
        * showBreakPoints
        * evalFromScript (and similar)
        * mirror.constructedBy and mirror.referencedBy
        * event_data.promise()
      * Some frame.evaluate uses were adapted since due to differences between
        remote objects (inspector) and mirrors. For instance, exceptions are
        currently not recreated exactly, since the inspector protocol does not
        give us the stack and message separately. Other objects (such as
        'this' in debug-evaluate-receiver-before-super) need to be explicitly
        converted to a string before the test works correctly.
      * Ensure that inspector stores the script before sending ScriptParsed and
        ScriptFailedToParse events in order to be able to use the script from
        within those events.
      * Better remote object reconstruction (e.g. for undefined and arrays).
      * New functionality in wrapper:
        * debuggerFlags().breakPointsActive.setValue()
        * scripts()
        * execState.setVariableValue()
        * execState.scopeObject().value()
        * execState.scopeObject().property()
        * execState.frame().allScopes()
        * eventData.exception()
        * eventData.script()
        * setBreakPointsActive()
      
      BUG=v8:5530
      
      Review-Url: https://codereview.chromium.org/2497973002
      Cr-Commit-Position: refs/heads/master@{#41019}
      b06c4ce5
  24. 15 Nov, 2016 1 commit
    • petermarshall's avatar
      Fastpath some spread-call desugaring. · a63eeb48
      petermarshall authored
      Avoid using the iterator for arrays with fast elements where the iterator has
      not been modified.
      
      Only deals with the case where there is a single spread argument.
      
      Improves the six-speed "spread" benchmark to 1.5x slower than baseline es5 implementation, compared to 19x slower previously.
      
      BUG=v8:5511
      
      Review-Url: https://codereview.chromium.org/2465253011
      Cr-Commit-Position: refs/heads/master@{#40998}
      a63eeb48
  25. 14 Nov, 2016 2 commits
  26. 08 Nov, 2016 3 commits