dcode
adc2f7e26a
more consistent naming, move libm
2019-06-02 18:05:14 +02:00
dcode
e65d875ebc
llvm-like naming of __heap_base, definition fixes, update examples
2019-06-01 01:14:04 +02:00
dcode
d9fbf8a2dd
Add preliminary support for map keys/values, set values
...
Makes arrays instead of iterators for now
2019-05-28 15:49:56 +02:00
dcode
d94b4fca50
layout rtti with fixed ids for buffers and strings
2019-05-22 00:14:44 +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
8ec51423ca
Merge branch 'master' into runtime
2019-04-08 18:37:38 +02:00
Daniel Wirtz
5b58b9aa8d
Update Binaryen to latest ( #571 )
2019-04-08 08:18:21 +02:00
dcode
e1070cee86
rtti & refactoring
2019-04-06 20:17:48 +02:00
dcode
3bcd32f3ba
directize
2019-04-02 10:12:57 +02:00
dcode
0dcfcc7935
external gc interface
2019-03-28 11:07:47 +01:00
dcode
7c0dc66849
guard, info on never null, more general array rt
2019-03-22 15:43:07 +01:00
dcode
81039c4167
FixedArray experimentation
2019-03-19 15:43:05 +01:00
dcode
968b0321a0
decisions
2019-03-15 09:26:31 +01:00
dcode
139cec0846
Merge branch 'master' into runtime
2019-03-14 13:02:51 +01:00
dcode
3b8c2331f4
symbols
2019-03-14 07:45:59 +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
146dfdbb4a
it's all broken
2019-03-11 23:34:20 +01:00
dcode
cb77760562
unsafe, stub
2019-03-10 21:38:15 +01:00
jtenner
d411415060
Implement TypedArray#reverse ( #532 )
2019-03-08 18:48:06 +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
jtenner
783dd32c2e
Implement TypedArray#forEach ( #530 )
2019-03-06 19:07:10 +01:00
Max Graey
208dc2f1de
Implement Mathf.sin/cos/tan ( #491 )
2019-03-05 19:36:22 +01:00
Daniel Wirtz
8e5b9c734b
Add atomic definitions ( #524 )
2019-03-02 10:14:09 +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
06ee43e6ad
Fix isFunction/isNullable typings
2019-02-22 08:25:00 +01:00
Daniel Wirtz
f318d68383
Add isFunction and isNullable builtins ( #504 )
2019-02-22 01:11:05 +01:00
Max Graey
2c365ada5b
Improve operator overload typings ( #480 )
2019-02-21 00:23:46 +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
4829f3a3e4
Add ArrayBuffer.isView and rework Array.isArray ( #431 )
2019-02-03 10:41:04 +01:00
Max Graey
1867416236
Make TypedPropertyDescriptor less type strict ( #436 )
2019-02-02 16:22:22 +01:00
Max Graey
d709cf3dff
Improve decorator declarations ( #426 )
...
i.e. add a dummy `TypedPropertyDescriptor<T>`
2019-01-24 08:39:15 +01:00
jtenner
3b1852bc37
Implement TypedArray#every/some/findIndex and improve map/reduce/reduceRight ( #433 )
2019-01-24 08:33:22 +01:00
LiaoPeng
201bd5f2b1
Implement String#slice ( #404 )
2019-01-10 12:10:23 +01:00
Daniel Wirtz
f714afab3c
Implement explicit this type ( #373 )
...
* Add backing classes for basic types (I32...)
* Move standard numeric constants to backing classes
2019-01-09 12:45:29 +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
jtenner
d7f4874650
Implement TypedArray#reduce/reduceRight ( #352 )
2018-12-05 17:53:31 +01:00
dcodeIO
d5a6bbca9b
Add missing definitions for Uint8ClampedArray
2018-12-01 19:49:00 +01:00
Max Graey
3c5c2cef80
Fix implementation of Array#splice ( #347 )
2018-11-29 15:41:42 +01:00
dcodeIO
1149abf824
Add 'instantiate<T>' builtin (like 'new' but from a type), see #349
2018-11-29 15:28:08 +01:00
Max Graey
4944280cdc
Add Math.signbit ( #333 )
2018-11-18 11:46:48 +01:00
Max Graey
1928404f3b
Add ArrayBuffer/DataView/Symbol#toString and improve Errors ( #332 )
2018-11-18 11:43:44 +01:00
Max Graey
1882679807
Implement Array.isArray and Array#copyWithin ( #331 )
2018-11-12 07:45:40 +01:00
Max Graey
4e89456dcb
Add more numeric builtins ( #330 )
2018-11-12 07:42:28 +01:00
Linus Unnebäck
3f9758f35a
Add DataView to standard library ( #316 )
2018-11-12 07:41:04 +01:00
dcodeIO
9ab7384122
Improve date binding compatibility
2018-11-11 10:43:17 +01:00
dcodeIO
1fad3d26c7
Add initial Date bindings
...
Doesn't do much, yet, because we can't get the timezone with a plain binding, but it's at least something.
2018-11-10 14:40:58 +01:00
LiaoPeng
d864977a1a
Add Array#concat and add a return type for Array#push ( #214 )
2018-10-30 15:07:53 +01:00
Max Graey
711f73b15d
Implement String#split ( #301 )
2018-10-18 19:05:35 +02:00