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

Issue 9837116: DOM wrappers that are not retained from Dart should be collected. (Closed)

Created:
8 years, 8 months ago by podivilov
Modified:
8 years, 8 months ago
Reviewers:
Anton Muhin, antonm
CC:
reviews+dom_dartlang.org
Visibility:
Public.

Description

DOM wrappers that are not retained from Dart should be collected. R=antonm@chromium.org Committed: https://src.chromium.org/viewvc/multivm?view=rev&revision=334

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments. #

Patch Set 3 : Rebased with proper shutdown semantics. #

Total comments: 10

Patch Set 4 : Address comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -42 lines) Patch
M Source/WebCore/bindings/dart/DartController.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M Source/WebCore/bindings/dart/DartDOMData.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M Source/WebCore/bindings/dart/DartDOMData.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/WebCore/bindings/dart/DartDOMWrapper.h View 1 2 3 5 chunks +8 lines, -26 lines 0 comments Download
M Source/WebCore/bindings/dart/DartDOMWrapper.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M Source/WebCore/bindings/dart/DartIsolate.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M Source/WebCore/bindings/dart/DartUtilities.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/WebCore/bindings/dart/DartUtilities.cpp View 1 2 3 2 chunks +43 lines, -1 line 1 comment Download

Messages

Total messages: 8 (0 generated)
podivilov
8 years, 8 months ago (2012-03-28 17:29:45 UTC) #1
Anton Muhin
1st round, but it looks really good. https://chromiumcodereview.appspot.com/9837116/diff/1/Source/WebCore/bindings/dart/DartIsolate.cpp File Source/WebCore/bindings/dart/DartIsolate.cpp (right): https://chromiumcodereview.appspot.com/9837116/diff/1/Source/WebCore/bindings/dart/DartIsolate.cpp#newcode140 Source/WebCore/bindings/dart/DartIsolate.cpp:140: Dart_Handle persistentHandle ...
8 years, 8 months ago (2012-03-28 18:03:23 UTC) #2
podivilov
http://codereview.chromium.org/9837116/diff/1/Source/WebCore/bindings/dart/DartIsolate.cpp File Source/WebCore/bindings/dart/DartIsolate.cpp (right): http://codereview.chromium.org/9837116/diff/1/Source/WebCore/bindings/dart/DartIsolate.cpp#newcode140 Source/WebCore/bindings/dart/DartIsolate.cpp:140: Dart_Handle persistentHandle = Dart_NewWeakPersistentHandle(object, peer, &DartIsolate::weakCallbackWrapper); On 2012/03/28 18:03:23, ...
8 years, 8 months ago (2012-03-28 18:20:05 UTC) #3
Anton Muhin
http://codereview.chromium.org/9837116/diff/1/Source/WebCore/bindings/dart/DartIsolate.cpp File Source/WebCore/bindings/dart/DartIsolate.cpp (right): http://codereview.chromium.org/9837116/diff/1/Source/WebCore/bindings/dart/DartIsolate.cpp#newcode140 Source/WebCore/bindings/dart/DartIsolate.cpp:140: Dart_Handle persistentHandle = Dart_NewWeakPersistentHandle(object, peer, &DartIsolate::weakCallbackWrapper); What's the problem ...
8 years, 8 months ago (2012-03-28 18:25:54 UTC) #4
podivilov
Don't use HashMap for weak persistent handles as we never delete them.
8 years, 8 months ago (2012-03-29 09:22:37 UTC) #5
Anton Muhin
http://codereview.chromium.org/9837116/diff/8001/Source/WebCore/bindings/dart/DartDOMData.h File Source/WebCore/bindings/dart/DartDOMData.h (right): http://codereview.chromium.org/9837116/diff/8001/Source/WebCore/bindings/dart/DartDOMData.h#newcode50 Source/WebCore/bindings/dart/DartDOMData.h:50: typedef HashSet<WeakCallbackData*> DartWeakCallbacks; nit: name mismatch: CallbackData vs. Callbacks ...
8 years, 8 months ago (2012-03-29 19:18:45 UTC) #6
podivilov
PTAL. http://codereview.chromium.org/9837116/diff/8001/Source/WebCore/bindings/dart/DartDOMData.h File Source/WebCore/bindings/dart/DartDOMData.h (right): http://codereview.chromium.org/9837116/diff/8001/Source/WebCore/bindings/dart/DartDOMData.h#newcode50 Source/WebCore/bindings/dart/DartDOMData.h:50: typedef HashSet<WeakCallbackData*> DartWeakCallbacks; On 2012/03/29 19:18:45, antonmuhin wrote: ...
8 years, 8 months ago (2012-03-30 10:36:27 UTC) #7
Anton Muhin
8 years, 8 months ago (2012-03-30 11:36:00 UTC) #8
LGTM w/ nit addressed

http://codereview.chromium.org/9837116/diff/13001/Source/WebCore/bindings/dar...
File Source/WebCore/bindings/dart/DartUtilities.cpp (right):

http://codereview.chromium.org/9837116/diff/13001/Source/WebCore/bindings/dar...
Source/WebCore/bindings/dart/DartUtilities.cpp:395: void* peer;
nit: m_peer, m_weakCallback, etc.?

Powered by Google App Engine
This is Rietveld 408576698