116 Commits

Author SHA1 Message Date
dcode
e1bd0050e2 directize more (eliminate table use) 2019-04-02 16:18:44 +02:00
dcode
6bf8276746 Merge branch 'master' into runtime 2019-04-02 10:58:14 +02:00
dcode
3bcd32f3ba directize 2019-04-02 10:12:57 +02:00
dcode
1ada854830 some cleanup 2019-04-01 22:23:11 +02:00
dcode
27f1905510 runtime integration and flag 2019-03-31 21:58:42 +02:00
Max Graey
abf3de9076 Fix implicit string to bool conversion (#567) 2019-03-31 20:00:54 +02:00
dcode
3e3c393856 finalize GC wiring 2019-03-30 13:58:20 +01:00
dcode
e36722f2e6 unify mem/ref interface 2019-03-27 17:21:52 +01:00
dcode
a3095478a3 Merge branch 'master' into runtime 2019-03-27 16:10:59 +01:00
dcode
b2adf8b1e2 Update dependencies and rebuild dist files 2019-03-27 15:50:05 +01:00
dcode
bb1609c9ea baseline 2019-03-27 14:43:35 +01:00
dcode
3146f8f9e0 use gc interface directly, document 2019-03-26 23:35:08 +01:00
Daniel Wirtz
527d73ece8
Use fully qualified names in generic types (#544)
* Also fixes infinite parser loops
* Also implements command line option forwarding to node.js
2019-03-25 21:58:19 +01:00
dcode
7c0dc66849 guard, info on never null, more general array rt 2019-03-22 15:43:07 +01:00
dcode
e57fa14ff9 give it a shot 2019-03-21 18:30:36 +01:00
dcode
d9463c5484 dummy gc 2019-03-21 17:34:51 +01:00
dcode
952ac8627d stdlib unlink wiring 2019-03-20 17:12:33 +01:00
dcode
9b664dc175 harden / elaborate on makeCallInline 2019-03-20 14:16:18 +01:00
dcode
81039c4167 FixedArray experimentation 2019-03-19 15:43:05 +01:00
dcode
74789c9c1e aliased makeCallInline, unmanaged rt alloc 2019-03-19 14:40:37 +01:00
dcode
7693b543f4 optimize array literal init, warn on unsupported inlining 2019-03-19 08:20:10 +01:00
dcode
0932cf17ed use overloads for checked access 2019-03-18 16:09:49 +01:00
dcode
ba4c00efbd clean 2019-03-18 00:40:55 +01:00
dcode
edb2299f13 fixes 2019-03-17 12:25:54 +01:00
dcode
cdec865bef Update Binaryen to latest nightly 2019-03-08 16:19:46 +01:00
Max Graey
208dc2f1de Implement Mathf.sin/cos/tan (#491) 2019-03-05 19:36:22 +01:00
Daniel Wirtz
4e1bba3a24
Use Binaryen's function signature naming scheme (#522) 2019-03-01 00:01:23 +01:00
dcode
7184db6dde Update Binaryen to latest and regenerate dist files 2019-02-28 18:26:04 +01:00
Daniel Wirtz
e8b0767143
Infer function expressions in matching contexts (#514)
* legalizes omitting types on function expressions within function type contexts
* legalizes omitting any number of arguments
2019-02-27 21:45:36 +01:00
dcode
34d86a0d6a Replace more workarounds with actual lazy compilation in stdlib 2019-02-21 05:42:33 +01:00
Max Graey
6b495f71d0 Ensure Math.clz32/imul compatibility with JS (#474) 2019-02-21 00:32:58 +01:00
Max Graey
0041572052 Reuse respective opposite overload in std/string comparisions (#479) 2019-02-21 00:30:05 +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
Daniel Wirtz
2f1a6c44ce
Add SIMD prerequisites (#469) 2019-02-07 15:26:26 +01:00
Max Graey
41a89fa773 Fix default comparator for strings (#462) 2019-02-07 12:26:45 +01:00
Daniel Wirtz
831054dfd3
Rework inlining logic (#463) 2019-02-06 23:42:43 +01:00
dcode
cd1cfe6957 Update Binaryen to latest and rebuild dist files 2019-02-05 17:12:10 +01:00
Max Graey
4829f3a3e4 Add ArrayBuffer.isView and rework Array.isArray (#431) 2019-02-03 10:41:04 +01:00
Max Graey
c7441066dc Minor math tweaks + ipow32f/ipow64f (#428) 2019-01-24 23:17:44 +01:00
Max Graey
d3715688fc Fix Math.imul and add tests (#432) 2019-01-24 01:23:53 +01:00
Max Graey
54b02c287c Fix functional Array & String methods and avoid buffer caching (#415) 2019-01-17 01:34:09 +01:00
Max Graey
d82995c686 Improve mandelbort example (#308) 2019-01-09 17:26:31 +01:00
LiaoPeng
9ec226de1b Fix possible use after free in Array#forEach if the array resizes halfway (#408) 2019-01-09 13:06:34 +01:00
dcode
20f4092eb2 Update Binaryen and other dependencies; Update dist files 2019-01-09 13:02:47 +01:00
Max Graey
8e61e0ead8 Improve reallocateUnsafe and properly free unmanaged objects (#368) 2018-12-08 23:54:45 +01:00
dcodeIO
3ed83ef3ae Use macro style for more internal helpers; Update dist files 2018-12-08 23:38:49 +01:00
Max Graey
934f05eed9 Optimize array functional loops (#359) 2018-12-07 15:37:33 +01:00
Daniel Wirtz
ebae7cbd73
Implement optional type parameters (#360)
* Add a NATIVE<T> macro type to simplify use of a native WebAssembly type
* Add default type parameters for internal helpers for explicit loads and stores
* Unify loadUnsafe/loadUnsafeWithOffset etc. into one
* Renamed loadUnsafe etc. into just LOAD, like a macro
* Implement parsing of index signatures, but ignore them, for properly linting code
* Refactor TypedArray<T> to use macros
2018-12-07 14:33:32 +01:00
dcodeIO
a661ff7d89 Update Binaryen to latest 2018-12-01 03:09:43 +01:00
Max Graey
3c5c2cef80 Fix implementation of Array#splice (#347) 2018-11-29 15:41:42 +01:00