all: add WebAssembly backend

This commit is contained in:
Ayke van Laethem
2018-10-18 15:15:29 +02:00
parent a51e04c550
commit e5e09747f0
15 changed files with 199 additions and 17 deletions
+7
View File
@@ -2,6 +2,10 @@
package runtime
import (
"unsafe"
)
const GOARCH = "wasm"
// The length type used inside strings and slices.
@@ -9,3 +13,6 @@ type lenType uint32
// The bitness of the CPU (e.g. 8, 32, 64).
const TargetBits = 32
//go:extern __heap_base
var heapStart unsafe.Pointer