Bug 153080

Summary: Use DFG Graph::binary/unaryArithShouldSpeculateInt32/MachineInt() functions consistently.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, fpizlo, ggaren, keith_miller, msaboff, saam
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 153019    
Attachments:
Description Flags
proposed fix. ggaren: review+

Mark Lam
Reported 2016-01-13 14:04:52 PST
We currently have Graph::mulShouldSpeculateInt32/machineInt() and Graph::negateShouldSpeculateInt32/MachineInt() functions which are only used by the ArithMul and ArithNegate nodes. However, the same tests need to be done for many other arith nodes in the DFG. This patch renames these functions as Graph::binaryArithShouldSpeculateInt32/machineInt() and Graph::unaryArithShouldSpeculateInt32/MachineInt(), and uses them consistently in the DFG.
Attachments
proposed fix. (12.24 KB, patch)
2016-01-13 14:13 PST, Mark Lam
ggaren: review+
Mark Lam
Comment 1 2016-01-13 14:13:53 PST
Created attachment 268902 [details] proposed fix.
Geoffrey Garen
Comment 2 2016-01-13 14:17:04 PST
Comment on attachment 268902 [details] proposed fix. r=me
Mark Lam
Comment 3 2016-01-13 14:23:05 PST
Thanks for the review. Landed in r194983: <http://trac.webkit.org/r194983>.
Note You need to log in before you can comment on or make changes to this bug.