apoch / epoch-language

Home of the Epoch Programming Language Project
Other
72 stars 3 forks source link

Code generation for nested structure member accesses is broken #145

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Compare the generated bytecode for nested structure member accesses with the 
generated bytecode from R11; something is off and needs to be corrected in 
Expression::Coalesce() probably.

Original issue reported on code.google.com by don.ap...@gmail.com on 21 Feb 2012 at 7:31

GoogleCodeExporter commented 9 years ago
Code generation is fixed but still has a weirdness where structure definition 
order is highly relevant, due to the (somewhat) unpredictable order in which 
structure metadata is emitted to the bytecode. I plan to fix this by 
constructing dependency graphs of structures and emitting things in the correct 
order so the VM can still read structure metadata linearly.

Original comment by don.ap...@gmail.com on 23 Feb 2012 at 6:41

GoogleCodeExporter commented 9 years ago
Fixed and committed.

Original comment by don.ap...@gmail.com on 23 Feb 2012 at 7:23