Skip to content

Commit 1306cc6

Browse files
authored
Merge pull request #996 from bloomberg/more_managed_specialization
manageable specialized data structures
2 parents e5d1776 + 88689ee commit 1306cc6

15 files changed

+992
-527
lines changed

jscomp/Makefile

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ INCLUDES= -I +compiler-libs -I stubs -I ext -I common -I syntax -I depends -I co
2828
.mll.ml:
2929
$(OCAMLLEX) $< -o $@ || (rm $@ && exit 2)
3030

31+
ext/string_hash_set.ml: ext/hash_set.cppo.ml
32+
cppo -D TYPE_STRING $< -o $@
33+
ext/int_hash_set.ml: ext/hash_set.cppo.ml
34+
cppo -D TYPE_INT $< -o $@
35+
ext/ident_hash_set.ml: ext/hash_set.cppo.ml
36+
cppo -D TYPE_IDENT $< -o $@
3137

3238
## Stubs
3339
.c.o:
@@ -64,6 +70,7 @@ common/bs_version.ml: build_version.js ../package.json
6470

6571

6672
### list files
73+
STUB_SRCS = bs_hash_stubs
6774
OUNIT_SRCS = oUnit oUnitDiff oUnitLogger oUnitTypes oUnitUtils oUnitChooser
6875
OUNIT_CMXS = $(addprefix ounit/, $(addsuffix .cmx, $(OUNIT_SRCS)))
6976
OUNIT_TESTS_SRCS = ounit_tests_util ounit_array_tests ounit_list_test ounit_bal_tree_tests ounit_path_tests ounit_union_find_tests ounit_hash_set_tests ounit_scc_tests ounit_json_tests ounit_vec_test ounit_tests_main
@@ -82,11 +89,13 @@ EXT_SRCS = ext_util\
8289
ext_list ext_map \
8390
ext_marshal ext_option \
8491
ext_pervasives ext_pp ext_ref ext_sys \
85-
hash_set_gen hash_set string_hash_set int_hash_set ordered_hash_set ordered_hash_map union_find \
92+
hash_set_gen hash_set string_hash_set int_hash_set \
93+
ordered_hash_set ordered_hash_map union_find \
8694
ident_set int_map literals string_map \
8795
string_set ext_scc ext_pp_scope\
8896
ext_io\
8997
ext_ident\
98+
ident_hash_set\
9099
ident_hashtbl\
91100
int_hashtbl\
92101
ext_filename
@@ -163,7 +172,28 @@ bin/jsgen.exe:ext.cmxa jsgen_main.cmx
163172

164173

165174
depend:
166-
$(CAMLDEP) -native -I stubs -I ext -I common -I syntax -I depends -I core -I ounit -I ounit_tests -I bsb stubs/*.ml stubs/*.mli ext/*.ml ext/*.mli common/*.ml common/*.mli syntax/*.ml syntax/*.mli *.ml *.mli depends/*.ml depends/*.mli core/*.ml core/*.mli bsb/*.ml bsb/*.mli ounit/*.mli ounit/*.ml ounit_tests/*.ml ounit_tests/*.mli > all.depend
175+
$(CAMLDEP) -native -I stubs -I ext -I common -I syntax -I depends -I core -I ounit -I ounit_tests -I bsb \
176+
$(addprefix stubs/, $(addsuffix .ml, $(STUB_SRCS))) \
177+
$(addprefix stubs/, $(addsuffix .mli, $(STUB_SRCS))) \
178+
$(addprefix ext/, $(addsuffix .ml, $(EXT_SRCS))) \
179+
$(addprefix ext/, $(addsuffix .mli, $(EXT_SRCS))) \
180+
$(addprefix common/, $(addsuffix .ml, $(COMMON_SRCS))) \
181+
$(addprefix common/, $(addsuffix .mli, $(COMMON_SRCS))) \
182+
$(addprefix syntax/, $(addsuffix .ml, $(SYNTAX_SRCS))) \
183+
$(addprefix syntax/, $(addsuffix .mli, $(SYNTAX_SRCS))) \
184+
$(addprefix depends/, $(addsuffix .mli, $(DEPENDS_SRCS))) \
185+
$(addprefix depends/, $(addsuffix .ml, $(DEPENDS_SRCS))) \
186+
$(addprefix core/, $(addsuffix .mli, $(CORE_SRCS))) \
187+
$(addprefix core/, $(addsuffix .ml, $(CORE_SRCS))) \
188+
$(addprefix core/, $(addsuffix .mli, $(OTHER_CORE_SRCS))) \
189+
$(addprefix core/, $(addsuffix .ml, $(OTHER_CORE_SRCS))) \
190+
$(addprefix ounit/, $(addsuffix .mli, $(OUNIT_SRCS))) \
191+
$(addprefix ounit/, $(addsuffix .ml, $(OUNIT_SRCS))) \
192+
$(addprefix ounit_tests/, $(addsuffix .mli, $(OUNIT_TESTS_SRCS))) \
193+
$(addprefix ounit_tests/, $(addsuffix .ml, $(OUNIT_TESTS_SRCS))) \
194+
bsb/*.ml bsb/*.mli *.ml *.mli > all.depend
195+
# $(addprefix bsb/, $(addsuffix .mli, $(BSB_SRCS))) \
196+
# $(addprefix bsb/, $(addsuffix .ml, $(BSB_SRCS))) \
167197

168198

169199

0 commit comments

Comments
 (0)