18 Commits

Author SHA1 Message Date
lyon
01be7b7ad7 try to add runbytecodereturn
switch to runbytecodereturn

gc test pass except pikaui

skip pikaui test, local root not work
2023-03-09 11:23:33 +08:00
lyon
ecfb8cb62f fix CI err 2023-03-08 09:53:39 +08:00
pikastech
7f5edaf090 add objCnt
ready to check where enable the mark_sweep

auto gc with threshold failed, add some assert

more assert about obj alive, dict mark not correct

add pikaGC_try, but cannot run at any time

markSweep crashed on keyword

save gcRoot for obj to debug

add debug point

add kernal_debug config to keep more debug info

use @res_<opt> to mark operation

found self reference on __iter__()

can not fix gc err around iter

remove lock, only keep the self lock

more obj info for debug

only pikaui not pass

only pikaui not pass
2023-03-08 09:35:27 +08:00
lyon
9d4aa3c38c try to fix gc about __pikaMain
fix format

can not markSweep after deinit root

support markRoot if not root

add clang-format

fix path

enable compile-commonds on to support clangd

set markSweep not default

use no_gc object for function frame

only gc for tinyobj, not pikaobj

restore add gc chain when init pikaObj

add clang-format in docker

set for default formatter to clang-format

all Object is GC_ROOT on create

only enable mark sweep to collect after OUT

markSweep after deinit __pikaMain

more mark sweep collect
2023-03-06 10:57:08 +08:00
lyon
38388625ca support mark-sweep gc
change project name and url on kernal sources

rename global Value

format name

use g_PikaObjState

add gc chain

add gc_mark()

add printCanFree

add sub locals init

try use mark-sweep to solve circle-ref

use mark sweep to collect circle ref succeed

import mark-sweep GC

config_default

update
2023-03-05 12:57:27 +08:00
lyon
4f12ac1785 add PIKA_SHELL_FILTER enable on test_default 2023-02-13 10:58:41 +08:00
lyon
9283968a1c add test by exit innter vm hock 2022-10-26 16:57:29 +08:00
pikastech
00608e1edb bigger file_buff in test 2022-10-11 12:17:28 +08:00
pikastech
f717e9f91d arg cache rate up to 81.29% 2022-10-08 21:28:29 +08:00
pikastech
d8698d5cac reduce ram usage of stack 2022-10-02 00:00:53 +08:00
pikastech
6c6304a896 add type check for operand
support int**float (need PikaMath enabled)
2022-07-30 11:59:44 +08:00
pikastech
73123cdd9f support <int32_t size> for stack 2022-07-26 10:24:31 +08:00
李昂
b463e812bf !42 Support PikaCV, can read data from Jpeg and convert to rgb888/rgb565
* add pikaCV-test.cpp
* read(Image) and convert to RGB565 is tested ok
* transfer can return res, but not assert
* format tjpgd
* add test for PikaCV
* add assert for newContent
* restore assets
* restore PikaCV.pyi
* restore PikaCV
* restore uint16_t
* add jpeg_test.py
* move ADC, GPIO, RGB ... to Device
* add jd_decomp
* convert_JPEGtoREG888 is not ok
* connecting tjpegdec
* Converter.toRGB565() .toRGB888() .toGRay() eachother is ok
* support Gray
* add PikaCV_Image, PikaCV_ImageFormat
* add classes for PikaCV
* add PikaCV
2022-07-08 09:33:53 +00:00
李昂
b20b5f1bb5 !37 support <try> <except> <raise> keywords, not support parameter yet
* restore __pika_ooc.h
* raise in cmodule and py function is ok
* add trydef1.py
* add PIKA_ASSERT_ENABLE config, add try_info
2022-06-26 07:30:52 +00:00
pikastech
c56f35cd1a use #ifndef in config_valid.h 2022-06-24 09:37:42 +08:00
pikastech
e8ffa73d2a support multiline connection 2022-06-10 09:53:54 +08:00
pikastech
ca5f480ba0 use bigger VM stack size in gtest.config 2022-06-07 13:18:24 +08:00
lyon1998
ad808828e2 add config.h 2022-04-14 18:55:11 +08:00