@@ -222,8 +222,11 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
222
222
Operation_is_unsafe = 101 ,
223
223
User_defined_0 = 102 ,
224
224
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 ,
227
230
Conversion_from_type_0_to_1_requires_an_explicit_cast = 200 ,
228
231
Conversion_from_type_0_to_1_will_require_an_explicit_cast_when_switching_between_32_64_bit = 201 ,
229
232
Type_0_cannot_be_changed_to_type_1 = 202 ,
@@ -2072,17 +2075,21 @@ declare module "assemblyscript/src/module" {
2072
2075
DivF32x4 = 159 ,
2073
2076
MinF32x4 = 160 ,
2074
2077
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
2086
2093
}
2087
2094
export enum HostOp {
2088
2095
MemorySize = 0 ,
@@ -2284,6 +2291,7 @@ declare module "assemblyscript/src/module" {
2284
2291
dispose ( ) : void ;
2285
2292
createRelooper ( ) : number ;
2286
2293
cloneExpression ( expr : ExpressionRef , noSideEffects ?: boolean , maxDepth ?: number ) : ExpressionRef ;
2294
+ copyExpression ( expr : ExpressionRef ) : ExpressionRef ;
2287
2295
runExpression ( expr : ExpressionRef , flags : ExpressionRunnerFlags , maxDepth ?: number , maxLoopIterations ?: number ) : ExpressionRef ;
2288
2296
addDebugInfoFile ( name : string ) : Index ;
2289
2297
getDebugInfoFile ( index : Index ) : string | null ;
@@ -4224,10 +4232,16 @@ declare module "assemblyscript/src/compiler" {
4224
4232
target : Target ;
4225
4233
/** If true, replaces assertions with nops. */
4226
4234
noAssert : boolean ;
4235
+ /** It true, exports the memory to the embedder. */
4236
+ exportMemory : boolean ;
4227
4237
/** If true, imports the memory provided by the embedder. */
4228
4238
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 ;
4231
4245
/** If true, imports the function table provided by the embedder. */
4232
4246
importTable : boolean ;
4233
4247
/** If true, exports the function table. */
@@ -4293,7 +4307,9 @@ declare module "assemblyscript/src/compiler" {
4293
4307
/** Requires the built-in globals visitor. */
4294
4308
visitGlobals = 4 ,
4295
4309
/** Requires the built-in members visitor. */
4296
- visitMembers = 8
4310
+ visitMembers = 8 ,
4311
+ /** Requires the setArgumentsLength export. */
4312
+ setArgumentsLength = 16
4297
4313
}
4298
4314
/** Exported names of compiler-generated elements. */
4299
4315
export namespace ExportNames {
@@ -4696,6 +4712,7 @@ declare module "assemblyscript/src/builtins" {
4696
4712
import { Compiler } from "assemblyscript/src/compiler" ;
4697
4713
import { Expression , CallExpression } from "assemblyscript/src/ast" ;
4698
4714
import { Type } from "assemblyscript/src/types" ;
4715
+ import { ExpressionRef } from "assemblyscript/src/module" ;
4699
4716
import { FunctionPrototype , ClassPrototype } from "assemblyscript/src/program" ;
4700
4717
/** Internal names of various compiler built-ins. */
4701
4718
export namespace BuiltinNames {
@@ -4924,6 +4941,8 @@ declare module "assemblyscript/src/builtins" {
4924
4941
const v128_bitmask = "~lib/builtins/v128.bitmask" ;
4925
4942
const v128_min = "~lib/builtins/v128.min" ;
4926
4943
const v128_max = "~lib/builtins/v128.max" ;
4944
+ const v128_pmin = "~lib/builtins/v128.pmin" ;
4945
+ const v128_pmax = "~lib/builtins/v128.pmax" ;
4927
4946
const v128_dot = "~lib/builtins/v128.dot" ;
4928
4947
const v128_avgr = "~lib/builtins/v128.avgr" ;
4929
4948
const v128_abs = "~lib/builtins/v128.abs" ;
@@ -5087,6 +5106,8 @@ declare module "assemblyscript/src/builtins" {
5087
5106
const f32x4_neg = "~lib/builtins/f32x4.neg" ;
5088
5107
const f32x4_min = "~lib/builtins/f32x4.min" ;
5089
5108
const f32x4_max = "~lib/builtins/f32x4.max" ;
5109
+ const f32x4_pmin = "~lib/builtins/f32x4.pmin" ;
5110
+ const f32x4_pmax = "~lib/builtins/f32x4.pmax" ;
5090
5111
const f32x4_abs = "~lib/builtins/f32x4.abs" ;
5091
5112
const f32x4_sqrt = "~lib/builtins/f32x4.sqrt" ;
5092
5113
const f32x4_eq = "~lib/builtins/f32x4.eq" ;
@@ -5109,6 +5130,8 @@ declare module "assemblyscript/src/builtins" {
5109
5130
const f64x2_neg = "~lib/builtins/f64x2.neg" ;
5110
5131
const f64x2_min = "~lib/builtins/f64x2.min" ;
5111
5132
const f64x2_max = "~lib/builtins/f64x2.max" ;
5133
+ const f64x2_pmin = "~lib/builtins/f64x2.pmin" ;
5134
+ const f64x2_pmax = "~lib/builtins/f64x2.pmax" ;
5112
5135
const f64x2_abs = "~lib/builtins/f64x2.abs" ;
5113
5136
const f64x2_sqrt = "~lib/builtins/f64x2.sqrt" ;
5114
5137
const f64x2_eq = "~lib/builtins/f64x2.eq" ;
@@ -5174,7 +5197,7 @@ declare module "assemblyscript/src/builtins" {
5174
5197
contextIsExact : boolean ;
5175
5198
}
5176
5199
/** Global builtins map. */
5177
- export const builtins : Map < string , ( ctx : BuiltinContext ) => number > ;
5200
+ export const builtins : Map < string , ( ctx : BuiltinContext ) => ExpressionRef > ;
5178
5201
/** Compiles the `visit_globals` function. */
5179
5202
export function compileVisitGlobals ( compiler : Compiler ) : void ;
5180
5203
/** Compiles the `visit_members` function. */
@@ -5395,10 +5418,16 @@ declare module "assemblyscript/src/index" {
5395
5418
export function setTarget ( options : Options , target : Target ) : void ;
5396
5419
/** Sets the `noAssert` option. */
5397
5420
export function setNoAssert ( options : Options , noAssert : boolean ) : void ;
5421
+ /** Sets the `exportMemory` option. */
5422
+ export function setExportMemory ( options : Options , exportMemory : boolean ) : void ;
5398
5423
/** Sets the `importMemory` option. */
5399
5424
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 ;
5400
5429
/** Sets the `sharedMemory` option. */
5401
- export function setSharedMemory ( options : Options , sharedMemory : number ) : void ;
5430
+ export function setSharedMemory ( options : Options , sharedMemory : boolean ) : void ;
5402
5431
/** Sets the `importTable` option. */
5403
5432
export function setImportTable ( options : Options , importTable : boolean ) : void ;
5404
5433
/** Sets the `exportTable` option. */
@@ -5481,8 +5510,6 @@ declare module "assemblyscript/src/index" {
5481
5510
export function buildIDL ( program : Program ) : string ;
5482
5511
/** Builds TypeScript definitions for the specified program. */
5483
5512
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 ;
5486
5513
export * from "assemblyscript/src/ast" ;
5487
5514
export * from "assemblyscript/src/common" ;
5488
5515
export * from "assemblyscript/src/compiler" ;
0 commit comments