1. 07 May, 2018 1 commit
  2. 27 Apr, 2018 1 commit
  3. 16 Mar, 2018 1 commit
  4. 15 Mar, 2018 1 commit
    • Clemens Hammacher's avatar
      [d8] Don't process message queues in load · 0fc36340
      Clemens Hammacher authored
      After processing the string loaded from a file, don't process message
      queues. Otherwise, stack traces generated in any processed task will
      contain the stack trace of the load. This also introduces
      nondeterminism, since it depends on the timing whether something will
      be processed inside the load or outside.
      
      Drive-by: Introduce enums for the different bools, to make their
      meaning more obvious at call sites.
      
      R=yangguo@chromium.org
      CC=herhut@chromium.org
      
      Change-Id: Ib48ee01be8c443a2a408ecb1c9e34bb9ba5a8fe7
      Reviewed-on: https://chromium-review.googlesource.com/964141Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
      Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#51952}
      0fc36340
  5. 28 Feb, 2018 1 commit
    • Andreas Haas's avatar
      [cleanup] Deprecate EnsureEventLoopInitialized · 9bacf523
      Andreas Haas authored
      Due to a recent refactoring the function EnsureEventLoopInitialized on
      the default platform became obsolete. It does not contain a single line
      of code. With this CL we prepare the removal of this function from the
      V8 platform API.
      
      R=rmcilroy@chromium.org
      
      Bug: v8:7310
      Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng;master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: If4d54cd989f8df2f40b322be3b67bb8a482398d0
      Reviewed-on: https://chromium-review.googlesource.com/934221
      Commit-Queue: Andreas Haas <ahaas@chromium.org>
      Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#51635}
      9bacf523
  6. 16 Feb, 2018 1 commit
  7. 30 Jan, 2018 1 commit
  8. 16 Jan, 2018 1 commit
  9. 07 Dec, 2017 1 commit
    • Bill Budge's avatar
      Reland "[D8] Clean up ArrayBuffer Allocators in shell." · 5679ab10
      Bill Budge authored
      This is a reland of 0c2faa06
      Original change's description:
      > [D8] Clean up ArrayBuffer Allocators in shell.
      >
      > - Reworks the class hierarchy in d8.cc to conform to the allocator API.
      >   In particular, allocators should malloc/free or equivalent unless
      >   v8::ArrayBuffer::Allocator::Reserve is called.
      > - Modifies ExternalizedContents to remember the allocation mode.
      > - ArrayAllocatorBase now tracks its allocations to make sure it doesn't
      >   call Free on externalized array buffers it didn't allocate.
      >
      > Bug: chromium:756050
      > Change-Id: Ic2d07d36358f1b4fa542bea27f93d1d51a1757e1
      > Reviewed-on: https://chromium-review.googlesource.com/807355
      > Commit-Queue: Bill Budge <bbudge@chromium.org>
      > Reviewed-by: Ben Titzer <titzer@chromium.org>
      > Reviewed-by: Eric Holk <eholk@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#49893}
      
      Bug: chromium:756050,v8:7146
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I8fe3a9d9af43196e16d02342a47347a76c0a1341
      Reviewed-on: https://chromium-review.googlesource.com/811724Reviewed-by: 's avatarEric Holk <eholk@chromium.org>
      Commit-Queue: Bill Budge <bbudge@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49945}
      5679ab10
  10. 06 Dec, 2017 2 commits
  11. 04 Dec, 2017 1 commit
  12. 01 Dec, 2017 1 commit
    • Mythri's avatar
      Reland "Add support to produce code cache after execute" · dae20b0d
      Mythri authored
      Adds new API function to request code cache. Earlier code cache was
      produced along with compile requests. This new API allows us to request
      code cache after executing. Also adds support in the code serializer to
      serialize after executing the script.
      
      Bug: chromium:783124,chromium:789694
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: Id4e6a967e176e3e979dc4ccb9a37a353c70c3890
      Reviewed-on: https://chromium-review.googlesource.com/797036Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
      Commit-Queue: Mythri Alle <mythria@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49793}
      dae20b0d
  13. 30 Nov, 2017 1 commit
  14. 29 Nov, 2017 2 commits
  15. 28 Nov, 2017 2 commits
    • Michael Achenbach's avatar
      Revert "[platform][cleanup] Fix --enable-tracing" · 10f4e6c3
      Michael Achenbach authored
      This reverts commit 61367a25.
      
      Reason for revert: http://shortn/_amqTfxgjk0
      
      Original change's description:
      > [platform][cleanup] Fix --enable-tracing
      > 
      > The flag --enable-tracing can be used to measure how much time is spent
      > in a scope. In d8 this flag did not work properly for the following
      > reasons:
      > 
      > * The tracing file is not written when the JavaScript code calls quit().
      > 
      > * The tracing file is not written when the JavaScript code throws an
      > uncaught exception, except if the --throws flag is passed to d8.
      > 
      > The reason for these two issues is that both call Shell::Exit(), which
      > end d8 immediately without calling any destructors. In addition I moved
      > in a recent CL the destruction of the platform after the destruction of
      > the file handle for the tracing file. Thereby the tracing file did not
      > get filled with content even destructors were executed.
      > 
      > With this CL I also call the destructors of the platform and of the file
      > handle in the Shell::Exit() function. For this I make Shell::Exit()
      > platform independent and let it call the platform dependent
      > Shell::OSExit() at the end.
      > 
      > R=​rmcilroy@chromium.org
      > 
      > Change-Id: I14425b6a5c25b757211bc8b9959a9cc8bfa0602c
      > Reviewed-on: https://chromium-review.googlesource.com/789038
      > Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
      > Commit-Queue: Andreas Haas <ahaas@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#49659}
      
      TBR=rmcilroy@chromium.org,ahaas@chromium.org
      
      Change-Id: I17c6f19c38cb337b00707f606f267b52b7f2c1e6
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Reviewed-on: https://chromium-review.googlesource.com/792991Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
      Commit-Queue: Michael Achenbach <machenbach@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49663}
      10f4e6c3
    • Andreas Haas's avatar
      [platform][cleanup] Fix --enable-tracing · 61367a25
      Andreas Haas authored
      The flag --enable-tracing can be used to measure how much time is spent
      in a scope. In d8 this flag did not work properly for the following
      reasons:
      
      * The tracing file is not written when the JavaScript code calls quit().
      
      * The tracing file is not written when the JavaScript code throws an
      uncaught exception, except if the --throws flag is passed to d8.
      
      The reason for these two issues is that both call Shell::Exit(), which
      end d8 immediately without calling any destructors. In addition I moved
      in a recent CL the destruction of the platform after the destruction of
      the file handle for the tracing file. Thereby the tracing file did not
      get filled with content even destructors were executed.
      
      With this CL I also call the destructors of the platform and of the file
      handle in the Shell::Exit() function. For this I make Shell::Exit()
      platform independent and let it call the platform dependent
      Shell::OSExit() at the end.
      
      R=rmcilroy@chromium.org
      
      Change-Id: I14425b6a5c25b757211bc8b9959a9cc8bfa0602c
      Reviewed-on: https://chromium-review.googlesource.com/789038Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
      Commit-Queue: Andreas Haas <ahaas@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49659}
      61367a25
  16. 21 Nov, 2017 1 commit
  17. 15 Nov, 2017 1 commit
  18. 03 Nov, 2017 1 commit
  19. 18 Oct, 2017 1 commit
  20. 13 Oct, 2017 1 commit
  21. 11 Oct, 2017 2 commits
    • Jan Krems's avatar
      Reland "[modules] Implement import.meta proposal" · 1c552999
      Jan Krems authored
      This is a reland of ed6f00fb
      Original change's description:
      > [modules] Implement import.meta proposal
      > 
      > Rewrites references to import.meta to a new GetImportMetaObject runtime
      > call. Embedders can define a callback for creating the meta object using
      > v8::Isolate::SetHostGetImportMetaObjectCallback. If no callback has been
      > provided, an empty object with null prototype is created.
      > 
      > This adds an example implementation to d8 that sets meta.url.
      > 
      > Bug: v8:6693
      > Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      > Change-Id: I6871eec79da45bba81bbbc84b1ffff48534c368d
      > Reviewed-on: https://chromium-review.googlesource.com/707902
      > Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
      > Reviewed-by: Adam Klein <adamk@chromium.org>
      > Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#48433}
      
      TBR=adamk@chromium.org
      
      Bug: v8:6693
      Change-Id: Ie2d746ad996a56ed6ff50b832f320fe44e02f231
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Reviewed-on: https://chromium-review.googlesource.com/712834Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
      Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#48468}
      1c552999
    • Sathya Gunasekaran's avatar
      Revert "[modules] Implement import.meta proposal" · a5565227
      Sathya Gunasekaran authored
      This reverts commit ed6f00fb.
      
      Reason for revert: tree is broken
      
      NOTRY=true
      NOTREECHECKS=true
      
      Original change's description:
      > [modules] Implement import.meta proposal
      > 
      > Rewrites references to import.meta to a new GetImportMetaObject runtime
      > call. Embedders can define a callback for creating the meta object using
      > v8::Isolate::SetHostGetImportMetaObjectCallback. If no callback has been
      > provided, an empty object with null prototype is created.
      > 
      > This adds an example implementation to d8 that sets meta.url.
      > 
      > Bug: v8:6693
      > Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      > Change-Id: I6871eec79da45bba81bbbc84b1ffff48534c368d
      > Reviewed-on: https://chromium-review.googlesource.com/707902
      > Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
      > Reviewed-by: Adam Klein <adamk@chromium.org>
      > Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#48433}
      
      TBR=adamk@chromium.org,gsathya@chromium.org,jan.krems@groupon.com
      
      Change-Id: I908a508d5db84cc8ae60d4fd4a0446bb570c1492
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Bug: v8:6693
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Reviewed-on: https://chromium-review.googlesource.com/710760Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
      Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#48434}
      a5565227
  22. 10 Oct, 2017 1 commit
    • Jan Krems's avatar
      [modules] Implement import.meta proposal · ed6f00fb
      Jan Krems authored
      Rewrites references to import.meta to a new GetImportMetaObject runtime
      call. Embedders can define a callback for creating the meta object using
      v8::Isolate::SetHostGetImportMetaObjectCallback. If no callback has been
      provided, an empty object with null prototype is created.
      
      This adds an example implementation to d8 that sets meta.url.
      
      Bug: v8:6693
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I6871eec79da45bba81bbbc84b1ffff48534c368d
      Reviewed-on: https://chromium-review.googlesource.com/707902
      Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
      Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
      Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#48433}
      ed6f00fb
  23. 05 Sep, 2017 1 commit
  24. 04 Sep, 2017 2 commits
  25. 31 Aug, 2017 1 commit
    • Sathya Gunasekaran's avatar
      [Modules] Introduce ScriptOrModule and HostDefinedOptions · dbfe4a49
      Sathya Gunasekaran authored
      This patch introduces a new container type ScriptOrModule which
      provides the name and the host defined options of the script/module.
      
      This patch also introduces a new PrimitivesArray that can hold
      Primitive values, which the embedder can use to store metadata.
      
      The HostDefinedOptions is passed to V8 through the ScriptOrigin, and
      passed back to the embedder through HostImportModuleDynamically for
      module loading.
      
      Bug: v8:5785, v8:6658, v8:6683
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I56c26fc9a680b273ac0a6691e5ad75f15b8dc80a
      Reviewed-on: https://chromium-review.googlesource.com/622158Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
      Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
      Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#47724}
      dbfe4a49
  26. 29 Aug, 2017 1 commit
  27. 22 Aug, 2017 3 commits
    • Leszek Swirski's avatar
      [d8] Allow reading files from a TCP socket · 4c54a218
      Leszek Swirski authored
      Reland of https://chromium-review.googlesource.com/c/v8/v8/+/623790
      
      Add a --read-from-tcp flag to d8, which makes file reads (including
      reading files from arguments, and the load and read builtins) read the
      file contents off a TCP socket using a simple request/response protocol.
      
      On top of this, add a script for transparently running d8 on an android
      device using adb. The script loads d8 onto the device, starts a file
      server providing the above protocol, and uses the above flag to run a d8
      which loads javascript sources off the computer rather than off the
      device.
      
      Change-Id: I82a25be900c7608ed4c3a35828757a870ca2e115
      Reviewed-on: https://chromium-review.googlesource.com/626396Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
      Commit-Queue: Leszek Swirski <leszeks@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#47513}
      4c54a218
    • Leszek Swirski's avatar
      Revert "[d8] Allow reading files from a TCP socket" · de87b879
      Leszek Swirski authored
      This reverts commit 29ad1235.
      
      Reason for revert: https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20shared/builds/19576
      
      Original change's description:
      > [d8] Allow reading files from a TCP socket
      > 
      > Add a --read-from-tcp flag to d8, which makes file reads (including
      > reading files from arguments, and the load and read builtins) read the
      > file contents off a TCP socket using a simple request/response protocol.
      > 
      > On top of this, add a script for transparently running d8 on an android
      > device using adb. The script loads d8 onto the device, starts a file
      > server providing the above protocol, and uses the above flag to run a d8
      > which loads javascript sources off the computer rather than off the
      > device.
      > 
      > Change-Id: Icaa0577beb9bcd4f93476faa3ad8fb8b0a165e6e
      > Reviewed-on: https://chromium-review.googlesource.com/623790
      > Commit-Queue: Leszek Swirski <leszeks@chromium.org>
      > Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#47511}
      
      TBR=rmcilroy@chromium.org,leszeks@chromium.org
      
      Change-Id: I2de4a12aa8cb0d228df3e5793d997b9145f4da42
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Reviewed-on: https://chromium-review.googlesource.com/626017Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
      Commit-Queue: Leszek Swirski <leszeks@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#47512}
      de87b879
    • Leszek Swirski's avatar
      [d8] Allow reading files from a TCP socket · 29ad1235
      Leszek Swirski authored
      Add a --read-from-tcp flag to d8, which makes file reads (including
      reading files from arguments, and the load and read builtins) read the
      file contents off a TCP socket using a simple request/response protocol.
      
      On top of this, add a script for transparently running d8 on an android
      device using adb. The script loads d8 onto the device, starts a file
      server providing the above protocol, and uses the above flag to run a d8
      which loads javascript sources off the computer rather than off the
      device.
      
      Change-Id: Icaa0577beb9bcd4f93476faa3ad8fb8b0a165e6e
      Reviewed-on: https://chromium-review.googlesource.com/623790
      Commit-Queue: Leszek Swirski <leszeks@chromium.org>
      Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#47511}
      29ad1235
  28. 25 Jul, 2017 1 commit
  29. 12 Jul, 2017 1 commit
  30. 29 Jun, 2017 1 commit
  31. 10 May, 2017 3 commits