Commit 7143b85faac4283ee86e42bb48dba742e17af7d6
move wasm container to seprate module
Signed-off-by: wanderer <mjbecze@gmail.com>wanderer committed on 3/30/2018, 6:35:34 PM
Parent: a560c11794c6a4a7ea60a385f2aba1532a51d0af
Files changed
tests/typeChecking.js | deleted |
tests/wasm/caller.wasm | deleted |
tests/wasm/counter.wasm | deleted |
tests/wasm/elem.wasm | deleted |
tests/wasm/empty.wasm | deleted |
tests/wasm/funcRef_caller.wasm | deleted |
tests/wasm/funcRef_reciever.wasm | deleted |
tests/wasm/globals.wasm | deleted |
tests/wasm/memory.wasm | deleted |
tests/wasm/private_caller.wasm | deleted |
tests/wasm/reciever.wasm | deleted |
tests/wasm/table.wasm | deleted |
tests/wasmContainer.js | deleted |
tests/wast/caller.json | deleted |
tests/wast/caller.wast | deleted |
tests/wast/elem.wast | deleted |
tests/wast/funcRef_caller.json | deleted |
tests/wast/funcRef_caller.wast | deleted |
tests/wast/funcRef_reciever.json | deleted |
tests/wast/funcRef_reciever.wast | deleted |
tests/wast/globals.json | deleted |
tests/wast/globals.wast | deleted |
tests/wast/memory.wast | deleted |
tests/wast/private_caller.json | deleted |
tests/wast/private_caller.wasm | deleted |
tests/wast/private_caller.wast | deleted |
tests/wast/reciever.wast | deleted |
tests/wast/table.wast | deleted |
tests/wast2wasm.js | deleted |
injectGlobals.js | deleted |
typeCheckWrapper.js | deleted |
tests/typeChecking.js | ||
---|---|---|
@@ -1,33 +1,0 @@ | ||
1 | -const customTypes = require('../customTypes.js') | |
2 | -const WasmContainer = require('../wasmContainer.js') | |
3 | -const fs = require('fs') | |
4 | - | |
5 | -async function main () { | |
6 | - let callerJSON = JSON.parse(fs.readFileSync('./wast/caller.json')) | |
7 | - let callerWasm = fs.readFileSync('./wasm/caller.wasm') | |
8 | - callerWasm = customTypes.inject(callerWasm, callerJSON) | |
9 | - | |
10 | - let recieverJSON = JSON.parse(fs.readFileSync('./wast/reciever.json')) | |
11 | - let recieverWasm = fs.readFileSync('./wasm/reciever.wasm') | |
12 | - recieverWasm = customTypes.inject(recieverWasm, recieverJSON) | |
13 | - | |
14 | - const callerContainer = new WasmContainer() | |
15 | - callerContainer.onCreation(callerWasm) | |
16 | - callerJSON = callerContainer.json | |
17 | - | |
18 | - const recieverContainer = new WasmContainer() | |
19 | - recieverContainer.onCreation(recieverWasm) | |
20 | - recieverJSON = recieverContainer.json | |
21 | - | |
22 | - const callFuncRef = callerContainer.getFuncRef('call') | |
23 | - | |
24 | - const funcRef = recieverContainer.getFuncRef('receive') | |
25 | - callFuncRef.args.push({ | |
26 | - type: 'funcRef', | |
27 | - arg: funcRef | |
28 | - }) | |
29 | - | |
30 | - callerContainer.onMessage(callFuncRef) | |
31 | -} | |
32 | - | |
33 | -main() |
tests/wasm/caller.wasm | ||
---|---|---|
@@ -1,3 +1,0 @@ | ||
1 | - asm types`n typeMap | |
2 | -` ` funcinternalize ptable call | |
3 | - A A A |
tests/wasm/empty.wasm | ||
---|---|---|
@@ -1,1 +1,0 @@ | ||
1 | - asm ���� p ���� ���� ���� memory |
tests/wasm/funcRef_caller.wasm | ||
---|---|---|
@@ -1,2 +1,0 @@ | ||
1 | - asm types`n typeMap ` ` `` Tfuncinternalize testcheck moduleself moduleexport memoryexternalize p $memory table call callback | |
2 | -" A AA A A A callback |
tests/wasm/funcRef_reciever.wasm | ||
---|---|---|
@@ -1,3 +1,0 @@ | ||
1 | - asm types`n typeMap | |
2 | -` ` *funcinternalize funcset_gas_budget ptable receive | |
3 | - A�� A AA |
tests/wasm/globals.wasm | ||
---|---|---|
@@ -1,4 +1,0 @@ | ||
1 | - asm persist m`` ` +memoryexternalize memoryinternalize A~A~memory load store | |
2 | - | |
3 | - A A $ # A AA | |
4 | - A test |
tests/wasm/memory.wasm | ||
---|---|---|
@@ -1,3 +1,0 @@ | ||
1 | - asm `` ` +memoryexternalize memoryinternalize memory test | |
2 | - A A A AA | |
3 | - A test |