The implementation of StringImpl & UStringImpl is very similar. Restructure StringImpl to match UStringImpl, moving the flags and length into a base class, so that this can be shared between both string types to increase code reuse.
Created attachment 53893 [details] The patch
Comment on attachment 53893 [details] The patch r=me
Transmitting file data .......... Committed revision 57932.