1. 05 Oct, 2018 1 commit
    • Andreas Haas's avatar
      [api][cleanup] Mark Call*OnForegroundThread as V8_DEPRECATE_SOON · 3f8c6e01
      Andreas Haas authored
      These functions got replaced the the taskrunner API. The new way to
      post tasks is as follows:
      
      v8::Platform* platform = ...; // e.g. V8::GetCurrentPlatform();
      v8::Isolate* = ...;
      
      std::shared_ptr<v8::TaskRunner> taskrunner = platform->GetForegroundTaskRunner(isolate);
      std::unique_ptr<v8::Task> task = ...;
      
      taskrunner->PostTask(std::move(task));
      
      R=ulan@chromium.org
      
      Bug: v8:8238
      Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
      Change-Id: I44a70fc530daae581ee31e54fd09e776ba648406
      Reviewed-on: https://chromium-review.googlesource.com/c/1261936Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Commit-Queue: Andreas Haas <ahaas@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#56400}
      3f8c6e01
  2. 04 Oct, 2018 1 commit
  3. 24 Sep, 2018 1 commit
    • Dan Elphick's avatar
      [deprecation] Deprecate ToBoolean(Local<Context>) · d235f550
      Dan Elphick authored
      ToBoolean and BooleanValue cannot throw exceptions so the Maybe versions
      of the functions don't make sense. As such this deprecates the Maybe
      versions and undeprecates ToBoolean(Isolate*). It also adds
      BooleanValue(Isolate*).
      
      Fix up all of the v8 code to not use the deprecated functions.
      
      Bug: v8:7279, v8:8015
      Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;luci.chromium.try:linux_chromium_rel_ng;master.tryserver.blink:linux_trusty_blink_rel
      Change-Id: I50e7474d205c75baa153f0dea7f02dcf60232d1d
      Reviewed-on: https://chromium-review.googlesource.com/1238476
      Commit-Queue: Dan Elphick <delphick@chromium.org>
      Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
      Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#56163}
      d235f550
  4. 20 Sep, 2018 1 commit
  5. 18 Sep, 2018 1 commit
  6. 14 Sep, 2018 1 commit
  7. 07 Sep, 2018 1 commit
  8. 06 Sep, 2018 2 commits
  9. 05 Sep, 2018 4 commits
    • Michael Lippautz's avatar
      Reland "Add external backing store JS test" · 408d8904
      Michael Lippautz authored
      Allow mocking the limits for ArrayBuffer allocation to simulate operating
      system OOM.
      
      Fixes:
      - Ensure OS limit > hard limit for external memory. This is necessary as
        any processing below the hard limit is opportunistic. E.g. a running
        sweeper may stall the current marking (GC) round.
      - Immediately process AB allocations when under memory pressure. Otherwise,
        the allocations may be stuck in a stalled task. Freeing them upon
        adding them to the collector still enables parallelism if possible.
      
      This reverts commit f3ad6cdb.
      
      Bug: chromium:845409
      Change-Id: Ic3e458f2af231bae3d53afcfd6002a0347d3f12b
      Reviewed-on: https://chromium-review.googlesource.com/1206872
      Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
      Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#55656}
      408d8904
    • Stephan Herhut's avatar
      [d8] Increase the maximum number of workers to 100 · 25d06d8b
      Stephan Herhut authored
      Change-Id: I34ad8910949e8eb265df53d66f79b315b4a990e6
      Reviewed-on: https://chromium-review.googlesource.com/1206630Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
      Commit-Queue: Stephan Herhut <herhut@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#55647}
      25d06d8b
    • Andreas Haas's avatar
      [d8] Seal HandleScope and reset Context before running a v8::Task · 78f26103
      Andreas Haas authored
      V8 does not require the embedder to open a HandleScope before executing
      a v8::Task. However, d8 does open such a HandleScope. Because of that
      HandleScope we repeatedly found missing HandleScopes only in Chrome
      tests and not in d8 tests. The same is true for the context, which is
      not set when Chrome calls a v8::Task.
      
      With this CL we create a SealHandleScope around the execution of a
      v8::Task, and we set the context to nullptr, so that d8 matches Chrome
      better.
      
      Ideally d8 would not open a HandleScope in the first place, and would
      not set a context. Both make d8 behave different than Chrome and thereby
      may hide bugs from our testing infrastructure. However, the
      implementation of the InspectorClient requires them. I think the
      SealHandleScope and resetting the context is a good workaround at the
      moment. Yang, do you know if we can get rid of the context there in the
      long run?
      
      R=yangguo@chromium.org
      
      Change-Id: I8df0fabde7dfdcdc630d20af4c68f141ac3a454c
      Reviewed-on: https://chromium-review.googlesource.com/1177742Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
      Commit-Queue: Andreas Haas <ahaas@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#55644}
      78f26103
    • Yang Guo's avatar
      Revert "Add external backing store JS test" · f3ad6cdb
      Yang Guo authored
      This reverts commit 5107ec2a.
      
      Reason for revert: Test is very flaky: https://ci.chromium.org/p/v8/builders/luci.v8.ci/V8%20Linux64
      
      Original change's description:
      > Add external backing store JS test
      > 
      > Allow mocking the limits for ArrayBuffer allocation to simulate operating
      > system OOM.
      > 
      > Bug: chromium:845409
      > Change-Id: I38bf56a3677e1db547c774223c81e913f56cb631
      > Reviewed-on: https://chromium-review.googlesource.com/1203895
      > Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
      > Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#55616}
      
      TBR=ulan@chromium.org,mlippautz@chromium.org
      
      Change-Id: I633988dba1b0a87b652e72e0e667e90122e00f6d
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Bug: chromium:845409
      Reviewed-on: https://chromium-review.googlesource.com/1206290Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
      Commit-Queue: Yang Guo <yangguo@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#55630}
      f3ad6cdb
  10. 04 Sep, 2018 1 commit
  11. 30 Aug, 2018 1 commit
  12. 29 Aug, 2018 1 commit
  13. 28 Aug, 2018 1 commit
  14. 24 Aug, 2018 1 commit
    • Stephan Herhut's avatar
      Reland "Use new arraybuffer deleter interface in d8" · 89bea4c0
      Stephan Herhut authored
      This is a reland of 524215be
      
      Original change's description:
      > Use new arraybuffer deleter interface in d8
      > 
      > With this cl we start using the custom deleter to free externalized
      > array buffers. This also allows us to keep wasm memories registered
      > with the wasm memory tracker and thereby to propagate that a memory
      > is wasm allocated over postMessage calls.
      > 
      > Bug: v8:8073, chromium:836800
      > Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
      > Change-Id: I57e3ea44d9c6633ada7996677dd1de4da810ab64
      > Reviewed-on: https://chromium-review.googlesource.com/1186681
      > Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
      > Commit-Queue: Stephan Herhut <herhut@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#55361}
      
      Bug: v8:8073, chromium:836800
      Change-Id: Ia3c057ced496363cfdd07eed16ed1d0c7a3f3084
      Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
      Reviewed-on: https://chromium-review.googlesource.com/1188222Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
      Commit-Queue: Stephan Herhut <herhut@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#55389}
      89bea4c0
  15. 23 Aug, 2018 2 commits
  16. 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
  17. 17 Aug, 2018 1 commit
  18. 10 Aug, 2018 1 commit
  19. 02 Aug, 2018 1 commit
  20. 01 Aug, 2018 1 commit
  21. 26 Jul, 2018 1 commit
  22. 23 Jul, 2018 1 commit
  23. 19 Jul, 2018 1 commit
  24. 17 Jul, 2018 1 commit
  25. 16 Jul, 2018 4 commits
  26. 04 Jul, 2018 3 commits
  27. 28 Jun, 2018 1 commit
    • Ben Smith's avatar
      [wasm] postMessage of WebAssembly.Module in d8 · c9b4f805
      Ben Smith authored
      Supporting postMessage from WebAssembly.Module requires implementing
      some logic in the ValueSerializer and ValueDeserializer delegates. This
      change implements some simple logic for d8.
      
      This change also fixes a DCHECK that occurs when sending a shared
      WebAssembly.Memory object to two Workers.
      
      Bug: chromium:857049
      Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
      Change-Id: Idddb23a48175c7175967af3fbc03d8572452a069
      Reviewed-on: https://chromium-review.googlesource.com/1117871Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
      Commit-Queue: Ben Smith <binji@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#54093}
      c9b4f805
  28. 22 Jun, 2018 1 commit
  29. 21 Jun, 2018 1 commit