Skip to content

Commit 829cbbb

Browse files
committedJan 29, 2020
Nightly v0.9.0-nightly.20200129
1 parent fa05a90 commit 829cbbb

File tree

6 files changed

+41
-10
lines changed

6 files changed

+41
-10
lines changed
 

‎dist/asc.js

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

‎dist/asc.js.map

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

‎dist/assemblyscript.d.ts

+28-3
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
240240
Type_0_is_cyclic_Module_will_include_deferred_garbage_collection = 900,
241241
Importing_the_table_disables_some_indirect_call_optimizations = 901,
242242
Exporting_the_table_disables_some_indirect_call_optimizations = 902,
243+
Expression_compiles_to_a_dynamic_check_at_runtime = 903,
244+
Indexed_access_may_involve_bounds_checking = 904,
243245
Unterminated_string_literal = 1002,
244246
Identifier_expected = 1003,
245247
_0_expected = 1005,
@@ -578,12 +580,14 @@ declare module "assemblyscript/src/diagnostics" {
578580
export { DiagnosticCode, diagnosticCodeToString } from "assemblyscript/src/diagnosticMessages.generated";
579581
/** Indicates the category of a {@link DiagnosticMessage}. */
580582
export enum DiagnosticCategory {
583+
/** Overly pedantic message. */
584+
PEDANTIC = 0,
581585
/** Informatory message. */
582-
INFO = 0,
586+
INFO = 1,
583587
/** Warning message. */
584-
WARNING = 1,
588+
WARNING = 2,
585589
/** Error message. */
586-
ERROR = 2
590+
ERROR = 3
587591
}
588592
/** Returns the string representation of the specified diagnostic category. */
589593
export function diagnosticCategoryToString(category: DiagnosticCategory): string;
@@ -593,6 +597,8 @@ declare module "assemblyscript/src/diagnostics" {
593597
export const COLOR_YELLOW: string;
594598
/** ANSI escape sequence for red foreground. */
595599
export const COLOR_RED: string;
600+
/** ANSI escape sequence for magenta foreground. */
601+
export const COLOR_MAGENTA: string;
596602
/** ANSI escape sequence to reset the foreground color. */
597603
export const COLOR_RESET: string;
598604
/** Returns the ANSI escape sequence for the specified category. */
@@ -634,6 +640,10 @@ declare module "assemblyscript/src/diagnostics" {
634640
protected constructor(diagnostics?: DiagnosticMessage[] | null);
635641
/** Emits a diagnostic message of the specified category. */
636642
emitDiagnostic(code: DiagnosticCode, category: DiagnosticCategory, range: Range | null, relatedRange: Range | null, arg0?: string | null, arg1?: string | null, arg2?: string | null): void;
643+
/** Emits an overly pedantic diagnostic message. */
644+
pedantic(code: DiagnosticCode, range: Range | null, arg0?: string | null, arg1?: string | null, arg2?: string | null): void;
645+
/** Emits an overly pedantic diagnostic message with a related range. */
646+
pedanticRelated(code: DiagnosticCode, range: Range, relatedRange: Range, arg0?: string | null, arg1?: string | null, arg2?: string | null): void;
637647
/** Emits an informatory diagnostic message. */
638648
info(code: DiagnosticCode, range: Range | null, arg0?: string | null, arg1?: string | null, arg2?: string | null): void;
639649
/** Emits an informatory diagnostic message with a related range. */
@@ -2322,6 +2332,21 @@ declare module "assemblyscript/src/module" {
23222332
addBranchForSwitch(from: number, to: number, indexes: number[], code?: ExpressionRef): void;
23232333
renderAndDispose(entry: number, labelHelper: Index): ExpressionRef;
23242334
}
2335+
export enum SideEffects {
2336+
None = 0,
2337+
Branches = 1,
2338+
Calls = 2,
2339+
ReadsLocal = 4,
2340+
WritesLocal = 8,
2341+
ReadsGlobal = 16,
2342+
WritesGlobal = 32,
2343+
ReadsMemory = 64,
2344+
WritesMemory = 128,
2345+
ImplicitTrap = 256,
2346+
IsAtomic = 512,
2347+
Any = 1023
2348+
}
2349+
export function getSideEffects(expr: ExpressionRef): SideEffects;
23252350
export function hasSideEffects(expr: ExpressionRef): boolean;
23262351
export function readString(ptr: number): string | null;
23272352
/** Result structure of {@link Module#toBinary}. */

‎dist/assemblyscript.js

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

‎dist/assemblyscript.js.map

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

‎dist/sdk.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
const BINARYEN_VERSION = "90.0.0-nightly.20200111";
1+
const BINARYEN_VERSION = "90.0.0-nightly.20200128";
2+
const LONG_VERSION = "4.0.0";
23
const ASSEMBLYSCRIPT_VERSION = "0.9.0";
34

45
// AMD/require.js (browser)
56
if (typeof define === "function" && define.amd) {
67
const paths = {
78
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@" + BINARYEN_VERSION + "/index",
9+
"long": "https://cdn.jsdelivr.net/npm/long@" + LONG_VERSION + "/dist/long",
810
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@" + ASSEMBLYSCRIPT_VERSION + "/dist/assemblyscript",
911
"assemblyscript/cli/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@" + ASSEMBLYSCRIPT_VERSION + "/dist/asc",
1012
};
1113
require.config({ paths });
12-
define(Object.keys(paths), (binaryen, assemblyscript, asc) => ({
14+
define(Object.keys(paths), (binaryen, long, assemblyscript, asc) => ({
1315
BINARYEN_VERSION,
16+
LONG_VERSION,
1417
ASSEMBLYSCRIPT_VERSION,
1518
binaryen,
19+
long,
1620
assemblyscript,
1721
asc
1822
}));
@@ -21,8 +25,10 @@ if (typeof define === "function" && define.amd) {
2125
} else if (typeof module === "object" && module.exports) {
2226
module.exports = {
2327
BINARYEN_VERSION,
28+
LONG_VERSION,
2429
ASSEMBLYSCRIPT_VERSION,
2530
binaryen: require("binaryen"),
31+
long: require("long"),
2632
assemblyscript: require("assemblyscript"),
2733
asc: require("assemblyscript/cli/asc")
2834
};

0 commit comments

Comments
 (0)