mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 14:31:28 +00:00
Load/store constant offset utility
This commit is contained in:
@ -273,7 +273,7 @@ function gc_scan_fn(control: Control, header: ObjectHeader | null): void {
|
||||
} else {
|
||||
// visit all referenced objects using the compiler's knowledge of this
|
||||
// object's layout
|
||||
var classId = load<u32>(changetype<usize>(header) + ObjectHeader.SIZE);
|
||||
var classId = load<u32>(changetype<usize>(header), ObjectHeader.SIZE);
|
||||
// switch (classId) {
|
||||
// arrays
|
||||
// strings
|
||||
|
Reference in New Issue
Block a user