git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit b9423af2cd45a86722df9ab973b4db265a8fcaa3

move annotation tool to annotation repo

wanderer committed on 3/21/2018, 11:45:31 PM
Parent: 158d5b428af69e19901680edef92ece0a876a97c

Files changed

tools/injectTypesdeleted
tools/testTypeInfo.jsondeleted
tools/injectTypesView
@@ -1,15 +1,0 @@
1-#!/usr/bin/env node
2-const fs = require('fs')
3-const types = require('../customTypes')
4-
5-const typeinfoFile = process.argv[2]
6-const inputWasmFile = process.argv[3]
7-const outputWasmFile = process.argv[4]
8-
9-const typeinfo = JSON.parse(fs.readFileSync(typeinfoFile))
10-const inputWasm = fs.readFileSync(inputWasmFile)
11-
12-const buf = types.encodeJSON(typeinfo)
13-const outputWasm = types.injectCustomSection(buf, inputWasm)
14-
15-fs.writeFileSync(outputWasmFile, outputWasm)
tools/testTypeInfo.jsonView
@@ -1,17 +1,0 @@
1-{
2- "globals": [3, 5, 6],
3- "type": [{
4- "form": "func",
5- "params": [
6- "i32",
7- "func",
8- "i64",
9- "actor",
10- "buf"
11- ]
12- }],
13- "typeMap": [{
14- "func": 0,
15- "type": 0
16- }]
17-}

Built with git-ssb-web