Skip to content

Commit 10b1384

Browse files
authored
Merge pull request #2676 from BuckleScript/better_optimization_for_tuple_alloc
better optimization for tuple allocation
2 parents 234bc0f + 3a159fd commit 10b1384

19 files changed

+2260
-2051
lines changed

jscomp/all.depend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ core/lam_eta_conversion.cmx : ext/literals.cmx core/lam.cmx ext/ext_list.cmx \
532532
ext/ext_ident.cmx core/lam_eta_conversion.cmi
533533
core/lam_group.cmx : core/lam_print.cmx core/lam.cmx core/lam_group.cmi
534534
core/lam_pass_deep_flatten.cmx : core/lam_util.cmx core/lam_group.cmx \
535-
core/lam.cmx core/js_number.cmx ext/ident_set.cmx ext/ext_list.cmx \
535+
core/lam.cmx ext/int_map.cmx ext/ident_set.cmx ext/ext_list.cmx \
536536
core/lam_pass_deep_flatten.cmi
537537
core/js_stmt_make.cmx : core/lam_print.cmx core/lam.cmx core/js_exp_make.cmx \
538538
core/js_closure.cmx core/js_analyzer.cmx core/j.cmx ext/ext_list.cmx \

jscomp/core/bs_conditional_initial.ml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
2-
*
2+
*
33
* This program is free software: you can redistribute it and/or modify
44
* it under the terms of the GNU Lesser General Public License as published by
55
* the Free Software Foundation, either version 3 of the License, or
@@ -17,22 +17,22 @@
1717
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1818
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1919
* GNU Lesser General Public License for more details.
20-
*
20+
*
2121
* You should have received a copy of the GNU Lesser General Public License
2222
* along with this program; if not, write to the Free Software
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

2525

26-
let setup_env () =
27-
#if BS_DEBUG then
28-
Js_config.set_debug_file "gpr_2413_test.ml";
29-
#end
26+
let setup_env () =
27+
#if BS_DEBUG then
28+
Js_config.set_debug_file "tuple_alloc.ml";
29+
#end
3030
Lexer.replace_directive_bool "BS" true;
3131
Lexer.replace_directive_string "BS_VERSION" Bs_version.version
3232

33-
let standard_library =
34-
#if BS_DEBUG then
33+
let standard_library =
34+
#if BS_DEBUG then
3535
Filename.concat (Filename.dirname Sys.executable_name) "ocaml"
36-
#else
36+
#else
3737
Config.standard_library
38-
#end
38+
#end

0 commit comments

Comments
 (0)