Fabian Sperber
|
830d2007a6
Remove usage of global_default_temp_allocator_data when there is no default allocator (freestanding, JS or --default-to-nil-allocator)
|
2 years ago |
gingerBill
|
8ddb493b96
Add `#optional_allocator_error` to `make_map`
|
2 years ago |
Tetralux
|
588c52a854
[runtime] Fix typo in shrink_dynamic_array()
|
2 years ago |
gingerBill
|
bbe44b49bc
Correct `map_insert`
|
2 years ago |
gingerBill
|
ad0f11668b
Correct `map_reserve_dynamic` caused by an bizarre code generation bug
|
2 years ago |
gingerBill
|
5d47e2a166
Change `map_reserve_dynamic` no do anything when current capacity is greater than specified for the reserve
|
2 years ago |
gingerBill
|
b475481788
Get deleted key and value for `delete_key`
|
2 years ago |
gingerBill
|
3858422f1d
Use `mem_resize` where possible
|
2 years ago |
gingerBill
|
366779f8c7
Fix bug with allocator not getting set on a `map`
|
2 years ago |
gingerBill
|
dae299b781
Make `map_free_dynamic` take the total size of the allocation
|
2 years ago |
gingerBill
|
ed58374964
Make `Map_Info` store pointers to cell info rather than inline
|
2 years ago |
gingerBill
|
c96e0afbf1
Begin work on implementing the new `map` internals
|
2 years ago |
gingerBill
|
6a14c3edb4
Make `raw_data` an intrinsic rather a `@(builtin)` runtime procedure
|
2 years ago |
gingerBill
|
83ffb68bb7
Fix typo in `map_insert`
|
2 years ago |
gingerBill
|
0380601bb4
Fix `map_insert`
|
2 years ago |
gingerBill
|
ff97a73152
Reduce unnecessary map gets
|
2 years ago |
gingerBill
|
9e3ea92829
Inline many calls and delete unused procedures
|
2 years ago |
gingerBill
|
81f10f53ad
Correct `delete_key`
|
2 years ago |
gingerBill
|
fbf036a654
Wrap `__dynamic_map_find` for certain cases
|
2 years ago |
gingerBill
|
b967ae2739
Change internal map indices to use a distinct `uint` rather than just `int`
|
2 years ago |
gingerBill
|
ef372bd861
Replace `#optional_second` with `#optional_allocator_error`
|
3 years ago |
gingerBill
|
96be494730
Fix `append_nothing`
|
3 years ago |
gingerBill
|
ffa87f55c4
Add a return value to `append` that states the number of elements that were returned
|
3 years ago |
Jeroen van Rijn
|
8c1dfabb6b
Fix `append` for size_of(E) == 0
|
3 years ago |
gingerBill
|
659c3c528d
Update `delete` to pass size in bytes to free when possible
|
3 years ago |
gingerBill
|
576914aee1
Make `unreachable()` a built-in compiler-level procedure
|
3 years ago |
gingerBill
|
e0ecdd4b24
Simplify logic of `append` of zero sized elements
|
3 years ago |
gingerBill
|
08f5259d77
Replace `insert_at` with `inject_at` and `assign_at`
|
3 years ago |
gingerBill
|
670f18ad1b
Minor change to `shrink`
|
3 years ago |
Tetralux
|
fa2296a124
[runtime] Add builtin `shrink` for dynamic arrays and maps
|
3 years ago |