Rename memory instructions; Rework constant handling

This commit is contained in:
dcodeIO
2018-07-18 23:49:32 +02:00
parent 34e8facfdc
commit a1b75b69b7
170 changed files with 26392 additions and 5185 deletions

View File

@ -0,0 +1,15 @@
class A {}
class B {
static readonly c: B = changetype<B>(8);
static d: A = changetype<A>(16);
}
B.c;
B.d;
var no_ref: usize = 64;
var a_ref: A | null = changetype<A>(24);
var b_ref: B = changetype<B>(32);
var i: i32 = 0;
__gc_iterate_roots((ref: usize): void => { assert(<u32>ref == ++i << 3); });
assert(i == 4);