-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from turbolent/read-shared-limits
Read shared limits
- Loading branch information
Showing
25 changed files
with
167 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.0.h" | ||
|
||
void test() { | ||
shared0Instance instance; | ||
shared0Instantiate(&instance, resolveTestImports); | ||
printStart("shared.0.wasm"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.1.h" | ||
|
||
void test() { | ||
shared1Instance instance; | ||
shared1Instantiate(&instance, resolveTestImports); | ||
printStart("shared.1.wasm"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.2.h" | ||
|
||
void test() { | ||
shared2Instance instance; | ||
shared2Instantiate(&instance, resolveTestImports); | ||
printStart("shared.2.wasm"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.3.h" | ||
|
||
void test() { | ||
shared3Instance instance; | ||
shared3Instantiate(&instance, resolveTestImports); | ||
printStart("shared.3.wasm"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.4.h" | ||
|
||
void test() { | ||
shared4Instance instance; | ||
shared4Instantiate(&instance, resolveTestImports); | ||
printStart("shared.4.wasm"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.5.h" | ||
|
||
void test() { | ||
shared5Instance instance; | ||
shared5Instantiate(&instance, resolveTestImports); | ||
printStart("shared.5.wasm"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.6.h" | ||
|
||
void test() { | ||
shared6Instance instance; | ||
shared6Instantiate(&instance, resolveTestImports); | ||
printStart("shared.6.wasm"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.7.h" | ||
|
||
void test() { | ||
shared7Instance instance; | ||
shared7Instantiate(&instance, resolveTestImports); | ||
printStart("shared.7.wasm"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#include <stdio.h> | ||
#include "w2c2_base.h" | ||
#include "test.h" | ||
#include "test_shared.8.h" | ||
|
||
void test() { | ||
shared8Instance instance; | ||
shared8Instantiate(&instance, resolveTestImports); | ||
printStart("shared.8.wasm"); | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{"source_filename": "shared.wast", | ||
"commands": [ | ||
{"type": "module", "line": 3, "filename": "shared.0.wasm"}, | ||
{"type": "module", "line": 4, "filename": "shared.1.wasm"}, | ||
{"type": "module", "line": 8, "filename": "shared.2.wasm"}, | ||
{"type": "module", "line": 9, "filename": "shared.3.wasm"}, | ||
{"type": "module", "line": 10, "filename": "shared.4.wasm"}, | ||
{"type": "module", "line": 11, "filename": "shared.5.wasm"}, | ||
{"type": "module", "line": 12, "filename": "shared.6.wasm"}, | ||
{"type": "module", "line": 13, "filename": "shared.7.wasm"}, | ||
{"type": "module", "line": 20, "filename": "shared.8.wasm"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
;; proposals/threads/memory.wast | ||
|
||
(module (memory 0 0 shared)) | ||
(module (memory 1 2 shared)) | ||
|
||
;; proposals/threads/exports.wast | ||
|
||
(module (memory (export "a") 0 1 shared)) | ||
(module (memory 0 1 shared) (export "a" (memory 0))) | ||
(module (memory $a (export "a") 0 1 shared)) | ||
(module (memory $a 0 1 shared) (export "a" (memory $a))) | ||
(module (export "a" (memory 0)) (memory 0 1 shared)) | ||
(module (export "a" (memory $a)) (memory $a 0 1 shared)) | ||
|
||
|
||
;; proposals/threads/imports.wast | ||
|
||
;; Shared Memory | ||
|
||
(module (import "spectest" "shared_memory" (memory 1 2 shared))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters