From 745696124240963616a38f41b1a20f199646c5dc Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Mon, 27 Nov 2017 11:25:39 +0100 Subject: Factorize the relocations in the on-disk VM representation. Instead of using a linear representation, we simply use a table that maps every kind of relocation to the list of positions it needs to be applied to. --- kernel/cbytecodes.mli | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kernel/cbytecodes.mli') diff --git a/kernel/cbytecodes.mli b/kernel/cbytecodes.mli index 5d37a5840..bf2e462e8 100644 --- a/kernel/cbytecodes.mli +++ b/kernel/cbytecodes.mli @@ -41,6 +41,12 @@ type reloc_table = (tag * int) array type annot_switch = {ci : case_info; rtbl : reloc_table; tailcall : bool; max_stack_size : int} +val eq_structured_constant : structured_constant -> structured_constant -> bool +val hash_structured_constant : structured_constant -> int + +val eq_annot_switch : annot_switch -> annot_switch -> bool +val hash_annot_switch : annot_switch -> int + module Label : sig type t = int -- cgit v1.2.3