aboutsummaryrefslogtreecommitdiff
path: root/JS.md
diff options
context:
space:
mode:
authortitzer <titzer@google.com>2016-10-11 17:47:02 +0200
committerGitHub <noreply@github.com>2016-10-11 17:47:02 +0200
commite49fc18b684c953e3d920dcfc4bfce8ede9268dd (patch)
treedb3843485e77013c763c4dbf27de9ab3711e371b /JS.md
parentacfa2e2f6e02bb4f9c46a03882b72fb43e410eca (diff)
downloadnanowasm-design-e49fc18b684c953e3d920dcfc4bfce8ede9268dd.tar.gz
Structured stack (#813)
* Rename AstSemantics.md to Semantics.md * Rewrite Semantics for structured stack machine * Update control instructions * Update nop * More tweaks * Update README.md * Update Semantics.md * Update Semantics.md * Address @rossberg-chromium comments
Diffstat (limited to 'JS.md')
-rw-r--r--JS.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/JS.md b/JS.md
index a08d9f5..4e5d84c 100644
--- a/JS.md
+++ b/JS.md
@@ -15,7 +15,7 @@ as defined below and will be removed at some point in the future.*
## Traps
-Whenever WebAssembly semantics specify a [trap](AstSemantics.md#traps),
+Whenever WebAssembly semantics specify a [trap](Semantics.md#traps),
a `WebAssembly.RuntimeError` object is thrown. WebAssembly code (currently)
has no way to catch this exception and thus the exception will necessarily
propagate to the enclosing non-WebAssembly caller (either the browser or
@@ -342,7 +342,7 @@ call one with the `new` operator.
## `WebAssembly.Memory` Objects
-A `WebAssembly.Memory` object contains a single [linear memory](AstSemantics.md#linear-memory)
+A `WebAssembly.Memory` object contains a single [linear memory](Semantics.md#linear-memory)
which can be simultaneously referenced by multiple `Instance` objects. Each
`Memory` object has two internal slots:
* [[Memory]] : a [`Memory.memory`](https://github.com/WebAssembly/spec/blob/master/ml-proto/spec/memory.mli)
@@ -405,7 +405,7 @@ is thrown.
Let `d` be [`ToNonWrappingUint32`](#tononwrappinguint32)(`delta`).
Let `ret` be the result of performing a
-[`grow_memory`](AstSemantics.md#resizing) operation given delta `d`.
+[`grow_memory`](Semantics.md#resizing) operation given delta `d`.
If `ret` is `-1`, a `WebAssembly.RuntimeError` is thrown.
@@ -429,7 +429,7 @@ is thrown. Otherwise return `M.[[BufferObject]]`.
## `WebAssembly.Table` Objects
-A `WebAssembly.Table` object contains a single [table](AstSemantics.md#table)
+A `WebAssembly.Table` object contains a single [table](Semantics.md#table)
which can be simultaneously referenced by multiple `Instance` objects. Each
`Table` object has two internal slots:
* [[Table]] : a [`Table.table`](https://github.com/WebAssembly/spec/blob/master/ml-proto/spec/table.mli)