Bug 126922 - 'index in array' needs to be fast
Summary: 'index in array' needs to be fast
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Filip Pizlo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-13 11:33 PST by Oliver Hunt
Modified: 2014-01-13 11:33 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2014-01-13 11:33:43 PST
A lot of array functions take the form of 

...
var length = foo.length;
for (var i = 0;  i < length; i++) {
    if (!(i in foo) continue
    ...
}