Source

pypy / pypy / translator / cli / record.py

Author Commit Message Labels Comments Date
Antonio Cuni
(in-progress) copy the cli backend from the oo-jit branch
Antonio Cuni
automatically use ledit to start pypy-{cli,jvm} if available
Antonio Cuni
refactor how gencli represent .NET types: instead of using strings, use instances of our own class hierarchy; this add an additional layer between ootype's types and .NET types which will allow for much more flexibility in the future.
Antonio Cuni
Don't use the first field for hashing when the field is Void.
Antonio Cuni
Ignore void fields in record comparison.
Antonio Cuni
Prepend 'class' here and there to make Microsoft ilasm happy.
Antonio Cuni
A bit of refactoring: - make sure that classes and records have an unique name when in the same namespace; - rename all the 'classdef' attributes into 'INSTANCE': classdef was there for historical reasons; - don't use a global cts and database for EntryPoints, but let GenCli passing it to them.
Antonio Cuni
Make sure that Records have unique names.
Antonio Cuni
fix a bug occuring when the Record has no fields at all.
Antonio Cuni
Mangle the name of fields in Equals and GetHashCode.
Antonio Cuni
(antocuni, arigo) Compare and hash Records by value.
Antonio Cuni
Don't store the _name attribute in the record, because it breaks the cached hash. For now we recalc the name every time, in future we might consider to cache it somewhere. The work-around for the broken hash issue is no longer needed.
Antonio Cuni
Add __ne__ when there is an __eq__
Antonio Cuni
Don't try to render Void items when converting record to string.
Antonio Cuni
Print parenthesis around the tuple when converting to string.
Antonio Cuni
bugfix
Antonio Cuni
bugfix.
Antonio Cuni
- Added support for tuple constants. - Added support for function that return tuples in runtest.CliTest, and some methods for compatibility with OORtypeMixin.
Antonio Cuni
Added support for dict iteration.
Antonio Cuni
Added support for Record.