summaryrefslogtreecommitdiff
path: root/msg.proto
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-17 09:47:09 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-17 21:19:49 -0400
commit05672b7e240f8568c1f58eb074623aede20f13d1 (patch)
treed639abc21b20ac1ac59ecb65b681a2cdbe5a8784 /msg.proto
parent6f9c919f410c7d97f99515ea99c8dcc434d5d26d (diff)
runtime.ts - first pass at caching compiler
Diffstat (limited to 'msg.proto')
-rw-r--r--msg.proto24
1 files changed, 18 insertions, 6 deletions
diff --git a/msg.proto b/msg.proto
index 55ee93a30..fbedf9752 100644
--- a/msg.proto
+++ b/msg.proto
@@ -7,13 +7,18 @@ message Msg {
READ_FILE_SYNC = 1;
DATA_RESPONSE = 2;
EXIT = 3;
- COMPILE_OUTPUT = 4;
+
+ SOURCE_CODE_FETCH = 4;
+ SOURCE_CODE_FETCH_RES = 5;
+ SOURCE_CODE_CACHE = 6;
}
MsgKind kind = 10;
oneof payload {
StartMsg start = 90;
- CompileOutputMsg compile_output = 100;
+ SourceCodeFetchMsg source_code_fetch = 91;
+ SourceCodeFetchResMsg source_code_fetch_res = 92;
+ SourceCodeCacheMsg source_code_cache = 93;
}
// READ_FILE_SYNC and MKDIRP
@@ -33,8 +38,15 @@ message StartMsg {
repeated string argv = 2;
}
-// WRITE_COMPILE_OUTPUT
-message CompileOutputMsg {
- string source = 1;
- string filename = 2;
+message SourceCodeFetchMsg { string filename = 1; }
+
+message SourceCodeFetchResMsg {
+ string source_code = 1;
+ string output_code = 2;
+}
+
+message SourceCodeCacheMsg {
+ string filename = 1;
+ string source_code = 2;
+ string output_code = 3;
}