summaryrefslogtreecommitdiff
path: root/asmcomp/closure.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2003-04-25 12:27:31 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2003-04-25 12:27:31 +0000
commit7abcc8799e5b726f0469512d888fa2f8d11b95c0 (patch)
treea328bf1bf7de799d41dc72145ed6444561e8d6f1 /asmcomp/closure.ml
parent00e105ce490f8d7afd16b7c941fdf9d06ff347a6 (diff)
downloadocaml-7abcc8799e5b726f0469512d888fa2f8d11b95c0.tar.gz
Ajout des litteraux de type int32, nativeint, int64
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5510 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'asmcomp/closure.ml')
-rw-r--r--asmcomp/closure.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/asmcomp/closure.ml b/asmcomp/closure.ml
index 6ab5098cbc..d4ff4e2231 100644
--- a/asmcomp/closure.ml
+++ b/asmcomp/closure.ml
@@ -110,7 +110,8 @@ let lambda_smaller lam threshold =
if !size > threshold then raise Exit;
match lam with
Uvar v -> ()
- | Uconst(Const_base(Const_int _ | Const_char _ | Const_float _) |
+ | Uconst(Const_base(Const_int _ | Const_char _ | Const_float _ |
+ Const_int32 _ | Const_int64 _ | Const_nativeint _) |
Const_pointer _) -> incr size
| Uconst _ ->
raise Exit (* avoid duplication of structured constants *)
@@ -312,7 +313,9 @@ let rec substitute sb ulam =
let is_simple_argument = function
Uvar _ -> true
- | Uconst(Const_base(Const_int _ | Const_char _ | Const_float _)) -> true
+ | Uconst(Const_base(Const_int _ | Const_char _ | Const_float _ |
+ Const_int32 _ | Const_int64 _ | Const_nativeint _)) ->
+ true
| Uconst(Const_pointer _) -> true
| _ -> false