1. 12 6月, 2019 1 次提交
  2. 11 6月, 2019 1 次提交
  3. 09 6月, 2019 2 次提交
  4. 08 6月, 2019 1 次提交
  5. 07 6月, 2019 1 次提交
  6. 06 6月, 2019 1 次提交
    • R
      RecursiveLoad shouldn't own the Isolate (#2453) · e152dae0
      Ryan Dahl 提交于
      This patch makes it so that RecursiveLoad doesn't own the Isolate, so
      Worker::execute_mod_async does not consume itself.
      
      Previously Worker implemented Loader, but now ThreadSafeState does.
      
      This is necessary preparation work for dynamic import (#1789) and import
      maps (#1921)
      e152dae0
  7. 29 5月, 2019 1 次提交
    • R
      TS compiler refactor · 856c4421
      Ryan Dahl 提交于
      * Compiler no longer has its own Tokio runtime. Compiler handles one
        message and then exits.
      
      * Uses the simpler ts.CompilerHost interface instead of
        ts.LanguageServiceHost.
      
      * avoids recompiling the same module by introducing a hacky but simple
        `hashset<string>` that stores the module names that have been already
        compiled.
      
      * Removes the CompilerConfig op.
      
      * Removes a lot of the mocking stuff in compiler.ts like `this._ts`. It
        is not useful as we don't even have tests.
      
      * Turns off checkJs because it causes fmt_test to die with OOM.
      856c4421
  8. 11 5月, 2019 1 次提交
  9. 09 5月, 2019 1 次提交
  10. 02 5月, 2019 2 次提交
    • R
      core: express op as enum (#2255) · c171813e
      Ryan Dahl 提交于
      c171813e
    • B
      Refactor zero-copy buffers for performance and to prevent memory leaks · 41c7e96f
      Bert Belder 提交于
      * In order to prevent ArrayBuffers from getting garbage collected by V8,
        we used to store a v8::Persistent<ArrayBuffer> in a map. This patch
        introduces a custom ArrayBuffer allocator which doesn't use Persistent
        handles, but instead stores a pointer to the actual ArrayBuffer data
        alongside with a reference count. Since creating Persistent handles
        has quite a bit of overhead, this change significantly increases
        performance. Various HTTP server benchmarks report about 5-10% more
        requests per second than before.
      
      * Previously the Persistent handle that prevented garbage collection had
        to be released manually, and this wasn't always done, which was
        causing memory leaks. This has been resolved by introducing a new
        `PinnedBuf` type in both Rust and C++ that automatically re-enables
        garbage collection when it goes out of scope.
      
      * Zero-copy buffers are now correctly wrapped in an Option if there is a
        possibility that they're not present. This clears up a correctness
        issue where we were creating zero-length slices from a null pointer,
        which is against the rules.
      41c7e96f
  11. 29 4月, 2019 1 次提交
  12. 24 4月, 2019 1 次提交
  13. 21 4月, 2019 1 次提交
  14. 17 4月, 2019 2 次提交
  15. 11 4月, 2019 1 次提交
  16. 10 4月, 2019 1 次提交
  17. 09 4月, 2019 2 次提交
  18. 07 4月, 2019 1 次提交
  19. 02 4月, 2019 1 次提交
    • A
      Add web worker JS API (#1993) · b0a23beb
      andy finch 提交于
      * Refactored the way worker polling is scheduled and errors are handled.
      * Share the worker future as a Shared
      b0a23beb
  20. 31 3月, 2019 1 次提交
  21. 29 3月, 2019 1 次提交
  22. 26 3月, 2019 1 次提交
  23. 20 3月, 2019 3 次提交
  24. 19 3月, 2019 1 次提交
    • R
      Integrate //core into existing code base · 44773c9b
      Ryan Dahl 提交于
      This disables a few tests which are broken still:
      - tests/error_004_missing_module.test
      - tests/error_005_missing_dynamic_import.test
      - tests/error_006_import_ext_failure.test
      - repl_test test_set_timeout
      - repl_test test_async_op
      - repl_test test_set_timeout_interlaced
      - all of permission_prompt_test
      44773c9b