-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1407 from dckc/vatworker-1299
prototype XS-based VatWorker process refs #1299
- Loading branch information
Showing
29 changed files
with
1,189 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "packages/xs-vat-worker/moddable"] | ||
path = packages/xs-vat-worker/moddable | ||
url = https://github.com/agoric-labs/moddable.git | ||
branch = ag-linux-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/dist/ | ||
/scripts/ | ||
/xs_modules/ | ||
/swingset/ | ||
/moddable/ | ||
build/ | ||
bundle-*.js | ||
test/bug1/ | ||
src-native/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* global module */ | ||
module.exports = { | ||
// parser: "babel-eslint", | ||
extends: ['airbnb-base', 'plugin:prettier/recommended'], | ||
env: { | ||
es6: true, // supports new ES6 globals (e.g., new types such as Set) | ||
}, | ||
globals: { | ||
"harden": "readonly", | ||
"globalThis": "writeable", | ||
}, | ||
rules: { | ||
'implicit-arrow-linebreak': 'off', | ||
'function-paren-newline': 'off', | ||
'arrow-parens': 'off', | ||
strict: 'off', | ||
'prefer-destructuring': 'off', | ||
'no-else-return': 'off', | ||
'no-console': 'off', | ||
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }], | ||
'no-return-assign': 'off', | ||
'no-param-reassign': 'off', | ||
'no-restricted-syntax': ['off', 'ForOfStatement'], | ||
'no-unused-expressions': 'off', | ||
'no-loop-func': 'off', | ||
'import/prefer-default-export': 'off', // contrary to Agoric standard | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.envrc | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Demo | ||
demo | ||
|
||
# scripts | ||
scripts | ||
|
||
# test | ||
test | ||
|
||
# Travis CI | ||
.travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"trailingComma": "all", | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
{ | ||
"main": "packages/xs-vat-worker/", | ||
"compartments": { | ||
"packages/xs-vat-worker/": { | ||
"label": "@agoric/xs-vat-worker@0.1.0", | ||
"location": "packages/xs-vat-worker/", | ||
"contents": [ | ||
"./src/vatWorker.js" | ||
], | ||
"modules": { | ||
"@agoric/import-bundle": { | ||
"compartment": "node_modules/@agoric/import-bundle/", | ||
"module": "./src/index.js" | ||
}, | ||
"@agoric/marshal": { | ||
"compartment": "node_modules/@agoric/marshal/", | ||
"module": "./marshal.js" | ||
}, | ||
"@agoric/swingset-vat/src/kernel/liveSlots": { | ||
"compartment": "node_modules/@agoric/swingset-vat/", | ||
"module": "./src/kernel/liveSlots.js" | ||
} | ||
} | ||
}, | ||
"node_modules/@agoric/import-bundle/": { | ||
"label": "@agoric/import-bundle@0.0.8", | ||
"location": "node_modules/@agoric/import-bundle/", | ||
"contents": [ | ||
"./src/index.js", | ||
"./src/compartment-wrapper.js" | ||
], | ||
"modules": {} | ||
}, | ||
"node_modules/@agoric/marshal/": { | ||
"label": "@agoric/marshal@0.2.3", | ||
"location": "node_modules/@agoric/marshal/", | ||
"contents": [ | ||
"./marshal.js" | ||
], | ||
"modules": { | ||
"@agoric/nat": { | ||
"compartment": "node_modules/@agoric/nat/", | ||
"module": "./dist/nat.esm.js" | ||
}, | ||
"@agoric/promise-kit": { | ||
"compartment": "node_modules/@agoric/promise-kit/", | ||
"module": "./src/promiseKit.js" | ||
} | ||
} | ||
}, | ||
"node_modules/@agoric/swingset-vat/": { | ||
"label": "@agoric/swingset-vat@0.6.0", | ||
"location": "node_modules/@agoric/swingset-vat/", | ||
"contents": [ | ||
"./src/kernel/liveSlots.js", | ||
"./src/parseVatSlots.js", | ||
"./src/capdata.js" | ||
], | ||
"modules": { | ||
"@agoric/marshal": { | ||
"compartment": "node_modules/@agoric/marshal/", | ||
"module": "./marshal.js" | ||
}, | ||
"@agoric/assert": { | ||
"compartment": "node_modules/@agoric/assert/", | ||
"module": "./src/assert.js" | ||
}, | ||
"@agoric/promise-kit": { | ||
"compartment": "node_modules/@agoric/promise-kit/", | ||
"module": "./src/promiseKit.js" | ||
}, | ||
"@agoric/nat": { | ||
"compartment": "node_modules/@agoric/nat/", | ||
"module": "./dist/nat.esm.js" | ||
} | ||
} | ||
}, | ||
"node_modules/@agoric/nat/": { | ||
"label": "@agoric/nat@2.0.1", | ||
"location": "node_modules/@agoric/nat/", | ||
"contents": [ | ||
"./dist/nat.esm.js" | ||
], | ||
"modules": {} | ||
}, | ||
"node_modules/@agoric/promise-kit/": { | ||
"label": "@agoric/promise-kit@0.1.3", | ||
"location": "node_modules/@agoric/promise-kit/", | ||
"contents": [ | ||
"./src/promiseKit.js" | ||
], | ||
"modules": {} | ||
}, | ||
"node_modules/@agoric/assert/": { | ||
"label": "@agoric/assert@0.0.8", | ||
"location": "node_modules/@agoric/assert/", | ||
"contents": [ | ||
"./src/assert.js", | ||
"./src/types.js" | ||
], | ||
"modules": {} | ||
} | ||
}, | ||
"modules": { | ||
"node_modules/0_MKDIR": "$(ROOT)/node_modules/0_MKDIR", | ||
"node_modules/@agoric/0_MKDIR": "$(ROOT)/node_modules/@agoric/0_MKDIR", | ||
"node_modules/@agoric/assert/0_MKDIR": "$(ROOT)/node_modules/@agoric/assert/0_MKDIR", | ||
"node_modules/@agoric/assert/src/assert": "$(ROOT)/node_modules/@agoric/assert/src/assert", | ||
"node_modules/@agoric/assert/src/types": "$(ROOT)/node_modules/@agoric/assert/src/types", | ||
"node_modules/@agoric/import-bundle/0_MKDIR": "$(ROOT)/node_modules/@agoric/import-bundle/0_MKDIR", | ||
"node_modules/@agoric/import-bundle/src/compartment-wrapper": "$(ROOT)/node_modules/@agoric/import-bundle/src/compartment-wrapper", | ||
"node_modules/@agoric/import-bundle/src/index": "$(ROOT)/node_modules/@agoric/import-bundle/src/index", | ||
"node_modules/@agoric/marshal/marshal": "$(ROOT)/node_modules/@agoric/marshal/marshal", | ||
"node_modules/@agoric/nat/0_MKDIR": "$(ROOT)/node_modules/@agoric/nat/0_MKDIR", | ||
"node_modules/@agoric/nat/dist/nat.esm": "$(ROOT)/node_modules/@agoric/nat/dist/nat.esm", | ||
"node_modules/@agoric/promise-kit/0_MKDIR": "$(ROOT)/node_modules/@agoric/promise-kit/0_MKDIR", | ||
"node_modules/@agoric/promise-kit/src/promiseKit": "$(ROOT)/node_modules/@agoric/promise-kit/src/promiseKit", | ||
"node_modules/@agoric/swingset-vat/0_MKDIR": "$(ROOT)/node_modules/@agoric/swingset-vat/0_MKDIR", | ||
"node_modules/@agoric/swingset-vat/src/0_MKDIR": "$(ROOT)/node_modules/@agoric/swingset-vat/src/0_MKDIR", | ||
"node_modules/@agoric/swingset-vat/src/capdata": "$(ROOT)/node_modules/@agoric/swingset-vat/src/capdata", | ||
"node_modules/@agoric/swingset-vat/src/kernel/liveSlots": "$(ROOT)/node_modules/@agoric/swingset-vat/src/kernel/liveSlots", | ||
"node_modules/@agoric/swingset-vat/src/parseVatSlots": "$(ROOT)/node_modules/@agoric/swingset-vat/src/parseVatSlots", | ||
"packages/0_MKDIR": "$(ROOT)/packages/0_MKDIR", | ||
"packages/xs-vat-worker/0_MKDIR": "$(ROOT)/packages/xs-vat-worker/0_MKDIR", | ||
"packages/xs-vat-worker/src/vatWorker": "$(ROOT)/packages/xs-vat-worker/src/vatWorker" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"build": { | ||
"BUILD": "$(MODDABLE)/build", | ||
"MODULES": "$(MODDABLE)/modules" | ||
}, | ||
"creation": { | ||
"keys": { | ||
"available": 4096 | ||
}, | ||
"stack": 4096, | ||
"parser": { | ||
"buffer": 32768 | ||
} | ||
}, | ||
"strip": [], | ||
"modules": { | ||
"@moddable/files": [ | ||
"$(MODULES)/base/instrumentation/*", | ||
"$(MODULES)/files/file/*", | ||
"$(MODULES)/files/file/lin/*" | ||
], | ||
"@moddable/Resource": [ "$(MODULES)/files/resource/Resource" ], | ||
"@moddable/timer": [ | ||
"$(MODULES)/base/timer/timer", | ||
"$(MODULES)/base/timer/lin/*" | ||
], | ||
"@agoric/eventual-send": "../eventual-send/src/index", | ||
|
||
"main": "./start-xs", | ||
"src/console": "./src/console", | ||
"src/harden": "./src/harden", | ||
"src-native/fdchan": [ "./src-native/fdchan" ], | ||
"src/endo-load": "./src/endo-load", | ||
"src/vatWorker": "./src/vatWorker" | ||
}, | ||
"data": { | ||
"compartmap": "./compartmap" | ||
}, | ||
"include": [ "./compartmap.json" ] | ||
} |
Oops, something went wrong.