Commit Graph

521 Commits

Author SHA1 Message Date
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
1ee3716f59 committing broken interim code 2021-04-09 01:23:08 +00:00
e9814d98b4 more robust error handling in std.c 2021-03-30 06:13:46 +00:00
e33c79725d added a few string formatting functions 2021-03-30 05:37:00 +00:00
7f77f87c29 attempted to emulate socketpair() where it's unavailable 2021-03-30 01:37:36 +00:00
1160926a32 added hcl_dupucstr(), hcl_dupbcstr() 2021-03-28 18:12:07 +00:00
0de8ae34d1 some more code cleanup 2021-03-28 03:44:27 +00:00
ef83e4f57b minor code fixes 2021-03-27 10:32:23 +00:00
cf19ce54b9 fixed minor flaws in the code 2021-03-25 16:53:05 +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
b2600c2124 removed 'return' from where it's not needed 2021-02-28 06:43:22 +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
593b0ad98c enhancing the compiler to support (try ... catch ...) 2021-02-22 09:20:45 +00:00
2eb5fd7824 trivial changes 2021-02-21 16:55:45 +00:00
6e2632119d fixed some compiler bugs in processing weird if..elif..else expressions without body parts - (if true), (if false else), (if false elif true) 2021-02-18 15:48:44 +00:00
f306982e56 set the defailt logging mask to 0.
fixed wrong format specifiers in std.c
2021-02-11 14:14:49 +00:00
324293d626 fixed a bug in hcl_allocheap() 2021-02-11 09:35:38 +00:00
82624a2073 moved the heapsize parameter from hcl_open() to hcl_ignite() 2021-02-09 17:47:22 +00:00
431b7d17f3 touched up code a bit 2021-02-09 15:06:41 +00:00
21096b9d9e allowed vmprim.alloc_heap() to create a bigger heap than requested.
enhanced the standard implementation(std.c) to attempt HUGETLB if the requested heap size is over 1/2 of the huge page size
2021-02-09 14:54:54 +00:00
7f510f51d0 removed unneeded code 2021-02-08 15:50:53 +00:00
1cfc1d1d37 removed cb-impl.c and cb-impl.h 2021-02-08 15:42:24 +00:00
27f75900a8 used hcl_openstdwithmmgr() in hcl-s.c and deleted unneeded code 2021-02-08 09:41:40 +00:00
b877a0a6d9 initialized the io multiplexer properly in cb_vm_startup() 2021-02-08 09:16:53 +00:00
afd6087694 added std.c 2021-02-07 17:58:23 +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
9d1687ea62 fixed a flaw in post_lambda() in the compiler code 2021-02-01 13:26:48 +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
751671d849 renamed hcl_read2() and hcl_compile2() to hcl_read() and hcl_compile() respectively 2021-01-29 08:40:10 +00:00
13c64e9bf2 removed hcl_read() and hcl_compile().
in the next commit(), hcl_read2() and hcl_compile2() will get renamed to hcl_read() and hcl_compile() respectively
2021-01-29 08:35:31 +00:00
c4ba555fd0 enhanced the compiler to support (continue) 2021-01-29 08:13:18 +00:00
7d3df714a4 compiler enhancement in progress 2021-01-28 10:09:38 +00:00
35d04c658c more compiler code to store source locations of byte codes emitted 2021-01-28 08:17:50 +00:00
3bb5598b67 more ongoing compiler enhancements 2021-01-28 07:25:05 +00:00
ab3a23ffd4 interim commit while enhancing the compiler 2021-01-27 16:11:56 +00:00
c744ec7b4f enhanced the compiler a bit 2021-01-27 16:01:36 +00:00