1. 07 Jan, 2019 1 commit
    • peterwmwong's avatar
      [js] Remove CORE JS Natives (prologue.js), port extra utils to C++/Torque · 263dce9b
      peterwmwong authored
      - Removes the last `CORE` JS native script: `prologue.js`.
      - Removes build step and bootstrapping associated with building/loading `CORE` JS natives.
      - Removes `natives_utils_object` from context.
      - Deprecates `--expose-natives-as` flag.
      - Ports extra utils functions to C++ (`uncurryThis`) or Torque
        (`createPrivateSymbol`, `markPromiseAsHandled`, and `promiseState`).
      - Move extra utils constants initialization into bootstrapper
        (`kPROMISE_PENDING`, `kPROMISE_FULFILLED`, `kPROMISE_REJECTED`).
      - Removes unused extra utils functions `log` and `logStackTrace`.
      
      Drive-by: Added test coverage for Array#includes being an unscopeable.
      
      Bug: v8:7624
      Change-Id: I5d983f8d11b76cb4dd3c2c67592ce1dc88364cd9
      Reviewed-on: https://chromium-review.googlesource.com/c/1381672Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
      Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
      Commit-Queue: Peter Wong <peter.wm.wong@gmail.com>
      Cr-Commit-Position: refs/heads/master@{#58577}
      263dce9b
  2. 12 Dec, 2018 1 commit
  3. 16 Feb, 2018 1 commit
    • Benedikt Meurer's avatar
      [turbofan] Properly optimize calls to promise extras. · 13ca9a0f
      Benedikt Meurer authored
      Add TurboFan inlining support for the following V8 Extras:
      
       - v8.createPromise
       - v8.rejectPromise
       - v8.resolvePromise
      
      These are used by the streams implementation in Chrome currently, and
      were previously not inlined into TurboFan, although TurboFan already
      had all the necessary functionality (namely the JSCreatePromise,
      JSRejectPromise and JSResolvePromise operators). We might eventually
      want to use these functions in Node core as well (at least short-term
      for Node 10), to replace the C++ internal API functions with the same
      name that are currently being used by parts of Node core.
      
      For this to work, the rejectPromise and resolvePromise builtins had
      to be moved back to CSA, as for JavaScript builtins we still have the
      policy that the optimizing compiler must not inline them. But that's
      straight-forward since the CSA has all the necessary functionality
      available anyways.
      
      Bug: v8:7253
      Change-Id: I39ab015c379956cd58ace866e17f8ec23b2257b2
      Reviewed-on: https://chromium-review.googlesource.com/924146Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
      Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#51332}
      13ca9a0f
  4. 06 Feb, 2018 1 commit
    • Mathias Bynens's avatar
      [v8-extras] Remove `simpleBind` · fefee7dc
      Mathias Bynens authored
      The `simpleBind` function exposed by V8 Extras was initially added to
      work around the terrible performance of `Function.prototype.bind` at
      the time. Nowadays `Function.prototype.bind` is significantly faster
      and fully optimized by TurboFan, however, so there’s no need for the
      `simpleBind` helper anymore.
      
      Bug: chromium:807522
      Change-Id: I1a0456e2aa34f92a3c9a0234a812b660f969d016
      Reviewed-on: https://chromium-review.googlesource.com/903164Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
      Commit-Queue: Mathias Bynens <mathias@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#51108}
      fefee7dc
  5. 06 Apr, 2017 1 commit
  6. 31 Mar, 2017 1 commit
  7. 12 Jan, 2017 1 commit
    • adamk's avatar
      [promises] Remove unneeded PromiseCreate function from promise.js · a0e3a8ee
      adamk authored
      This function was only needed for extrasUtils. Since it was simply
      calling a builtin function, just expose that builtin instead. This
      requires an arguments adapter frame for the builtin. As a drive-by
      fix, also added an arguments adapter for the extrasUtils.resolvePromise
      (and a regression test).
      
      Other cleanup: removed unused native context slot for PROMISE_SET_AND_CREATE.
      
      R=gsathya@chromium.org
      BUG=v8:5343
      
      Review-Url: https://codereview.chromium.org/2626793003
      Cr-Commit-Position: refs/heads/master@{#42284}
      a0e3a8ee
  8. 15 Nov, 2016 1 commit
  9. 05 Feb, 2016 1 commit
  10. 14 Oct, 2015 1 commit
  11. 16 Sep, 2015 1 commit
  12. 06 Aug, 2015 1 commit
  13. 11 Jun, 2015 1 commit
    • yangguo's avatar
      Add extras test for calling into runtime. · bd219a76
      yangguo authored
      The alternative of passing an object template at context creation is
      unfeasible because we need a context to instantiate the template.
      At the time we create the context from snapshot or bootstrap from
      scratch, we would already need that template instance, leading to a
      chicken-and-egg problem.
      
      This is an alternative that is simpler and less intrusive.
      
      R=domenic@chromium.org, jochen@chromium.org
      
      Review URL: https://codereview.chromium.org/1182443002
      
      Cr-Commit-Position: refs/heads/master@{#28938}
      bd219a76
  14. 20 May, 2015 1 commit
  15. 18 May, 2015 1 commit
  16. 12 Feb, 2015 1 commit
  17. 27 Jan, 2015 1 commit
  18. 22 Jan, 2015 1 commit
  19. 07 Jan, 2015 1 commit
  20. 05 Jan, 2015 1 commit
  21. 03 Jan, 2015 1 commit
  22. 24 Jun, 2014 1 commit
  23. 04 Jun, 2014 1 commit
  24. 03 Apr, 2014 1 commit
  25. 31 Mar, 2014 1 commit
  26. 28 Feb, 2014 3 commits
  27. 25 Feb, 2014 1 commit
  28. 20 Feb, 2014 1 commit
  29. 14 Feb, 2014 1 commit