comparison src/jscomp.sml @ 2110:9e9c915f554c

A new MonoReduce optimization for lifting 'let' out of field projection; JavaScript compilation for exponentiation
author Adam Chlipala <adam@chlipala.net>
date Sun, 01 Feb 2015 12:29:14 -0500
parents 4d64af730e35
children 6eae499c56cb e10881cd92da
comparison
equal deleted inserted replaced
2109:f42fea631c1d 2110:9e9c915f554c
722 | "fdiv" => "div" 722 | "fdiv" => "div"
723 | "fmod" => "mod" 723 | "fmod" => "mod"
724 | "<" => "lt" 724 | "<" => "lt"
725 | "<=" => "le" 725 | "<=" => "le"
726 | "strcmp" => "strcmp" 726 | "strcmp" => "strcmp"
727 | "powl" => "pow"
728 | "powf" => "pow"
727 | _ => raise Fail ("Jscomp: Unknown binary operator " ^ s) 729 | _ => raise Fail ("Jscomp: Unknown binary operator " ^ s)
728 730
729 val (e1, st) = jsE inner (e1, st) 731 val (e1, st) = jsE inner (e1, st)
730 val (e2, st) = jsE inner (e2, st) 732 val (e2, st) = jsE inner (e2, st)
731 in 733 in