1. 20 May, 2020 1 commit
    • Marja Hölttä's avatar
      [Promise.all] Use FixedArray for "values" · 7a85e029
      Marja Hölttä authored
      There's no need for it to be a JSArray. In the spec it's a List
      which roughly corresponds to FixedArray (but not JSArray).
      
      Gotchas:
      - There's no good point in time where we know the array length, since
      resolving might be interleaved with iteration.
      - Using ExtractFixedArray in places where we don't need to extract,
      since it takes care of things like allocating the resulting array
      in the right space etc.
      
      Drive-by fix: Previously we pre-allocated an array 1 elements too big,
      but never noticed it since the last element was the hole.
      
      Bug: v8:10506
      Change-Id: I6a72fbf1fc0cc031f2c8bad9314c4ed21d544a0f
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2202905Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
      Commit-Queue: Marja Hölttä <marja@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#67919}
      7a85e029
  2. 19 May, 2020 1 commit
  3. 30 Apr, 2020 1 commit
  4. 23 May, 2019 1 commit
  5. 13 Dec, 2018 1 commit
  6. 12 Dec, 2018 2 commits
  7. 21 Mar, 2017 1 commit
  8. 16 Mar, 2017 1 commit
  9. 17 Feb, 2017 1 commit
  10. 20 Jan, 2017 1 commit
  11. 18 Jan, 2017 1 commit
  12. 17 Jan, 2017 2 commits
  13. 12 Jan, 2017 1 commit
  14. 06 Jan, 2017 1 commit
  15. 04 Jan, 2017 3 commits
  16. 02 Jan, 2017 1 commit
    • caitp's avatar
      [promises] port NewPromiseCapability to TF · 4f95a1eb
      caitp authored
      - Adds CodeAssembler::ConstructJS() to simplify calling JS functions as
      constructors, used by NewPromiseCapability()
      - Defines PromiseCapability as a special JSObject subclass, with a
      non-exensible Map, and read-only non-configurable DataDescriptors which
      point to its in-object fields. This allows its fields to be used by JS
      builtins until there is no longer any need.
      
      Currently, the performance benefit comes from
      https://codereview.chromium.org/2567033003/, but does not appear to
      regress performance in any significant way.
      
      BUG=v8:5343
      TBR=ulan@chromium.org
      
      Review-Url: https://codereview.chromium.org/2567333002
      Cr-Commit-Position: refs/heads/master@{#42014}
      4f95a1eb
  17. 29 Dec, 2016 1 commit
    • gsathya's avatar
      [promises] Remove deferred object · 5668ce39
      gsathya authored
      This patch stores the promise, resolve, reject properties of the
      deferred object created by CreateInternalPromiseCapability and
      NewPromiseCapability directly on the promise (if the promise hasn't
      been fulfilled), otherwise they are stored on the
      PromiseReactionJobInfo.
      
      This patch removes the currently unused
      CreateInternalPromiseCapability and inlines the call to create the
      deferred promise object.
      
      NewPromiseCapability is the only function that works with a deferred.
      
      This patch results in a 8.5% improvement in benchmarks over 5 runs.
      
      BUG=v8:5343
      
      Review-Url: https://codereview.chromium.org/2590563003
      Cr-Commit-Position: refs/heads/master@{#41991}
      5668ce39
  18. 21 Dec, 2016 1 commit
  19. 19 Dec, 2016 2 commits