| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-04-12 | Merge pull request #465 from xbe/unix-gc | Damien George | |
| unix: Fix GC not tracing .data | |||
| 2014-04-12 | py: Remove useless implementations of NOT_EQUAL in binary_op's. | Damien George | |
| I'm pretty sure these are never reached, since NOT_EQUAL is always converted into EQUAL in mp_binary_op. No one should call type.binary_op directly, they should always go through mp_binary_op (or mp_obj_is_equal). | |||
| 2014-04-12 | py: Change inline to static inline for 2 functions. | Damien George | |
| 2014-04-12 | py, compiler: Fix up creation of default positionals tuple. | Damien George | |
| With new order of evaluation of defaults, creating the tuple was done in the wrong spot. | |||
| 2014-04-11 | Merge branch 'master' of github.com:micropython/micropython | Damien George | |
| 2014-04-11 | py, compiler: Fix compiling of keyword args following named star. | Damien George | |
| 2014-04-12 | showbs: Dump LOAD_CONST_BYTES. | Paul Sokolovsky | |
| 2014-04-12 | showbc: Dump LOAD_NULL. | Paul Sokolovsky | |
| 2014-04-12 | py: Implement "from pkg import mod" variant of import. | Paul Sokolovsky | |
| 2014-04-12 | builtinimport: Set __path__ attribute on packages. | Paul Sokolovsky | |
| Per https://docs.python.org/3.3/reference/import.html , this is the way to tell module from package: "Specifically, any module that contains a __path__ attribute is considered a package." And it for sure will be needed to implement relative imports. | |||
| 2014-04-12 | builtinimport: Elaborate debug output support. | Paul Sokolovsky | |
| 2014-04-12 | py: Preprocess qstrdefs.h before feeding to makeqstrdata.py. | Paul Sokolovsky | |
| This is alternative implementation of supporting conditionals in qstrdefs.h, hard to say if it's much cleaner than munging #ifdef's in Python code... | |||
| 2014-04-12 | Revert "makeqstrdata.py: Add support for conditionally defined qstrs." | Paul Sokolovsky | |
| This reverts commit acb133d1b1a68847bd85c545312c3e221a6f7c0b. Conditionals will be suported using C preprocessor. | |||
| 2014-04-11 | py: Revert some inline functions back to macros, since they bloat stmhal. | Damien George | |
| 2014-04-11 | unix: Update comment in gccollect.c | xbe | |
| 2014-04-11 | py: Change compile order for default positional and keyword args. | Damien George | |
| This simplifies the compiler a little, since now it can do 1 pass over a function declaration, to determine default arguments. I would have done this originally, but CPython 3.3 somehow had the default keyword args compiled before the default position args (even though they appear in the other order in the text of the script), and I thought it was important to have the same order of execution when evaluating default arguments. CPython 3.4 has changed the order to the more obvious one, so we can also change. | |||
| 2014-04-11 | py, compiler: Allow lambda's to yield. | Damien George | |
| 2014-04-11 | py: Implement compiling of *-expr within parenthesis. | Damien George | |
| 2014-04-11 | py: Convert some macros to inline functions (in obj.h). | Damien George | |
| Also convert mp_obj_is_integer to an inline function. Overall this decreased code size (at least on 32-bit x86 machine). | |||
| 2014-04-11 | py: Fix up object equality test. | Damien George | |
| It regressed a bit after implementing float/complex equality. Now it should be improved, and support more equality tests. | |||
| 2014-04-11 | py: Simplify and improve mp_get_index. | Damien George | |
| It has (again) a fast path for ints, and a simplified "slow" path for everything else. Also simplify the way str indexing is done (now matches tuple and list). | |||
| 2014-04-11 | Merge branch 'master' of github.com:micropython/micropython | Damien George | |
| 2014-04-11 | py: Implement float and complex == and !=. | Damien George | |
| Addresses issue #462. | |||
| 2014-04-11 | Merge pull request #461 from lurch/patch-1 | Damien George | |
| Update mkrules.mk | |||
| 2014-04-11 | py: Check that sequence has 2 elements for dict iterable constructor. | Damien George | |
| 2014-04-11 | objdict: Implement construction from iterable of pairs. | Paul Sokolovsky | |
| Pairs are limited to tuples so far. | |||
| 2014-04-11 | objdict: Implement __getitem__ method. | Paul Sokolovsky | |
| 2014-04-11 | modffi: Update for latest binary API refactors. | Paul Sokolovsky | |
| 2014-04-11 | modstruct: Basic implementation of native struct alignment and types. | Paul Sokolovsky | |
| 2014-04-11 | binary: Rename array accessors for clarity. | Paul Sokolovsky | |
| 2014-04-11 | mpconfig.h: Add basic support for target endianness configuration. | Paul Sokolovsky | |
| A specific target can define either MP_ENDIANNESS_LITTLE or MP_ENDIANNESS_BIG to 1. Default is MP_ENDIANNESS_LITTLE. TODO: Autodetect based on compiler predefined macros? | |||
| 2014-04-11 | modstruct: Refactor to support both LE and BE packed structs. | Paul Sokolovsky | |
| 2014-04-11 | Update mkrules.mk | Andrew Scheller | |
| make 'make clean' cleaner ;-) | |||
| 2014-04-10 | Merge pull request #460 from lurch/patch-2 | Damien George | |
| Update .gitignore | |||
| 2014-04-10 | Merge pull request #458 from lurch/patch-1 | Damien George | |
| Tweak pybcdc.inf to match recent changes to pybcdc.h | |||
| 2014-04-10 | stmhal: Add stm module, which contains some constants for the MCU. | Damien George | |
| Also contains raw memory read/write functions, read8, read16, read32, write8, write16, write32. Can now do: stm.write16(stm.GPIOA + stm.GPIO_BSRRL, 1 << 13) This turns on the red LED. With the new constant folding, the above constants for the GPIO address are actually compiled to constants (and the addition done) at compile time. For viper code and inline assembler, this optimisation will make a big difference. In the inline assembler, using these constants would not be possible without this constant folding. | |||
| 2014-04-10 | py: Add simple way of looking up constants in compiler. | Damien George | |
| Working towards trying to support compile-time constants (see discussion in issue #227), this patch allows the compiler to look inside arbitrary uPy objects at compile time. The objects to search are given by the macro MICROPY_EXTRA_CONSTANTS (so they must be constant/ROM objects), and the constant folding occures on forms base.attr (both base and attr must be id's). It works, but it breaks strict CPython compatibility, since the lookup will succeed even without importing the namespace. | |||
| 2014-04-10 | Update .gitignore | Andrew Scheller | |
| Add test failure logs | |||
| 2014-04-10 | py: Fix float/complex binop returning NULL; implement complex power. | Damien George | |
| 2014-04-10 | tests: Add test for multi-comparison. | Damien George | |
| 2014-04-10 | py: Simplify stack get/set to become stack adjust in emitters. | Damien George | |
| Can do this now that the stack size calculation is improved. | |||
| 2014-04-10 | py, compiler: Improve stack depth counting. | Damien George | |
| Much less of a hack now. Hopefully it's correct! | |||
| 2014-04-10 | py: Make sure state/stack of byte code function has at least 1 slot. | Damien George | |
| 2014-04-10 | py: Fix VM stack overflow detection. | Damien George | |
| 2014-04-10 | py: Add option to VM to detect stack overflow. | Damien George | |
| 2014-04-10 | py: Add missing dummy functions to pass 1 emitter. | Damien George | |
| 2014-04-10 | py: Check explicitly for memory allocation failure in parser. | Damien George | |
| Previously, a failed malloc/realloc would throw an exception, which was not caught. I think it's better to keep the parser free from NLR (exception throwing), hence this patch. | |||
| 2014-04-10 | Make lexerunix not allocate RAM for the entire script. | Damien George | |
| Now reads in small chunks at a time. | |||
| 2014-04-10 | py: Add emergency exception object for when heap allocation fails. | Damien George | |
| 2014-04-10 | py: Make labels unsigned ints (converted from int). | Damien George | |
| Labels should never be negative, and this modified type signature reflects that. | |||
