forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite runtime, switch to tracing GC and bootstrap (AssemblyScript#1559
) BREAKING: The exported runtime interface has changed, affecting how external objects are being kept alive. Please refer to the updated documentation on [Garbage collection](https://www.assemblyscript.org/garbage-collection.html) for all the details.
- Loading branch information
Showing
640 changed files
with
545,120 additions
and
251,713 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
dist/ | ||
docs/ | ||
lib/binaryen.js | ||
lib/parse/index.js | ||
out/ | ||
raw/ | ||
|
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 |
---|---|---|
|
@@ -102,6 +102,25 @@ jobs: | |
run: npm test | ||
- name: Test browser build | ||
run: node tests/browser-asc | ||
test-bootstrap: | ||
name: "Compiler (Bootstrap)" | ||
runs-on: ubuntu-latest | ||
needs: check | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: dcodeIO/setup-node-nvm@master | ||
with: | ||
node-version: current | ||
- name: Install dependencies | ||
run: npm ci --no-audit | ||
- name: Clean distribution files | ||
run: npm run clean | ||
- name: Bootstrap the compiler | ||
run: npm run bootstrap | ||
- name: Run compiler tests (untouched-bootstrap) | ||
run: npm run test:compiler -- --wasm out/assemblyscript.untouched-bootstrap.wasm | ||
- name: Run compiler tests (optimized-bootstrap) | ||
run: npm run test:compiler -- --wasm out/assemblyscript.optimized-bootstrap.wasm | ||
test-features: | ||
name: "Features" | ||
runs-on: ubuntu-latest | ||
|
@@ -134,18 +153,18 @@ jobs: | |
run: npm ci --no-audit | ||
- name: Clean distribution files | ||
run: npm run clean | ||
- name: Test full runtime | ||
- name: Test default allocator | ||
run: | | ||
cd tests/allocators/rt-full | ||
cd tests/allocators/default | ||
npm run build | ||
cd .. | ||
npm test rt-full | ||
- name: Test stub runtime | ||
npm test default | ||
- name: Test stub allocator | ||
run: | | ||
cd tests/allocators/rt-stub | ||
cd tests/allocators/stub | ||
npm run build | ||
cd .. | ||
npm test rt-stub | ||
npm test stub | ||
test-loader: | ||
name: "Loader" | ||
runs-on: ubuntu-latest | ||
|
@@ -164,20 +183,3 @@ jobs: | |
cd lib/loader | ||
npm run asbuild | ||
npm run test | ||
test-bootstrap: | ||
name: "Bootstrap" | ||
runs-on: ubuntu-latest | ||
needs: check | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: dcodeIO/setup-node-nvm@master | ||
with: | ||
node-version: current | ||
- name: Install dependencies | ||
run: npm ci --no-audit | ||
- name: Clean distribution files | ||
run: npm run clean | ||
- name: Test self-compilation | ||
run: | | ||
npm run asbuild | ||
npm run astest |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ out/ | |
raw/ | ||
.history | ||
*.backup | ||
.vscode | ||
.vscode | ||
.idea |
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ under the licensing terms detailed in LICENSE: | |
* Gabor Greif <[email protected]> | ||
* Martin Fredriksson <[email protected]> | ||
* forcepusher <[email protected]> | ||
* Piotr Oleś <[email protected]> | ||
|
||
Portions of this software are derived from third-party works licensed under | ||
the following terms: | ||
|
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
Oops, something went wrong.