96 Commits

Author SHA1 Message Date
pikastech
be07caab14 format
format parser

format parser and support 'in' for string
2022-08-09 12:57:00 +08:00
pikastech
a4dcc337bc support is keyword 2022-08-08 20:09:10 +08:00
pikastech
1d97f4b34e support hook_instruct 2022-08-06 15:56:27 +08:00
pikastech
e929bc67db use more macro inline in arg.h 2022-07-31 15:22:53 +08:00
pikastech
76f7c68c83 move flag __size[x] to vm ireg 2022-07-31 14:55:03 +08:00
pikastech
4899884747 use u32 for mem info
add speed by using register in for-loop

fix ci_benchmark
2022-07-31 11:14:49 +08:00
pikastech
a40f68e9b2 use more inline in PikaVM
use static refcnt in PikaObj

use static _clsptr
2022-07-30 21:26:46 +08:00
李昂
f69dcf4d6d !49 fix for loop continue position err
* fix for loop continue bug
* adding jmp_deepth in VM
2022-07-12 08:07:04 +00:00
pikastech
0921ee69c4 simplify the byteCodeGen main.c 2022-07-11 23:17:25 +08:00
李昂
660a97110f !47 not use suger to parse slice
* use __vm_[get/slice] for sysobj
* not use suger in slice
* parser for new slice is ok
* add SLC ins
2022-07-11 06:42:12 +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
李昂
442e51e314 !35 support try raise the first step
* Merge branch 'master' into trydev
* Merge branch 'master' into trydev
* Merge branch 'master' into trydev
* Merge branch 'master' into trydev
* Merge branch 'master' into trydev
* raise in function not ok
* support except
* add GER ins
* try raise is test ok
* support default raise RuntimeError
* add except test
* jmp to skip except block after try
* add <try:> parse
2022-06-24 05:44:50 +00:00
pikastech
ab795de30c pikaVM_runFile change to interpreter mode 2022-06-23 15:37:04 +08:00
李昂
7936348820 !33 support class parameters
* update package
* class_par is tested ok
2022-06-21 09:16:38 +00:00
pikastech
05fb31c9f2 chek overflow of LINE BUFF, support \" and \' 2022-06-07 11:16:02 +08:00
lyon
e7d8359891 clear the __IMPLEMENT__ 2022-05-23 22:28:09 +08:00
lyon
b9f3a65de3 remove class_def from PikaObj.h and PikaVM.h 2022-05-23 22:24:38 +08:00
lyon
d82c3241ae clear the content_<> API, add 'clang-format off' to def_class 2022-05-22 21:52:37 +08:00
Lyon
b359062172
Dev (#118)
* add PLOOC

* add PLOOC to kernal

* remove unrequired files

* remove pack

* fix plooc ci in test/*.cpp

* add test_common.h

Co-authored-by: Gabriel Wang <embedded_zhuoran@Hotmail.com>
2022-05-19 20:52:19 +08:00
lyon
54b1738155 scan bytecode and get compile list is ok 2022-05-07 18:21:38 +08:00
lyon
94a47b1fbc load bytecode ok 2022-05-07 14:46:24 +08:00
lyon
882421ae5b add PikaLib class to gen '*.a' 2022-04-29 23:56:54 +08:00
lyon
edc8c99ded format pikavm 2022-04-27 19:26:47 +08:00
lyon1998
2fae86de32 fix error info 2022-04-03 12:55:06 +08:00
lyon1998
bd0742388b rename config macro 2022-03-30 11:24:51 +08:00
lyon1998
26942923bf use static stack instead of link stack 2022-03-30 00:27:04 +08:00
lyon1998
6256d26b62 put stack to vmstate 2022-03-29 21:48:12 +08:00
lyon1998
6e7ffdade1 still faild in pikaMain class_def test 2022-03-29 18:02:55 +08:00
lyon1998
0d8ef5e5f7 add q_array in vmstate 2022-03-23 14:51:31 +08:00
lyon1998
a553732ef6 use vmstate to transfer errorcode 2022-03-22 09:56:23 +08:00
lyon1998
1bd08749b1 cancel vmConfig 2022-03-22 08:26:35 +08:00
lyon1998
b9ed3e5599 update core 2022-03-17 16:56:30 +08:00
lyon1998
494f61a562 bytecodeFrame print as array is ok 2022-03-17 15:43:26 +08:00
lyon1998
c9ec4ba588 print const_pool as array is ok 2022-03-17 14:11:24 +08:00
lyon1998
bca1db28c4 unly deinit arg when arg is not NULL 2022-03-17 12:54:26 +08:00
lyon1998
122bee569d use content_start to return content_start in pool 2022-03-17 12:49:34 +08:00
lyon1998
4210cf37c0 not use define in some operathion of bytecode 2022-03-17 12:15:28 +08:00
lyon1998
1df5292130 use printwithconst in bytecode_print 2022-03-16 23:21:55 +08:00
lyon1998
12ed23ddd7 use exist const, fix RET parse format 2022-03-16 14:40:51 +08:00
lyon1998
d5db14067a use arg_append to save MethodInfo is ok 2022-03-15 17:46:22 +08:00
lyon1998
7b45fdfdf5 add runByteCodeWithState to VM.h 2022-03-15 13:01:05 +08:00
lyon1998
5a97c8cb96 use byteCode_frame in VMState 2022-03-15 12:31:05 +08:00
lyon1998
03ad83a7d9 clear pikaVM_run_config 2022-03-14 21:24:35 +08:00
lyon1998
044e02ea8f use pc instead of pc_i 2022-03-14 21:19:39 +08:00
lyon1998
371ccd1c08 clear ran asm directly 2022-03-14 21:18:35 +08:00
lyon1998
5d1b83a417 solve bug when jum to the end 2022-03-14 18:46:57 +08:00
lyon1998
9be5ac4b88 def is not ok 2022-03-14 12:16:52 +08:00
lyon1998
dddcc30b44 test for continue and break is ok 2022-03-14 12:12:04 +08:00
lyon1998
f72fb9d84a use __gotoXXXLine instead 2022-03-14 11:02:54 +08:00
lyon1998
641e0334d4 use inline in ins_array_get_by_offset 2022-03-14 10:52:13 +08:00