File tree Expand file tree Collapse file tree 19 files changed +56
-27
lines changed Expand file tree Collapse file tree 19 files changed +56
-27
lines changed Original file line number Diff line number Diff line change 46
46
(targets
47
47
float_u.ml
48
48
float_u.mli
49
- iarray.ml
50
- iarray.mli
51
- iarrayLabels.ml
52
- iarrayLabels.mli
53
49
int32_u.ml
54
50
int32_u.mli
55
51
int64_u.ml
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ module Float_u = Float_u
2
2
module Int32_u = Int32_u
3
3
module Int64_u = Int64_u
4
4
module Nativeint_u = Nativeint_u
5
- module Iarray = Iarray
6
- module IarrayLabels = IarrayLabels
5
+ module Iarray = Stdlib__Iarray
6
+ module IarrayLabels = Stdlib__IarrayLabels
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ module Float_u = Float_u
2
2
module Int32_u = Int32_u
3
3
module Int64_u = Int64_u
4
4
module Nativeint_u = Nativeint_u
5
- module Iarray = Iarray
6
- module IarrayLabels = IarrayLabels
5
+ module Iarray = Stdlib__Iarray
6
+ module IarrayLabels = Stdlib__IarrayLabels
Original file line number Diff line number Diff line change @@ -454,6 +454,32 @@ stdlib__Hashtbl.cmx : hashtbl.ml \
454
454
stdlib__Hashtbl.cmi : hashtbl.mli \
455
455
stdlib.cmi \
456
456
stdlib__Seq.cmi
457
+ stdlib__Iarray.cmo : iarray.ml \
458
+ stdlib.cmi \
459
+ stdlib__Seq.cmi \
460
+ stdlib__Array.cmi \
461
+ stdlib__Iarray.cmi
462
+ stdlib__Iarray.cmx : iarray.ml \
463
+ stdlib.cmx \
464
+ stdlib__Seq.cmx \
465
+ stdlib__Array.cmx \
466
+ stdlib__Iarray.cmi
467
+ stdlib__Iarray.cmi : iarray.mli \
468
+ stdlib.cmi \
469
+ stdlib__Seq.cmi
470
+ stdlib__IarrayLabels.cmo : iarrayLabels.ml \
471
+ stdlib.cmi \
472
+ stdlib__Seq.cmi \
473
+ stdlib__Array.cmi \
474
+ stdlib__IarrayLabels.cmi
475
+ stdlib__IarrayLabels.cmx : iarrayLabels.ml \
476
+ stdlib.cmx \
477
+ stdlib__Seq.cmx \
478
+ stdlib__Array.cmx \
479
+ stdlib__IarrayLabels.cmi
480
+ stdlib__IarrayLabels.cmi : iarrayLabels.mli \
481
+ stdlib.cmi \
482
+ stdlib__Seq.cmi
457
483
stdlib__In_channel.cmo : in_channel.ml \
458
484
stdlib__Sys.cmi \
459
485
stdlib.cmi \
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ STDLIB_MODULE_BASENAMES = \
57
57
unit \
58
58
marshal \
59
59
array \
60
+ iarray \
60
61
float \
61
62
int32 \
62
63
nativeint \
@@ -93,6 +94,7 @@ STDLIB_MODULE_BASENAMES = \
93
94
filename \
94
95
complex \
95
96
arrayLabels \
97
+ iarrayLabels \
96
98
listLabels \
97
99
bytesLabels \
98
100
stringLabels \
Original file line number Diff line number Diff line change 129
129
gc.mli
130
130
hashtbl.ml
131
131
hashtbl.mli
132
+ iarray.ml
133
+ iarray.mli
134
+ iarrayLabels.ml
135
+ iarrayLabels.mli
132
136
in_channel.ml
133
137
in_channel.mli
134
138
int.ml
276
280
.stdlib.objs/byte/stdlib__Hashtbl.cmi
277
281
.stdlib.objs/byte/stdlib__Hashtbl.cmt
278
282
.stdlib.objs/byte/stdlib__Hashtbl.cmti
283
+ .stdlib.objs/byte/stdlib__Iarray.cmi
284
+ .stdlib.objs/byte/stdlib__Iarray.cmt
285
+ .stdlib.objs/byte/stdlib__Iarray.cmti
286
+ .stdlib.objs/byte/stdlib__IarrayLabels.cmi
287
+ .stdlib.objs/byte/stdlib__IarrayLabels.cmt
288
+ .stdlib.objs/byte/stdlib__IarrayLabels.cmti
279
289
.stdlib.objs/byte/stdlib__In_channel.cmi
280
290
.stdlib.objs/byte/stdlib__In_channel.cmt
281
291
.stdlib.objs/byte/stdlib__In_channel.cmti
478
488
.stdlib.objs/native/stdlib__Either.cmx
479
489
.stdlib.objs/native/stdlib__In_channel.cmx
480
490
.stdlib.objs/native/stdlib__Out_channel.cmx
491
+ .stdlib.objs/native/stdlib__Iarray.cmx
492
+ .stdlib.objs/native/stdlib__IarrayLabels.cmx
481
493
(META as stdlib/META))
482
494
(section lib)
483
495
(package ocaml_runtime_stdlib))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
- (* TEST
2
- include stdlib_stable;
3
- *)
1
+ (* TEST *)
4
2
5
- module Iarray = Stdlib_stable. Iarray
3
+ module Iarray = Stdlib__Iarray
6
4
external ( .:( ) ) : 'a iarray -> int -> 'a = " %array_safe_get"
7
5
8
6
(* Copied from [test.ml], but with all the [Array.fill] tests deleted *)
Original file line number Diff line number Diff line change 1
1
(* TEST
2
2
flags = "-extension comprehensions";
3
- include stdlib_stable;
4
3
expect;
5
4
*)
6
5
7
- module Iarray = Stdlib_stable. Iarray ;;
6
+ module Iarray = Stdlib__Iarray ;;
8
7
[%% expect{|
9
- module Iarray = Stdlib_stable. Iarray
8
+ module Iarray = Stdlib__Iarray
10
9
| }];;
11
10
12
11
(* *****************************************************************************
Original file line number Diff line number Diff line change 1
1
(* TEST
2
2
flags = "-extension comprehensions";
3
- include stdlib_stable;
4
3
*)
5
4
6
- module Iarray = Stdlib_stable. Iarray
5
+ module Iarray = Stdlib__Iarray
7
6
8
7
(* *****************************************************************************
9
8
* ******** ATTENTION! ******** *
Original file line number Diff line number Diff line change 1
1
(* TEST
2
- include stdlib_stable;
3
2
expect;
4
3
*)
5
4
6
- module Iarray = Stdlib_stable. Iarray ;;
5
+ module Iarray = Stdlib__Iarray ;;
7
6
8
7
external ( .:( ) ) : 'a iarray -> int -> 'a = " %array_safe_get" ;;
9
8
@@ -16,7 +15,7 @@ let marray : int array = [|1;2;3;4;5|];;
16
15
let mfarray : float array = [|1.5 ;2.5 ;3.5 ;4.5 ;5.5 |];;
17
16
18
17
[%% expect{|
19
- module Iarray = Stdlib_stable. Iarray
18
+ module Iarray = Stdlib__Iarray
20
19
external ( .:( ) ) : 'a iarray -> int -> 'a = " %array_safe_get"
21
20
val iarray : int iarray = [:1 ; 2 ; 3 ; 4 ; 5 :]
22
21
val ifarray : float iarray = [:1.5 ; 2.5 ; 3.5 ; 4.5 ; 5.5 :]
Original file line number Diff line number Diff line change 1
1
(* TEST
2
- include stdlib_stable;
3
2
{
4
3
reference = "${test_source_directory}/float_iarray.heap.reference";
5
4
bytecode;
17
16
(* Testing that local [float iarray]s don't allocate on access. This is a
18
17
question because for flat float arrays, accesses have to box the float. *)
19
18
20
- module Iarray = Stdlib_stable. Iarray
19
+ module Iarray = Stdlib__Iarray
21
20
22
21
let ( .:() ) = Iarray. ( .:( ) )
23
22
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
(* TEST
2
- include stdlib_stable;
3
2
{
4
- reference = "${test_source_directory}/test_iarray .byte.reference";
3
+ reference = "${test_source_directory}/iarray .byte.reference";
5
4
bytecode;
6
5
}{
7
6
stack-allocation;
8
- reference = "${test_source_directory}/test_iarray .stack.reference";
7
+ reference = "${test_source_directory}/iarray .stack.reference";
9
8
native;
10
9
}{
11
10
no-stack-allocation;
12
- reference = "${test_source_directory}/test_iarray .heap.reference";
11
+ reference = "${test_source_directory}/iarray .heap.reference";
13
12
native;
14
13
}
15
14
*)
22
21
2. Correctness: They actually create arrays on the stack (by testing that no
23
22
GCed allocation happens). *)
24
23
25
- module Iarray = Stdlib_stable. Iarray
24
+ module Iarray = Stdlib__Iarray
26
25
27
26
external opaque_local : local_ 'a -> local_ 'a = " %opaque"
28
27
File renamed without changes.
You can’t perform that action at this time.
0 commit comments