165 Commits (6d82499a487a5f528e268c6d0415393965a75587)

Author SHA1 Message Date
Damien George 7bc71f5446 py/objfun: Make fun_data arg of mp_obj_new_fun_asm() a const pointer. 6 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Damien George afecc124e6 py: Fix location of VM returned exception in invalid opcode and comments 6 years ago
Damien George 6d19934463 py: Get optional VM stack overflow check compiling and working again. 6 years ago
Damien George cc2bd63c57 py/emitnative: Implement yield and yield-from in native emitter. 6 years ago
Damien George d95947b48a py/vm: When VM raises exception put exc obj at beginning of func state. 6 years ago
Damien George 43f1848bfa py: Make viper functions have the same entry signature as native. 6 years ago
Damien George 9f241ef398 py: Optimise call to mp_arg_check_num by compressing fun signature. 6 years ago
Damien George b630dfcc1d py: Fix compiling with debug enabled and make more use of DEBUG_printf. 6 years ago
Damien George e2e22e3d7e py/objgenerator: Implement __name__ with normal fun attr accessor code. 6 years ago
Tom Collins a883fe12d9 py/objfun: Fix variable name in DECODE_CODESTATE_SIZE() macro. 7 years ago
Damien George 1e5a33df41 py: Convert all uses of alloca() to use new scoped allocation API. 7 years ago
Paul Sokolovsky 2b00181592 py/objfun: Factor out macro for initializing codestate. 7 years ago
Paul Sokolovsky d72370def7 py/objfun, vm: Add comments on codestate allocation in stackless mode. 7 years ago
Paul Sokolovsky fca1d1aa62 py/objfun: Factor out macro for decoding codestate size. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Stefan Naumann ace9fb5405 py: Add verbose debug compile-time flag MICROPY_DEBUG_VERBOSE. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George a8a5d1e8c8 py: Provide mp_decode_uint_skip() to help reduce stack usage. 8 years ago
Damien George 6b34107537 py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg. 8 years ago
Damien George 6213ad7f46 py: Convert mp_uint_t to size_t for tuple/list accessors. 8 years ago
Damien George 71a3d6ec3b py: Reduce size of mp_code_state_t structure. 8 years ago
Krzysztof Blazewicz 7e480e8a30 py: Use mp_obj_get_array where sequence may be a tuple or a list. 8 years ago
Damien George dbcdb9f8d8 py/objfun: Convert mp_uint_t to size_t where appropriate. 8 years ago
Damien George ad297a1950 py: Allow inline-assembler emitter to be generic. 8 years ago
Damien George 571e6f26db py: Specialise builtin funcs to use separate type for fixed arg count. 8 years ago
Damien George 0c595fa094 py/objfun: Use if instead of switch to check return value of VM execute. 8 years ago
Damien George c71edaed73 py/objfun: Remove unnecessary check for viper fun with 5 or more args. 8 years ago
Damien George 581a59a456 py: Rename struct mp_code_state to mp_code_state_t. 8 years ago
Damien George 9a58316de2 py/objfun: Allow inline-asm functions to be called with 4 arguments. 9 years ago
Damien George 5f3e005b67 py: Extend native type-sig to use 4 bits, so uint is separate to ptr. 9 years ago
Damien George 8f54c08691 py/inlineasm: Add ability to specify return type of asm_thumb funcs. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
Damien George 1b0aab621b py: Change struct and macro for builtin fun so they can be type checked. 9 years ago
Damien George 1d899e1783 py/bc: Use size_t instead of mp_uint_t to count size of state and args. 9 years ago
Damien George 7a30e87d2b py: Fix MICROPY_STACKLESS mode to compile with MICROPY_OBJ_REPR_D. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 9f6976b74e py: Make mp_setup_code_state take concrete pointer for func arg. 9 years ago
Damien George c8e9c0d89a py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime. 9 years ago
Damien George 713ea1800d py: Add constant table to bytecode. 9 years ago
Damien George 3a3db4dcf0 py: Put all bytecode state (arg count, etc) in bytecode. 9 years ago
Damien George 9b7f583b0c py: Reorganise bytecode layout so it's more structured, easier to edit. 10 years ago
Damien George e45c1dbd6f py: Allow viper functions to take up to 4 arguments. 9 years ago
Damien George 6e56bb623c py: Fallback to stack alloca for Python-stack if heap alloc fails. 10 years ago
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 10 years ago
Paul Sokolovsky cf5b6f6974 objfun: Fix to stackless mode after recent refactor. 10 years ago
Damien George 044c473de2 py: Add %q format support to mp_[v]printf, and use it. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George b1bbe966c4 py: Combine load_attr and store_attr type methods into one (attr). 10 years ago
Damien George 4dea922610 py: Adjust some spaces in code style/format, purely for consistency. 10 years ago