87 Commits

Author SHA1 Message Date
dcode
adc2f7e26a more consistent naming, move libm 2019-06-02 18:05:14 +02:00
Max Graey
9c51f1332c Fix parsing numbers with padded whitespaces (#607) 2019-05-27 14:37:07 +02:00
dcode
3e480d9423 progress 2019-05-20 23:10:06 +02:00
dcode
f73d807d5a rt hooks all over the place
still some work to do on optimizing away retain/release calls, but this looks promising
2019-05-15 21:17:41 +02:00
dcode
ba1a0c2369 Initial new rt integration 2019-05-12 13:50:28 +02:00
dcode
da4a7751fd optimize logical and/or, initial null checking in flows 2019-04-09 03:04:45 +02:00
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
85f3fc54a7 runtime api 2019-04-03 21:47:38 +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
Max Graey
abf3de9076 Fix implicit string to bool conversion (#567) 2019-03-31 20:00:54 +02:00
dcode
3146f8f9e0 use gc interface directly, document 2019-03-26 23:35:08 +01:00
dcode
7c0dc66849 guard, info on never null, more general array rt 2019-03-22 15:43:07 +01:00
dcode
d9463c5484 dummy gc 2019-03-21 17:34:51 +01:00
dcode
3fc9f550ad more general gc hooks? 2019-03-21 10:44:14 +01:00
dcode
7693b543f4 optimize array literal init, warn on unsupported inlining 2019-03-19 08:20:10 +01:00
dcode
ba4c00efbd clean 2019-03-18 00:40:55 +01:00
dcode
f21b339563 checked builtin array get, optimize abv layout 2019-03-17 08:46:26 +01:00
dcode
0c388ca4c6 make std/string test ok again 2019-03-16 14:48:22 +01:00
dcode
968b0321a0 decisions 2019-03-15 09:26:31 +01:00
dcode
3a60638f72 simplify 2019-03-14 12:46:36 +01:00
dcode
84ddd97761 if that's what's necessary 2019-03-14 06:09:49 +01:00
dcode
a5e14a0eaa srsly 2019-03-14 05:11:03 +01:00
dcode
6163a73ab5 take a step back 2019-03-14 04:33:58 +01:00
dcode
e38f627c8b more 2019-03-13 22:35:47 +01:00
dcode
e78c4c7f54 more 2019-03-13 03:09:24 +01:00
dcode
36d54d63d5 slowly but steadily 2019-03-12 04:35:01 +01:00
dcode
146dfdbb4a it's all broken 2019-03-11 23:34:20 +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
85b740d670 fix 2019-03-10 21:42:18 +01:00
dcode
cb77760562 unsafe, stub 2019-03-10 21:38:15 +01:00
dcode
5a2ab3d7ec what std/string would look like 2019-03-10 02:57:05 +01:00
Max Graey
cdf40578b6 Refactor slices for better compliance (#430) 2019-02-27 21:51:07 +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
Max Graey
54b02c287c Fix functional Array & String methods and avoid buffer caching (#415) 2019-01-17 01:34:09 +01:00
LiaoPeng
201bd5f2b1 Implement String#slice (#404) 2019-01-10 12:10:23 +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
Max Graey
711f73b15d Implement String#split (#301) 2018-10-18 19:05:35 +02:00
dcodeIO
b7e7be20cf Add String.fromUTF8 helper (see #291); Update dist files 2018-10-03 00:49:56 +02:00
Max Graey
2874fb9d8a Add trimStart/End aliases (#287) 2018-09-30 22:21:34 +02:00
dcodeIO
4498b28442 Use outer-most identifier when resolving queued exports, fixes #248 2018-09-09 03:51:29 +02:00
Daniel Wirtz
dc0f271fc2
Initial GC integration (#196) 2018-08-02 18:23:02 +02:00
Max Graey
671121bf70 Implement String#padStart/padEnd; Refactor internal string copy, compare and repeat (#171) 2018-07-25 16:25:53 +02:00
Max Graey
298a8f1688 Add String.fromCodePoint and 16-bit string compare (#174) 2018-07-23 14:32:55 +02:00