1. 24 11月, 2019 1 次提交
  2. 23 11月, 2019 2 次提交
    • B
      remove tokio_util::block_on (#3388) · c6bb3d5a
      Bartek Iwańczuk 提交于
      This PR removes tokio_util::block_on - refactored compiler and file 
      fetcher slightly so that we can safely block there - that's because 
      only blocking path consist of only synchronous operations.
      
      Additionally I removed excessive use of tokio_util::panic_on_error 
      and tokio_util::run_in_task and moved both functions to cli/worker.rs, 
      to tests module.
      
      Closes #2960
      c6bb3d5a
    • B
      minor clean ups in TS compiler (#3394) · 363b968b
      Bartek Iwańczuk 提交于
      363b968b
  3. 20 11月, 2019 1 次提交
  4. 17 11月, 2019 2 次提交
    • B
      refactor: fixes for futures (#3363) · f356b2bd
      Bartek Iwańczuk 提交于
      After landing #3358 the benchmarks exploded indicating problems with workers and deno_core_http_bench.
      
      This PR dramatically fixes thread/syscall count that showed up on benchmarks. Thread count is not back to previous levels but difference went from hundreds/thousands to about ~50.
      f356b2bd
    • B
      Use futures 0.3 API (#3358) · 8f9a942c
      Bartek Iwańczuk 提交于
      8f9a942c
  5. 10 11月, 2019 1 次提交
  6. 08 11月, 2019 1 次提交
  7. 07 11月, 2019 1 次提交
    • R
      Remove CoreResource::inspect_repr method (#3274) · 5c1deac0
      Ry Dahl 提交于
      Towards simplifying (or better removing entirely) the CoreResource
      trait. Resources should be any bit of privileged heap allocated memory
      that needs to be referenced from JS, not very specific trait
      implementations. Therefore CoreResource should be pushed towards being
      as general as possible.
      5c1deac0
  8. 04 11月, 2019 1 次提交
    • B
      Refactor Worker and ThreadSafeState (#3242) · 0049d4e5
      Bartek Iwańczuk 提交于
      * Split ThreadSafeState into State and GlobalState. State is a "local"
        state belonging to "Worker" while "GlobalState" is state shared by
        whole program.
      * Update "Worker" and ops to use "GlobalState" where applicable
      * Move and refactor "WorkerChannels" resource
      0049d4e5
  9. 29 10月, 2019 1 次提交
  10. 20 10月, 2019 1 次提交
  11. 15 10月, 2019 1 次提交
  12. 13 10月, 2019 1 次提交
  13. 12 10月, 2019 1 次提交
  14. 07 10月, 2019 1 次提交
  15. 02 10月, 2019 2 次提交
  16. 20 9月, 2019 1 次提交
  17. 05 9月, 2019 1 次提交
  18. 22 8月, 2019 1 次提交
    • R
      Organize dispatch a bit (#2796) · bdc97b39
      Ryan Dahl 提交于
      Just some clean up reorganization around flatbuffer/minimal dispatch
      code. This is prep for adding a JSON dispatcher.
      bdc97b39
  19. 10 8月, 2019 1 次提交
  20. 09 8月, 2019 1 次提交
  21. 08 8月, 2019 1 次提交
    • R
      Add op_id throughout op API (#2734) · e438ac2c
      Ryan Dahl 提交于
      Removes the magic number hack to switch between flatbuffers and the
      minimal dispatcher.
      
      Adds machinery to pass the op_id through the shared_queue.
      e438ac2c
  22. 05 8月, 2019 1 次提交
  23. 01 8月, 2019 1 次提交
  24. 31 7月, 2019 1 次提交
  25. 18 7月, 2019 1 次提交
    • B
      Refactor DenoDir (#2636) · 8214b686
      Bartek Iwańczuk 提交于
      * rename `ModuleMetaData` to `SourceFile` and remove TS specific
        functionality
      
      * add `TsCompiler` struct encapsulating processing of TypeScript files
      
      * move `SourceMapGetter` trait implementation to `//cli/compiler.rs`
      
      * add low-level `DiskCache` API for general purpose caches and use it in
        `DenoDir` and `TsCompiler` for filesystem access
      
      * don't use hash-like filenames for compiled modules, instead use
        metadata file for storing compilation hash
      
      * add `SourceFileCache` for in-process caching of loaded files for fast
        subsequent access
      
      * define `SourceFileFetcher` trait encapsulating loading of local and
        remote files and implement it for `DenoDir`
      
      * define `use_cache` and `no_fetch` flags on `DenoDir` instead of using
        in fetch methods
      8214b686
  26. 12 7月, 2019 1 次提交
  27. 08 7月, 2019 1 次提交
    • B
      core: clearly define when module lookup is path-based vs URL-based · 9b1997b8
      Bert Belder 提交于
      The rules are now as follows:
      
      * In `import` statements, as mandated by the WHATWG specification,
        the import specifier is always treated as a URL.
        If it is a relative URL, it must start with either / or ./ or ../
      
      * A script name passed to deno as a command line argument may be either
        an absolute URL or a local path.
        - If the name starts with a valid URI scheme followed by a colon, e.g.
          'http:', 'https:', 'file:', 'foo+bar:', it always interpreted as a
          URL (even if Deno doesn't support the indicated protocol).
        - Otherwise, the script name is interpreted as a local path. The local
          path may be relative, and operating system semantics determine how
          it is resolved. Prefixing a relative path with ./ is not required.
      9b1997b8
  28. 20 6月, 2019 1 次提交
  29. 13 6月, 2019 3 次提交
  30. 12 6月, 2019 2 次提交
  31. 09 6月, 2019 1 次提交
  32. 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
  33. 04 6月, 2019 1 次提交
  34. 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