Commit Graph

130 Commits

Author SHA1 Message Date
Andrew Morris
a7ced2eb76 Fix nested function declarations 2023-03-24 15:31:24 +11:00
Andrew Morris
bb2c49d9a7 Fix p5 by (correctly) skipping declares 2023-03-24 15:15:22 +11:00
Andrew Morris
9efd517980 Only bind register captures 2023-03-24 14:40:31 +11:00
Andrew Morris
5931d8a8f9 Only allocate register for capture if original name is a register 2023-03-24 14:32:12 +11:00
Andrew Morris
57a95798cd Include more expressions 2023-03-24 14:16:15 +11:00
Andrew Morris
c811d0944e Improve diagnostic 2023-03-24 14:02:20 +11:00
Andrew Morris
e2886d209d Include prop_key of object patterns 2023-03-24 13:45:00 +11:00
Andrew Morris
64cad76081 Only process scope of local exports 2023-03-24 13:17:34 +11:00
Andrew Morris
d3391028ba Include ModuleDecl::ExportNamed 2023-03-24 12:47:28 +11:00
Andrew Morris
5f5398b566 Ignore non-register captures, set self.owner_id correctly 2023-03-24 12:32:21 +11:00
Andrew Morris
1164de3f3f Include member.prop 2023-03-24 11:41:39 +11:00
Andrew Morris
6a87fbb2c2 Include non-mutations in assignment 2023-03-24 11:16:48 +11:00
Andrew Morris
fe2e281d0b Improve diagnostic 2023-03-24 10:55:08 +11:00
Andrew Morris
f878dbbae9 Insert each mutation as a ref 2023-03-24 10:19:44 +11:00
Andrew Morris
026c3e1619 Lookup returns option, enabling diagnostics, include ref when inserting name 2023-03-24 10:06:19 +11:00
Andrew Morris
ec14f657e9 wiiiip 2023-03-24 09:24:17 +11:00
Andrew Morris
64e79cf13b oof wip 2023-03-23 21:14:05 +11:00
Andrew Morris
1d1c4496b3 wip 2023-03-23 21:14:00 +11:00
Andrew Morris
b95c32f45b Avoid allocating special registers in RegAllocator 2023-03-23 19:38:01 +11:00
Andrew Morris
b273bf1091 associate values during scope analysis, add .lookup 2023-03-23 19:35:42 +11:00
Andrew Morris
e86b2b6127 More tests and fixes 2023-03-23 17:17:27 +11:00
Andrew Morris
2e500692bf Compile try-catch 2023-03-23 14:12:35 +11:00
Andrew Morris
337c5c5296 Add set_catch, unset_catch instructions 2023-03-23 09:35:33 +11:00
Andrew Morris
56f6ce5922 Add limited comment support in assembly 2023-03-23 08:59:57 +11:00
Andrew Morris
55fceb80cb Store mutations by span 2023-03-22 14:39:32 +11:00
Andrew Morris
7594eeeadd Replace capture_finder with scope_analysis data 2023-03-22 14:27:06 +11:00
Andrew Morris
f43e83cffe Compile throw expressions 2023-03-21 14:29:38 +11:00
Andrew Morris
8b535f4f03 Throw instruction 2023-03-21 14:16:23 +11:00
Andrew Morris
cfb72fdbcd Dedupe InstructionByte 2023-03-21 14:00:33 +11:00
Andrew Morris
d2c437a9b6 BigInt 2023-03-20 17:59:07 +11:00
Andrew Morris
904f230416 inf -> Infinity 2023-03-20 11:43:56 +11:00
Andrew Morris
549e7e546a NaN, Infinity 2023-03-20 11:34:48 +11:00
Andrew Morris
358c816fe3 More deduping of builtins, fix todo 2023-03-20 09:20:51 +11:00
Andrew Morris
8dfb174cb2 Deduplicate builtin name list 2023-03-20 08:42:09 +11:00
Andrew Morris
791e69dcca number_builtin 2023-03-17 01:00:10 +11:00
Andrew Morris
253b06141c fromCodePoint 2023-03-13 14:25:55 +11:00
Andrew Morris
e5232e933c For-of loops 2023-03-12 20:38:43 +11:00
Andrew Morris
cec98637ea Move control cases into functions 2023-03-12 18:51:00 +11:00
Andrew Morris
399cfaa389 Support named exports 2023-03-12 16:40:21 +11:00
Andrew Morris
860e1108f7 Fix export_name default 2023-03-12 16:00:29 +11:00
Andrew Morris
98d92b67e6 Support export { default as (name) } 2023-03-12 15:51:06 +11:00
Andrew Morris
8d54c0907c Support more named exports 2023-03-12 15:32:57 +11:00
Andrew Morris
1b76dcafa5 Partial support for named exports 2023-03-12 15:17:14 +11:00
Andrew Morris
951ee0005d Enumerate module decls 2023-03-12 14:31:33 +11:00
Andrew Morris
6e1b5645ac Implement default export class 2023-03-09 16:14:19 +11:00
Andrew Morris
e50ad6bf59 Use linked compilation in test_inputs.rs and add test 2023-03-09 15:38:03 +11:00
Andrew Morris
32943bad1a New compile command using linking 2023-03-09 15:13:19 +11:00
Andrew Morris
c5b75b35de compile -> compile_module 2023-03-09 14:17:56 +11:00
Andrew Morris
1586faad56 shake_tree 2023-03-09 14:14:51 +11:00
Andrew Morris
8548733f05 PointerVisitation 2023-03-09 13:47:22 +11:00