@@ -222,8 +222,11 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
222222 Operation_is_unsafe = 101 ,
223223 User_defined_0 = 102 ,
224224 Feature_0_is_not_enabled = 103 ,
225- Function_0_is_possibly_called_virtually_which_is_not_yet_supported = 104 ,
226- Low_memory_limit_exceeded_by_static_data_0_1 = 105 ,
225+ Low_memory_limit_exceeded_by_static_data_0_1 = 104 ,
226+ Module_requires_at_least_0_pages_of_initial_memory = 105 ,
227+ Module_requires_at_least_0_pages_of_maximum_memory = 106 ,
228+ Shared_memory_requires_maximum_memory_to_be_defined = 107 ,
229+ Shared_memory_requires_feature_threads_to_be_enabled = 108 ,
227230 Conversion_from_type_0_to_1_requires_an_explicit_cast = 200 ,
228231 Conversion_from_type_0_to_1_will_require_an_explicit_cast_when_switching_between_32_64_bit = 201 ,
229232 Type_0_cannot_be_changed_to_type_1 = 202 ,
@@ -2072,17 +2075,21 @@ declare module "assemblyscript/src/module" {
20722075 DivF32x4 = 159 ,
20732076 MinF32x4 = 160 ,
20742077 MaxF32x4 = 161 ,
2075- AddF64x2 = 162 ,
2076- SubF64x2 = 163 ,
2077- MulF64x2 = 164 ,
2078- DivF64x2 = 165 ,
2079- MinF64x2 = 166 ,
2080- MaxF64x2 = 167 ,
2081- NarrowI16x8ToI8x16 = 168 ,
2082- NarrowU16x8ToU8x16 = 169 ,
2083- NarrowI32x4ToI16x8 = 170 ,
2084- NarrowU32x4ToU16x8 = 171 ,
2085- SwizzleV8x16 = 172
2078+ PminF32x4 = 162 ,
2079+ PmaxF32x4 = 163 ,
2080+ AddF64x2 = 164 ,
2081+ SubF64x2 = 165 ,
2082+ MulF64x2 = 166 ,
2083+ DivF64x2 = 167 ,
2084+ MinF64x2 = 168 ,
2085+ MaxF64x2 = 169 ,
2086+ PminF64x2 = 170 ,
2087+ PmaxF64x2 = 171 ,
2088+ NarrowI16x8ToI8x16 = 172 ,
2089+ NarrowU16x8ToU8x16 = 173 ,
2090+ NarrowI32x4ToI16x8 = 174 ,
2091+ NarrowU32x4ToU16x8 = 175 ,
2092+ SwizzleV8x16 = 176
20862093 }
20872094 export enum HostOp {
20882095 MemorySize = 0 ,
@@ -2284,6 +2291,7 @@ declare module "assemblyscript/src/module" {
22842291 dispose ( ) : void ;
22852292 createRelooper ( ) : number ;
22862293 cloneExpression ( expr : ExpressionRef , noSideEffects ?: boolean , maxDepth ?: number ) : ExpressionRef ;
2294+ copyExpression ( expr : ExpressionRef ) : ExpressionRef ;
22872295 runExpression ( expr : ExpressionRef , flags : ExpressionRunnerFlags , maxDepth ?: number , maxLoopIterations ?: number ) : ExpressionRef ;
22882296 addDebugInfoFile ( name : string ) : Index ;
22892297 getDebugInfoFile ( index : Index ) : string | null ;
@@ -4224,10 +4232,16 @@ declare module "assemblyscript/src/compiler" {
42244232 target : Target ;
42254233 /** If true, replaces assertions with nops. */
42264234 noAssert : boolean ;
4235+ /** It true, exports the memory to the embedder. */
4236+ exportMemory : boolean ;
42274237 /** If true, imports the memory provided by the embedder. */
42284238 importMemory : boolean ;
4229- /** If greater than zero, declare memory as shared by setting max memory to sharedMemory. */
4230- sharedMemory : number ;
4239+ /** Initial memory size, in pages. */
4240+ initialMemory : number ;
4241+ /** Maximum memory size, in pages. */
4242+ maximumMemory : number ;
4243+ /** If true, memory is declared as shared. */
4244+ sharedMemory : boolean ;
42314245 /** If true, imports the function table provided by the embedder. */
42324246 importTable : boolean ;
42334247 /** If true, exports the function table. */
@@ -4293,7 +4307,9 @@ declare module "assemblyscript/src/compiler" {
42934307 /** Requires the built-in globals visitor. */
42944308 visitGlobals = 4 ,
42954309 /** Requires the built-in members visitor. */
4296- visitMembers = 8
4310+ visitMembers = 8 ,
4311+ /** Requires the setArgumentsLength export. */
4312+ setArgumentsLength = 16
42974313 }
42984314 /** Exported names of compiler-generated elements. */
42994315 export namespace ExportNames {
@@ -4696,6 +4712,7 @@ declare module "assemblyscript/src/builtins" {
46964712 import { Compiler } from "assemblyscript/src/compiler" ;
46974713 import { Expression , CallExpression } from "assemblyscript/src/ast" ;
46984714 import { Type } from "assemblyscript/src/types" ;
4715+ import { ExpressionRef } from "assemblyscript/src/module" ;
46994716 import { FunctionPrototype , ClassPrototype } from "assemblyscript/src/program" ;
47004717 /** Internal names of various compiler built-ins. */
47014718 export namespace BuiltinNames {
@@ -4924,6 +4941,8 @@ declare module "assemblyscript/src/builtins" {
49244941 const v128_bitmask = "~lib/builtins/v128.bitmask" ;
49254942 const v128_min = "~lib/builtins/v128.min" ;
49264943 const v128_max = "~lib/builtins/v128.max" ;
4944+ const v128_pmin = "~lib/builtins/v128.pmin" ;
4945+ const v128_pmax = "~lib/builtins/v128.pmax" ;
49274946 const v128_dot = "~lib/builtins/v128.dot" ;
49284947 const v128_avgr = "~lib/builtins/v128.avgr" ;
49294948 const v128_abs = "~lib/builtins/v128.abs" ;
@@ -5087,6 +5106,8 @@ declare module "assemblyscript/src/builtins" {
50875106 const f32x4_neg = "~lib/builtins/f32x4.neg" ;
50885107 const f32x4_min = "~lib/builtins/f32x4.min" ;
50895108 const f32x4_max = "~lib/builtins/f32x4.max" ;
5109+ const f32x4_pmin = "~lib/builtins/f32x4.pmin" ;
5110+ const f32x4_pmax = "~lib/builtins/f32x4.pmax" ;
50905111 const f32x4_abs = "~lib/builtins/f32x4.abs" ;
50915112 const f32x4_sqrt = "~lib/builtins/f32x4.sqrt" ;
50925113 const f32x4_eq = "~lib/builtins/f32x4.eq" ;
@@ -5109,6 +5130,8 @@ declare module "assemblyscript/src/builtins" {
51095130 const f64x2_neg = "~lib/builtins/f64x2.neg" ;
51105131 const f64x2_min = "~lib/builtins/f64x2.min" ;
51115132 const f64x2_max = "~lib/builtins/f64x2.max" ;
5133+ const f64x2_pmin = "~lib/builtins/f64x2.pmin" ;
5134+ const f64x2_pmax = "~lib/builtins/f64x2.pmax" ;
51125135 const f64x2_abs = "~lib/builtins/f64x2.abs" ;
51135136 const f64x2_sqrt = "~lib/builtins/f64x2.sqrt" ;
51145137 const f64x2_eq = "~lib/builtins/f64x2.eq" ;
@@ -5174,7 +5197,7 @@ declare module "assemblyscript/src/builtins" {
51745197 contextIsExact : boolean ;
51755198 }
51765199 /** Global builtins map. */
5177- export const builtins : Map < string , ( ctx : BuiltinContext ) => number > ;
5200+ export const builtins : Map < string , ( ctx : BuiltinContext ) => ExpressionRef > ;
51785201 /** Compiles the `visit_globals` function. */
51795202 export function compileVisitGlobals ( compiler : Compiler ) : void ;
51805203 /** Compiles the `visit_members` function. */
@@ -5395,10 +5418,16 @@ declare module "assemblyscript/src/index" {
53955418 export function setTarget ( options : Options , target : Target ) : void ;
53965419 /** Sets the `noAssert` option. */
53975420 export function setNoAssert ( options : Options , noAssert : boolean ) : void ;
5421+ /** Sets the `exportMemory` option. */
5422+ export function setExportMemory ( options : Options , exportMemory : boolean ) : void ;
53985423 /** Sets the `importMemory` option. */
53995424 export function setImportMemory ( options : Options , importMemory : boolean ) : void ;
5425+ /** Sets the `initialMemory` option. */
5426+ export function setInitialMemory ( options : Options , initialMemory : number ) : void ;
5427+ /** Sets the `maximumMemory` option. */
5428+ export function setMaximumMemory ( options : Options , maximumMemory : number ) : void ;
54005429 /** Sets the `sharedMemory` option. */
5401- export function setSharedMemory ( options : Options , sharedMemory : number ) : void ;
5430+ export function setSharedMemory ( options : Options , sharedMemory : boolean ) : void ;
54025431 /** Sets the `importTable` option. */
54035432 export function setImportTable ( options : Options , importTable : boolean ) : void ;
54045433 /** Sets the `exportTable` option. */
@@ -5481,8 +5510,6 @@ declare module "assemblyscript/src/index" {
54815510 export function buildIDL ( program : Program ) : string ;
54825511 /** Builds TypeScript definitions for the specified program. */
54835512 export function buildTSD ( program : Program ) : string ;
5484- /** Builds a JSON file of a program's runtime type information. */
5485- export function buildRTTI ( program : Program ) : string ;
54865513 export * from "assemblyscript/src/ast" ;
54875514 export * from "assemblyscript/src/common" ;
54885515 export * from "assemblyscript/src/compiler" ;
0 commit comments