WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
96878
JSObject.cpp and JSArray.cpp have inconsistent tests for the invalid array index case
https://bugs.webkit.org/show_bug.cgi?id=96878
Summary
JSObject.cpp and JSArray.cpp have inconsistent tests for the invalid array in...
Filip Pizlo
Reported
2012-09-15 22:26:51 PDT
The UNLIKELY() macro buys us nothing here anyway so we should probably kill off our use of it. Though I'm all for surgical uses of UNLIKELY() in places where it matters, I don't like using it in places where we know it does nothing.
Attachments
the patch
(3.22 KB, patch)
2012-09-15 22:35 PDT
,
Filip Pizlo
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2012-09-15 22:29:29 PDT
As well, JSArray.cpp has one place where it does the same test but by comparing directly against 0xFFFFFFFF. It should really be comparing against MAX_ARRAY_INDEX.
Filip Pizlo
Comment 2
2012-09-15 22:35:33 PDT
Created
attachment 164308
[details]
the patch
WebKit Review Bot
Comment 3
2012-09-16 00:22:24 PDT
Comment on
attachment 164308
[details]
the patch Clearing flags on attachment: 164308 Committed
r128706
: <
http://trac.webkit.org/changeset/128706
>
WebKit Review Bot
Comment 4
2012-09-16 00:22:27 PDT
All reviewed patches have been landed. Closing bug.
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