RESOLVED FIXED 160344
Make StringView capable of being passed /returned in only 2 registers.
https://bugs.webkit.org/show_bug.cgi?id=160344
Summary Make StringView capable of being passed /returned in only 2 registers.
Mark Lam
Reported 2016-07-29 10:12:52 PDT
We just need to #if out copy and move constructors and assignment operators.
Attachments
proposed patch. (2.99 KB, patch)
2016-07-29 10:30 PDT, Mark Lam
ggaren: review+
Mark Lam
Comment 1 2016-07-29 10:30:33 PDT
Created attachment 284872 [details] proposed patch.
Geoffrey Garen
Comment 2 2016-07-29 10:49:08 PDT
Comment on attachment 284872 [details] proposed patch. /Volumes/Data/EWS/WebKit/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp:615:13: error: unused variable 'selectionTextRun' [-Werror,-Wunused-variable] TextRun selectionTextRun = constructTextRun(selectionStyle, fragment);
Mark Lam
Comment 3 2016-07-29 10:51:56 PDT
(In reply to comment #2) > Comment on attachment 284872 [details] > proposed patch. > > /Volumes/Data/EWS/WebKit/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp: > 615:13: error: unused variable 'selectionTextRun' [-Werror,-Wunused-variable] > TextRun selectionTextRun = constructTextRun(selectionStyle, fragment); Does not appear to be related to my patch at all.
Geoffrey Garen
Comment 4 2016-07-29 10:57:56 PDT
Comment on attachment 284872 [details] proposed patch. r=me
Mark Lam
Comment 5 2016-07-29 11:32:10 PDT
Comment on attachment 284872 [details] proposed patch. I'll land this manually later.
Mark Lam
Comment 6 2016-07-29 11:54:43 PDT
Thanks for the review. Landed in r203911: <http://trac.webkit.org/r203911>.
Darin Adler
Comment 7 2016-07-29 12:01:11 PDT
Thanks, Mark. This is great!
Mark Lam
Comment 8 2016-07-29 12:30:13 PDT
Follow up build fix in r203915: <http://trac.webkit.org/r203915>.
Radar WebKit Bug Importer
Comment 9 2016-07-29 12:32:16 PDT
Alexey Proskuryakov
Comment 10 2016-07-29 12:43:02 PDT
> #if defined(NDEBUG) || COMPILER(MSVC) || 1 > #define CHECK_STRINGVIEW_LIFETIME 0 This is pre-existing code, however I'm curious anyway - is there a bug tracking re-enabling the checks?
Darin Adler
Comment 11 2016-07-29 12:54:51 PDT
Wow, did not realize these were turned off. Do we know exactly when we turned them off and why? Should find out when that || 1 was added.
Mark Lam
Comment 12 2016-07-29 12:57:13 PDT
(In reply to comment #11) > Wow, did not realize these were turned off. Do we know exactly when we > turned them off and why? Should find out when that || 1 was added. See https://trac.webkit.org/changeset/174397 from Oct 2014. (In reply to comment #10) > This is pre-existing code, however I'm curious anyway - is there a bug > tracking re-enabling the checks? Apparently, no.
Mark Lam
Comment 13 2016-07-30 14:24:36 PDT
Will work on re-enabling the StringView life-cycle checks in https://bugs.webkit.org/show_bug.cgi?id=160384.
Note You need to log in before you can comment on or make changes to this bug.