RESOLVED FIXED 149449
Reduce almost uses of PassRefPtr in Webcore/testing
https://bugs.webkit.org/show_bug.cgi?id=149449
Summary Reduce almost uses of PassRefPtr in Webcore/testing
Gyuyoung Kim
Reported 2015-09-21 23:16:10 PDT
I fail to remove PassRefPtr in nternals::serializeObject() and Internals::deserializeObject(). I want to remove it in next patch again.
Attachments
Patch (25.27 KB, patch)
2015-09-21 23:17 PDT, Gyuyoung Kim
no flags
Patch (29.10 KB, patch)
2015-09-22 08:22 PDT, Gyuyoung Kim
no flags
Patch (28.18 KB, patch)
2015-09-23 09:01 PDT, Gyuyoung Kim
no flags
Gyuyoung Kim
Comment 1 2015-09-21 23:17:21 PDT
Gyuyoung Kim
Comment 2 2015-09-22 08:22:48 PDT
Darin Adler
Comment 3 2015-09-22 09:23:17 PDT
Comment on attachment 261743 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=261743&action=review r=me but please don’t land the incorrect change to JSTestOverrideBuiltins.cpp > Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:220 > - JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.namedItem(name))); > + JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.namedItem(WTF::move(name)))); This is an expected test result for the bindings generator test, not a source file. To fix this, we need to change the code that generates this file, not change the file itself. If you land this change as is, it will just cause the test to start failing because this file doesn’t match what the generator generates. The code for this is deep inside the GenerateImplementation function in the file CodeGeneratorJS.pm. > Source/WebCore/testing/MallocStatistics.h:36 > + static Ref<MallocStatistics> create() { return adoptRef(*new MallocStatistics()); } No need for the () after MallocStatistics.
Gyuyoung Kim
Comment 4 2015-09-23 09:01:23 PDT
Gyuyoung Kim
Comment 5 2015-09-23 09:06:09 PDT
Comment on attachment 261743 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=261743&action=review >> Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:220 >> + JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.namedItem(WTF::move(name)))); > > This is an expected test result for the bindings generator test, not a source file. > > To fix this, we need to change the code that generates this file, not change the file itself. > > If you land this change as is, it will just cause the test to start failing because this file doesn’t match what the generator generates. The code for this is deep inside the GenerateImplementation function in the file CodeGeneratorJS.pm. I see. I was wrong. I remove WTF::move() in this line. Thanks. >> Source/WebCore/testing/MallocStatistics.h:36 >> + static Ref<MallocStatistics> create() { return adoptRef(*new MallocStatistics()); } > > No need for the () after MallocStatistics. done.
WebKit Commit Bot
Comment 6 2015-09-24 07:57:13 PDT
Comment on attachment 261824 [details] Patch Clearing flags on attachment: 261824 Committed r190202: <http://trac.webkit.org/changeset/190202>
WebKit Commit Bot
Comment 7 2015-09-24 07:57:18 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.