ValKmjolnir
f1f48b4881
⚡ first step trying to make this project compiled by MSVC: using indirect-threading, change \e to \033.
2022-07-16 01:02:33 +08:00
ValKmjolnir
d1a7d32e7b
📝 fix some wanings.
2022-07-11 23:53:23 +08:00
ValKmjolnir
8cc69c709f
📝 fix some warnings.
2022-07-10 23:55:51 +08:00
ValKmjolnir
bcdc55a652
⚡ optimize code & replace all printf with std::cout.
2022-07-09 23:36:14 +08:00
ValKmjolnir
2ed20f6362
📝 change some identifiers' name.
2022-07-09 16:24:58 +08:00
ValKmjolnir
9890b46f02
⚡ optimize code.
2022-07-08 23:00:36 +08:00
ValKmjolnir
11e9567b55
📝 change some identifiers' name.
2022-07-08 18:16:00 +08:00
ValKmjolnir
5d4cff0aa8
🚀 shrink code size & now import module can search lib file from local dir and dirs in PATH
2022-07-08 00:42:56 +08:00
ValKmjolnir
fb25a4973c
⚡ optimize codes. details:
...
1. delete gc::builtin_alloc
2. add convenient way of getting new string object: gc::newstr, and shrink the size of codes
3. update doc
4. add gc::temp to be used in native/module functions to avoid being recognized as garbage incorrectly when triggered mark-sweep
2022-07-07 17:51:30 +08:00
ValKmjolnir
b638708722
📝 change identifiers' name and test/coroutine.nas, test/filesystem.nas
2022-07-06 16:04:21 +08:00
ValKmjolnir
a04ed2a4aa
📝 change makefile and update output format of --opcnt and --detail
2022-07-06 11:57:40 +08:00
ValKmjolnir
82b33ffe4a
📝 change name of some identifiers. shrink size of main stack.
2022-07-05 18:13:54 +08:00
ValKmjolnir
92d68b357c
⚡ optimize vm
2022-07-04 00:16:04 +08:00
ValKmjolnir
a2e2d5d8f6
✨ add native function runtime.argv() to get command line arguments
2022-06-04 20:12:00 +08:00
ValKmjolnir
ab37495960
🐛 visual changement & bug fix in test/json.nas & optimize test/bp.nas
2022-05-30 21:27:24 +08:00
ValKmjolnir
882ecac100
📝 update README.md
2022-05-25 14:05:58 +08:00
ValKmjolnir
ebfacd9197
⚡ optimize codes
2022-05-22 18:19:13 +08:00
ValKmjolnir
99dca532f6
📝 add notes in nasal_codegen.h and nasal_vm.h. add register_info() in debugger.
2022-05-21 14:22:54 +08:00
ValKmjolnir
07eeaadf96
⚡ optimize codes: store upvalue on stack & debugger now can output information of registers
2022-05-20 21:19:43 +08:00
ValKmjolnir
120ceb429a
🚀 add coroutine library(beta) and lib function settimer&maketimestamp
2022-05-19 20:09:23 +08:00
ValKmjolnir
712a047a43
🐛 now builtin_md5 uses unsigned char instead of char
2022-05-15 20:35:20 +08:00
ValKmjolnir
396d55a207
✅ fix some warnings
2022-05-09 18:42:40 +08:00
ValKmjolnir
c5171c735a
💬 change code related to macros 'PRTHEX'
2022-05-08 19:43:27 +08:00
ValKmjolnir
51a1279110
✨ add utf-8 identifier check in nasal_lexer & fix printf format at windows platform & add test file utf8chk.nas
2022-05-07 16:50:13 +08:00
ValKmjolnir
de262980cc
🎨 improve rawstr() and builtin_getcwd(..), change format output in nasal_vm::valinfo()
2022-05-07 02:22:49 +08:00
ValKmjolnir
23a5c1b1ad
🐛 bug fix
2022-05-06 20:58:02 +08:00
ValKmjolnir
fd8a148d0c
bytecode info print and debugger will show the front 16 characters of strings whose length is greater than 16
2022-05-02 16:56:03 +08:00
ValKmjolnir
7417d5e635
change makefile
2022-04-26 22:53:35 +08:00
ValKmjolnir
785572634b
change visual settings in -c/-dbg
2022-04-23 01:51:49 +08:00
ValKmjolnir
4f5fd3de33
op_addeq~op_lnkeq and op_addeqc~op_lnkeqc and op_meq operands now can do pop, this will decrease the frequency of calling op_pop
2022-04-17 17:20:18 +08:00
ValKmjolnir
fc25dd69e1
fix bug in codegen: foreach/forindex(id;vec/hash) may cause segmentation fault because of incorrect generated operand
2022-04-16 19:45:55 +08:00
ValKmjolnir
4503239731
change STACK_MAX_DEPTH to nasal_gc::stack_depth
2022-04-09 23:14:28 +08:00
ValKmjolnir
399b2f0ce9
bug fixed & add systime, finished vecindex
2022-04-04 19:08:48 +08:00
ValKmjolnir
aed5e27409
bug fix & optimize test code & add lib function: subvec, floor, abs, isfunc, isghost, isint, isnum, isscalar, isstr, isvec, vecindex(unfinished)
2022-04-04 18:38:25 +08:00
ValKmjolnir
dd7740f1fd
update test/md5.nas(still has bug) & add libmd5 in module(written in C++)
2022-03-28 17:14:11 +08:00
ValKmjolnir
617ad03d33
add math.pow
2022-03-27 16:14:55 +08:00
ValKmjolnir
86f6296268
change opcode print format
2022-03-27 01:20:17 +08:00
ValKmjolnir
c4d52a88cd
update docs & fix bug in nasal_builtin.h
2022-03-16 15:30:34 +08:00
ValKmjolnir
9bcad59e45
change enum obj_type to nasal_obj::obj_type
2022-03-15 22:51:14 +08:00
ValKmjolnir
f26719e1d3
visual update
2022-03-10 16:05:49 +08:00
ValKmjolnir
e54ef9620f
change nasal_ref value option functions' output types from pointers to references
2022-03-09 22:54:54 +08:00
ValKmjolnir
61666d275d
delete lstk&fstk, store local address and function on stack and in vm registers
2022-03-08 17:30:40 +08:00
ValKmjolnir
cd808a5e6d
update detailed-info
2022-03-03 19:00:23 +08:00
ValKmjolnir
40f61a9dd4
fix bug of upval_state
2022-03-02 19:28:17 +08:00
ValKmjolnir
243aafd417
fix bug of -o not working.
2022-02-23 21:56:45 +08:00
ValKmjolnir
a4738e8c7d
delete operand op_nop
2022-02-16 23:27:22 +08:00
ValKmjolnir
5fba784d05
add new gc type vm_upval
2022-02-13 22:40:54 +08:00
ValKmjolnir
9139e34c0b
update README & bug fixed
2022-02-13 16:10:02 +08:00
ValKmjolnir
e7f503fae1
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
980350d70a
prepare for function-call optimization
2022-02-12 18:03:50 +08:00