Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Issue 48633006: Teach V8GCController how to traverse TemplateContentDocumentFragment::host (Closed)

Created:
7 years, 1 month ago by adamk
Modified:
7 years, 1 month ago
Reviewers:
haraken
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, Inactive, dominicc (has gone to gerrit)
Visibility:
Public.

Description

Teach V8GCController how to traverse TemplateContentDocumentFragment::host This allows us to remove the [KeepAttributeAliveForGC] extended IDL attribute, at the cost of a ridiculously-named new method on Node. R=haraken@chromium.org BUG=312518 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161282

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added minor GC support #

Patch Set 3 : Add expectation file #

Patch Set 4 : Add proper traversal for minor GC #

Total comments: 2

Patch Set 5 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -49 lines) Patch
A LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html View 1 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc-expected.txt View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M Source/bindings/scripts/IDLAttributes.txt View 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/scripts/unstable/v8_attributes.py View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/TestObjectPython.idl View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 2 3 4 2 chunks +0 lines, -35 lines 0 comments Download
M Source/bindings/v8/V8GCController.cpp View 1 2 3 4 4 chunks +11 lines, -3 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/dom/TemplateContentDocumentFragment.h View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLTemplateElement.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLTemplateElement.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
adamk
7 years, 1 month ago (2013-10-29 18:27:40 UTC) #1
haraken
https://codereview.chromium.org/48633006/diff/1/LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html File LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html (right): https://codereview.chromium.org/48633006/diff/1/LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html#newcode17 LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html:17: gc(); You might also want to add a test ...
7 years, 1 month ago (2013-10-30 00:09:52 UTC) #2
adamk
https://codereview.chromium.org/48633006/diff/1/Source/bindings/v8/V8GCController.cpp File Source/bindings/v8/V8GCController.cpp (right): https://codereview.chromium.org/48633006/diff/1/Source/bindings/v8/V8GCController.cpp#newcode193 Source/bindings/v8/V8GCController.cpp:193: node = node->parentOrShadowHostNode(); On 2013/10/30 00:09:53, haraken wrote: > ...
7 years, 1 month ago (2013-10-30 17:02:44 UTC) #3
adamk
Minor GC support added, PTAL. In particular, though my new test passes, I'm wondering if ...
7 years, 1 month ago (2013-10-30 18:28:43 UTC) #4
haraken
On 2013/10/30 18:28:43, adamk wrote: > Minor GC support added, PTAL. In particular, though my ...
7 years, 1 month ago (2013-10-31 00:35:08 UTC) #5
adamk
On 2013/10/31 00:35:08, haraken wrote: > On 2013/10/30 18:28:43, adamk wrote: > > Minor GC ...
7 years, 1 month ago (2013-10-31 15:50:56 UTC) #6
haraken
On 2013/10/31 15:50:56, adamk wrote: > On 2013/10/31 00:35:08, haraken wrote: > > On 2013/10/30 ...
7 years, 1 month ago (2013-10-31 16:00:09 UTC) #7
adamk
On 2013/10/31 16:00:09, haraken wrote: > On 2013/10/31 15:50:56, adamk wrote: > > On 2013/10/31 ...
7 years, 1 month ago (2013-10-31 16:04:26 UTC) #8
haraken
> > It would be hard to test it deterministically, because the order in which ...
7 years, 1 month ago (2013-10-31 16:05:57 UTC) #9
adamk
Okay, added proper traversal to traverseTree().
7 years, 1 month ago (2013-10-31 17:36:48 UTC) #10
haraken
LGTM. Thanks! https://codereview.chromium.org/48633006/diff/200001/Source/bindings/v8/V8GCController.cpp File Source/bindings/v8/V8GCController.cpp (right): https://codereview.chromium.org/48633006/diff/200001/Source/bindings/v8/V8GCController.cpp#newcode184 Source/bindings/v8/V8GCController.cpp:184: if (node->hasTagName(HTMLNames::templateTag)) { Let's add a comment ...
7 years, 1 month ago (2013-10-31 22:32:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adamk@chromium.org/48633006/250001
7 years, 1 month ago (2013-11-04 19:14:20 UTC) #12
adamk
https://codereview.chromium.org/48633006/diff/200001/Source/bindings/v8/V8GCController.cpp File Source/bindings/v8/V8GCController.cpp (right): https://codereview.chromium.org/48633006/diff/200001/Source/bindings/v8/V8GCController.cpp#newcode184 Source/bindings/v8/V8GCController.cpp:184: if (node->hasTagName(HTMLNames::templateTag)) { On 2013/10/31 22:32:53, haraken wrote: > ...
7 years, 1 month ago (2013-11-04 19:15:40 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-04 21:10:26 UTC) #14
Message was sent while issue was closed.
Change committed as 161282

Powered by Google App Engine
This is Rietveld 408576698