53 Commits

Author SHA1 Message Date
dcodeIO
8d894d0827 Make sure constant locals are inlined, see #6 2017-12-28 15:17:35 +01:00
dcodeIO
7795d48d98 Namespaced imports 2017-12-27 22:38:32 +01:00
dcodeIO
eccac129ad Search parent namespaces when resolving identifiers 2017-12-27 19:17:29 +01:00
dcodeIO
ba61a5e414 Getters & setters (static); Instantiate compiler tests; Cleanup 2017-12-27 02:37:53 +01:00
dcodeIO
5c4bf1af76 Less prose; Update i64 example; More options for asc 2017-12-25 12:08:51 +01:00
dcodeIO
d7c069b692 Get rid of determineExpressionType 2017-12-23 17:49:06 +01:00
dcodeIO
ca9c79185b Basic type inference 2017-12-23 13:48:04 +01:00
dcodeIO
ad298c7bea Asterisk imports parsing; Pussyfooting around stdlib 2017-12-23 00:48:54 +01:00
dcodeIO
666ba54e42 Heap fill/compare; Std string experiments 2017-12-21 10:14:53 +01:00
dcodeIO
dd5c3e7a4e Type aliases 2017-12-20 13:36:39 +01:00
dcodeIO
aa563a9a5a Cleanup; Documentation 2017-12-18 03:46:36 +01:00
dcodeIO
c70eb7792f Link globals into global scope instead 2017-12-16 20:08:33 +01:00
dcodeIO
2720515982 More stdlib setup 2017-12-16 17:54:53 +01:00
dcodeIO
85a9fb1eb5 Stdlib preparations 2017-12-16 02:27:39 +01:00
dcodeIO
4b3cc981a6 Portable conversions 2017-12-15 17:23:04 +01:00
dcodeIO
7cf879fb4b Type limits 2017-12-15 15:00:19 +01:00
dcodeIO
8085a02df3 Elements can be namespaces; Static properties and methods 2017-12-15 02:50:55 +01:00
dcodeIO
6bea116b3e Integrate examples into tests 2017-12-14 12:30:58 +01:00
dcodeIO
c6c36613e6 Accessor parsing; Cleanup 2017-12-14 11:55:35 +01:00
dcodeIO
99b0fdf7a8 Namespaces 2017-12-13 23:24:13 +01:00
dcodeIO
ce57820f59 Is it a strawberry, see boyanio/wasm-wheel#2 2017-12-13 00:11:45 +01:00
dcodeIO
c8680b1e77 More smarter temp locals 2017-12-12 09:38:20 +01:00
dcodeIO
f75b962c74 Smarter temp locals; Less binaryen boilerplate 2017-12-12 09:32:03 +01:00
dcodeIO
ad1fbcf5b2 A first take on imported built-ins 2017-12-12 01:35:48 +01:00
dcodeIO
09cbad6ede Add i64 polyfill example 2017-12-11 22:04:30 +01:00
dcodeIO
b5cc2f9924 Fix unsigned ops; Fix parenthesized conversion; Minor restructure 2017-12-11 18:46:11 +01:00
dcodeIO
0228ab91d9 Minor restructure and fixes; README; Proposed binaryen additions 2017-12-10 21:59:45 +01:00
dcodeIO
732068e981 Add trapMode option to asc; Disable flatten/ssa passes for now 2017-12-09 02:38:17 +01:00
dcodeIO
6d8de50565 Update binaryen; Replace uses of Math.* with portable built-ins 2017-12-09 01:35:18 +01:00
dcodeIO
64516eecfb Add wast generated by wasm-opt 2017-12-08 21:31:34 +01:00
dcodeIO
0ebb99a33c Extract portable AS to its own definition and polyfill; Try running flatten/ssa before default optimizations, see WebAssembly/binaryen#1331 2017-12-08 19:08:03 +01:00
dcodeIO
d6b94d4c33 Things the optimizer does not catch 2017-12-08 16:31:42 +01:00
dcodeIO
da672e2ca6 Add memcpy compiler test 2017-12-08 16:11:58 +01:00
dcodeIO
bbb57baecb changetype builtin; some namespace parsing; more stdlib ideas; compiler options for asc 2017-12-08 04:03:44 +01:00
dcodeIO
59dafc8d22 Some thoughts on an initial stdlib to get things going 2017-12-07 04:37:14 +01:00
dcodeIO
325ecf5165 Conway's Game of life compiler test incl. html 2017-12-07 02:02:22 +01:00
dcodeIO
d9ad42ed2e Also create optimized & inlined wasts for comparison 2017-12-06 23:54:16 +01:00
dcodeIO
9ae3328e58 Precompute and inline constant globals
This is necessary so that other constant globals referencing constant globals can be precomputed as well (NON_STANDALONE_FLOW in binaryen)
2017-12-06 23:38:17 +01:00
dcodeIO
d63ed925a9 Add unfinished TLSF as test case fwiw 2017-12-06 19:33:48 +01:00
dcodeIO
29468846ab Unified continue/break labels with binaryen labels; Module-level global exports 2017-12-06 17:47:48 +01:00
dcodeIO
f045975a4b Built-in abs/min/max for integers; For-loop fixes 2017-12-05 22:47:20 +01:00
dcodeIO
330752908a Implement asc in js for dist 2017-12-05 15:06:44 +01:00
dcodeIO
b7030d4dea reinterpret and select builtins 2017-12-04 22:47:08 +01:00
dcodeIO
df3e34f2aa More options for asc 2017-12-04 19:26:50 +01:00
dcodeIO
0e6bfa45f8 Type-aware && and || 2017-12-04 16:26:34 +01:00
dcodeIO
c6af2d1454 Implement ternary using if, see AssemblyScript/assemblyscript#123 2017-12-04 14:49:24 +01:00
dcodeIO
63a67e7c67 sizeof, load and store builtins 2017-12-04 02:00:48 +01:00
dcodeIO
017efc71b6 Fixes; Builtins; Testing in the interpreter 2017-12-03 23:04:33 +01:00
dcodeIO
032ae379cd Unary postfix fixes 2017-12-03 01:18:35 +01:00
dcodeIO
eaf9253b96 Initial module level function exports 2017-12-02 23:33:01 +01:00