summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-06-27 14:24:21 -0700
committerGitHub <noreply@github.com>2017-06-27 14:24:21 -0700
commit21e08eeef1ccc489cd06495e4370e1dffccfe088 (patch)
treecf10711c6eb26acf378da8cdcc4d7e961ef582bf /test
parentbf37733de319b5e0f0b6b0205c1745c5214fea1e (diff)
downloadbinaryen-21e08eeef1ccc489cd06495e4370e1dffccfe088.tar.gz
binaryen-21e08eeef1ccc489cd06495e4370e1dffccfe088.tar.bz2
binaryen-21e08eeef1ccc489cd06495e4370e1dffccfe088.zip
Add shared memories (#1069)
Begin to implement wasm threading proposal in https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md This PR just has shared memory attribute with wast and binary support.
Diffstat (limited to 'test')
-rw-r--r--test/memory-shared.wast4
-rw-r--r--test/memory-shared.wast.from-wast3
-rw-r--r--test/memory-shared.wast.fromBinary4
-rw-r--r--test/memory-shared.wast.fromBinary.noDebugInfo4
-rw-r--r--test/print/memory-import-shared.minified.txt1
-rw-r--r--test/print/memory-import-shared.txt3
-rw-r--r--test/print/memory-import-shared.wast3
-rw-r--r--test/print/memory-notshared.minified.txt2
-rw-r--r--test/print/memory-notshared.txt3
-rw-r--r--test/print/memory-notshared.wast3
-rw-r--r--test/print/memory-shared.minified.txt2
-rw-r--r--test/print/memory-shared.txt3
-rw-r--r--test/print/memory-shared.wast3
13 files changed, 38 insertions, 0 deletions
diff --git a/test/memory-shared.wast b/test/memory-shared.wast
new file mode 100644
index 000000000..b16e00d99
--- /dev/null
+++ b/test/memory-shared.wast
@@ -0,0 +1,4 @@
+(module
+ (memory $0 23 256 shared)
+)
+
diff --git a/test/memory-shared.wast.from-wast b/test/memory-shared.wast.from-wast
new file mode 100644
index 000000000..daff79f22
--- /dev/null
+++ b/test/memory-shared.wast.from-wast
@@ -0,0 +1,3 @@
+(module
+ (memory $0 23 256 shared)
+)
diff --git a/test/memory-shared.wast.fromBinary b/test/memory-shared.wast.fromBinary
new file mode 100644
index 000000000..b16e00d99
--- /dev/null
+++ b/test/memory-shared.wast.fromBinary
@@ -0,0 +1,4 @@
+(module
+ (memory $0 23 256 shared)
+)
+
diff --git a/test/memory-shared.wast.fromBinary.noDebugInfo b/test/memory-shared.wast.fromBinary.noDebugInfo
new file mode 100644
index 000000000..b16e00d99
--- /dev/null
+++ b/test/memory-shared.wast.fromBinary.noDebugInfo
@@ -0,0 +1,4 @@
+(module
+ (memory $0 23 256 shared)
+)
+
diff --git a/test/print/memory-import-shared.minified.txt b/test/print/memory-import-shared.minified.txt
new file mode 100644
index 000000000..56d11ab17
--- /dev/null
+++ b/test/print/memory-import-shared.minified.txt
@@ -0,0 +1 @@
+(module(import "env" "memory" (memory $0 256 shared))) \ No newline at end of file
diff --git a/test/print/memory-import-shared.txt b/test/print/memory-import-shared.txt
new file mode 100644
index 000000000..7bbb11ab1
--- /dev/null
+++ b/test/print/memory-import-shared.txt
@@ -0,0 +1,3 @@
+(module
+ (import "env" "memory" (memory $0 256 shared))
+)
diff --git a/test/print/memory-import-shared.wast b/test/print/memory-import-shared.wast
new file mode 100644
index 000000000..7bbb11ab1
--- /dev/null
+++ b/test/print/memory-import-shared.wast
@@ -0,0 +1,3 @@
+(module
+ (import "env" "memory" (memory $0 256 shared))
+)
diff --git a/test/print/memory-notshared.minified.txt b/test/print/memory-notshared.minified.txt
new file mode 100644
index 000000000..905aff3d5
--- /dev/null
+++ b/test/print/memory-notshared.minified.txt
@@ -0,0 +1,2 @@
+(module(memory $0 23 256)
+) \ No newline at end of file
diff --git a/test/print/memory-notshared.txt b/test/print/memory-notshared.txt
new file mode 100644
index 000000000..604a6b1ce
--- /dev/null
+++ b/test/print/memory-notshared.txt
@@ -0,0 +1,3 @@
+(module
+ (memory $0 23 256)
+)
diff --git a/test/print/memory-notshared.wast b/test/print/memory-notshared.wast
new file mode 100644
index 000000000..4a7b8449a
--- /dev/null
+++ b/test/print/memory-notshared.wast
@@ -0,0 +1,3 @@
+(module
+ (memory $0 23 256 notshared)
+)
diff --git a/test/print/memory-shared.minified.txt b/test/print/memory-shared.minified.txt
new file mode 100644
index 000000000..3f07a0080
--- /dev/null
+++ b/test/print/memory-shared.minified.txt
@@ -0,0 +1,2 @@
+(module(memory $0 23 256 shared)
+) \ No newline at end of file
diff --git a/test/print/memory-shared.txt b/test/print/memory-shared.txt
new file mode 100644
index 000000000..daff79f22
--- /dev/null
+++ b/test/print/memory-shared.txt
@@ -0,0 +1,3 @@
+(module
+ (memory $0 23 256 shared)
+)
diff --git a/test/print/memory-shared.wast b/test/print/memory-shared.wast
new file mode 100644
index 000000000..daff79f22
--- /dev/null
+++ b/test/print/memory-shared.wast
@@ -0,0 +1,3 @@
+(module
+ (memory $0 23 256 shared)
+)