Add shared memory support to compiler (#494)

This commit is contained in:
Nidin Vinayakan
2019-02-21 00:22:25 +01:00
committed by Daniel Wirtz
parent 0c64f21250
commit 951b6f9f45
4 changed files with 16 additions and 2 deletions

View File

@ -421,6 +421,7 @@ exports.main = function main(argv, options, callback) {
assemblyscript.setTarget(compilerOptions, 0);
assemblyscript.setNoAssert(compilerOptions, args.noAssert);
assemblyscript.setImportMemory(compilerOptions, args.importMemory);
assemblyscript.setSharedMemory(compilerOptions, args.sharedMemory);
assemblyscript.setImportTable(compilerOptions, args.importTable);
assemblyscript.setMemoryBase(compilerOptions, args.memoryBase >>> 0);
assemblyscript.setSourceMap(compilerOptions, args.sourceMap != null);

View File

@ -101,6 +101,11 @@
"type": "b",
"default": false
},
"sharedMemory": {
"description": "Declare memory as shared by settings the max shared memory.",
"type": "i",
"default": 0
},
"memoryBase": {
"description": "Sets the start offset of compiler-generated static memory.",
"type": "i",