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

Issue 13975005: Update V8GCController to use new V8 GC-related APIs. (Closed)

Created:
7 years, 8 months ago by marja
Modified:
7 years, 7 months ago
CC:
blink-reviews, haraken, Nate Chapin, jochen (gone - plz use gerrit), loislo, alph, yurys
Visibility:
Public.

Description

Update V8GCController to use new V8 GC-related APIs. The purpose of this is to avoid copying v8::Persistent handles around, and eventually make them non-copyable. BUG=NONE Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149579

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : code review, other updates (api has changed) #

Patch Set 4 : live root fix #

Patch Set 5 : Use the isolate-based APIs. #

Patch Set 6 : api renaming + references from an object #

Patch Set 7 : add minor gc too #

Patch Set 8 : only ctruct retainedobjectinfos if necessary #

Total comments: 16

Patch Set 9 : Code review (haraken) #

Total comments: 6

Patch Set 10 : code review (haraken) #

Patch Set 11 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -170 lines) Patch
M Source/bindings/v8/V8GCController.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8GCController.cpp View 1 2 3 4 5 6 7 8 9 10 11 chunks +61 lines, -169 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
marja
haraken, fyi, here's the Blink side of the V8 GC related api changes. This requires ...
7 years, 8 months ago (2013-04-12 13:55:58 UTC) #1
abarth-chromium
When I tested the performance of this code previously, using HashSets was significantly slower than ...
7 years, 8 months ago (2013-04-12 17:23:44 UTC) #2
marja
I ran the Bindings gc-* performance tests for this, and the results are not good ...
7 years, 8 months ago (2013-04-17 15:23:14 UTC) #3
marja
More information: It turns out that the problem is sorting the list (see https://code.google.com/p/v8/issues/detail?id=2639 ). ...
7 years, 8 months ago (2013-04-18 14:34:20 UTC) #4
haraken1
I'm a bit skeptical about the accuracy of the measurement. > Dromaeo: > > dom-attr ...
7 years, 8 months ago (2013-04-18 14:39:47 UTC) #5
marja
On 2013/04/18 14:39:47, haraken-google wrote: > I'm a bit skeptical about the accuracy of the ...
7 years, 8 months ago (2013-04-18 14:48:02 UTC) #6
marja
Update: There was some stupidity left in this patch, we do unnecessary work when there ...
7 years, 8 months ago (2013-04-18 15:02:03 UTC) #7
marja
Alright, I fixed some inefficiencies in the handing of single-object groups. And there's another V8 ...
7 years, 8 months ago (2013-04-19 15:00:48 UTC) #8
abarth-chromium
On 2013/04/19 15:00:48, marja wrote: > But > for real use cases that shouldn't be ...
7 years, 8 months ago (2013-04-19 16:33:41 UTC) #9
haraken1
> I'm not sure I understand why dom-attr is regressing. Is that something that's > ...
7 years, 8 months ago (2013-04-19 16:37:03 UTC) #10
abarth-chromium
Agreed.
7 years, 8 months ago (2013-04-19 16:40:38 UTC) #11
marja
The Dromaeo/dom-* tests seem to do gc when ran with DRT, we just discussed with ...
7 years, 8 months ago (2013-04-19 16:44:18 UTC) #12
marja
haraken: ptal Changes from the previous version: - Also modify minor gc - Only construct ...
7 years, 8 months ago (2013-04-25 14:07:41 UTC) #13
haraken
https://codereview.chromium.org/13975005/diff/26003/Source/bindings/v8/V8GCController.cpp File Source/bindings/v8/V8GCController.cpp (right): https://codereview.chromium.org/13975005/diff/26003/Source/bindings/v8/V8GCController.cpp#newcode51 Source/bindings/v8/V8GCController.cpp:51: static void addImplicitReferencesForNodeWithEventListeners(v8::Isolate* isolate, Node* node, const v8::Persistent<v8::Object>& wrapper) ...
7 years, 8 months ago (2013-04-25 14:55:54 UTC) #14
marja
Discussed offline: - The "collect representative wrappers for groups and add the impl references from ...
7 years, 8 months ago (2013-04-25 15:35:43 UTC) #15
marja
Thanks for comments! https://codereview.chromium.org/13975005/diff/26003/Source/bindings/v8/V8GCController.cpp File Source/bindings/v8/V8GCController.cpp (right): https://codereview.chromium.org/13975005/diff/26003/Source/bindings/v8/V8GCController.cpp#newcode51 Source/bindings/v8/V8GCController.cpp:51: static void addImplicitReferencesForNodeWithEventListeners(v8::Isolate* isolate, Node* node, ...
7 years, 8 months ago (2013-04-26 08:14:47 UTC) #16
haraken
LGTM with nits. Fantastic patch! https://codereview.chromium.org/13975005/diff/32001/Source/bindings/v8/V8GCController.cpp File Source/bindings/v8/V8GCController.cpp (right): https://codereview.chromium.org/13975005/diff/32001/Source/bindings/v8/V8GCController.cpp#newcode273 Source/bindings/v8/V8GCController.cpp:273: std::sort(m_groupsWhichNeedRetainerInfo.begin(), m_groupsWhichNeedRetainerInfo.end()); Shall we ...
7 years, 8 months ago (2013-04-26 09:00:11 UTC) #17
marja
Thanks for review! I'll commit this when V8 has rolled into chromium. https://codereview.chromium.org/13975005/diff/32001/Source/bindings/v8/V8GCController.cpp File Source/bindings/v8/V8GCController.cpp ...
7 years, 8 months ago (2013-04-26 10:40:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/13975005/38001
7 years, 7 months ago (2013-05-02 08:10:36 UTC) #19
commit-bot: I haz the power
7 years, 7 months ago (2013-05-02 08:47:07 UTC) #20
Message was sent while issue was closed.
Change committed as 149579

Powered by Google App Engine
This is Rietveld 408576698