@@ -55,24 +55,17 @@ let print_if ppf flag printer arg =
5555
5656let (++) x f = f x
5757
58- let serialize_raw_js =
59- try ignore @@ Sys. getenv " OCAML_RAW_JS" ; true with Not_found -> false
60-
61-
6258let implementation ppf sourcefile outputprefix =
6359 Compmisc. init_path false ;
6460 let modulename = module_of_filename ppf sourcefile outputprefix in
6561 Env. set_unit_name modulename;
6662 let env = Compmisc. initial_env() in
67- let finalenv = ref Env. empty in
68- let current_signature = ref [] in
6963 try
7064 let (typedtree, coercion) =
7165 Pparse. parse_implementation ~tool_name ppf sourcefile
7266 ++ print_if ppf Clflags. dump_parsetree Printast. implementation
7367 ++ print_if ppf Clflags. dump_source Pprintast. structure
74- ++ (fun x -> let (a,b,c,signature) = Typemod. type_implementation_more sourcefile outputprefix modulename env x in
75- begin finalenv:= c; current_signature:= signature; a,b end )
68+ ++ Typemod. type_implementation sourcefile outputprefix modulename env
7669 ++ print_if ppf Clflags. dump_typedtree
7770 Printtyped. implementation_with_coercion
7871 in
@@ -84,15 +77,6 @@ let implementation ppf sourcefile outputprefix =
8477 (typedtree, coercion)
8578 ++ Translmod. transl_implementation modulename
8679 ++ print_if ppf Clflags. dump_rawlambda Printlambda. lambda
87- (* (Printlambda.env_lambda !finalenv) *)
88- ++ (fun lambda ->
89- (if serialize_raw_js then
90- ! Printlambda. serialize_raw_js
91- ! finalenv ! current_signature
92- sourcefile lambda
93- );
94- lambda
95- )
9680 ++ Simplif. simplify_lambda
9781 ++ print_if ppf Clflags. dump_lambda Printlambda. lambda
9882 ++ Bytegen. compile_implementation modulename
0 commit comments