dzaima
e10f13d6ea
x->type → TY(x) / PTY(x)
2022-08-20 08:30:12 +03:00
dzaima
d2a4efe4b5
x->sh → SH(x) / PSH(x)
2022-08-20 08:30:07 +03:00
dzaima
e6b4f85662
x->ia → IA(x) / PIA(x)
2022-08-20 08:30:03 +03:00
dzaima
b1300e6e76
yet another string function rename
2022-08-18 09:07:32 +03:00
dzaima
1fcc3b0030
saner bytecode metadata storage
2022-08-15 12:00:50 +03:00
dzaima
3ab92ecd66
explicit pointer → u64 conversion
...
work towards gcc 32-bit x86 builds. (gcc sign-extended pointers without this changeset)
gcc miscompiles `union B` usage though (https://godbolt.org/z/hEWKdc5PK ), which I can do nothing about, so clang is still the only option for 32-bit x86 builds
2022-08-10 10:20:48 +03:00
dzaima
a5e206d009
always print sample sum in the profiler
2022-07-26 03:14:05 +03:00
dzaima
6b90615896
more correct stack height going negative check
2022-07-24 22:18:22 +03:00
dzaima
8882fb959a
move scope_dec cycle handling to a noinline function
2022-06-27 19:50:30 +03:00
dzaima
fadde40f78
more incG
2022-06-26 23:48:30 +03:00
dzaima
0232cda412
support ARMM 0
2022-06-16 21:05:06 +03:00
dzaima
1fd88c1749
clean up ascii/utf8 functions
2022-06-15 15:31:57 +03:00
dzaima
e3da1da8f6
properly error on alias list being assigned to non-namespace
2022-06-14 03:36:40 +03:00
dzaima
6307356bab
rearrange common array case to top
2022-06-14 02:40:50 +03:00
dzaima
f3fffd2b8d
fix [a,b]+↩1
2022-06-14 02:33:41 +03:00
dzaima
3b82419202
fix error messages
2022-06-14 02:28:13 +03:00
dzaima
f9d251ec08
ARRO/ARRM→LSTO/LSTM
2022-06-14 02:12:37 +03:00
dzaima
5e0bda6a28
ARMO & ARMM
2022-06-14 02:09:41 +03:00
dzaima
5a32a00f46
more checks of NO_MMAP
2022-06-12 22:12:08 +03:00
dzaima
025043b84e
make arr_shVec return its argument
2022-06-10 00:08:13 +03:00
dzaima
a298bc3018
more function name cleanup
2022-06-09 18:12:15 +03:00
dzaima
b48b184f14
reduce binary size by 1% by a less horrifically unrolled m_scope
2022-06-07 19:19:59 +03:00
dzaima
6b6f2892b7
free error message object
2022-06-07 18:47:13 +03:00
dzaima
1e2b734f5d
fix incorrect refcounting of 7dc4f1
2022-06-04 01:13:03 +03:00
dzaima
7dc4f1c36c
reorder compile to do allocations after initializing Comp
2022-06-04 00:04:46 +03:00
dzaima
d4da8a1127
update stack pointer before allocations
2022-06-03 20:54:23 +03:00
dzaima
2dbbb3415e
fix m_nsDesc failing to allocate leaving body->nsDesc uninitialized
2022-06-03 19:50:26 +03:00
dzaima
86fc9041fa
print fallback stacktrace code to stderr
2022-06-03 16:24:43 +03:00
dzaima
572bc04459
move interrupt check to its own header
2022-06-03 16:02:02 +03:00
dzaima
7a21f9ef73
experimental REPL interrupting
2022-06-03 15:38:32 +03:00
dzaima
b8701d3502
more descriptive paths for self-hosted files
2022-05-29 22:20:50 +03:00
dzaima
960ae96591
show source-less & path-less entries in the profiler
2022-05-29 22:16:42 +03:00
dzaima
0380ee2a40
fix wasm builds
2022-05-29 22:05:04 +03:00
dzaima
e2fda60745
profiler
2022-05-29 22:02:50 +03:00
dzaima
409524d958
noinline version of vec_add
2022-05-11 18:31:49 +03:00
dzaima
e979faea0e
put mnvmExecBodyInline under a JIT_START check
2022-04-29 22:46:59 +03:00
dzaima
de65d8a59b
fix double-increment
2022-04-27 21:33:33 +03:00
dzaima
6abce22447
micro-optimize execBodyInline
2022-04-27 20:15:47 +03:00
dzaima
11d95b67d5
better error messages for no inverse header
2022-04-15 23:20:44 +03:00
dzaima
f136ca5e97
rename confusing m_funBlock to evalFunBlock
2022-04-07 17:36:02 +03:00
dzaima
69067b8fcc
decG round 2
2022-04-07 15:15:28 +03:00
dzaima
e7b551acc2
increase wasi stack size
2022-04-07 02:06:41 +03:00
dzaima
267a62d292
don't use mmap in allocStack for WASI
2022-04-07 00:04:12 +03:00
dzaima
e3baa868f7
put in a bit more effort printing messages while things are really bad
2022-04-06 22:38:51 +03:00
dzaima
b60bc7c3bf
disable realpath & mprotect for wasm
2022-04-06 19:16:35 +03:00
dzaima
4a316c9398
don't include setjmp.h when CATCH_ERRORS=0
2022-04-06 18:52:54 +03:00
dzaima
0c79b44ae0
output errors to stderr
2022-03-05 02:32:28 +02:00
dzaima
022d760c95
rethrow(), fix •primitives after errored •ReBQN execution
2022-03-04 18:29:21 +02:00
dzaima
3fb793526c
)erase; try to not oom on printing errors
2022-01-19 01:02:07 +02:00
dzaima
3536c351fa
preallocate oom message
2022-01-12 14:05:08 +02:00
dzaima
675a0e8045
make body->bl an owned pointer
2022-01-11 00:32:58 +02:00
dzaima
3a510f99e5
pass direct u32 to bc_repr
2022-01-10 20:25:33 +02:00
dzaima
5cde913c78
•CurrentError
2022-01-08 21:55:19 +02:00
dzaima
2602a6499d
rename block types
2021-12-31 17:48:19 +02:00
dzaima
08f04a8521
pass untagged pointer to under functions
2021-12-30 21:52:29 +02:00
dzaima
c7a6176be3
store untagged modifier in derived function object
2021-12-30 03:01:02 +02:00
dzaima
bebf1e4255
error location for autogenerated FAIL bodies
...
and also more )gc things
2021-12-25 18:01:52 +02:00
dzaima
7e89e190f2
)vars
2021-12-19 01:32:36 +02:00
dzaima
9e6b8ecaae
throw error on reaching heap size limit if reasonable
2021-12-12 23:29:09 +02:00
dzaima
3da8302249
cast ptrdiff to i64
2021-12-10 21:40:13 +02:00
dzaima
f81b680aad
NOTM
2021-11-29 22:40:12 +02:00
dzaima
4f66b6b88a
native namespace creation
2021-11-29 16:44:20 +02:00
dzaima
ef5864afbc
global name list
2021-11-29 00:21:41 +02:00
dzaima
0389eda29b
inverse modifiers
2021-11-25 00:24:16 +02:00
dzaima
55c1d79d86
headers for immediate modifiers
2021-11-22 10:56:18 +02:00
dzaima
f55e349999
inverse headers
2021-11-21 21:03:14 +02:00
dzaima
896049ab12
directly call scope_freeF from scope_dec
2021-11-20 17:30:09 +02:00
dzaima
ff6e6aa9c7
clean up evalBC
2021-11-20 16:56:54 +02:00
dzaima
c79e260e34
m_v[1234] → m_hVec[1234]
2021-11-20 01:05:14 +02:00
dzaima
5484c109ea
return value from ptr_inc
2021-11-20 00:58:18 +02:00
dzaima
2baa9ac196
fix & speed up variable modification fns
2021-11-18 01:10:30 +02:00
dzaima
a663c0bbee
reorder md*Bl_d
2021-11-03 19:08:24 +02:00
dzaima
9bcf8d7d64
bl_m*d → md*Bl_d
2021-11-02 18:34:34 +02:00
dzaima
6aaaaeb39c
more consistent print method naming scheme
2021-11-02 18:32:25 +02:00
dzaima
f9253a477e
fix zero printing
2021-10-28 22:03:51 +03:00
dzaima
0deb5cfcd4
add missing bytecodes to FOR_BC
2021-10-28 21:55:18 +03:00
dzaima
06c7e40642
⋄ → ; in DEBUG_VM
2021-10-28 21:22:15 +03:00
dzaima
470bb0968a
use hex in printBC
2021-10-28 21:21:25 +03:00
dzaima
e526fede86
clean up DEBUG_VM
2021-10-28 20:46:30 +03:00
dzaima
5c59f0de6f
make precompiled.bqn work
2021-10-14 18:34:28 +03:00
dzaima
363309a218
some cleanup
2021-10-11 21:50:16 +03:00
dzaima
debc4e2afe
don't truncate max stack size
2021-10-09 14:47:26 +03:00
dzaima
71de4fcc59
don't use x++ on bool
2021-10-04 16:19:46 +03:00
dzaima
1bca264db8
bitarrs
2021-10-03 23:18:30 +03:00
dzaima
3725bd58c7
hide unknown stackframes in non-debug mode
2021-10-01 23:08:48 +03:00
dzaima
34fb5c275a
manual tables for bytecode switches
2021-10-01 22:48:33 +03:00
dzaima
ad436a07ee
fix PRED in nested blocks
2021-10-01 20:25:23 +03:00
dzaima
c4cc861054
fix namespace assignment to special name list
2021-10-01 19:59:55 +03:00
dzaima
07ae36e672
faster loop when not yet seen PRED
2021-10-01 19:01:28 +03:00
dzaima
89c19662d8
argument remapping for PRED
2021-10-01 18:52:03 +03:00
dzaima
dc1295afb7
fix SETH in immediate bodies
2021-09-28 18:17:12 +03:00
dzaima
9631702b14
PRED
2021-09-28 18:09:22 +03:00
dzaima
751652c392
alternative JIT memory allocation if MAP_32BIT isn't sufficient
2021-09-26 22:00:19 +03:00
dzaima
2ddfc43682
function to print a sequence of bytecode
2021-09-25 23:19:23 +03:00
dzaima
084eaaecbd
SETC
2021-09-25 23:05:15 +03:00
dzaima
4bdc1ec3cd
squeeze objects
...
negative effect on performance, but whatever
2021-09-25 14:39:48 +03:00
dzaima
c1ff25a253
fix multi-body function error offset
2021-09-21 19:00:16 +03:00
dzaima
b38e8c9aeb
normalize tag whitespace
2021-09-21 17:24:23 +03:00
dzaima
cd5f50e3eb
incG
2021-09-16 17:09:12 +03:00
dzaima
a36ae1a716
pass untagged pointer to get & getU
2021-09-09 23:52:18 +03:00