Guest User

Untitled

a guest
Feb 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. diff -u ocaml-3.12.1/asmcomp/cmmgen.ml ocaml-3.12.1p/asmcomp/cmmgen.ml
  2. --- ocaml-3.12.1/asmcomp/cmmgen.ml 2010-11-11 18:08:07.000000000 +0100
  3. +++ ocaml-3.12.1p/asmcomp/cmmgen.ml 2011-09-25 14:00:19.000000000 +0200
  4. @@ -1230,8 +1230,14 @@
  5. bind "index" (transl arg2) (fun idx ->
  6. bind "arr" (transl arg1) (fun arr ->
  7. bind "header" (header arr) (fun hdr ->
  8. - Cifthenelse(is_addr_array_hdr hdr,
  9. - Csequence(Cop(Ccheckbound dbg, [addr_array_length hdr; idx]),
  10. + if wordsize_shift = numfloat_shift then
  11. + Csequence(Cop(Ccheckbound dbg, [addr_array_length hdr; idx]),
  12. + Cifthenelse(is_addr_array_hdr hdr,
  13. + addr_array_ref arr idx,
  14. + float_array_ref arr idx))
  15. + else
  16. + Cifthenelse(is_addr_array_hdr hdr,
  17. + Csequence(Cop(Ccheckbound dbg, [addr_array_length hdr; idx]),
  18. addr_array_ref arr idx),
  19. Csequence(Cop(Ccheckbound dbg, [float_array_length hdr; idx]),
  20. float_array_ref arr idx)))))
Add Comment
Please, Sign In to add comment