RESOLVED FIXED 189780
[JSC] Optimize Array#lastIndexOf
https://bugs.webkit.org/show_bug.cgi?id=189780
Summary [JSC] Optimize Array#lastIndexOf
Yusuke Suzuki
Reported 2018-09-20 01:25:05 PDT
[JSC] Optimize Array#lastIndexOf
Attachments
Patch (15.46 KB, patch)
2018-09-20 01:26 PDT, Yusuke Suzuki
saam: review+
Yusuke Suzuki
Comment 1 2018-09-20 01:26:27 PDT
Saam Barati
Comment 2 2018-09-24 11:05:21 PDT
Comment on attachment 350179 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=350179&action=review > Source/JavaScriptCore/runtime/ArrayPrototype.cpp:1274 > + if (isJSArray(thisObject)) { There is a ton of duplicate code here with indexOf. Can we abstract away the way we iterate and combine these two implementations?
Yusuke Suzuki
Comment 3 2018-09-25 22:15:28 PDT
Comment on attachment 350179 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=350179&action=review >> Source/JavaScriptCore/runtime/ArrayPrototype.cpp:1274 >> + if (isJSArray(thisObject)) { > > There is a ton of duplicate code here with indexOf. Can we abstract away the way we iterate and combine these two implementations? Sounds good. Fixed.
Yusuke Suzuki
Comment 4 2018-09-25 22:16:27 PDT
Radar WebKit Bug Importer
Comment 5 2018-09-25 22:17:19 PDT
Yusuke Suzuki
Comment 6 2018-09-26 09:12:50 PDT
Note You need to log in before you can comment on or make changes to this bug.