aboutsummaryrefslogtreecommitdiff
path: root/AstSemantics.md
diff options
context:
space:
mode:
authorDouglas Crosher <info@jsstats.com>2016-03-10 13:59:05 +1100
committerDouglas Crosher <info@jsstats.com>2016-03-10 13:59:05 +1100
commit87f88940cc49efeea6df618ed237f42730e30dc3 (patch)
tree90e98d7420391f79c9c5f9eb963395f955ade28b /AstSemantics.md
parente6021f003b1dd5b1d37f4dfe4d7d97e8c60dbba7 (diff)
downloadnanowasm-design-87f88940cc49efeea6df618ed237f42730e30dc3.tar.gz
Change the argument to grow memory to be in units of pages.
Diffstat (limited to 'AstSemantics.md')
-rw-r--r--AstSemantics.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/AstSemantics.md b/AstSemantics.md
index 540cd3e..cb73c63 100644
--- a/AstSemantics.md
+++ b/AstSemantics.md
@@ -200,13 +200,13 @@ Out of bounds accesses trap.
### Resizing
-In the MVP, linear memory can be resized by a `grow_memory` operator. This
-operator requires its operand to be a multiple of the WebAssembly page size,
+In the MVP, linear memory can be resized by a `grow_memory` operator. The
+operand to this operator is in units of the WebAssembly page size,
which is 64KiB on all engines (though large page support may be added in
the [future](FutureFeatures.md#large-page-support)).
- * `grow_memory` : grow linear memory by a given unsigned delta which
- must be a multiple of the page size. Return the previous memory size.
+ * `grow_memory` : grow linear memory by a given unsigned delta of pages.
+ Return the previous memory size in bytes.
As stated [above](AstSemantics.md#linear-memory), linear memory is contiguous,
meaning there are no "holes" in the linear address space. After the