kekyo / IL2C

IL2C - A translator for ECMA-335 CIL/MSIL to C language.
Apache License 2.0
401 stars 36 forks source link

Support exceptions. #20

Closed kekyo closed 6 years ago

kekyo commented 6 years ago
kekyo commented 6 years ago

e023fe2aab284b118c37c7af9f9145e959d59989

First implementation with sjlj without accessor for caught instance.

TODO: global unwind will cause mismatched execution frame

kekyo commented 6 years ago

1a825ad6f7fe61282c9d13968d3a7461cb540d46

Local unwind now working.

kekyo commented 6 years ago

TODO: GC will collect rethrow buffered exception instance.

kekyo commented 6 years ago

993c6df8217ed9f83963cfccaa34dc861d930489

Global unwind now working.

kekyo commented 6 years ago

5c1f39e1e5f7d8ac743e60509797c8589d400257

Finally block at the local unwind now working.

kekyo commented 6 years ago

0506f04ec8a9cbef462fc72100635196d8d65e7f

Exception implemented 🎉

(WITHOUT filter and fault block. I'll do it after #29 )