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
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
83566a5512
eliminate unnecessary tee+drop in unchecked set
2019-03-18 18:27:48 +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
f21b339563
checked builtin array get, optimize abv layout
2019-03-17 08:46:26 +01:00
dcode
2d76da9465
alias locals when inlining a tail call
2019-03-17 00:11:16 +01:00
dcode
0c388ca4c6
make std/string test ok again
2019-03-16 14:48:22 +01:00
dcode
1198e71236
same for padStart
2019-03-11 01:29:12 +01:00
dcode
ebe92c62a8
untrampoline padEnd
2019-03-11 01:20:47 +01:00
dcode
ce82e5458e
unshiftify padEnd
2019-03-11 01:16:05 +01:00
dcode
f076826e59
update std/string
2019-03-11 00:35:17 +01:00
dcode
cdec865bef
Update Binaryen to latest nightly
2019-03-08 16:19:46 +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
Max Graey
cdf40578b6
Refactor slices for better compliance ( #430 )
2019-02-27 21:51:07 +01:00
dcode
34d86a0d6a
Replace more workarounds with actual lazy compilation in stdlib
2019-02-21 05:42:33 +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
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
54b02c287c
Fix functional Array & String methods and avoid buffer caching ( #415 )
2019-01-17 01:34:09 +01:00
Max Graey
72dc26e255
Optimize builtin abs for integers ( #420 )
2019-01-15 18:22:24 +01:00
LiaoPeng
201bd5f2b1
Implement String#slice ( #404 )
2019-01-10 12:10:23 +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
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
Daniel Wirtz
c30c62e383
Cast to bool by comparing to zero ( #343 )
2018-11-23 15:20:52 +01:00
Max Graey
6393921c12
Fix unsafeCompare ( #336 )
2018-11-19 12:23:45 +01:00
dcodeIO
d62d84521e
Reduce inlining verbosity
...
With debug info and source maps in place there is not much value anymore in emitting explicitly named blocks.
2018-11-12 14:54:08 +01:00
Max Graey
1882679807
Implement Array.isArray and Array#copyWithin ( #331 )
2018-11-12 07:45:40 +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
Daniel Wirtz
2bdc2a72f1
Use stack IR when emitting text format ( #312 )
2018-11-08 08:04:24 +01:00
Max Graey
83fa12164f
Add TypedArray#fill ( #274 )
2018-10-26 18:28:31 +02:00
Max Graey
711f73b15d
Implement String#split ( #301 )
2018-10-18 19:05:35 +02:00
Daniel Wirtz
f7c734789e
Update Binaryen to latest; Various fixes
2018-10-11 08:49:08 +02:00
dcodeIO
b7e7be20cf
Add String.fromUTF8 helper (see #291 ); Update dist files
2018-10-03 00:49:56 +02:00
Max Graey
53b030fed5
Add Array#join and Array#toString + dtoa ( #275 )
2018-10-01 22:57:56 +02:00