Skip to content

Commit 35aabeb

Browse files
committed
Nightly v0.9.2-nightly.20200227
1 parent a6ab446 commit 35aabeb

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

dist/asc.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/asc.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assemblyscript.d.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ declare module "assemblyscript/src/common" {
164164
const Anyref = "Anyref";
165165
const String = "String";
166166
const Array = "Array";
167-
const FixedArray = "FixedArray";
167+
const StaticArray = "StaticArray";
168168
const Set = "Set";
169169
const Map = "Map";
170170
const ArrayBufferView = "ArrayBufferView";
@@ -195,6 +195,7 @@ declare module "assemblyscript/src/common" {
195195
const typeinfo = "__typeinfo";
196196
const instanceof_ = "__instanceof";
197197
const visit = "__visit";
198+
const allocBuffer = "__allocBuffer";
198199
const allocArray = "__allocArray";
199200
}
200201
export { Feature, featureToString } from "assemblyscript/std/assembly/shared/feature";
@@ -1013,7 +1014,7 @@ declare module "assemblyscript/src/ast" {
10131014
static createFieldDeclaration(name: IdentifierExpression, type: TypeNode | null, initializer: Expression | null, decorators: DecoratorNode[] | null, flags: CommonFlags, range: Range): FieldDeclaration;
10141015
static createForStatement(initializer: Statement | null, condition: Expression | null, incrementor: Expression | null, statement: Statement, range: Range): ForStatement;
10151016
static createFunctionDeclaration(name: IdentifierExpression, typeParameters: TypeParameterNode[] | null, signature: FunctionTypeNode, body: Statement | null, decorators: DecoratorNode[] | null, flags: CommonFlags, arrowKind: ArrowKind, range: Range): FunctionDeclaration;
1016-
static createIndexSignatureDeclaration(keyType: NamedTypeNode, valueType: TypeNode, range: Range): IndexSignatureDeclaration;
1017+
static createIndexSignatureDeclaration(keyType: NamedTypeNode, valueType: TypeNode, flags: CommonFlags, range: Range): IndexSignatureDeclaration;
10171018
static createMethodDeclaration(name: IdentifierExpression, typeParameters: TypeParameterNode[] | null, signature: FunctionTypeNode, body: Statement | null, decorators: DecoratorNode[] | null, flags: CommonFlags, range: Range): MethodDeclaration;
10181019
static createNamespaceDeclaration(name: IdentifierExpression, members: Statement[], decorators: DecoratorNode[] | null, flags: CommonFlags, range: Range): NamespaceDeclaration;
10191020
static createReturnStatement(value: Expression | null, range: Range): ReturnStatement;
@@ -1186,7 +1187,8 @@ declare module "assemblyscript/src/ast" {
11861187
export enum AssertionKind {
11871188
PREFIX = 0,
11881189
AS = 1,
1189-
NONNULL = 2
1190+
NONNULL = 2,
1191+
CONST = 3
11901192
}
11911193
/** Represents an assertion expression. */
11921194
export class AssertionExpression extends Expression {
@@ -3071,7 +3073,7 @@ declare module "assemblyscript/src/parser" {
30713073
parseClassOrInterface(tn: Tokenizer, flags: CommonFlags, decorators: DecoratorNode[] | null, startPos: number): ClassDeclaration | null;
30723074
parseClassExpression(tn: Tokenizer): ClassExpression | null;
30733075
parseClassMember(tn: Tokenizer, parent: ClassDeclaration): DeclarationStatement | null;
3074-
parseIndexSignatureDeclaration(tn: Tokenizer, decorators: DecoratorNode[] | null): IndexSignatureDeclaration | null;
3076+
parseIndexSignatureDeclaration(tn: Tokenizer, flags: CommonFlags, decorators: DecoratorNode[] | null): IndexSignatureDeclaration | null;
30753077
parseNamespace(tn: Tokenizer, flags: CommonFlags, decorators: DecoratorNode[] | null, startPos: number): NamespaceDeclaration | null;
30763078
parseExport(tn: Tokenizer, startPos: number, isDeclare: boolean): ExportStatement | null;
30773079
parseExportMember(tn: Tokenizer): ExportMember | null;
@@ -3225,12 +3227,12 @@ declare module "assemblyscript/src/program" {
32253227
arrayBufferInstance: Class;
32263228
/** Array prototype reference. */
32273229
arrayPrototype: ClassPrototype;
3230+
/** Static array prototype reference. */
3231+
staticArrayPrototype: ClassPrototype;
32283232
/** Set prototype reference. */
32293233
setPrototype: ClassPrototype;
32303234
/** Map prototype reference. */
32313235
mapPrototype: ClassPrototype;
3232-
/** Fixed array prototype reference. */
3233-
fixedArrayPrototype: ClassPrototype;
32343236
/** Int8Array prototype. */
32353237
i8ArrayPrototype: ClassPrototype;
32363238
/** Int16Array prototype. */
@@ -3275,6 +3277,8 @@ declare module "assemblyscript/src/program" {
32753277
typeinfoInstance: Function;
32763278
/** RT `__instanceof(ptr: usize, superId: u32): bool` */
32773279
instanceofInstance: Function;
3280+
/** RT `__allocBuffer(size: usize, id: u32, data: usize = 0): usize` */
3281+
allocBufferInstance: Function;
32783282
/** RT `__allocArray(length: i32, alignLog2: usize, id: u32, data: usize = 0): usize` */
32793283
allocArrayInstance: Function;
32803284
/** Next class id. */
@@ -3290,7 +3294,7 @@ declare module "assemblyscript/src/program" {
32903294
/** Obtains the source matching the specified internal path. */
32913295
getSource(internalPath: string): string | null;
32923296
/** Writes a common runtime header to the specified buffer. */
3293-
writeRuntimeHeader(buffer: Uint8Array, offset: number, classInstance: Class, payloadSize: number): void;
3297+
writeRuntimeHeader(buffer: Uint8Array, offset: number, id: number, payloadSize: number): void;
32943298
/** Gets the size of a runtime header. */
32953299
get runtimeHeaderSize(): number;
32963300
/** Creates a native variable declaration. */
@@ -4248,7 +4252,7 @@ declare module "assemblyscript/src/compiler" {
42484252
/** Ensures that a string exists in static memory and returns a pointer to it. Deduplicates. */
42494253
ensureStaticString(stringValue: string): ExpressionRef;
42504254
/** Adds a buffer to static memory and returns the created segment. */
4251-
private addStaticBuffer;
4255+
addStaticBuffer(elementType: Type, values: ExpressionRef[], id?: number): MemorySegment;
42524256
/** Adds an array header to static memory and returns the created segment. */
42534257
private addStaticArrayHeader;
42544258
/** Ensures that a table entry exists for the specified function and returns its index. */
@@ -4443,6 +4447,8 @@ declare module "assemblyscript/src/compiler" {
44434447
private compileLiteralExpression;
44444448
private compileStringLiteral;
44454449
private compileArrayLiteral;
4450+
/** Compiles a special `fixed` array literal. */
4451+
private compileStaticArrayLiteral;
44464452
private compileObjectLiteral;
44474453
private compileNewExpression;
44484454
/** Gets the compiled constructor of the specified class or generates one if none is present. */

dist/assemblyscript.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assemblyscript.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)