mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-24 22:52:13 +00:00
Replace more .wast references with .wat
This commit is contained in:
parent
de1c4b3da5
commit
77e49bbd95
4
dist/asc.js
vendored
4
dist/asc.js
vendored
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@ An [AssemblyScript](http://assemblyscript.org) example. Continuously updates the
|
||||
Instructions
|
||||
------------
|
||||
|
||||
To build [assembly/game-of-life.ts](./assembly/game-of-life.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
|
||||
To build [assembly/game-of-life.ts](./assembly/game-of-life.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
|
||||
|
||||
```
|
||||
$> npm run build
|
||||
|
@ -119,7 +119,7 @@ API
|
||||
Building
|
||||
--------
|
||||
|
||||
To build [assembly/i64.ts](./assembly/i64.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
|
||||
To build [assembly/i64.ts](./assembly/i64.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
|
||||
|
||||
```
|
||||
$> npm run build
|
||||
|
@ -6,7 +6,7 @@ An [AssemblyScript](http://assemblyscript.org) example. Decodes a [PSON](https:/
|
||||
Instructions
|
||||
------------
|
||||
|
||||
To build [assembly/pson.ts](./assembly/pson.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
|
||||
To build [assembly/pson.ts](./assembly/pson.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
|
||||
|
||||
```
|
||||
$> npm run build
|
||||
|
@ -6,7 +6,7 @@ A port of [Bach Le's μgc garbage collector library](https://github.com/bullno1/
|
||||
Instructions
|
||||
------------
|
||||
|
||||
To build [assembly/ugc.ts](./assembly/ugc.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
|
||||
To build [assembly/ugc.ts](./assembly/ugc.ts) to an untouched and an optimized `.wasm` including their respective `.wat` representations, run:
|
||||
|
||||
```
|
||||
$> npm run build
|
||||
|
@ -22,7 +22,7 @@ function compile() {
|
||||
path.basename(this.resourcePath),
|
||||
"--baseDir", path.dirname(this.resourcePath),
|
||||
"--binaryFile", basePath + ".wasm",
|
||||
"--textFile", basePath + ".wast",
|
||||
"--textFile", basePath + ".wat",
|
||||
"--validate",
|
||||
"--optimize"
|
||||
];
|
||||
|
18
tests/binaryen/asmjs.wat
Normal file
18
tests/binaryen/asmjs.wat
Normal file
@ -0,0 +1,18 @@
|
||||
(module
|
||||
(type $i (func (param i32) (result i32)))
|
||||
(memory $0 0)
|
||||
(export "test/switch/case/eval" (func $test/switch/case/eval))
|
||||
(import "env" "switch" (func $switch (param i32 i32 i32 i32)))
|
||||
(global $HEAP_BASE i32 (i32.const 4))
|
||||
(global $FLT i32 (f32.const -4.0))
|
||||
(global $DBL i32 (f64.const -4.0))
|
||||
(func $test/switch/case/eval (; 0 ;) (type $i) (param $0 i32) (result i32)
|
||||
(if (result i32)
|
||||
(i32.eqz
|
||||
(get_global $HEAP_BASE)
|
||||
)
|
||||
(i32.const 0)
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user