RESOLVED FIXED Bug 197765
[JSC] String substring operation should return ropes consistently
https://bugs.webkit.org/show_bug.cgi?id=197765
Summary [JSC] String substring operation should return ropes consistently
Yusuke Suzuki
Reported 2019-05-09 20:29:14 PDT
[JSC] String substring operation should return ropes consistently
Attachments
Patch (6.36 KB, patch)
2019-05-09 20:42 PDT, Yusuke Suzuki
no flags
Patch (7.02 KB, patch)
2019-05-10 10:41 PDT, Yusuke Suzuki
no flags
Patch (7.03 KB, patch)
2019-05-10 12:31 PDT, Yusuke Suzuki
msaboff: review+
Yusuke Suzuki
Comment 1 2019-05-09 20:42:34 PDT
Yusuke Suzuki
Comment 2 2019-05-10 10:04:15 PDT
Yusuke Suzuki
Comment 3 2019-05-10 10:41:38 PDT
Yusuke Suzuki
Comment 4 2019-05-10 12:31:51 PDT
Michael Saboff
Comment 5 2019-05-10 12:45:31 PDT
Comment on attachment 369580 [details] Patch r=me
Yusuke Suzuki
Comment 6 2019-05-10 13:49:43 PDT
Yusuke Suzuki
Comment 7 2019-05-13 16:43:35 PDT
Ah, my investigation was wrong. While memory reduction is real, the effect comes from the fact that JSRopeString is cheaper than JSString + StringImpl. Not related StringImpl's substring sharing feature. So, maybe, we should just prefer JSRopeString for substring cases.
Note You need to log in before you can comment on or make changes to this bug.