Commit Graph

99 Commits

Author SHA1 Message Date
1486795f15 fixing bugs introduced for block temporaries sheme 2021-05-05 17:37:26 +00:00
2f888200e8 changed the block temporaries scheme 2021-05-05 14:37:01 +00:00
5063c55bb4 trying to support variable arguments and return variables 2021-05-03 15:31:19 +00:00
910d1f1917 fixed a bug in prepare_new_context() and fork handling 2021-05-01 11:26:59 +00:00
5f25a9934a removed two unused variables 2021-04-24 13:53:50 +00:00
2498fa8e4e fixed a bug of not providing the number of temporaries when arraning the initial context 2021-04-23 15:46:35 +00:00
f7416341b6 try-catching working in the top-level now. implemented a way to secure space for top-level temporary variables 2021-04-23 07:17:40 +00:00
07cc5d6eba removed a duplicate line 2021-04-20 14:11:00 +00:00
f72ed9f260 simplified code a bit 2021-04-18 18:02:02 +00:00
1970ffa32a fixing code to implement exception handling 2021-04-14 16:20:18 +00:00
2030410184 working on try-catch implementation 2021-04-11 15:45:01 +00:00
32401bff58 reimplementing try-catch 2021-04-11 15:08:27 +00:00
35f3393bf5 improving function block and control block handling in the compiler code 2021-04-09 08:22:40 +00:00
5dd9e62ad0 added more code to implement simple exception handling 2021-03-02 15:58:13 +00:00
4f35e08f97 added some code for throw 2021-02-28 17:00:28 +00:00
5d426f7646 added the flags field to the context object 2021-02-24 16:57:26 +00:00
61a2c8cd60 added the try_catch instruction 2021-02-22 14:56:27 +00:00
505b4a181b adding hcl_openstd() 2021-02-07 17:57:35 +00:00
a37cd8acb7 added some semaphore handling code 2021-02-05 15:22:39 +00:00
8a3ff5abb1 preparing to implement semaphores 2021-02-03 14:50:51 +00:00
e4f5a310aa fixed some process management code 2021-02-02 23:43:12 +00:00
82d0c1ccca fixed some compiler bugs 2021-02-01 13:20:46 +00:00
5149bd44b6 removed unneeded code
uniformize the naming of locptr, dbgl to dbgi
2021-02-01 03:32:09 +00:00
d06fc25ab9 enhanced the vm to supplement the error message with debug information 2021-01-31 18:46:13 +00:00
9c3c3569e2 removed some unneeded code.
changed the source input handler to set the name field for the main stream
2021-01-30 16:13:27 +00:00
bda1de2fee cleaned up a bit 2021-01-29 17:24:13 +00:00
d3ad99a719 made enhancement to show location information for the ECALL runtime error 2021-01-29 12:39:31 +00:00
ea31979712 removed unneeded code 2021-01-29 09:41:39 +00:00
27c243b650 changing compiler code to preserve some debugging information 2021-01-27 08:47:08 +00:00
aee64add9b preparing to produce debug information 2021-01-26 10:10:18 +00:00
b5fe1068d0 found a bug upon VM abortion. yet to fix it 2021-01-24 15:53:35 +00:00
4ec9395543 enhanced the new compiler to produce working bytecodes for the #() list 2021-01-24 15:45:28 +00:00
c193728e3f adding some work-in-progress code to store debugging information for generated byte codes 2021-01-03 13:51:23 +00:00
0ae149a010 fixed to reset hcl->sp before returning from hcl_execute() 2020-12-31 19:03:37 +00:00
f68b80143a switching GC from semi-space copying to mark-sweep 2020-12-31 17:48:47 +00:00
74e6511b9c cleaned up code and build files 2020-11-15 10:26:14 +00:00
1fc06dac48 cleaned up build files 2020-11-15 09:56:06 +00:00
0ad4d378ee Added some incomplete code for process-switching 2020-10-15 12:57:05 +00:00
17b582a5f2 removed irrelevant comments 2020-10-13 17:25:29 +00:00
2557809d64 removed the unneeded sp field from hcl_context_t 2020-10-13 17:20:01 +00:00
51f465e5fc fixed non-local return behaviors 2020-10-13 14:44:00 +00:00
2f1abbe03e working on return-from-home for non-local return 2020-10-10 17:36:33 +00:00
372c0e16ee added hcl_block_t to express a base block. no more reuse of hcl_context_t for the base block 2020-10-09 07:14:32 +00:00
59da10458d enhancing the compiler and hcl_execute() for better interactive use 2020-10-08 09:25:54 +00:00
a46914e9d0 fixing compiler bugs regarding MAKE_FUNCTION and literal frame rebasing 2020-10-07 08:06:49 +00:00
b35874d5d5 debugging the compiler 2020-10-06 09:40:39 +00:00
a0e9f16cf3 fixing more bugs.. 2020-10-05 14:49:54 +00:00
5c30d44d15 writing code for function activation using function-local literal frame 2020-10-05 09:37:26 +00:00
5d6f6cdcc8 fixing types of some fields in hcl_context_t and hcl_function_t for clarity and consistency 2020-10-04 19:34:53 +00:00
a78454fd77 fixed a gc error not fixed in the previous commit 2020-10-04 19:07:21 +00:00