62 Commits

Author SHA1 Message Date
dcode
a564c820fb use Record as proposed in #598 2019-05-25 14:56:09 +02:00
dcode
d32391055d getArrayView typings 2019-05-25 14:48:58 +02:00
dcode
968192f99b array is an abv, views 2019-05-25 14:40:13 +02:00
dcode
6d6ed710e5 more docs 2019-05-25 01:38:59 +02:00
dcode
4b841efed2 fix potential oob 2019-05-25 01:16:38 +02:00
dcode
c34ed66fd9 support normal arrays 2019-05-25 01:14:26 +02:00
dcode
9620f18249 more loader work 2019-05-25 00:38:50 +02:00
dcode
a6896d7bc2 more loader updates 2019-05-24 20:31:52 +02:00
dcode
c41c57e6d6 refactor 2019-05-24 12:16:14 +02:00
dcode
a49ab7a706 improve rtrace and move it to lib 2019-05-23 16:41:26 +02:00
dcode
81c212b208 monkey-patch loader 2019-05-23 04:15:05 +02:00
dcode
ba1a0c2369 Initial new rt integration 2019-05-12 13:50:28 +02:00
dcode
bb659bbdcd Runtime 'none' by default 2019-04-09 08:28:14 +02:00
dcode
c147e98a55 capabilities to detect half/full runtime header 2019-03-18 13:45:10 +01:00
dcode
f3aa762ccb Rebuild examples 2019-03-01 00:09:06 +01:00
Daniel Wirtz
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
kazuya kawaguchi
2ec89ee669 Add typings for second argment of demangle (#385) 2019-01-09 13:18:17 +01:00
dcode
20f4092eb2 Update Binaryen and other dependencies; Update dist files 2019-01-09 13:02:47 +01:00
dcodeIO
86c084a519 Use a symbol for the this pointer on wrapped loader classes, see #363 2018-12-07 17:55:31 +01:00
kazuya kawaguchi
429435c5b1 Improve demangling of class methods when using the loader (#363) 2018-12-07 17:20:28 +01:00
dcodeIO
6f3209e6c6 Fix imported memory fallback and add common stdlib imports to loader 2018-11-11 10:44:09 +01:00
dcodeIO
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
dcodeIO
2ecec660d2 Mention exporting memory utilities more prominently in loader readme, fixes #318 2018-11-08 11:54:36 +01:00
dcodeIO
b924c152c5 Fix fallback to imported memory in loader, fixes #322 2018-11-08 08:23:00 +01:00
Daniel Wirtz
2bdc2a72f1
Use stack IR when emitting text format (#312) 2018-11-08 08:04:24 +01:00
Linus Unnebäck
7135af36bd Update linting instructions to reference new script name (#320) 2018-11-07 20:44:38 +01:00
dcodeIO
4683599a82 Improve loader function table handling 2018-10-20 15:40:23 +02:00
dcodeIO
086d96b299 Fix variable arguments handling with setargc in loader 2018-10-11 17:55:11 +02:00
dcodeIO
be5073aba5 Update parse/lint dependencies 2018-10-11 09:04:34 +02:00
Daniel Wirtz
f7c734789e
Update Binaryen to latest; Various fixes 2018-10-11 08:49:08 +02:00
dcodeIO
b54a97c0fe Fix a typo and a signature in loader README 2018-10-11 08:22:20 +02:00
dcodeIO
af968177c8 Fix use of instantiateStreaming's result object in new loader, see #295 2018-10-04 17:13:01 +02:00
dcodeIO
e22524fab8 Update loader to support environments where 'new WebAssembly.Instance' is limited, see #295 2018-10-04 13:16:39 +02:00
dcodeIO
59e2a63b83 Add table section support to lib/parse
Originally part of #288
2018-10-03 03:30:00 +02:00
dcodeIO
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
Daniel Wirtz
dc0f271fc2
Initial GC integration (#196) 2018-08-02 18:23:02 +02:00
dcodeIO
a1b75b69b7 Rename memory instructions; Rework constant handling 2018-07-18 23:49:32 +02:00
dcodeIO
c636eddcd2 Legalize casting object literals to classes when linting 2018-07-14 15:00:07 +02:00
dcodeIO
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
dcodeIO
27e61f8f67 Remove noMemory option; Omit 'start' if 'main' is present; Unwrap more unnecessary blocks 2018-06-27 19:03:39 +02:00
dcodeIO
e18165bbbc Remove chalk dependency and replace it with something simpler, fixes #138 2018-06-12 18:34:39 +02:00
dcodeIO
f2eb64c0fd Add conditional BigInt support to loader & minor README fixes 2018-06-11 15:18:13 +02:00
dcodeIO
c9ed03028d Add CLI definitions; CLI restructure 2018-05-28 18:55:51 +02:00
dcodeIO
e049e72171 Fix a few issues with TSD generation; Update Binaryen 2018-05-21 10:31:00 +02:00
dcodeIO
98a0aa863d Initial loader that unifies utils and demangle 2018-05-19 13:38:47 +02:00
dcodeIO
d678807286 Initial demangler implementation, i.e. for use with TypeScript definitions 2018-05-17 11:59:35 +02:00
dcodeIO
06f99406be Experimenting with inline-assembler-ish explicit builtins
Starting with explicit loads and stores as part of the respective type namespaces. Might become handy for use with portable code, because these can be polyfilled, while load<T> and store<T> can't.
2018-04-27 00:08:41 +02:00
dcodeIO
5e20bed09a Unify / simplify asc API (in browsers) 2018-04-04 14:39:40 +02:00
dcodeIO
acfef646ef Update dist files; Also parse name and source mapping sections in lib/parse 2018-04-04 03:41:04 +02:00
dcodeIO
5823e35f37 Progress and a tiny WASM binary parser 2018-04-03 23:56:48 +02:00