Commit Graph

4 Commits (master)

Author SHA1 Message Date
Xavier Leroy e728e92f1a hash.c: remove the caml_hash_univ_param function
This function implements the old, pre-4.00 hashing scheme that is
no longer used (as a compatibility backup) in stdlib/hashtbl.ml.
It is therefore dead code.
2020-07-19 19:58:06 +02:00
Xavier Leroy 247c1da515 Remove some `#ifndef NO_NAKED_POINTERS` that are now redundant
Having Is_in_value_area always true in no-naked-pointers mode
achieves the same result as the `#ifndef NO_NAKED_POINTERS` removed here.
2020-06-23 10:30:30 +02:00
Xavier Leroy 0d1f7b208e
Generic hashing for the new closure representation (#9648, #9689)
This commit revises the generic hash functions to take advantage of
the new closure representation: code pointers are directly mixed
into the hash rather than having to be detected using Is_in_value_area.

Currently the new code for closures is activated only in no-naked-pointers
mode, even though it is sound in naked-pointers mode too.

Closes: #2168
2020-06-16 19:05:37 +02:00
Sébastien Hinderer d3e73595e5 Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00