@@ -3107,21 +3107,21 @@ declare module "assemblyscript/src/program" {
31073107 abortInstance : Function | null ;
31083108 /** RT `__alloc(size: usize, id: u32): usize` */
31093109 allocInstance : Function ;
3110- /** RT `__realloc(ref : usize, newSize: usize): usize` */
3110+ /** RT `__realloc(ptr : usize, newSize: usize): usize` */
31113111 reallocInstance : Function ;
3112- /** RT `__free(ref : usize): void` */
3112+ /** RT `__free(ptr : usize): void` */
31133113 freeInstance : Function ;
3114- /** RT `__retain(ref : usize): usize` */
3114+ /** RT `__retain(ptr : usize): usize` */
31153115 retainInstance : Function ;
3116- /** RT `__release(ref : usize): void` */
3116+ /** RT `__release(ptr : usize): void` */
31173117 releaseInstance : Function ;
31183118 /** RT `__collect(): void` */
31193119 collectInstance : Function ;
3120- /** RT `__visit(ref : usize, cookie: u32): void` */
3120+ /** RT `__visit(ptr : usize, cookie: u32): void` */
31213121 visitInstance : Function ;
31223122 /** RT `__typeinfo(id: u32): RTTIFlags` */
31233123 typeinfoInstance : Function ;
3124- /** RT `__instanceof(ref : usize, superId: u32): bool` */
3124+ /** RT `__instanceof(ptr : usize, superId: u32): bool` */
31253125 instanceofInstance : Function ;
31263126 /** RT `__allocArray(length: i32, alignLog2: usize, id: u32, data: usize = 0): usize` */
31273127 allocArrayInstance : Function ;
@@ -4162,12 +4162,10 @@ declare module "assemblyscript/src/compiler" {
41624162 private ensureArgcSet ;
41634163 /** Makes retain call, retaining the expression's value. */
41644164 makeRetain ( expr : ExpressionRef ) : ExpressionRef ;
4165- /** Makes a retainRelease call, retaining the new expression's value and releasing the old expression's value, in this order. */
4166- makeRetainRelease ( oldExpr : ExpressionRef , newExpr : ExpressionRef ) : ExpressionRef ;
4167- /** Makes a skippedRelease call, ignoring the new expression's value and releasing the old expression's value, in this order. */
4168- makeSkippedRelease ( oldExpr : ExpressionRef , newExpr : ExpressionRef ) : ExpressionRef ;
41694165 /** Makes a release call, releasing the expression's value. Changes the current type to void.*/
41704166 makeRelease ( expr : ExpressionRef ) : ExpressionRef ;
4167+ /** Makes a replace, retaining the new expression's value and releasing the old expression's value, in this order. */
4168+ makeReplace ( oldExpr : ExpressionRef , newExpr : ExpressionRef , alreadyRetained ?: boolean ) : ExpressionRef ;
41714169 /** Makes an automatic release call at the end of the current flow. */
41724170 makeAutorelease ( expr : ExpressionRef , flow ?: Flow ) : ExpressionRef ;
41734171 /** Attempts to undo a final autorelease, returning the index of the previously retaining variable or -1 if not possible. */
0 commit comments