mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 18:26:40 +00:00
directize more (eliminate table use)
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
import { HASH } from "./util/hash";
|
||||
import { __runtime_id } from "./runtime";
|
||||
import { __gc_mark_members } from "./gc";
|
||||
|
||||
// A deterministic hash set based on CloseTable from https://github.com/jorendorff/dht
|
||||
|
||||
@ -212,11 +213,11 @@ export class Set<K> {
|
||||
if (isNullable<K>()) {
|
||||
if (val) {
|
||||
__ref_mark(val);
|
||||
call_direct(__runtime_id<K>(), val);
|
||||
__gc_mark_members(__runtime_id<K>(), val);
|
||||
}
|
||||
} else {
|
||||
__ref_mark(val);
|
||||
call_direct(__runtime_id<K>(), val);
|
||||
__gc_mark_members(__runtime_id<K>(), val);
|
||||
}
|
||||
}
|
||||
cur += ENTRY_SIZE<K>();
|
||||
|
Reference in New Issue
Block a user