diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-05-20 12:06:57 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-29 07:53:39 -0400 |
| commit | 856c44213b7faf507d4b481cfc170b2fd08f971a (patch) | |
| tree | b2971883b0aeb43437a9be0076b4ffacde55d5b8 /cli/msg.fbs | |
| parent | 64d2b7bc90cf6fdba661d6d3fe243fe332c076ee (diff) | |
TS compiler refactor
* 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.
Diffstat (limited to 'cli/msg.fbs')
| -rw-r--r-- | cli/msg.fbs | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/cli/msg.fbs b/cli/msg.fbs index 08e58351c..7f2db381f 100644 --- a/cli/msg.fbs +++ b/cli/msg.fbs @@ -1,12 +1,13 @@ union Any { Accept, + Cache, Chdir, Chmod, Chown, Close, - CompilerConfig, - CompilerConfigRes, CopyFile, + CreateWorker, + CreateWorkerRes, Cwd, CwdRes, Dial, @@ -23,6 +24,10 @@ union Any { GlobalTimer, GlobalTimerRes, GlobalTimerStop, + HostGetMessage, + HostGetMessageRes, + HostGetWorkerClosed, + HostPostMessage, IsTTY, IsTTYRes, Kill, @@ -70,12 +75,6 @@ union Any { Symlink, Truncate, Utime, - CreateWorker, - CreateWorkerRes, - HostGetWorkerClosed, - HostGetMessage, - HostGetMessageRes, - HostPostMessage, WorkerGetMessage, WorkerGetMessageRes, WorkerPostMessage, @@ -180,15 +179,6 @@ table StartRes { xeval_delim: string; } -table CompilerConfig { - compiler_type: string; -} - -table CompilerConfigRes { - path: string; - data: [ubyte]; -} - table FormatError { error: string; } @@ -246,7 +236,7 @@ table FetchModuleMetaData { table FetchModuleMetaDataRes { // If it's a non-http module, moduleName and filename will be the same. - // For http modules, moduleName is its resolved http URL, and filename + // For http modules, module_name is its resolved http URL, and filename // is the location of the locally downloaded source code. module_name: string; filename: string; @@ -254,6 +244,12 @@ table FetchModuleMetaDataRes { data: [ubyte]; } +table Cache { + extension: string; + module_id: string; + contents: string; +} + table Chdir { directory: string; } |
