Denys Vlasenko
|
24e4194635
bc: rename BcInstPtr::idx and ::len
|
6 anni fa |
Denys Vlasenko
|
8287b1c869
bc: remove unnecessary initializations
|
6 anni fa |
Denys Vlasenko
|
e8e7bda63a
bc: use non-allocated BcNum's where appropriate
|
6 anni fa |
Denys Vlasenko
|
6ed7fb0a87
bc: optimize bc_vec_push() usage
|
6 anni fa |
Denys Vlasenko
|
19eee8ed7c
bc: fix for() to not leave data on stack
|
6 anni fa |
Denys Vlasenko
|
5d57bc442d
bc: fix infinite state growth for "yes 1 | bc" case
|
6 anni fa |
Denys Vlasenko
|
447dc02c27
bc: fix comment
|
6 anni fa |
Denys Vlasenko
|
52caa007e3
bc: for(;;) fix from upstream
|
6 anni fa |
Denys Vlasenko
|
047154472a
bc: shrink bc_program_add_fn()
|
6 anni fa |
Denys Vlasenko
|
44a99ca617
bc: "dc only" config does not need G.prog.fn_map
|
6 anni fa |
Denys Vlasenko
|
5acd14ba5b
bc: fix keyword matching to not think "ifz" is the "if" keyword
|
6 anni fa |
Denys Vlasenko
|
503faf9d53
bc: shrink "dc only" code by dropping unused structure members
|
6 anni fa |
Denys Vlasenko
|
eaa3b00002
bc: shorten bc_program_addFunc()
|
6 anni fa |
Denys Vlasenko
|
408b7d45f6
bc: fix "dc only" and "bc only" configs
|
6 anni fa |
Denys Vlasenko
|
fa21079183
bc: rename dc-specific functions, simplify zdc_program_execStr() a bit
|
6 anni fa |
Denys Vlasenko
|
44dbe675dd
bc: rename zbc_parse_string->bc_parse_pushSTR, do not emit next opcode in it
|
6 anni fa |
Denys Vlasenko
|
ea5cad2a0d
bc: avoid bc_vec_item() calls in bc_vm_run()
|
6 anni fa |
Denys Vlasenko
|
eac0de55d6
bc: avoid bc_vec_item() calls in bc_array_copy()
|
6 anni fa |
Denys Vlasenko
|
87888ce4d8
bc: avoid successive bc_vec_item(&func->autos, i)
|
6 anni fa |
Denys Vlasenko
|
f36a0adf8b
bc: remove unnecessary union use
|
6 anni fa |
Denys Vlasenko
|
dfe1dd2031
bc: "unsigned_n > 0" is shorter code than "unsigned_n >= 1"
|
6 anni fa |
Denys Vlasenko
|
65e1046abf
bc: open-code bc_parse_updateFunc() macro
|
6 anni fa |
Denys Vlasenko
|
684d441f5c
bc: make bc_program_addFunc() return new idx, untangle &p->fidx interaction
|
6 anni fa |
Denys Vlasenko
|
085b420220
bc: "reload stack only after insts" change missed a few places
|
6 anni fa |
Denys Vlasenko
|
5aa54830bf
bc: rename a few functions
|
6 anni fa |
Denys Vlasenko
|
e3d3d2067d
bc: remove redundant strdup+free in zbc_parse_call()
|
6 anni fa |
Denys Vlasenko
|
4796a1d537
bc: delete G.prog.strmb for real
|
6 anni fa |
Denys Vlasenko
|
b80d7aad1b
bc: in execution loop, reload stack only after insts which can change it
|
6 anni fa |
Denys Vlasenko
|
d6e24bd795
bc: simplify bc_array_expand()
|
6 anni fa |
Denys Vlasenko
|
30a8e0c2f9
bc: code shrink
|
6 anni fa |