1. 10 8月, 2019 1 次提交
  2. 09 8月, 2019 1 次提交
  3. 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
  4. 05 8月, 2019 1 次提交
  5. 01 8月, 2019 1 次提交
  6. 31 7月, 2019 1 次提交
  7. 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
  8. 12 7月, 2019 1 次提交
  9. 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
  10. 20 6月, 2019 1 次提交
  11. 13 6月, 2019 3 次提交
  12. 12 6月, 2019 2 次提交
  13. 09 6月, 2019 1 次提交
  14. 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
  15. 04 6月, 2019 1 次提交
  16. 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
  17. 11 5月, 2019 1 次提交
  18. 03 5月, 2019 1 次提交
  19. 24 4月, 2019 1 次提交
  20. 21 4月, 2019 1 次提交
  21. 19 4月, 2019 1 次提交
  22. 17 4月, 2019 2 次提交
  23. 15 4月, 2019 1 次提交
  24. 13 4月, 2019 1 次提交
  25. 11 4月, 2019 1 次提交
  26. 10 4月, 2019 1 次提交
  27. 09 4月, 2019 1 次提交
  28. 08 4月, 2019 1 次提交
    • R
      core: snapshot improvements (#2052) · f7fdb90f
      Ryan Dahl 提交于
      * Moves how snapshots are supplied to the Isolate. Previously they were
        given by Behavior::startup_data() but it was only called once at
        startup. It makes more sense (and simplifies Behavior) to pass it to the
        constructor of Isolate.
      * Adds new libdeno type deno_snapshot instead of overloading
        deno_buf.
      * Adds new libdeno method to delete snapshot deno_snapshot_delete().
      * Renames deno_get_snapshot() to deno_snapshot_new().
      * Makes StartupData hold references to snapshots. This was implicit when
        it previously held a deno_buf but is made explicit now. Note that
        include_bytes!() returns a &'static [u8] and we want to avoid
        copying that.
      f7fdb90f
  29. 07 4月, 2019 1 次提交
  30. 05 4月, 2019 1 次提交
  31. 04 4月, 2019 1 次提交
  32. 02 4月, 2019 2 次提交
  33. 31 3月, 2019 1 次提交
  34. 29 3月, 2019 1 次提交
  35. 28 3月, 2019 1 次提交