WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152925
B3 needs Neg()
https://bugs.webkit.org/show_bug.cgi?id=152925
Summary
B3 needs Neg()
Filip Pizlo
Reported
2016-01-08 13:49:18 PST
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.
Attachments
work in progress
(12.74 KB, patch)
2016-01-08 14:12 PST
,
Filip Pizlo
no flags
Details
Formatted Diff
Diff
the patch
(15.79 KB, patch)
2016-01-08 15:35 PST
,
Filip Pizlo
mark.lam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2016-01-08 14:12:29 PST
Created
attachment 268584
[details]
work in progress
Filip Pizlo
Comment 2
2016-01-08 15:35:42 PST
Created
attachment 268595
[details]
the patch
Mark Lam
Comment 3
2016-01-08 16:00:01 PST
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".
Filip Pizlo
Comment 4
2016-01-08 16:03:59 PST
Landed in
http://trac.webkit.org/changeset/194802
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug