Bug 100973 - [V8] Generalize NodeWrapperMap to be able to handle other sorts of keys
Summary: [V8] Generalize NodeWrapperMap to be able to handle other sorts of keys
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-01 11:23 PDT by Adam Barth
Modified: 2012-11-02 12:22 PDT (History)
8 users (show)

See Also:


Attachments
Patch (3.54 KB, patch)
2012-11-01 11:30 PDT, Adam Barth
no flags Details | Formatted Diff | Diff
Patch for landing (3.71 KB, patch)
2012-11-02 11:14 PDT, Adam Barth
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Barth 2012-11-01 11:23:01 PDT
[V8] Generalize NodeWrapperMap to be able to handle other sorts of keys
Comment 1 Adam Barth 2012-11-01 11:30:56 PDT
Created attachment 171900 [details]
Patch
Comment 2 Kentaro Hara 2012-11-01 11:35:25 PDT
Comment on attachment 171900 [details]
Patch

Looks good.

(We might want to invent a better name than IntrusiveDOMWrapperMap. When at first I looked at the implementation, I couldn't figure out what Intrusive implies.)
Comment 3 Adam Barth 2012-11-01 11:37:10 PDT
Actually, I plan to eventually remove this class to avoid the virtual function call, but that's a bit further down this path.
Comment 4 WebKit Review Bot 2012-11-01 12:04:58 PDT
Comment on attachment 171900 [details]
Patch

Rejecting attachment 171900 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
ts/ChangeLog
CONFLICT (content): Merge conflict in LayoutTests/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 Unreviewed, marking tests as failing preemptively.

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 154.

Full output: http://queues.webkit.org/results/14691058
Comment 5 WebKit Review Bot 2012-11-01 17:24:29 PDT
Comment on attachment 171900 [details]
Patch

Clearing flags on attachment: 171900

Committed r133244: <http://trac.webkit.org/changeset/133244>
Comment 6 WebKit Review Bot 2012-11-01 17:24:33 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Stephen White 2012-11-01 18:59:42 PDT
Reverted r133244 for reason:

Broke Chromium Mac (clang) builds.

Committed r133256: <http://trac.webkit.org/changeset/133256>
Comment 8 Stephen White 2012-11-01 19:02:00 PDT
Sorry if this revert was a misfire -- there was a warning-treated-as-error in clang that I couldn't figure out how to suppress (or if it was a true bug).
Comment 9 noel gordon 2012-11-01 19:21:03 PDT
The specific clang warning-treated-as-error for reference

... d-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang skip-virtuals-in-implementations -fcolor-diagnostics -fno-strict-aliasing -include obj/third_party/WebKit/Source/WebCore/webcore_remaining.WebCorePrefix.h-cc -c ../../third_party/WebKit/Source/WebCore/bindings/v8/V8GCController.cpp -o obj/third_party/webkit/source/webcore/bindings/v8/webcore_remaining.v8gccontroller.o
In file included from ../../third_party/WebKit/Source/WebCore/bindings/v8/V8GCController.cpp:40:
../../third_party/WebKit/Source/WebCore/bindings/v8/IntrusiveDOMWrapperMap.h:60:25: error: unused variable 'info' [-Werror,-Wunused-variable]
        MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Binding);
                        ^
1 error generated.
Comment 10 Adam Barth 2012-11-02 11:14:48 PDT
Created attachment 172090 [details]
Patch for landing
Comment 11 Adam Barth 2012-11-02 11:15:49 PDT
> The specific clang warning-treated-as-error for reference

Thanks.  This patch didn't actually touch that line of code, but I can fix it anyway.  :)
Comment 12 WebKit Review Bot 2012-11-02 11:17:26 PDT
Comment on attachment 172090 [details]
Patch for landing

Rejecting attachment 172090 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

ERROR: /mnt/git/webkit-commit-queue/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://queues.webkit.org/results/14712086
Comment 13 Stephen White 2012-11-02 11:20:07 PDT
r=me.  Thanks for the fix (don't know why this line didn't fail earlier -- maybe a new version of clang since this file was last compiled?)
Comment 14 Tony Chang 2012-11-02 11:29:48 PDT
(In reply to comment #13)
> r=me.  Thanks for the fix (don't know why this line didn't fail earlier -- maybe a new version of clang since this file was last compiled?)

The cr-linux bots use gcc, so you won't see clang warnings on the ews cr-linux or cq bots.
Comment 15 Stephen White 2012-11-02 11:31:00 PDT
(In reply to comment #14)
> (In reply to comment #13)
> > r=me.  Thanks for the fix (don't know why this line didn't fail earlier -- maybe a new version of clang since this file was last compiled?)
> 
> The cr-linux bots use gcc, so you won't see clang warnings on the ews cr-linux or cq bots.

Right, what I meant was why Adam's change triggered a clang compile failure, since that line existed before.
Comment 16 WebKit Review Bot 2012-11-02 12:22:46 PDT
Comment on attachment 172090 [details]
Patch for landing

Clearing flags on attachment: 172090

Committed r133331: <http://trac.webkit.org/changeset/133331>
Comment 17 WebKit Review Bot 2012-11-02 12:22:50 PDT
All reviewed patches have been landed.  Closing bug.