145 Commits

Author SHA1 Message Date
dcode
e1070cee86 rtti & refactoring 2019-04-06 20:17:48 +02:00
dcode
a9e4813798 implement __runtime_flags 2019-04-05 01:59:01 +02:00
dcode
25c5dfddad slim down runtime 2019-04-04 02:25:22 +02:00
dcode
85f3fc54a7 runtime api 2019-04-03 21:47:38 +02:00
dcode
a639a42f0d initial __runtime_instanceof 2019-04-02 21:30:47 +02:00
dcode
e1bd0050e2 directize more (eliminate table use) 2019-04-02 16:18:44 +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
3e3c393856 finalize GC wiring 2019-03-30 13:58:20 +01:00
dcode
6a790321aa make ref_unlink optional and itcm pass a simple test again
note: there's no marking yet
2019-03-29 18:56:32 +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
dcode
d4d5814fc2 rt docs, initial itcm wiring 2019-03-21 12:29:49 +01:00
dcode
3fc9f550ad more general gc hooks? 2019-03-21 10:44:14 +01:00
dcode
9b664dc175 harden / elaborate on makeCallInline 2019-03-20 14:16:18 +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
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
05a35f42f6 more 2019-03-16 11:24:13 +01:00
dcode
058dc8d4fa static array stuff 2019-03-15 13:13:48 +01:00
dcode
968b0321a0 decisions 2019-03-15 09:26:31 +01:00
dcode
cdf3e2cf12 fixes 2019-03-14 09:22:20 +01:00
dcode
84ddd97761 if that's what's necessary 2019-03-14 06:09:49 +01:00
dcode
6163a73ab5 take a step back 2019-03-14 04:33:58 +01:00
dcode
6f70826e45 hmm 2019-03-13 09:05:02 +01:00
dcode
d9a5681489 arraybufferview 2019-03-11 07:45:47 +01:00
dcode
cb77760562 unsafe, stub 2019-03-10 21:38:15 +01:00
dcode
0ad9d560e0 integrate 2019-03-09 00:40:03 +01:00
Daniel Wirtz
252b843c4b
General cleanup (#525)
* Cleans up and trims the overly large builtins file by ~1600 lines
* Properly propagate inline assembler-like argument types
* Use https in examples
* Reformat README
2019-03-08 14:24:48 +01:00
Daniel Wirtz
8e5b9c734b
Add atomic definitions (#524) 2019-03-02 10:14:09 +01:00
Daniel Wirtz
4e1bba3a24
Use Binaryen's function signature naming scheme (#522) 2019-03-01 00:01:23 +01:00
Daniel Wirtz
e1f1a3b49c
Implement v128 instructions (#508) 2019-02-28 17:36:22 +01:00
Max Graey
aad263e670 Add isArrayLike builtin (#453) 2019-02-27 21:47:52 +01:00
dcode
2945af6557 Don't reset nested unchecked contexts, fixes #515 2019-02-27 17:10:20 +01:00
Max Graey
65c799c925 Speedup some compiler routines (#441) 2019-02-22 14:03:33 +01:00
Daniel Wirtz
f318d68383
Add isFunction and isNullable builtins (#504) 2019-02-22 01:11: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
dcode
47b2f33564 Emit a better error when expecting a compile-time constant, fixes #222 2019-02-07 23:04:57 +01:00
Daniel Wirtz
1bd1d26152
Put atomics behind a feature flag (#470) 2019-02-07 18:21:09 +01:00
Daniel Wirtz
2f1a6c44ce
Add SIMD prerequisites (#469) 2019-02-07 15:26:26 +01:00
Nidin Vinayakan
7ce3296b5e Add atomic built-ins (#440) 2019-02-07 15:25:49 +01:00
Daniel Wirtz
f551bc78e1
Implement bulk memory operations (#467) 2019-02-07 11:40:23 +01:00
Daniel Wirtz
831054dfd3
Rework inlining logic (#463) 2019-02-06 23:42:43 +01:00
Max Graey
4829f3a3e4 Add ArrayBuffer.isView and rework Array.isArray (#431) 2019-02-03 10:41:04 +01:00
Daniel Wirtz
2131c51932
Rework constructor handling (#446) 2019-02-02 16:03:21 +01:00