Skip to content

Commit d637bed

Browse files
committed
specialize int vec to avoid float branching
1 parent 9bde380 commit d637bed

14 files changed

+2346
-1320
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ _build
2424
*.jsx
2525
*.lambda
2626
*.rawlambda
27+
*.s
2728
*.o
2829
*.lam
2930
*.0.js

jscomp/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,13 @@ bin/whole_compiler.ml:./bin/bspack.exe
385385
BS_DEBUG=false $< -bs-MD -prelude-str 'module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Js_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I stubs -I ext -I syntax -I depends -I common -I core
386386

387387
bin/bsdep.ml:./bin/bspack.exe
388-
BS_DEBUG=false BS_OCAMLDEP=true $< -bs-MD -prelude-str 'module Config = Config_bsdep' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/driver -I ../ocaml/tools -I common -I ext -I syntax -I depends -I core -bs-main Ocamldep -o $@
388+
BS_DEBUG=false BS_OCAMLDEP=true $< -bs-MD -prelude-str 'module Config = Config_bsdep' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/driver -I ../ocaml/tools -I common -I ext -I syntax -I depends -I core -I stubs -bs-main Ocamldep -o $@
389389

390390
bin/bsb_helper.ml:./bin/bspack.exe
391-
BS_DEBUG=false $< -bs-MD -I common -I ext -I syntax -I depends -I bsb -bs-main Bsb_helper_main -o $@
391+
BS_DEBUG=false $< -bs-MD -I stubs -I common -I ext -I syntax -I depends -I bsb -bs-main Bsb_helper_main -o $@
392392

393393
bin/bsb.ml:./bin/bspack.exe
394-
BS_DEBUG=false $< -bs-MD -I common -I ext -I syntax -I depends -I bsb -I ext -bs-main Bsb_main -o $@
394+
BS_DEBUG=false $< -bs-MD -I stubs -I common -I ext -I syntax -I depends -I bsb -I ext -bs-main Bsb_main -o $@
395395

396396
bin/bspp.ml:./bin/bspack.exe
397397
BS_DEBUG=false BS_MIN_LEX_DEPS=true $< -bs-MD -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing?parser -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Bspp_main -o $@

jscomp/all.depend

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ ext/ext_int.cmx : ext/ext_int.cmi
44
ext/ext_array.cmx : ext/ext_array.cmi
55
ext/ext_bytes.cmx : ext/ext_bytes.cmi
66
ext/ext_char.cmx : ext/ext_char.cmi
7-
ext/vec_gen.cmx : ext/ext_array.cmx
8-
ext/resize_array.cmx : ext/vec_gen.cmx ext/resize_array.cmi
7+
ext/vec_gen.cmx :
8+
ext/resize_array.cmx : ext/vec_gen.cmx ext/ext_array.cmx \
9+
stubs/bs_hash_stubs.cmx ext/resize_array.cmi
910
ext/string_vec.cmx : ext/resize_array.cmx ext/string_vec.cmi
10-
ext/int_vec.cmx : ext/vec_gen.cmx ext/int_vec.cmi
11+
ext/int_vec.cmx : ext/ext_array.cmx stubs/bs_hash_stubs.cmx ext/int_vec.cmi
1112
ext/int_vec_util.cmx : ext/int_vec.cmx ext/int_vec_util.cmi
1213
ext/int_vec_vec.cmx : ext/resize_array.cmx ext/int_vec.cmx \
1314
ext/int_vec_vec.cmi

0 commit comments

Comments
 (0)