175 Commits (f62cc41fac007f38b661e09d638385241084a540)

Author SHA1 Message Date
David Lechner 8a4ce6b79a tools/codeformat.py: Eliminate need for sizeof fixup. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George a1b18b3ba7 py: Removing dangling "else" to improve code format consistency. 5 years ago
Damien George bfbd94401d py: Make mp_obj_get_type() return a const ptr to mp_obj_type_t. 5 years ago
Damien George c8c0fd4ca3 py: Rework and compress second part of bytecode prelude. 5 years ago
Damien George b5ebfadbd6 py: Compress first part of bytecode prelude. 5 years ago
Damien George 81d04a0200 py: Add n_state to mp_code_state_t struct. 5 years ago
Damien George cd35dd9d9a py: Allow to pass in read-only buffers to viper and inline-asm funcs. 5 years ago
Jun Wu 089c9b71d1 py: remove "if (0)" and "if (false)" branches. 6 years ago
Damien George 0e4c24ec08 py/nativeglue: Rename native convert funs to match other native helpers. 6 years ago
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