1. 30 Aug, 2016 1 commit
  2. 29 Aug, 2016 2 commits
    • mtrofin's avatar
      [wasm] Use weak reference for wasm deopt data. · b9eb9ee7
      mtrofin authored
      This unblocks moving off having to hold on to a compiled module
      template.
      
      Once we don't have the template, when we have a single instance, the
      instance and wasm module share the same compiled code. We will want
      to clear that code off instance-specific stuff, when the instance is
      unreferenced and should be GC-ed (stuff like the instance heap, for
      instance). However, the deopt data will maintain a strong reference,
      blocking the GC: the module object strongly references the compiled
      code, which strongly references the instance object through the deopt
      data.
      
      This change addresses that by making that last reference weak.
      
      BUG=v8:5316
      
      Review-Url: https://codereview.chromium.org/2284683005
      Cr-Commit-Position: refs/heads/master@{#38990}
      b9eb9ee7
    • bradnelson's avatar
      [WASM] Adding fuzzing binaries for wasm, and script to update them. · 08639b5b
      bradnelson authored
      This adds:
      * A script (tools/update-wasm-fuzzers.sh), which creates a new fuzzing seed
        corpus and uploads to google storage (you must have the right credentials).
      * A new pair of DEPS entries to pull in the current version of the corpus
        based on a checked in pair of hash files.
      
      BUG=None
      TEST=None
      R=ahaas@chromium.org,kcc@chromium.org,mvstanton@chromium.org
      
      Review-Url: https://codereview.chromium.org/2273303002
      Cr-Commit-Position: refs/heads/master@{#38987}
      08639b5b
  3. 26 Aug, 2016 1 commit
  4. 24 Aug, 2016 1 commit
    • mtrofin's avatar
      [wasm] Remember import indices · 5524cbf5
      mtrofin authored
      When compiling a wasm module, we initially generate placeholders for
      imports, which store the index corresponding to that import. Later,
      at instantiation time, we use that index to correctly link the
      provided import.
      
      In this scheme, supporting multiple instantiations requires we
      preserve a template (set of unlinked compiled wasm functions) which
      we clone for each instance. To avoid holding on to this template,
      which may be large (wasm compiled code should be expected to be in
      the order of tens of MB), we must enable cloning from an instance's
      linked wasm functions.
      
      This change is a step in that direction. Instead of assuming the wasm
      functions reference placeholders, we store a table of the code objects
      used for imports together with the compiled module, and use that
      information to determine the index of the import. Initially, that
      table contains placeholders. For instances, however, that table contains
      their actual imports.
      
      BUG=
      
      Review-Url: https://codereview.chromium.org/2269323002
      Cr-Commit-Position: refs/heads/master@{#38848}
      5524cbf5
  5. 23 Aug, 2016 4 commits
  6. 22 Aug, 2016 2 commits
  7. 19 Aug, 2016 2 commits
  8. 16 Aug, 2016 2 commits
  9. 11 Aug, 2016 2 commits
    • jpp's avatar
      [WASM] Exception handling prototype. · b2b40134
      jpp authored
      ------------------------------------------------------------------------
      
      This CL adds support for decoding eh-related wasm opcodes:
      * Throw: used for raising an exception; the thrown value lives on top of
               the evaluation stack;
      * TryCatch: used to start a try block that has a catch clause;
      * TryFinally: used to start a try block that has a finally clause;
      * TryCatchFinally: used to start a try block that has both catch and
                         finally clauses;
      * Catch <local>: used to start the catch block of a
                       TryCatch/TryCatchFinally block; the thrown value is
                       stored in local <local>; and
      * Finally: used to start a finally block of TryFinally/TryCatchFinally.
      
      Three different opcodes are used to start a try block to simplify the
      AST construction during bytecode parsing.
      
      BUG=
      
      Review-Url: https://codereview.chromium.org/2222193004
      Cr-Commit-Position: refs/heads/master@{#38579}
      b2b40134
    • ahaas's avatar
      [wasm] Allow import function to be any kind of callables. · 8d491089
      ahaas authored
      With this CL all kinds of Callable can imported into wasm. Please take a special look at the context that is used now in the WasmToJSWrapper.
      
      BUG=633895
      TEST=mjsunit/wasm/ffi.js
      
      Review-Url: https://codereview.chromium.org/2208703002
      Cr-Commit-Position: refs/heads/master@{#38569}
      8d491089
  10. 09 Aug, 2016 1 commit
  11. 08 Aug, 2016 3 commits
  12. 04 Aug, 2016 2 commits
  13. 03 Aug, 2016 2 commits
  14. 02 Aug, 2016 2 commits
  15. 28 Jul, 2016 2 commits
    • cbruni's avatar
      [api] Introduce fast instantiations cache · f3f738fe
      cbruni authored
      This CL introduces a new fast flat instantiations cache for the first 1024 object templates.
      After that we fall back to the existing slower dictionary cache.
      
      Drive-by-fix: de-handlify and clean up some code in api-natives.cc
      
      BUG=chromium:630217
      
      Review-Url: https://codereview.chromium.org/2170743003
      Cr-Commit-Position: refs/heads/master@{#38146}
      f3f738fe
    • ddchen's avatar
      [wasm] Add support for multiple indirect function tables · 0a9d4003
      ddchen authored
      This patch updates internal data structures used by V8 to support
      multiple indirect function tables (WebAssembly/design#682). But, since
      this feature is post-MVP, the functionality is not directly exposed and
      parsing/generation of WebAssembly is left unchanged. Nevertheless, it
      is being used in an experiment to implement fine-grained control flow
      integrity based on C/C++ types.
      
      BUG=
      
      Review-Url: https://codereview.chromium.org/2174123002
      Cr-Commit-Position: refs/heads/master@{#38110}
      0a9d4003
  16. 26 Jul, 2016 1 commit
  17. 25 Jul, 2016 2 commits
  18. 22 Jul, 2016 1 commit
  19. 21 Jul, 2016 3 commits
  20. 20 Jul, 2016 1 commit
  21. 16 Jul, 2016 1 commit
  22. 15 Jul, 2016 2 commits