ARudik / phc

Automatically exported from code.google.com/p/phc
0 stars 0 forks source link

Dynamic function/class declarations #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The lifting pass must be modified to deal with dynamic function and class
declarations.

Original issue reported on code.google.com by edskodev...@gmail.com on 14 Apr 2007 at 3:55

GoogleCodeExporter commented 9 years ago
We annotate top-level vs non-top-level declarations, which tells us which are 
dynamic
and which arent. Is this what the issue was about?

Original comment by paul.biggar on 4 Jun 2007 at 3:55

GoogleCodeExporter commented 9 years ago
Uh, well ,I guess the lifting pass originally was supposed to "lower" dynamic
functions into a top-level function and a call to register_function or 
somesuch, but
I guess we have decided that this will be done in the code generator instead. 
Maybe
we should rename this pass, or integrate it into another.

Original comment by edskodev...@gmail.com on 4 Jun 2007 at 8:39

GoogleCodeExporter commented 9 years ago
This was recently fixed. Dynamic declarations are changed to class_alias ("x", 
"x2);
for a dynamic declaration of x(), and the original declaration of x is moved to 
the
top level, and called x2().

Original comment by paul.biggar on 6 Sep 2008 at 4:07