1
0
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-06-15 07:51:32 +00:00
Commit Graph

40 Commits

Author SHA1 Message Date
a9e4813798 implement __runtime_flags 2019-04-05 01:59:01 +02:00
3bcd32f3ba directize 2019-04-02 10:12:57 +02:00
1ada854830 some cleanup 2019-04-01 22:23:11 +02:00
7c0dc66849 guard, info on never null, more general array rt 2019-03-22 15:43:07 +01:00
81039c4167 FixedArray experimentation 2019-03-19 15:43:05 +01:00
0932cf17ed use overloads for checked access 2019-03-18 16:09:49 +01:00
ba4c00efbd clean 2019-03-18 00:40:55 +01:00
edb2299f13 fixes 2019-03-17 12:25:54 +01:00
f21b339563 checked builtin array get, optimize abv layout 2019-03-17 08:46:26 +01:00
05a35f42f6 more 2019-03-16 11:24:13 +01:00
968b0321a0 decisions 2019-03-15 09:26:31 +01:00
139cec0846 Merge branch 'master' into runtime 2019-03-14 13:02:51 +01:00
3a60638f72 simplify 2019-03-14 12:46:36 +01:00
84ddd97761 if that's what's necessary 2019-03-14 06:09:49 +01:00
a5e14a0eaa srsly 2019-03-14 05:11:03 +01:00
6163a73ab5 take a step back 2019-03-14 04:33:58 +01:00
6f70826e45 hmm 2019-03-13 09:05:02 +01:00
e78c4c7f54 more 2019-03-13 03:09:24 +01:00
146dfdbb4a it's all broken 2019-03-11 23:34:20 +01:00
d9a5681489 arraybufferview 2019-03-11 07:45:47 +01:00
d411415060 Implement TypedArray#reverse () 2019-03-08 18:48:06 +01:00
783dd32c2e Implement TypedArray#forEach () 2019-03-06 19:07:10 +01:00
e8b0767143 Infer function expressions in matching contexts ()
* legalizes omitting types on function expressions within function type contexts
* legalizes omitting any number of arguments
2019-02-27 21:45:36 +01:00
ed97672a8c Use faster clamping for Uint8ClampedArray () 2019-02-22 15:26:30 +01:00
0c64f21250 Rework resolver ()
* 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
3b1852bc37 Implement TypedArray#every/some/findIndex and improve map/reduce/reduceRight () 2019-01-24 08:33:22 +01:00
3ed83ef3ae Use macro style for more internal helpers; Update dist files 2018-12-08 23:38:49 +01:00
117cc1629b Implement TypedArray#map ()
* Also cleans up TypedArray#reduce/reduceRight test cases
* Also fixes the (what needs to be) overloads on Uint8ClampedArray
2018-12-07 19:40:21 +01:00
ebae7cbd73 Implement optional type parameters ()
* 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
d7f4874650 Implement TypedArray#reduce/reduceRight () 2018-12-05 17:53:31 +01:00
d93ca84aed Correct TypedArray#byteOffset handling and fix TypedArray#subarray () 2018-11-08 23:19:41 +01:00
d7c1c608bd Implement itoa32/64 for base 10 () 2018-07-13 15:40:37 +02:00
6d6d1dddcf Improve inlining where locals can be aliased; Add a crude mechanism for explicit unchecked array accesses
The `unchecked` builtin should be handled with ultimate care and it would be a lot better if there'd be a mechanism doing this automatically.
2018-04-25 05:04:35 +02:00
391db28fe2 Always try to eliminate branches if tree-shaking is enabled 2018-04-24 23:11:11 +02:00
8465776a1d Use 'super' in Uint8ClampedArray#__set 2018-04-24 00:42:17 +02:00
ddde13a648 Implement Uint8ClampedArray () 2018-04-24 00:33:21 +02:00
623597c23a Make the transition to ArrayBuffer backed Arrays ()
* Traverse base classes when resolving overloads
* Implement preliminary TypedArray accessors
* Extract decorator flags from common flags to make space
* Add '**' overload
* Implement basic explicit inlining
* Support inlining of instance methods
* Reduce number of required locals when inlining
* Implement inlining of operator overloads
* Fix issues when inlining generic functions
2018-04-11 23:35:19 +02:00
8770f7b548 New ArrayBuffer/TypedArray; Stdlib restructure; Fix importing stdlib in stdlib; Traverse constructors; Allow initialization of readonly instance fields in constructors 2018-04-07 03:27:22 +02:00
06198a3723 Rename lib prefix to '~lib' (parens aren't valid); Add built-in alignof<T>; Prepare for ArrayBufferView 2018-04-02 19:05:26 +02:00
664f2a1c0d Add offsetof<T> builtin; Put a function's trampoline into the function table if a it has optional parameters; TypedArray scaffolding 2018-03-24 00:38:49 +01:00