From c2a88c27fd3867e022c8ae4363bb24bca864619b Mon Sep 17 00:00:00 2001 From: Luc Maranget Date: Fri, 21 Mar 2014 17:02:44 +0000 Subject: #PR6269 Optimized string matching Noticed that I had to bootstrap to test on ARM, so I commit a new bootstrap compiler. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14479 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- bytecomp/lambda.mli | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bytecomp/lambda.mli') diff --git a/bytecomp/lambda.mli b/bytecomp/lambda.mli index 904ea6fd7..6748fefe1 100644 --- a/bytecomp/lambda.mli +++ b/bytecomp/lambda.mli @@ -175,6 +175,9 @@ type lambda = | Lletrec of (Ident.t * lambda) list * lambda | Lprim of primitive * lambda list | Lswitch of lambda * lambda_switch +(* switch on strings, clauses are sorted by string order, + strings are pairwise distinct *) + | Lstringswitch of lambda * (string * lambda) list * lambda | Lstaticraise of int * lambda list | Lstaticcatch of lambda * (int * Ident.t list) * lambda | Ltrywith of lambda * Ident.t * lambda -- cgit v1.2.3-70-g09d2