70 Commits

Author SHA1 Message Date
72e519885d Fix invalid flow switch when inlining optional arguments into a call, see #632 2019-06-05 19:29:44 +02:00
eaea26b7ae Remove the start decorator in favor of a command line option 2019-06-05 18:52:04 +02:00
fa667386d9 Initial support for default imports/exports, see #98
Does not implement combinations like 'import theDefault, *' yet
2019-06-04 08:57:33 +02:00
27d9ab6c2c Move some stuff around, update README 2019-06-03 03:59:30 +02:00
adc2f7e26a more consistent naming, move libm 2019-06-02 18:05:14 +02:00
e65d875ebc llvm-like naming of __heap_base, definition fixes, update examples 2019-06-01 01:14:04 +02:00
dece239d78 Generate a d.ts using modified dts-generator, see #434 2019-05-27 04:07:43 +02:00
bc294203bf fixes, dist files 2019-05-25 23:14:21 +02:00
a564c820fb use Record as proposed in #598 2019-05-25 14:56:09 +02:00
d32391055d getArrayView typings 2019-05-25 14:48:58 +02:00
968192f99b array is an abv, views 2019-05-25 14:40:13 +02:00
6d6ed710e5 more docs 2019-05-25 01:38:59 +02:00
4b841efed2 fix potential oob 2019-05-25 01:16:38 +02:00
c34ed66fd9 support normal arrays 2019-05-25 01:14:26 +02:00
9620f18249 more loader work 2019-05-25 00:38:50 +02:00
a6896d7bc2 more loader updates 2019-05-24 20:31:52 +02:00
c41c57e6d6 refactor 2019-05-24 12:16:14 +02:00
a49ab7a706 improve rtrace and move it to lib 2019-05-23 16:41:26 +02:00
81c212b208 monkey-patch loader 2019-05-23 04:15:05 +02:00
ba1a0c2369 Initial new rt integration 2019-05-12 13:50:28 +02:00
bb659bbdcd Runtime 'none' by default 2019-04-09 08:28:14 +02:00
c147e98a55 capabilities to detect half/full runtime header 2019-03-18 13:45:10 +01:00
f3aa762ccb Rebuild examples 2019-03-01 00:09:06 +01:00
0c64f21250 Rework resolver (#489)
* Rework IR and resolver to use nested lookup tables
* Integrate types into IR
* Make components prefer IR, slimmed down AST
* Implement `export *`
* Add `@lazy` annotation and remove `--noTreeShaking`
* Add `@start` annotation and remove magic `main`
* Related refactoring, cleanup and docs
2019-02-21 00:11:22 +01:00
2ec89ee669 Add typings for second argment of demangle (#385) 2019-01-09 13:18:17 +01:00
20f4092eb2 Update Binaryen and other dependencies; Update dist files 2019-01-09 13:02:47 +01:00
86c084a519 Use a symbol for the this pointer on wrapped loader classes, see #363 2018-12-07 17:55:31 +01:00
429435c5b1 Improve demangling of class methods when using the loader (#363) 2018-12-07 17:20:28 +01:00
6f3209e6c6 Fix imported memory fallback and add common stdlib imports to loader 2018-11-11 10:44:09 +01:00
4f95dce6e2 Do not emit debug info by default
This basically flips the --noDebug flag to become a --debug flag, so some optimizations, like inlining, aren't skipped by default, which might be unexpected.
2018-11-09 12:28:10 +01:00
2ecec660d2 Mention exporting memory utilities more prominently in loader readme, fixes #318 2018-11-08 11:54:36 +01:00
b924c152c5 Fix fallback to imported memory in loader, fixes #322 2018-11-08 08:23:00 +01:00
2bdc2a72f1 Use stack IR when emitting text format (#312) 2018-11-08 08:04:24 +01:00
7135af36bd Update linting instructions to reference new script name (#320) 2018-11-07 20:44:38 +01:00
4683599a82 Improve loader function table handling 2018-10-20 15:40:23 +02:00
086d96b299 Fix variable arguments handling with setargc in loader 2018-10-11 17:55:11 +02:00
be5073aba5 Update parse/lint dependencies 2018-10-11 09:04:34 +02:00
f7c734789e Update Binaryen to latest; Various fixes 2018-10-11 08:49:08 +02:00
b54a97c0fe Fix a typo and a signature in loader README 2018-10-11 08:22:20 +02:00
af968177c8 Fix use of instantiateStreaming's result object in new loader, see #295 2018-10-04 17:13:01 +02:00
e22524fab8 Update loader to support environments where 'new WebAssembly.Instance' is limited, see #295 2018-10-04 13:16:39 +02:00
59e2a63b83 Add table section support to lib/parse
Originally part of #288
2018-10-03 03:30:00 +02:00
9c770d801e Add initial newArray and getArray helpers to loader
Essentially creates an unmanaged typed array in memory that one can work with and free again respectively obtain from the AS side. No support for GC or generic arrays yet, and is likely to change substentially once WASM GC becomes a thing.
2018-09-18 15:17:44 +02:00
dc0f271fc2 Initial GC integration (#196) 2018-08-02 18:23:02 +02:00
a1b75b69b7 Rename memory instructions; Rework constant handling 2018-07-18 23:49:32 +02:00
c636eddcd2 Legalize casting object literals to classes when linting 2018-07-14 15:00:07 +02:00
9c16363796 Initial external decorator for annotating explicit import names; Use file name as default module name in imports; Emit empty memory if there are no static segments; Update TLSF and examples accordingly 2018-06-28 01:44:32 +02:00
27e61f8f67 Remove noMemory option; Omit 'start' if 'main' is present; Unwrap more unnecessary blocks 2018-06-27 19:03:39 +02:00
e18165bbbc Remove chalk dependency and replace it with something simpler, fixes #138 2018-06-12 18:34:39 +02:00
f2eb64c0fd Add conditional BigInt support to loader & minor README fixes 2018-06-11 15:18:13 +02:00