mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 14:31:28 +00:00
Update binary expression inference, see #35; Update dependencies
This commit is contained in:
@ -214,18 +214,22 @@ class Control {
|
||||
* garbage for the next cycle.
|
||||
*/
|
||||
collect(): void {
|
||||
if (this.state == IDLE)
|
||||
if (this.state == IDLE) {
|
||||
this.step();
|
||||
while (this.state != IDLE)
|
||||
}
|
||||
while (this.state != IDLE) {
|
||||
this.step();
|
||||
}
|
||||
}
|
||||
|
||||
/** Informs the GC of a referred object during the mark phase. */
|
||||
visit(obj: ObjectHeader): void {
|
||||
if (this.state == SWEEP)
|
||||
if (this.state == SWEEP) {
|
||||
return;
|
||||
if (obj.color == this.white)
|
||||
}
|
||||
if (obj.color == this.white) {
|
||||
this.makeGray(obj);
|
||||
}
|
||||
}
|
||||
|
||||
makeGray(obj: ObjectHeader): void {
|
||||
|
Reference in New Issue
Block a user