Permalink
Browse files

[enhance] qmljsimp: Turn off global inlining.

HACK: Inlining is bringing the compiler to a halt when prefixing
globals. We'll try to figure out what's going on later.
  • Loading branch information...
1 parent 76f5317 commit 2ddad57b391056d69f62af65f3828bb310eea9e1 @arthuraa arthuraa committed Jun 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 qmljsimp/imp_Compiler.ml
View
@@ -144,7 +144,8 @@ let compile ?(val_=fun _ -> assert false) ?bsl ?(closure_map=IdentMap.empty) ~re
#<If:JS_IMP$contains "print"> ignore (PassTracker.file ~filename:"js_imp_0_translation" _outputer js_code) #<End>;
let js_code =
- if options.Qml2jsOptions.global_inlining then (
+ (* HACK *)
+ if options.Qml2jsOptions.global_inlining && false then (
let initial_env =
match bsl with
| Some code -> Imp_Inlining.global_inline_analyse_code (Imp_Inlining.env_of_map closure_map) code

0 comments on commit 2ddad57

Please sign in to comment.