binaryen
Advanced tools
Comparing version 42.0.0-nightly.20180201 to 42.0.0-nightly.20180202
@@ -313,2 +313,7 @@ declare module binaryen { | ||
interface BinaryWithSourceMap { | ||
binary: Uint8Array; | ||
sourceMap: string | null; | ||
} | ||
class Module { | ||
@@ -337,2 +342,3 @@ | ||
emitBinary(): Uint8Array; | ||
emitBinary(sourceMapUrl: string | null): BinaryWithSourceMap; | ||
emitText(): string; | ||
@@ -347,2 +353,5 @@ emitAsmjs(): string; | ||
interpret(): void; | ||
addDebugInfoFileName(filename: string): number; | ||
getDebugInfoFileName(index: number): string | null; | ||
setDebugLocation(func: Function, expr: Expression, fileIndex: number, lineNumber: number, columnNumber: number): void; | ||
dispose(): void; | ||
@@ -349,0 +358,0 @@ |
{ | ||
"name": "binaryen", | ||
"version": "42.0.0-nightly.20180201", | ||
"version": "42.0.0-nightly.20180202", | ||
"lockfileVersion": 1, | ||
@@ -5,0 +5,0 @@ "requires": true, |
{ | ||
"name": "binaryen", | ||
"description": "JavaScript version of Binaryen, a compiler infrastructure and toolchain library for WebAssembly.", | ||
"version": "42.0.0-nightly.20180201", | ||
"version": "42.0.0-nightly.20180202", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -20,3 +20,2 @@ binaryen.js | ||
- [Module creation](#module-creation) | ||
- [Module debugging](#module-debugging) | ||
- [Expression construction](#expression-construction) | ||
@@ -37,2 +36,4 @@ - [Control flow](#control-flow) | ||
- [Relooper](#relooper) | ||
- [Source maps](#source-maps) | ||
- [Debugging](#debugging) | ||
- [Building](#building) | ||
@@ -276,2 +277,8 @@ | ||
* Module#**emitBinary**(sourceMapUrl: `string | null`): `BinaryWithSourceMap`<br /> | ||
Returns the module in binary format with its source map. If `sourceMapUrl` is `null`, source map generation is skipped. | ||
* BinaryWithSourceMap#**binary**: `Uint8Array` | ||
* BinaryWithSourceMap#**sourceMap**: `string | null` | ||
* Module#**emitText**(): `string`<br /> | ||
@@ -286,10 +293,2 @@ Returns the module in Binaryen's s-expression text format (not official stack-style text format). | ||
### Module debugging | ||
* Module#**setAPITracing**(on: `boolean`): `void`<br /> | ||
Enables tracing of the C-API in the console. Can be very useful when filing bug reports. | ||
* Module#**interpret**(): `void`<br /> | ||
Runs the module in the interpreter, calling the start function. | ||
### Expression construction | ||
@@ -343,19 +342,17 @@ | ||
* Module#**getLocal**(index: `number`, type: `Type`): `Expression`<br /> | ||
* Module#**getLocal/get_local**(index: `number`, type: `Type`): `Expression`<br /> | ||
Creates a get_local for the local at the specified index. Note that we must specify the type here as we may not have created the local being called yet. | ||
* Module#**setLocal**(index: `number`, value: `Expression`): `Expression`<br /> | ||
* Module#**setLocal/set_local**(index: `number`, value: `Expression`): `Expression`<br /> | ||
Creates a set_local for the local at the specified index. | ||
* Module#**teeLocal**(index: `number`, value: `Expression`): `Expression`<br /> | ||
* Module#**teeLocal/tee_local**(index: `number`, value: `Expression`): `Expression`<br /> | ||
Creates a tee_local for the local at the specified index. A tee differs from a set in that the value remains on the stack. | ||
* Module#**getGlobal**(name: `string`, type: `Type`): `Expression`<br /> | ||
* Module#**getGlobal/get_global**(name: `string`, type: `Type`): `Expression`<br /> | ||
Creates a get_global for the global with the specified name. Note that we must specify the type here as we may not have created the global being called yet. | ||
* Module#**setGlobal**(name: `string`, value: `Expression`): `Expression`<br /> | ||
* Module#**setGlobal/set_global**(name: `string`, value: `Expression`): `Expression`<br /> | ||
Creates a set_global for the global with the specified name. | ||
Variable access methods above are also aliased in underscore notation, e.g., `get_local`. | ||
#### [Integer operations](http://webassembly.org/docs/semantics/#32-bit-integer-operators) | ||
@@ -503,10 +500,8 @@ | ||
* Module#**callImport**(name: `string`, operands: `Expression[]`, returnType: `Type`): `Expression`<br /> | ||
* Module#**callImport/call_import**(name: `string`, operands: `Expression[]`, returnType: `Type`): `Expression`<br /> | ||
Similar to **call**, but calls an imported function. | ||
* Module#**callIndirect**(target: `Expression`, operands: `Expression[]`, returnType: `Type`): `Expression`<br /> | ||
* Module#**callIndirect/call_indirect**(target: `Expression`, operands: `Expression[]`, returnType: `Type`): `Expression`<br /> | ||
Similar to **call**, but calls indirectly, i.e., via a function pointer, so an expression replaces the name as the called value. | ||
Function call methods above are also aliased in underscore notation, e.g., `call_indirect`. | ||
#### [Linear memory accesses](http://webassembly.org/docs/semantics/#linear-memory-accesses) | ||
@@ -543,8 +538,6 @@ | ||
* Module#**currentMemory**(): `Expression` | ||
* Module#**growMemory**(value: `number`): `Expression` | ||
* Module#**hasFeature**(name: `string`): `Expression` 🦄 | ||
* Module#**currentMemory/current_memory**(): `Expression` | ||
* Module#**growMemory/get_memory**(value: `number`): `Expression` | ||
* Module#**hasFeature/has_feature**(name: `string`): `Expression` 🦄 | ||
Host operation methods above are also aliased in underscore notation, e.g., `current_memory`. | ||
#### [Atomic memory accesses](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#atomic-memory-accesses) 🦄 | ||
@@ -788,2 +781,21 @@ | ||
### Source maps | ||
* Module#**addDebugInfoFileName**(filename: `string`): `number`<br /> | ||
Adds a debug info file name to the module and returns its index. | ||
* Module#**getDebugInfoFileName**(index: `number`): `string | null` <br /> | ||
Gets the name of the debug info file at the specified index. | ||
* Module#**setDebugLocation**(func: `Function`, expr: `Expression`, fileIndex: `number`, lineNumber: `number`, columnNumber: `number`): `void`<br /> | ||
Sets the debug location of the specified `Expression` within the specified `Function`. | ||
### Debugging | ||
* Module#**setAPITracing**(on: `boolean`): `void`<br /> | ||
Enables tracing of the C-API in the console. Can be very useful when filing bug reports. | ||
* Module#**interpret**(): `void`<br /> | ||
Runs the module in the interpreter, calling the start function. | ||
Building | ||
@@ -790,0 +802,0 @@ -------- |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2745185
11720
817