Bug 108840 - For ARMv7s use integer divide instruction for divide and modulo when possible
Summary: For ARMv7s use integer divide instruction for divide and modulo when possible
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other All
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 10:59 PST by Michael Saboff
Modified: 2013-02-04 11:21 PST (History)
0 users

See Also:


Attachments
Patch (10.38 KB, patch)
2013-02-04 11:09 PST, Michael Saboff
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2013-02-04 10:59:49 PST
ARMv7S processors have the integer division instructions sdiv and udiv (signed and unsigned divide).  When we speculate that we have integer operands and need an integer result, we should take advantage of these instructions to compute divide (/) and modulo (%) results.
Comment 1 Michael Saboff 2013-02-04 11:09:09 PST
Created attachment 186419 [details]
Patch

This patch has already been reviewed.
Comment 2 Michael Saboff 2013-02-04 11:21:21 PST
Committed r141788: <http://trac.webkit.org/changeset/141788>