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
|
|
164:63855c5d72af
|
2008-10-26 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added methods to convert from blocks to code sequences.
Added the missing location attribute to Block instances. |
|
|
micropython/ast.py micropython/common.py
|
|
163:b21ccdf5fb57
|
2008-10-25 |
Paul Boddie |
changeset
files
shortlog
graph
|
Introduced code blocks in place of labels, potentially leading to increased
code manipulation possibilities. |
|
|
micropython/ast.py micropython/common.py
|
|
162:9156ef49a20f
|
2008-10-10 |
Paul Boddie |
changeset
files
shortlog
graph
|
Added the raw form of Module objects.
Added some nicer debugging support in the RSVPMachine class. |
|
|
micropython/rsvp.py rsvp.py
|
|
161:383690df8720
|
2008-09-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Fixed unary operator frame preparation.
Added comments and docstrings.
Added an optimiser reset after each comparison operation. |
|
|
micropython/ast.py
|
|
160:588a63ef5275
|
2008-09-29 |
Paul Boddie |
changeset
files
shortlog
graph
|
Re-ordered the methods according to corresponding node type.
Fixed binary operator results in comparisons.
Added some optimiser reset operations in various control-flow statements. |
|
|
micropython/ast.py
|
|