Paul Sokolovsky
90a36942b4
lib/axtls: Add axtls git submodule, dependency of modussl.
From https://github.com/pfalcon/axtls , branch micropython.
9 years ago
Paul Sokolovsky
1ea4b77a9a
unix/modjni: jclass.__str__/__repr__: Return Java .toString() value.
9 years ago
Damien George
0496de26d3
py: Allow to enable inline assembler without native emitter.
9 years ago
Paul Sokolovsky
f22be4ebd9
unix/modjni: jobject.__str__/__repr__: Return Java .toString() value.
9 years ago
Damien George
34f26ea862
tests: Allow tests to pass against CPython 3.5.
All breaking changes going from 3.4 to 3.5 are contained in
basics/python34.py.
9 years ago
Paul Sokolovsky
9e0a3d46b6
unix/modjni: Convert Java's IndexOutOfBoundsException to Python's IndexError.
9 years ago
Damien George
90b1cc5103
minimal: Tune parser chunk allocation policy for very small heap.
9 years ago
Damien George
58e0f4ac50
py: Allocate parse nodes in chunks to reduce fragmentation and RAM use.
With this patch parse nodes are allocated sequentially in chunks. This
reduces fragmentation of the heap and prevents waste at the end of
individually allocated parse nodes.
Saves roughly 20% of RAM during parse stage.
9 years ago
Damien George
e5635f4ab3
py: Catch all cases of integer (big and small) division by zero.
9 years ago
Damien George
2065373f67
py/mpz: Fix bignum anding of large negative with smaller positive int.
9 years ago
Damien George
a81539db25
tests: Add further tests for mpz code.
9 years ago
Damien George
2f4e8511cd
py/mpz: Force rhs of mpz_shl_inpl/mpz_shr_inpl to be unsigned.
Python semantics are that rhs of shift must be non-negative, so there's
no need to handle negative values in the underlying mpz implementation.
9 years ago
Damien George
4c02e54298
py/mpz: Raise NotImplError instead of failing assertion.
9 years ago
Damien George
5f3c3ec5e6
py/parsenum: Provide detailed error for int parsing with escaped bytes.
This patch adds more fine grained error message control for errors when
parsing integers (now has terse, normal and detailed). When detailed is
enabled, the error now escapes bytes when printing them so they can be
more easily seen.
9 years ago
Paul Sokolovsky
c4489a0543
unix/modjni: Propagate Java exceptions on list access.
9 years ago
Paul Sokolovsky
0eba162ab5
unix/modjni: Fix method argument matching.
9 years ago
Paul Sokolovsky
f3ca8623f7
unix/modjni: Implement len() for objects with java.util.List interface.
9 years ago
Paul Sokolovsky
77020281ae
unix/modjni: call_method: Delete done local references in loop.
To avoid local ref table overflow.
9 years ago
Tom Soulanille
f1a9923308
py/objrange: Bugfix for range_subscr() when index is a slice object.
9 years ago
Tom Soulanille
2a8a564fbd
tests: Test slicing a range that does not start at zero.
9 years ago
Paul Sokolovsky
0d28a3edb9
unix/modjni: call_method: Better resource release.
9 years ago
Daniel Campora
ff736d6f6f
cc3200: WiPy SW v1.0.0 release.
9 years ago
Daniel Campora
d88d3b0b3a
tests/wipy: Skip the rtc_irq test.
9 years ago
Daniel Campora
b6bdb0dbda
cc3200: Always reset WLAN after setting the mode.
9 years ago
Daniel Campora
ed6a5b78ad
cc3200: Make auth param positional in wlan.connect.
9 years ago
Daniel Campora
d5de1bf853
tests: Skip uheapq1 test if target is WiPy.
9 years ago
Daniel Campora
eb9a3ec654
cc3200: Disable uheapq and uhashlib.
Those two are rarely used features and better to have the extra heap.
9 years ago
Daniel Campora
6143f63560
tests/wipy: Fix error in wlan test.
9 years ago
Daniel Campora
37a2015cc5
tests/wipy: Add machine module tests.
9 years ago
Daniel Campora
958e273336
tests: Skip extmod machine tests when target is WiPy.
9 years ago
Daniel Campora
c92e6a45eb
cc3200: Rename pyb module to machine.
9 years ago
Daniel Campora
0a7e4fa5ce
tests/wipy: Improve robustness of rtc_irq test.
9 years ago
Daniel Campora
8192310dad
tests/wipy: Improve robustness of time test.
9 years ago
Daniel Campora
ef369249cb
cc3200: Implement support for os.dupterm().
9 years ago
Daniel Campora
a7261ae059
cc3200/mods: Use mp_obj_get_array_fixed_n() where applicable.
9 years ago
Daniel Campora
635ef16432
cc3200/tools: Improve update script robustness.
9 years ago
Daniel Campora
57fa14b5be
cc3200: New WLAN API including test.
9 years ago
Daniel Campora
dbdcb58d64
cc3200: New irq API, affects all classes that provide the irq method.
9 years ago
Paul Sokolovsky
81d64ab939
unix/modjni: call_method(): If name doesn't match, cleanup via goto next_method.
9 years ago
Paul Sokolovsky
c0a79cc919
unix/modjni: Need to really use per-rettype Call*Method functions.
9 years ago
Paul Sokolovsky
7e18d3b6ff
unix/modjni: new_jobject(): Handle null reference.
9 years ago
Damien George
9d5e5c08ab
py/compile: Put compiler state on the C stack.
It's relatively small (between 44 and 56 bytes) and helps to reduce heap
pressure and fragmentation during compilation.
9 years ago
Damien George
5572f735b6
docs: Bump version to 1.4.6.
9 years ago
Paul Sokolovsky
e632b1fda7
unix/modjni: Factor out is_object_type().
9 years ago
stijn
941040e9e8
windows: Make mpconfigport.h up-to-date with the unix port
9 years ago
stijn
dfa915a6af
tests: Omit process output parsing in case of CalledProcessError
Adding a line-end makes the determination of skip_native fail as it compares
the output against b'CRASH' while it is in fact b'CRASH\n'
9 years ago
Damien George
fbcaf0ea18
py: Slightly simplify compile and emit of star/double-star arguments.
Saves a few bytes of code space and eliminates need for rot_two
bytecode (hence saving RAM and execution time, by a tiny bit).
9 years ago
Delio Brignoli
e6978a4e26
py: Fix call args when a stararg is followed by keyword args.
9 years ago
Vicente Olivert Riera
587914169c
unix/modffi.c: cast first to intptr_t when casting from/to pointer
This fixes errors like these ones:
modffi.c: In function 'return_ffi_value':
modffi.c:143:29: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
const char *s = (const char *)val;
^
modffi.c:162:20: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
return (mp_obj_t)val;
^
modffi.c: In function 'ffifunc_call':
modffi.c:358:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
values[i] = (ffi_arg)a;
^
modffi.c:373:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
values[i] = (ffi_arg)s;
^
modffi.c:381:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
values[i] = (ffi_arg)bufinfo.buf;
^
modffi.c:384:25: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
values[i] = (ffi_arg)p->func;
^
These errors can be highlighted when building micropython from MIPS64
n32 because ffi_arg is 64-bit wide and the pointers on MIPS64 n32 are
32-bit wide, so it's trying to case an integer to a pointer (or
vice-versa) of a different size. We should cast first the pointer (or the
integer) to a pointer sized integer (intptr_t) to fix that problem.
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
9 years ago
Paul Sokolovsky
ed22e9ba3e
unix/modjni: Move type analysis logic to new_jobject(), for reuse.
9 years ago