174:e38b8757fabc
|
2008-12-12 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added some support for constant data.
Fixed LoadAttr and StoreAttr to actually access attribute locations.
Fixed RSVP execution of source and input instructions. |
|
|
micropython/__init__.py rsvp.py
|
|
173:e9402bb3f2de
|
2008-12-02 |
Paul Boddie |
changeset
files
shortlog
graph
|
Moved raw code production into the Importer class.
Attempted to support full, proper positioning of objects and code blocks.
Removed obsolete label support. |
|
|
micropython/__init__.py micropython/ast.py micropython/data.py micropython/rsvp.py test.py tests/attributes1.py
|
|
172:a25117656161
|
2008-11-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Moved method name information into the common module.
Tidied the handler methods for operators in the Translation class, making use of
the new binary and unary method name dictionaries which encode previously inline
information.
Introduced anticipated operator method name accounting to the inspect module,
ensuring that required methods are not removed before code generation occurs. |
|
|
micropython/ast.py micropython/common.py micropython/inspect.py
|
|
171:13861cd5d245
|
2008-11-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added status flags to the Importer, ensuring that certain operations (vacuum and
finalise) are performed before other operations.
Removed an explicit vacuum call from the test program.
Modified the code generation condition for functions, depending on whether they
have been referenced in a program.
Removed attribute finalisation in Class when class attributes are requested
since such details may be requested before finalisation.
Changed the InspectedModule vacuum method, removing the redundant deletion of
module names, instead relying on the master list of attribute/global names used
in a program. Added class namespace vacuuming using the master names list and
referencing information.
Added a finalise method to the InspectedModule class. |
|
|
micropython/__init__.py micropython/ast.py micropython/data.py micropython/inspect.py test.py
|
|
170:06a8cc27a08a
|
2008-11-08 |
Paul Boddie |
changeset
files
shortlog
graph
|
Upheld the class/function restrictions on removing objects. |
|
|
micropython/inspect.py
|
|
169:5272000fc62e
|
2008-11-08 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added name accounting. |
|
|
micropython/__init__.py micropython/inspect.py
|
|
168:01b3a070af34
|
2008-11-08 |
Paul Boddie |
changeset
files
shortlog
graph
|
Moved constant accounting to the Importer class. |
|
|
micropython/__init__.py micropython/ast.py micropython/inspect.py
|
|
167:a40a277b1332
|
2008-11-08 |
Paul Boddie |
changeset
files
shortlog
graph
|
Moved optimisations onto instances of the Importer class, using such instances
from InspectedModule and Translation instances. Removed the optimisations
parameter from the get_image methods and the initialisers of the affected
classes.
Moved various built-in values to a predefined constants list in the
InspectedModule class.
Changed lambda object inspection to return an Instance where a dynamic object
would be required; this requires a corresponding alteration in the Translation
class to prevent optimisations being attempted on the Instance, although such
optimisations could be permitted in future.
Refined the all_objects attribute on InspectedModule instances to only contain
Class and Function instances.
Added support for checking whether objects have been referenced, introducing
instance attributes on data objects for this purpose. Firstly, during
inspection, use of the names of classes and functions is tracked. Subsequently,
unreferenced classes and functions (but not methods) are removed from the
all_objects list. Finally, during translation, the code of unreferenced classes
and functions is suppressed.
Added an "unused objects" optimisation using the reference checking support.
Changed module reference storage to always involve attribute objects, not bare
module objects. |
|
|
lib/builtins.py micropython/__init__.py micropython/ast.py micropython/data.py micropython/inspect.py micropython/opt.py test.py
|
|
166:390c6b60cc04
|
2008-10-28 |
Paul Boddie |
changeset
files
shortlog
graph
|
Add name retrieval method for checking raw output and ensuring that each object
uses the appropriate classcode. |
|
|
micropython/table.py
|
|
165:b46b27a60bcd
|
2008-10-27 |
Paul Boddie |
changeset
files
shortlog
graph
|
Moved block expansion into the micropython.rsvp module's raw processing
functions.
Reverted the get*_code methods on the Translation class to return blocks.
Removed the Label class. |
|
|
micropython/ast.py micropython/common.py micropython/rsvp.py
|
|