Logo
Explore Help
Sign In
fluencelabs/assemblyscript
1
0
Fork 0
You've already forked assemblyscript
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-05-10 14:18:01 +00:00
Code Issues Projects Releases Wiki Activity
assemblyscript/tests/compiler/std/gc-array.ts

25 lines
333 B
TypeScript
Raw Normal View History

Rework static memory segment creation; Fix stdlib gc hooks not marking own fields; Align everything to 8 bytes that might be touched by GC
2018-08-04 00:36:59 +02:00
import "allocator/arena";
import "collector/itcm";
class Foo {
}
var arr: Foo[] = [];
gc.collect(); // should do nothing
arr[0] = {};
gc.collect(); // should do nothing
arr[1] = {};
gc.collect(); // should do nothing
arr[0] = {};
gc.collect(); // should collect the old one
Rework resolver (#489) * Rework IR and resolver to use nested lookup tables * Integrate types into IR * Make components prefer IR, slimmed down AST * Implement `export *` * Add `@lazy` annotation and remove `--noTreeShaking` * Add `@start` annotation and remove magic `main` * Related refactoring, cleanup and docs
2019-02-21 00:11:22 +01:00
@start
Rework static memory segment creation; Fix stdlib gc hooks not marking own fields; Align everything to 8 bytes that might be touched by GC
2018-08-04 00:36:59 +02:00
export function main(): i32 { return 0; }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 778ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API