ValKmjolnir
3cd9d02de4
update detailed-info
2022-03-03 19:00:23 +08:00
ValKmjolnir
aa3f6de9ef
fix bug of upval_state
2022-03-02 19:28:17 +08:00
ValKmjolnir
97663ae5bf
fix bug of -o not working.
2022-02-23 21:56:45 +08:00
ValKmjolnir
6fee4da9a0
delete operand op_nop
2022-02-16 23:27:22 +08:00
ValKmjolnir
7ced74a0a5
add new gc type vm_upval
2022-02-13 22:40:54 +08:00
ValKmjolnir
f16259b2da
update README & bug fixed
2022-02-13 16:10:02 +08:00
ValKmjolnir
0d5b0fa57d
now local values are stored on stack. upvalue is generated when creating a new function in local scope.
...
may include some bugs inside. but all test files has passed the test so i decide to push it.
2022-02-12 23:12:30 +08:00
ValKmjolnir
c7909bfdf8
prepare for function-call optimization
2022-02-12 18:03:50 +08:00
ValKmjolnir
6908e509ac
add notes in lib.nas & add runtime.gc() & add total instruction count in '-o'.
2022-02-09 15:53:09 +08:00
ValKmjolnir
ee01e0992c
add garbage collector and memory allocator info. use '-d' to activate this function.
2022-02-08 23:40:52 +08:00
ValKmjolnir
54da9e4ee1
optimize test file & little update.
2022-02-06 19:55:45 +08:00
ValKmjolnir
666feae851
change increment arguments to a more efficiency level & change gc.nil, gc.one, gc.zero to constant nil, one, zero
2022-02-04 01:51:30 +08:00
ValKmjolnir
34f07ffb6b
optimize nasal_import::check_import
2022-01-30 23:26:30 +08:00
ValKmjolnir
93b2edc08c
add new option -op & --optimize to use optimizer | delete bytecode op_pone & op_pzero
2022-01-22 13:37:49 +08:00
ValKmjolnir
bde94f8ec6
update error info (except parser)
...
prepare for nasal_err module
2021-12-23 14:09:54 +08:00
ValKmjolnir
ffb0f07eec
add debugger function: break point & next step
2021-12-21 15:27:38 +08:00
ValKmjolnir
82181b7af4
add debugger framework
...
with function:backtrace,run,help,show global/local/upvalue,exit
2021-12-20 21:33:22 +08:00
ValKmjolnir
083293e3db
little update
2021-12-16 23:53:13 +08:00
ValKmjolnir
e706214854
bug fixed & add os.platform
2021-12-08 18:46:32 +08:00
ValKmjolnir
cabce9370a
delete ret stack/ add math.lg
...
now return address is stored on value stack
2021-12-02 22:23:22 +08:00
ValKmjolnir
7169f25774
delete op_cntpop & counter stack
...
now the iterator will be type vm_cnt and be stored on value stack.
2021-11-25 18:13:31 +08:00
ValKmjolnir
e1d5ab2da5
add unix.isdir and unix.isfile
2021-11-15 22:47:52 +08:00
ValKmjolnir
b67cd85cb4
2 bugs fixed:
...
empty string will be true in conditional expressions,but now it is false(and string that is not empty and is not numerable will be true)
foreach(var i;func(){return []}()); will cause sigsegv because codegen generates error op_pop and op_cntpop,now the counter in_foreach and in_forindex change after generating
foreach/forindex expression before block generation.
2021-11-14 23:05:34 +08:00
ValKmjolnir
bc9039dd37
change code structure
2021-11-02 22:44:42 +08:00
ValKmjolnir
d13e8084e5
add bits lib
2021-10-28 21:49:08 +08:00
ValKmjolnir
b131a3ea9e
add io lib & bug fixed
2021-10-27 23:05:25 +08:00
ValKmjolnir
95451490ca
bug fixed
2021-10-26 22:34:02 +08:00
ValKmjolnir
101714986d
optimize nasal_ast and fix bug in opr_slc2
2021-10-20 20:54:23 +08:00
ValKmjolnir
cc9f3a8859
fix dynamic para error
2021-10-18 22:05:31 +08:00
ValKmjolnir
32465b92c8
fix sigsegv error
2021-10-18 21:50:25 +08:00
ValKmjolnir
d18033d4cc
add upvalue info into detail crash info
2021-10-18 19:59:41 +08:00
ValKmjolnir
515a2685fe
add detail crash info
2021-10-17 22:57:45 +08:00
ValKmjolnir
d7cffc76bd
update
2021-10-16 23:36:43 +08:00
ValKmjolnir
a7b1851967
optimize code structure
2021-10-16 21:08:57 +08:00
ValKmjolnir
645a652830
change function name and cli format
2021-10-14 23:22:28 +08:00
ValKmjolnir
414c9c7487
change output format of information of bytecodes
2021-10-13 22:59:15 +08:00
ValKmjolnir
b77d9a48fb
fully functional closure & add benchmark
2021-10-10 14:29:23 +08:00
ValKmjolnir
42a330cda7
vm_nil,vm_num changed to no-gcobject
2021-10-08 23:18:26 +08:00
ValKmjolnir
b4f55f0d01
prepare for version 8.0
2021-10-08 15:32:18 +08:00
Li Haokun
52fbd729cc
bad access bug fixed
2021-09-13 19:55:03 +08:00
Li Haokun
1982ab6b8e
security holes fixed
2021-08-19 17:54:36 +08:00
ValKmjolnir
b2f09ec855
closure bugs fixed
2021-08-17 01:18:35 +08:00
Li Haokun
331e0e1728
fully functional closure
2021-08-11 14:54:17 +08:00
Li Haokun
bf07faf2ab
update readme
2021-08-10 17:55:49 +08:00
Li Haokun
e9bd033883
update
2021-08-09 19:13:39 +08:00
ValKmjolnir
143a59c735
update
2021-08-09 01:02:27 +08:00
Li Haokun
d5e675d0d5
update
2021-08-06 18:57:06 +08:00
Li Haokun
b069f3875e
update
2021-08-05 19:02:41 +08:00
Li Haokun
55ddd90cc3
update debug info
2021-08-04 14:32:56 +08:00
Li Haokun
a6fe835ed4
variables can be used before definition
...
change program to command line
change trace back info
change print function of nasal_vec and nasal_hash
2021-08-03 18:55:11 +08:00