RESOLVED FIXED 37869
Move URopeImpl to its own .h/.cpp.
https://bugs.webkit.org/show_bug.cgi?id=37869
Summary Move URopeImpl to its own .h/.cpp.
Gavin Barraclough
Reported 2010-04-20 10:35:20 PDT
Currently Ropes are implemented by the class URopeImpl, which is defined in UStringImpl.h, and then typedefed to the name JSString::Rope. Remove the typedef, and rename all uses of URopeImpl and JSString::Rope to just RopeImpl. Move RopeImpl to its own header, and remove all remaining references to ropes from UStringImpl (rename UStringOrRopeImpl to UStringImplBase, rename or move the isRope & deref methods from UStringOrRopeImpl).
Attachments
The patch (59.86 KB, patch)
2010-04-20 10:42 PDT, Gavin Barraclough
ggaren: review+
Gavin Barraclough
Comment 1 2010-04-20 10:42:04 PDT
Created attachment 53843 [details] The patch
WebKit Review Bot
Comment 2 2010-04-20 10:47:33 PDT
Attachment 53843 [details] did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 JavaScriptCore/runtime/RopeImpl.h:59: More than one command on the same line [whitespace/newline] [4] JavaScriptCore/runtime/RopeImpl.h:59: More than one command on the same line in if [whitespace/parens] [4] Total errors found: 2 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Seidel (no email)
Comment 3 2010-04-20 10:52:30 PDT
Geoffrey Garen
Comment 4 2010-04-20 11:53:24 PDT
Comment on attachment 53843 [details] The patch + bool isInvalid() { return (m_refCountAndFlags & s_refCountInvalid) == s_refCountInvalid; } Let's reverse the meaning of this function, and call it "isStringImpl". And also give an appropriate name to s_refCountInvalid. r=me
Gavin Barraclough
Comment 5 2010-04-20 16:27:20 PDT
landed in r57904
Note You need to log in before you can comment on or make changes to this bug.