Currently B3 expresses -x as 0-x. That's wrong in case of floating point. It's probably better if we just have a Neg opcode, and this opcode should work for both ints and floats.
Created attachment 268584 [details] work in progress
Created attachment 268595 [details] the patch
Comment on attachment 268595 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=268595&action=review r=me > Source/JavaScriptCore/ChangeLog:18 > + So, this introduces a proper Neg() opcode to B3. It's not the canonical way of saying typo: "not" ==> "now".
Landed in http://trac.webkit.org/changeset/194802