440 Commits

Author SHA1 Message Date
lyon1998
ac511d6f34 use bytecode in stdtask for all 2022-03-17 17:28:32 +08:00
lyon1998
ff1c71322b update PikaStdTask to bytecode based 2022-03-17 16:47:03 +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
1df5292130 use printwithconst in bytecode_print 2022-03-16 23:21:55 +08:00
lyon1998
0ebd08e245 add asm to bytecode print 2022-03-16 14:46:23 +08:00
lyon1998
12ed23ddd7 use exist const, fix RET parse format 2022-03-16 14:40:51 +08:00
lyon1998
a868117fbc save bytecode to heap in the first obj_run is ok 2022-03-16 13:42:43 +08:00
lyon1998
66c583218e args_heapStuct is tested ok 2022-03-16 12:16:09 +08:00
lyon1998
c970d45f43 task is ok 2022-03-15 18:26:33 +08:00
lyon1998
03ad83a7d9 clear pikaVM_run_config 2022-03-14 21:24:35 +08:00
lyon1998
371ccd1c08 clear ran asm directly 2022-03-14 21:18:35 +08:00
lyon1998
66884deb78 clear run as asm 2022-03-14 21:12:32 +08:00
lyon1998
5d1b83a417 solve bug when jum to the end 2022-03-14 18:46:57 +08:00
lyon1998
48ffadf060 print error info with constPool 2022-03-14 17:48:08 +08:00
lyon1998
daa8e01c10 task, class is not ok 2022-03-14 16:00:09 +08:00
lyon1998
25e1a76f02 def for bytecode is ok 2022-03-14 15:56:08 +08:00
lyon1998
c2a459a0ab befor add native_method 2022-03-14 13:43:07 +08:00
lyon1998
dddcc30b44 test for continue and break is ok 2022-03-14 12:12:04 +08:00
lyon1998
86253e9eaf use VMState_method istead of __fun 2022-03-13 19:01:34 +08:00
lyon1998
842fc67f23 run byteCodeFrame without jmp is ok 2022-03-13 16:59:01 +08:00
lyon1998
d83265d345 byteCodePrint is ok 2022-03-13 13:04:07 +08:00
lyon1998
eb35a8c536 byteCodeFrame_print is ok 2022-03-13 13:00:45 +08:00
lyon1998
e73a8d2950 append bytecodeUnit when append byteCodeFrame tested ok 2022-03-13 12:54:44 +08:00
lyon1998
8d5ba40b14 instructArray print is ok 2022-03-13 12:01:25 +08:00
lyon1998
87c30b2cb3 test ins_unit_print ok 2022-03-13 10:24:18 +08:00
lyon1998
7e832dc037 ByteCodeFrame_appendFromAsm for ConstPool is ok 2022-03-12 22:42:25 +08:00
lyon1998
7c989a16ca constPool_print is ok 2022-03-12 22:06:38 +08:00
lyon1998
8d234de6ba constPool append tools is ok 2022-03-12 21:55:11 +08:00
lyon1998
2b02818c9e arg_append any content is ok 2022-03-12 20:52:25 +08:00
lyon1998
b3d6206c45 get byteCodeUnit and ConstPoolBuff from Asm is ok 2022-03-11 22:50:36 +08:00
lyon1998
a4cd654b45 tested ok byteCode_getTotleSize 2022-03-11 17:08:12 +08:00
lyon
716abf833c not use buffs in getNextLine 2022-03-10 18:18:44 +08:00
lyon
624ee16b59 setData and getData in byteCodeUnit is ok 2022-03-10 17:28:29 +08:00
lyon
b6e323e8fa add byteCodeUnit and tested set/get 2022-03-10 17:08:15 +08:00
lyon
ac4247e5fd use sys_malloc and fix a mem bug 2022-03-09 14:01:35 +08:00
lyon
db8094d9a5 class_def is not passed 2022-03-09 13:22:55 +08:00
lyon
f6533d156b use pointTo instead of GetLastToken 2022-03-09 11:28:09 +08:00
lyon
a0cad21ed9 fix -a != 0-a 2022-03-08 12:29:30 +08:00
lyon
aee0849c8d support obj_run fu defed in the first obj_run 2022-03-08 12:00:50 +08:00
lyon
3b9dcd1b0c derive of class demo is passed 2022-03-02 15:48:27 +08:00
lyon
ea78cabb5f support 2022-03-02 15:43:27 +08:00
lyon
ee91552bbb pass class demo 1, run.sh not pass 2022-03-02 15:37:17 +08:00
lyon
03f5b2cff3 support class def and self 2022-03-02 15:03:11 +08:00
lyon
fd26a79fc8 rename TYPE_X to ARG_TYPE_X 2022-03-02 10:34:33 +08:00
lyon
195bf97fac call global fun tested ok inner class fun 2022-03-02 01:55:11 +08:00
lyon
849b8002b6 class def is nearly ok, pure fun is ok, connot call main fun 2022-03-01 22:45:59 +08:00
lyon
47905a12c9 add pikaMain to test class attribute 2022-03-01 20:57:04 +08:00
lyon
7692d38928 improve test 2022-03-01 20:55:06 +08:00
lyon
5ef923f3e3 class with attribute tested ok 2022-03-01 20:52:50 +08:00