1. 12 Dec, 2017 1 commit
  2. 11 Dec, 2017 1 commit
  3. 06 Dec, 2017 1 commit
  4. 04 Dec, 2017 1 commit
  5. 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
  6. 30 Nov, 2017 1 commit
  7. 29 Nov, 2017 2 commits
  8. 24 Nov, 2017 1 commit
  9. 23 Nov, 2017 1 commit
  10. 22 Nov, 2017 7 commits
    • Alexey Kozyatinskiy's avatar
      Reland [inspector] introduced stackTraceId and externalAsyncTask API · 885a5669
      Alexey Kozyatinskiy authored
      Sometimes we need to capture stack trace on one debugger and use it
      later as a parent stack on another debugger (e.g. worker.postMessage).
      
      This CL includes following addition to our protocol and v8-inspector.h:
        - added Runtime.StackTraceId, this id represents stack trace captured
          on debugger with given id,
        - protocol client can fetch Runtime.StackTrace by
          Runtime.StacKTraceId using Debugger.getStackTrace method,
        - externalParent field is added to Debugger.paused event, it may
          contain external parent stack trace,
        - V8Inspector::storeCurrentStackTrace captures current stack trace
          and returns V8StackTraceId for embedder this id can be used as
          argument for V8Inspector::externalAsyncTaskStarted and
          V8Inspector::externalAsyncTaskFinished method. Any async stack
          trace captured between these calls will get passed external stack
          trace as external parent. These methods are designed to be called
          on different debuggers. If async task is scheduled and started on
          one debugger user should continue to use asyncTask* API,
        - Debugger.enable methods returns unique debuggerId.
      
      TBR=dgozman@chromium.org,jgruber@chromium.org
      
      Bug: chromium:778796
      Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I2c1a2b2e30ed69ccb61d10f08686f4edb09f50e4
      Reviewed-on: https://chromium-review.googlesource.com/786274
      Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
      Reviewed-by: 's avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49591}
      885a5669
    • Igor Sheludko's avatar
      [runtime] Extend InstanceType to uint16_t range of values. · cb46310a
      Igor Sheludko authored
      Bug: v8:5799
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: Iff62cf07d85b48975d7a21da388bbf6addeb56f1
      Reviewed-on: https://chromium-review.googlesource.com/781633
      Commit-Queue: Igor Sheludko <ishell@chromium.org>
      Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
      Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
      Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49589}
      cb46310a
    • Clemens Hammacher's avatar
      Revert "[inspector] introduced stackTraceId and externalAsyncTask API" · 4379533c
      Clemens Hammacher authored
      This reverts commit 3a41b697.
      
      Reason for revert: Break msvc: https://build.chromium.org/p/client.v8/builders/V8%20Win64%20-%20msvc/builds/250
      
      Original change's description:
      > [inspector] introduced stackTraceId and externalAsyncTask API
      > 
      > Sometimes we need to capture stack trace on one debugger and use it
      > later as a parent stack on another debugger (e.g. worker.postMessage).
      > 
      > This CL includes following addition to our protocol and v8-inspector.h:
      >   - added Runtime.StackTraceId, this id represents stack trace captured
      >     on debugger with given id,
      >   - protocol client can fetch Runtime.StackTrace by
      >     Runtime.StacKTraceId using Debugger.getStackTrace method,
      >   - externalParent field is added to Debugger.paused event, it may
      >     contain external parent stack trace,
      >   - V8Inspector::storeCurrentStackTrace captures current stack trace
      >     and returns V8StackTraceId for embedder this id can be used as
      >     argument for V8Inspector::externalAsyncTaskStarted and
      >     V8Inspector::externalAsyncTaskFinished method. Any async stack
      >     trace captured between these calls will get passed external stack
      >     trace as external parent. These methods are designed to be called
      >     on different debuggers. If async task is scheduled and started on
      >     one debugger user should continue to use asyncTask* API,
      >   - Debugger.enable methods returns unique debuggerId.
      > 
      > Bug: chromium:778796
      > Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
      > Change-Id: I16aba0d04bfcea90f3e187e635a0588c92354539
      > Reviewed-on: https://chromium-review.googlesource.com/754183
      > Reviewed-by: Jakob Gruber <jgruber@chromium.org>
      > Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
      > Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#49582}
      
      TBR=dgozman@chromium.org,pfeldman@chromium.org,yangguo@chromium.org,kozyatinskiy@chromium.org,jgruber@chromium.org
      
      Change-Id: I9b52354fa0841e5148596cf594317f2e5fe508ea
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Bug: chromium:778796
      Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
      Reviewed-on: https://chromium-review.googlesource.com/786152Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
      Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49584}
      4379533c
    • Alexey Kozyatinskiy's avatar
      [inspector] introduced stackTraceId and externalAsyncTask API · 3a41b697
      Alexey Kozyatinskiy authored
      Sometimes we need to capture stack trace on one debugger and use it
      later as a parent stack on another debugger (e.g. worker.postMessage).
      
      This CL includes following addition to our protocol and v8-inspector.h:
        - added Runtime.StackTraceId, this id represents stack trace captured
          on debugger with given id,
        - protocol client can fetch Runtime.StackTrace by
          Runtime.StacKTraceId using Debugger.getStackTrace method,
        - externalParent field is added to Debugger.paused event, it may
          contain external parent stack trace,
        - V8Inspector::storeCurrentStackTrace captures current stack trace
          and returns V8StackTraceId for embedder this id can be used as
          argument for V8Inspector::externalAsyncTaskStarted and
          V8Inspector::externalAsyncTaskFinished method. Any async stack
          trace captured between these calls will get passed external stack
          trace as external parent. These methods are designed to be called
          on different debuggers. If async task is scheduled and started on
          one debugger user should continue to use asyncTask* API,
        - Debugger.enable methods returns unique debuggerId.
      
      Bug: chromium:778796
      Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I16aba0d04bfcea90f3e187e635a0588c92354539
      Reviewed-on: https://chromium-review.googlesource.com/754183Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
      Reviewed-by: 's avatarDmitry Gozman <dgozman@chromium.org>
      Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49582}
      3a41b697
    • Ulan Degenbaev's avatar
      [heap] Fix V8::AddGCPrologueCallback and V8::AddGCEpilogueCallback · 0d7a870b
      Ulan Degenbaev authored
      Bug: v8:7113
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I64d41ac2344d1974867647b8c32a9fae384b724a
      Reviewed-on: https://chromium-review.googlesource.com/784833
      Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
      Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49569}
      0d7a870b
    • Michael Lippautz's avatar
      Global handles: Remove independent handle infrastructure · 0944553e
      Michael Lippautz authored
      Bug: chromium:780749
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I4c993e2147494795402f141049eed30801dfb913
      Reviewed-on: https://chromium-review.googlesource.com/782519Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49568}
      0944553e
    • Michael Lippautz's avatar
      [api] Remove long-deprecated static APIs to iterate persistent handles · ffa30ced
      Michael Lippautz authored
      Users should migrate to using the versions on Isolate.
      
      Bug: 
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I4fe956a4210308701f343a3a681d9d6f1b1f2d2b
      Reviewed-on: https://chromium-review.googlesource.com/784832Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49566}
      ffa30ced
  11. 21 Nov, 2017 2 commits
  12. 17 Nov, 2017 2 commits
    • Leszek Swirski's avatar
      [code-cache] Log resources with no cache handler · 25820bda
      Leszek Swirski authored
      Add another entry to the NoCacheReason enum, reporting that the chromium
      ScriptResource has no cache handler.
      
      Also, the amount of chromium-specific entries in this enum is getting
      too high. So, added a TODO for removing them -- possibly in the future
      we want to do this no-cache reason logging in Chromium after all,
      propagating isolate cache hits and consume failures back up the API with
      an out parameter.
      
      Bug: chromium:769203
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I63ca863cfef61e04e7104318eb79810796b61a9c
      Reviewed-on: https://chromium-review.googlesource.com/776893Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
      Commit-Queue: Leszek Swirski <leszeks@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49458}
      25820bda
    • Michael Lippautz's avatar
      [api] Mark MarkIndependent as soon deprecated · 71ad48fb
      Michael Lippautz authored
      Persistent handles are always independent these days. Users should mark
      weak handles as active using MarkActive if they want to keep weak
      handles that are otherwise unreachable alive across scavenges.
      
      Bug: chromium:780749
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I116e984ce14a035d1cef491d49f11a388fa8169d
      Reviewed-on: https://chromium-review.googlesource.com/759794
      Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
      Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49456}
      71ad48fb
  13. 16 Nov, 2017 2 commits
  14. 14 Nov, 2017 5 commits
  15. 13 Nov, 2017 2 commits
  16. 09 Nov, 2017 1 commit
    • Karl Schimpf's avatar
      Add capability to handle CSP 'wasm-eval' in V8 · 1719ecb9
      Karl Schimpf authored
      Like CSP flag 'unsafe-eval', which communicates if both JS source
      files and WASM binary files may be compiled, this CL adds a similar
      flag for the compilation of WASM binary files.
      
      That is, a WASM binary file will be compiled only if the new flag is
      defined, or the flag for 'unsafe-eval' allows it. These flags are
      implemented as callback functions on the isolate. The callbacks get a
      (CSP) context, and a string, and returns the corresponding value of
      the flag.
      
      Both callbacks are initialized with the nullptr, and is used to
      communicate that no CSP policy is defined. This allows this concept to
      work, independent of it running in Chrome.
      
      It also does a small clean up in api.cc to use macro CALLER_SETTERS,
      instead of explicit code when appropriate.
      
      Bug: v8:7041
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: Idb3356574ae2a298057e6b7bccbd3492831952ae
      Reviewed-on: https://chromium-review.googlesource.com/759162Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
      Reviewed-by: 's avatarEric Holk <eholk@chromium.org>
      Commit-Queue: Karl Schimpf <kschimpf@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49243}
      1719ecb9
  17. 08 Nov, 2017 1 commit
  18. 06 Nov, 2017 2 commits
  19. 03 Nov, 2017 1 commit
  20. 01 Nov, 2017 1 commit
    • Leszek Swirski's avatar
      [compiler] Split compilation timer on caching decision · f571da95
      Leszek Swirski authored
      Rather than having a single script compilation timer, split it into
      multiple timers depending on the state of the (blink-owned) code cache
      and (v8-owned) complation cache. This is intended to replace both the
      script compilation time timer, and the compilation heuristic enum.
      
      Also keep track of why blink might not want us to produce (or consume) a
      code cache, and split the compilation timer on this as well.
      
      Note, there is currently no timer for streaming sources, so these won't
      show up in the histograms.
      
      Bug: chromium:582873
      Bug: chromium:769203
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: Ia32fff044f919e20e3cec73329e62e01e421b72a
      Reviewed-on: https://chromium-review.googlesource.com/746922
      Commit-Queue: Leszek Swirski <leszeks@chromium.org>
      Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49065}
      f571da95
  21. 31 Oct, 2017 2 commits
  22. 30 Oct, 2017 1 commit
    • Andreas Haas's avatar
      [platform] Add TaskRunner to the platform API · c690f54d
      Andreas Haas authored
      With the existing platform API it is not possible to post foreground
      tasks from background tasks. This is, however, required to implement
      asynchronous compilation for WebAssembly. With this CL we add the
      concept of a TaskRunner to the platform API. The TaskRunner contains
      all data needed to post a foreground task and can be used both from a
      foreground task and a background task. Eventually the TaskRunner should
      replace the existing API.
      
      In addition, this CL contains a default implementation of the
      TaskRunner. This implementation has tempory workaround for platforms
      which do not provide a TaskRunner implementation yet. This default
      implementation should be deleted again when all platforms provide a
      TaskRunner implementation.
      
      R=rmcilroy@chromium.org
      
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I6ea4a1c9da1eb9a19e8ce8f2163000dbc2598802
      Reviewed-on: https://chromium-review.googlesource.com/741588
      Commit-Queue: Andreas Haas <ahaas@chromium.org>
      Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#49041}
      c690f54d
  23. 27 Oct, 2017 1 commit