1. 16 4月, 2020 1 次提交
  2. 04 4月, 2020 1 次提交
  3. 12 3月, 2020 1 次提交
  4. 11 3月, 2020 1 次提交
    • N
      refactor(cli/js/net): Cleanup iterable APIs (#4236) · 55119aae
      Nayeem Rahman 提交于
      Listener and UDPConn are AsyncIterables instead of AsyncIterators.
      The [Symbol.asyncIterator]()s are defined as generators and the
      next() methods are gone.
      
      "Listener/Socket has been closed" errors are now BadResource.
      55119aae
  5. 05 3月, 2020 1 次提交
  6. 28 2月, 2020 1 次提交
  7. 25 2月, 2020 1 次提交
  8. 24 2月, 2020 1 次提交
    • B
      refactor: use OpError instead of ErrBox for errors in ops (#4058) · 4e1abb4f
      Bartek Iwańczuk 提交于
      To better reflect changes in error types in JS from #3662 this PR changes 
      default error type used in ops from "ErrBox" to "OpError".
      
      "OpError" is a type that can be sent over to JSON; it has all 
      information needed to construct error in JavaScript. That
      made "GetErrorKind" trait useless and so it was removed altogether.
      
      To provide compatibility with previous use of "ErrBox" an implementation of
      "From<ErrBox> for OpError" was added, however, it is an escape hatch and
      ops implementors should strive to use "OpError" directly.
      4e1abb4f
  9. 09 2月, 2020 1 次提交
  10. 08 2月, 2020 1 次提交
  11. 04 2月, 2020 1 次提交
    • R
      refactor: Use Tokio's single-threaded runtime (#3844) · 161cf7cd
      Ryan Dahl 提交于
      This change simplifies how we execute V8. Previously V8 Isolates jumped
      around threads every time they were woken up. This was overly complex and
      potentially hurting performance in a myriad ways. Now isolates run on
      their own dedicated thread and never move.
      
      - blocking_json spawns a thread and does not use a thread pool
      - op_host_poll_worker and op_host_resume_worker are non-operational
      - removes Worker::get_message and Worker::post_message
      - ThreadSafeState::workers table contains WorkerChannel entries instead
        of actual Worker instances.
      - MainWorker and CompilerWorker are no longer Futures.
      - The multi-threaded version of deno_core_http_bench was removed.
      - AyncOps no longer need to be Send + Sync
      
      This PR is very large and several tests were disabled to speed
      integration:
      - installer_test_local_module_run
      - installer_test_remote_module_run
      - _015_duplicate_parallel_import
      - _026_workers
      161cf7cd
  12. 25 1月, 2020 1 次提交
  13. 20 1月, 2020 1 次提交
  14. 19 1月, 2020 2 次提交
  15. 06 1月, 2020 1 次提交
  16. 03 1月, 2020 1 次提交
  17. 30 12月, 2019 1 次提交
  18. 03 12月, 2019 1 次提交
  19. 17 11月, 2019 1 次提交
  20. 15 11月, 2019 1 次提交
    • B
      refactor: per-worker resource table, take 2 (#3342) · 8b90b8e8
      Bartek Iwańczuk 提交于
      - removes global `RESOURCE_TABLE` - resource tables are now created per `Worker`
        in `State`
      - renames `CliResource` to `StreamResource` and moves all logic related
        to it to `cli/ops/io.rs`
      - removes `cli/resources.rs`
      - adds `state` argument to `op_read` and `op_write` and consequently adds
        `stateful_minimal_op` to `State`
      - IMPORTANT NOTE: workers don't have access to process stdio - this is
        caused by fact that dropping worker would close stdout for process
        (because it's constructed from raw handle, which closes underlying file
        descriptor on drop)
      8b90b8e8
  21. 14 11月, 2019 2 次提交
    • R
      Revert "refactor: per-worker resource table (#3306)" · fdf0ede2
      Ryan Dahl 提交于
      This patch does not work with the recent bundler changes (#3325).
      Unfortunately I didn't merge master before landing this patch. It has
      something to do with console.log not working inside the compiler worker.
      
      This reverts commit fd62379e.
      fdf0ede2
    • B
      refactor: per-worker resource table (#3306) · fd62379e
      Bartek Iwańczuk 提交于
      - removes global `RESOURCE_TABLE` - resource tables are now created per `Worker`
        in `State`
      - renames `CliResource` to `StreamResource` and moves all logic related
        to it to `cli/ops/io.rs`
      - removes `cli/resources.rs`
      - adds `state` argument to `op_read` and `op_write` and consequently adds
        `stateful_minimal_op` to `State`
      - IMPORTANT NOTE: workers don't have access to process stdio - this is
        caused by fact that dropping worker would close stdout for process
        (because it's constructed from raw handle, which closes underlying file
        descriptor on drop)
      fd62379e
  22. 08 11月, 2019 1 次提交
  23. 07 11月, 2019 1 次提交
  24. 23 10月, 2019 1 次提交
  25. 22 10月, 2019 1 次提交
  26. 13 10月, 2019 1 次提交
  27. 24 9月, 2019 1 次提交