Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | stmhal: Collect all root pointers together in 1 place. | Damien George | 2015-01-07 |
| | | | | | A GC in stmhal port now only scans true root pointers, not entire BSS. This reduces base GC time from 1700ms to 900ms. | ||
* | docs: Add initial "uctypes" modules docs. WIP. | Paul Sokolovsky | 2015-01-08 |
| | |||
* | py: Add option to cache map lookup results in bytecode. | Damien George | 2015-01-07 |
| | | | | | | | | | | | | | | | This is a simple optimisation inspired by JITing technology: we cache in the bytecode (using 1 byte) the offset of the last successful lookup in a map. This allows us next time round to check in that location in the hash table (mp_map_t) for the desired entry, and if it's there use that entry straight away. Otherwise fallback to a normal map lookup. Works for LOAD_NAME, LOAD_GLOBAL, LOAD_ATTR and STORE_ATTR opcodes. On a few tests it gives >90% cache hit and greatly improves speed of code. Disabled by default. Enabled for unix and stmhal ports. | ||
* | py: Put all global state together in state structures. | Damien George | 2015-01-07 |
| | | | | | | This patch consolidates all global variables in py/ core into one place, in a global structure. Root pointers are all located together to make GC tracing easier and more efficient. | ||
* | py: Temporary fix for conversion of float to int when fits in small int. | Damien George | 2015-01-07 |
| | | | | Addresses issue #1044 (see also #1040). Could do with a better fix. | ||
* | showbc: Show conditional jump destination as unsigned value. | Paul Sokolovsky | 2015-01-07 |
| | | | | | | | | This is consistent with how BC_JUMP was handled before. We never show jumps destinations relative to jump instrucion itself, only relative to beginning of function. Another useful way to show them as absolute (real memory address), and this change makes result expected and consistent with how BC_JUMP is shown. | ||
* | docs: For Windows USB CDC driver setup, add link to existing PDF guide. | Damien George | 2015-01-06 |
| | |||
* | objarray: Make sure that longint works as bytearray size. | Paul Sokolovsky | 2015-01-04 |
| | |||
* | msvc: Define no-op MP_LIKELY/UNLIKELY since there's no __builtin_expect | stijn | 2015-01-04 |
| | |||
* | modbuiltins.c: Fix NULL vs MP_OBJ_NULL usage. | Paul Sokolovsky | 2015-01-04 |
| | |||
* | objstr: Common subexpression elimination for vstr_str(field_name). | Paul Sokolovsky | 2015-01-04 |
| | |||
* | objstr: Implement kwargs support for str.format(). | Paul Sokolovsky | 2015-01-04 |
| | |||
* | unix: Enable -fno-crossjumping for fast build. | Paul Sokolovsky | 2015-01-03 |
| | | | | | Confirmed that it improves perfomance of simple "for i in range(N): pass" loop by 15% on Core2. | ||
* | py: Raise exception if trying to convert inf/nan to int. | Damien George | 2015-01-02 |
| | |||
* | py: Fix float to int conversion for large exponents. | David Steinberg | 2015-01-02 |
| | |||
* | msvc: Use single build target for dealing with generated files | stijn | 2015-01-02 |
| | | | | | Remove some duplication in the code for generating qstrdefs.generated.h and py-version.h | ||
* | msvc: Fix unresolved mp_arg_error_terse_mismatch since 7f23384 | stijn | 2015-01-02 |
| | | | | | | | | The compiler treats `if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE)` as a normal statement and generates assembly for it in degug mode as if MICROPY_ERROR_REPORTING is an actual symbol instead of a preprocessor definition. As such linking fails because mp_arg_error_terse_mismatch is not defined when MICROPY_ERROR_REPORTING_TERSE is detailed or normal. | ||
* | msvc: Define main build/include directories in a single location | stijn | 2015-01-02 |
| | | | | | | | | | | | - Use a single file env.props for defining the main directories used when building. env.props resolves the base directory and defines overridable output directories, and is used by all other build files. - Fix the build currently failing, basically because the preprocessing command for generating qstrdefs uses different include directories than the build itself does. (specifically, qstrdefs.h uses #include "py/mpconfig.h" since the fixes for #1022 in 51dfcb4, so we need to use the base directory as include directory, not the py dir itself). So define a single variable containing the include directories instead and use it where needed. | ||
* | py: Make GC's STACK_SIZE definition a proper MICROPY_ config variable. | Damien George | 2015-01-01 |
| | |||
* | py: Fix windows external name error for nlr_top. | Damien George | 2015-01-01 |
| | |||
* | py: Move global variable nlr_top to one place, in a .c file. | Damien George | 2015-01-01 |
| | | | | | This reduces dependency on assembler, and allows to consolidate global variables in the future. | ||
* | windows: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | esp8266: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | qemu-arm: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | bare-arm: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | teensy: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | stmhal: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | unix-cpy: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | unix: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | extmod: Prefix py/ for includes from py core directory. | Damien George | 2015-01-01 |
| | |||
* | py: Move to guarded includes, everywhere in py/ core. | Damien George | 2015-01-01 |
| | | | | Addresses issue #1022. | ||
* | emitnative: Disable warning in delete_fast for now (breaks test). | Paul Sokolovsky | 2015-01-01 |
| | |||
* | py: Add basic framework for issuing compile/runtime warnings. | Paul Sokolovsky | 2015-01-01 |
| | |||
* | py: Add guarded includes for asm-based headers. | Damien George | 2015-01-01 |
| | |||
* | docs: Add quickref info about Servo; improve Servo docs. | Damien George | 2015-01-01 |
| | |||
* | Add a command for converting the WAV files | Radomir Dopieralski | 2015-01-01 |
| | | | Add a command for converting the WAV files to the amp skin tutorial, so that people can use their own files easily. | ||
* | py: Change namedtuple error messages to reduce code size. | Damien George | 2015-01-01 |
| | | | | | | We are not word-for-word compatible with CPython exceptions, so we are free to make them short but informative in order to reduce code size. Also, try to make messages the same as existing ones where possible. | ||
* | py: Make terse_arg_mismatch a global function and use it elsewhere. | Damien George | 2015-01-01 |
| | | | | Reduces code size when MICROPY_ERROR_REPORTING_TERSE is selected. | ||
* | objnamedtuple: Make sure to initialize type structure completely. | Paul Sokolovsky | 2015-01-01 |
| | |||
* | py: Allow keyword arguments for namedtuple | stijn | 2015-01-01 |
| | |||
* | py: Use sequence of strings for named tuple initialization | stijn | 2015-01-01 |
| | | | | | | - remove single string initialization style - take list of strings instead - store list in the type for fast lookup | ||
* | msvc: Support py/*.h includes per #1022 | stijn | 2015-01-01 |
| | |||
* | py: Fix rshift and not of zero/one edge cases in mpz. | Damien George | 2014-12-31 |
| | | | | Addresses issue #1027. | ||
* | tests: Disable float/float2int.py on pyboard (needs double prec). | Damien George | 2014-12-31 |
| | |||
* | objstr: Fix %d-formatting of floats. | Paul Sokolovsky | 2014-12-31 |
| | |||
* | stmhal: Add fake implementation of __aeabi_f2lz(). | Paul Sokolovsky | 2014-12-30 |
| | | | | To make mp_obj_new_int_from_float() somehow work. | ||
* | py: mp_obj_new_int_from_float() supported only for MICROPY_PY_BUILTINS_FLOAT. | Paul Sokolovsky | 2014-12-30 |
| | |||
* | py: Implement mp_obj_new_int_from_float() for MICROPY_LONGINT_IMPL_NONE. | Paul Sokolovsky | 2014-12-30 |
| | |||
* | py: Partially fix float to int conversion. | Paul Sokolovsky | 2014-12-30 |
| | | | | | | | This fixes conversion when float type has more mantissa bits than small int, and float value has small exponent. This is for example the case of 32-bit platform using doubles, and converting value of time.time(). Conversion of floats with larg exponnet is still not handled correctly. | ||
* | tools: Add script to generate a ChangeLog file. | Damien George | 2014-12-29 |
| | | | | | | We don't have an explicit ChangeLog file, but don't really need one because we use a good version control system. This script is useful if you need a pretty-printed ChangeLog for some reason. |