Skip to content

Commit aeb3e58

Browse files
committed
Release v0.9.2
1 parent 5149a2d commit aeb3e58

File tree

6 files changed

+23
-10
lines changed

6 files changed

+23
-10
lines changed

Diff for: dist/asc.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/asc.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/assemblyscript.d.ts

+17-4
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ declare module "assemblyscript/src/ast" {
10481048
name: TypeName;
10491049
/** Type argument references. */
10501050
typeArguments: TypeNode[] | null;
1051+
get hasTypeArguments(): boolean;
10511052
}
10521053
/** Represents a function type. */
10531054
export class FunctionTypeNode extends TypeNode {
@@ -2247,6 +2248,12 @@ declare module "assemblyscript/src/module" {
22472248
getPassArgument(key: string): string | null;
22482249
setPassArgument(key: string, value: string | null): void;
22492250
clearPassArguments(): void;
2251+
getAlwaysInlineMaxSize(): Index;
2252+
setAlwaysInlineMaxSize(size: Index): void;
2253+
getFlexibleInlineMaxSize(): Index;
2254+
setFlexibleInlineMaxSize(size: Index): void;
2255+
getOneCallerInlineMaxSize(): Index;
2256+
setOneCallerInlineMaxSize(size: Index): void;
22502257
getFeatures(): FeatureFlags;
22512258
setFeatures(featureFlags: FeatureFlags): void;
22522259
optimize(func?: FunctionRef): void;
@@ -4062,7 +4069,7 @@ declare module "assemblyscript/src/compiler" {
40624069
import { DiagnosticEmitter } from "assemblyscript/src/diagnostics";
40634070
import { Module, MemorySegment, ExpressionRef, NativeType, GlobalRef } from "assemblyscript/src/module";
40644071
import { Feature, Target } from "assemblyscript/src/common";
4065-
import { Program, Class, Element, Enum, Field, Function, Global, Property, VariableLikeElement, File } from "assemblyscript/src/program";
4072+
import { Program, ClassPrototype, Class, Element, Enum, Field, Function, Global, Property, VariableLikeElement, File } from "assemblyscript/src/program";
40664073
import { Flow } from "assemblyscript/src/flow";
40674074
import { Resolver } from "assemblyscript/src/resolver";
40684075
import { Node, Range, Statement, Expression } from "assemblyscript/src/ast";
@@ -4191,6 +4198,8 @@ declare module "assemblyscript/src/compiler" {
41914198
inlineStack: Function[];
41924199
/** Lazily compiled library functions. */
41934200
lazyLibraryFunctions: Set<Function>;
4201+
/** Pending class-specific instanceof helpers. */
4202+
pendingClassInstanceOf: Set<ClassPrototype>;
41944203
/** Compiles a {@link Program} to a {@link Module} using the specified options. */
41954204
static compile(program: Program): Module;
41964205
/** Constructs a new compiler for a {@link Program} using the specified options. */
@@ -4349,10 +4358,10 @@ declare module "assemblyscript/src/compiler" {
43494358
makeRelease(expr: ExpressionRef): ExpressionRef;
43504359
/** Makes a replace, retaining the new expression's value and releasing the old expression's value, in this order. */
43514360
makeReplace(
4352-
/** Old value being replaced. */
4353-
oldExpr: ExpressionRef,
43544361
/** New value being assigned. */
43554362
newExpr: ExpressionRef,
4363+
/** Old value being replaced. */
4364+
oldExpr: ExpressionRef,
43564365
/** Whether the new value is already retained. */
43574366
alreadyRetained?: boolean): ExpressionRef;
43584367
/** Makes an autorelease call at the end of the specified `flow`. */
@@ -4429,6 +4438,8 @@ declare module "assemblyscript/src/compiler" {
44294438
private maybeCompileEnclosingSource;
44304439
private compileIdentifierExpression;
44314440
private compileInstanceOfExpression;
4441+
private makeInstanceofType;
4442+
private makeInstanceofClass;
44324443
private compileLiteralExpression;
44334444
private compileStringLiteral;
44344445
private compileArrayLiteral;
@@ -4505,7 +4516,7 @@ declare module "assemblyscript/src/builtins" {
45054516
import { Expression, CallExpression } from "assemblyscript/src/ast";
45064517
import { Type } from "assemblyscript/src/types";
45074518
import { ExpressionRef } from "assemblyscript/src/module";
4508-
import { FunctionPrototype } from "assemblyscript/src/program";
4519+
import { FunctionPrototype, ClassPrototype } from "assemblyscript/src/program";
45094520
/** Internal names of various compiler built-ins. */
45104521
export namespace BuiltinNames {
45114522
const start = "~start";
@@ -4971,6 +4982,8 @@ declare module "assemblyscript/src/builtins" {
49714982
export function compileVisitMembers(compiler: Compiler): void;
49724983
/** Compiles runtime type information for use by stdlib. */
49734984
export function compileRTTI(compiler: Compiler): void;
4985+
/** Compiles a class-specific instanceof helper, checking a ref against all concrete instances. */
4986+
export function compileClassInstanceOf(compiler: Compiler, prototype: ClassPrototype): void;
49744987
}
49754988
declare module "assemblyscript/src/definitions" {
49764989
/**

Diff for: dist/assemblyscript.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/assemblyscript.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/sdk.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const BINARYEN_VERSION = "90.0.0-nightly.20200208";
1+
const BINARYEN_VERSION = "90.0.0-nightly.20200214";
22
const LONG_VERSION = "4.0.0";
3-
const ASSEMBLYSCRIPT_VERSION = "0.9.1";
3+
const ASSEMBLYSCRIPT_VERSION = "0.9.2";
44

55
// AMD/require.js (browser)
66
if (typeof define === "function" && define.amd) {

0 commit comments

Comments
 (0)