Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(20)

Issue 1118653002: Componentization: add toV8(void*,...) to check function overload mismatch. (Closed)

Created:
5 years ago by tasak
Modified:
5 years ago
Reviewers:
haraken, Jens Widell, Yuki
CC:
blink-reviews, arv+blink, vivekg_samsung, johnme+watch_chromium.org, vivekg, mvanouwerkerk+watch_chromium.org, blink-reviews-bindings_chromium.org, peter+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Componentization: add toV8(void*,...) to check function overload mismatch. Added toV8(void*,...) without any definition to find function overload mismatch. The toV8(void*,...) should be never used. So if we see any unresolved symbols: toV8(void*,...), we will know that we have bugs. If we don't have toV8(void*,...), such buggy code will use toV8(bool,...). This makes it a little difficult for us to find the bugs. BUG=358074 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194789

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move #include "DOMException" to SyncError.h, PushError.h #

Patch Set 3 : Added comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M Source/bindings/core/v8/ToV8.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M Source/modules/background_sync/SyncError.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/cachestorage/Cache.h View 2 chunks +1 line, -1 line 0 comments Download
M Source/modules/cachestorage/Cache.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/push_messaging/PushError.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
tasak
PTAL? https://codereview.chromium.org/1118653002/diff/1/Source/modules/background_sync/SyncCallbacks.h File Source/modules/background_sync/SyncCallbacks.h (right): https://codereview.chromium.org/1118653002/diff/1/Source/modules/background_sync/SyncCallbacks.h#newcode8 Source/modules/background_sync/SyncCallbacks.h:8: #include "core/dom/DOMException.h" modules.SyncCallbacks.obj : error LNK2019: unresolved external ...
5 years ago (2015-04-30 07:02:55 UTC) #2
haraken
shiino-san: Would you mind taking a look at this?
5 years ago (2015-04-30 07:15:48 UTC) #4
Jens Widell
Would declaring template<typename T> v8::Handle<v8::Value> toV8(T* value, [...]); have the same effect, but with a ...
5 years ago (2015-04-30 11:20:32 UTC) #6
tasak
Thank you for review. On 2015/04/30 11:20:32, Jens Widell wrote: > Would declaring > > ...
5 years ago (2015-04-30 12:12:10 UTC) #7
Jens Widell
On 2015/04/30 12:12:10, tasak wrote: > Thank you for review. > > On 2015/04/30 11:20:32, ...
5 years ago (2015-04-30 12:38:41 UTC) #8
tasak
On 2015/04/30 12:38:41, Jens Widell wrote: > What happens if you have > > void ...
5 years ago (2015-05-01 02:12:23 UTC) #9
Yuki
lgtm https://codereview.chromium.org/1118653002/diff/1/Source/bindings/core/v8/ToV8.h File Source/bindings/core/v8/ToV8.h (right): https://codereview.chromium.org/1118653002/diff/1/Source/bindings/core/v8/ToV8.h#newcode242 Source/bindings/core/v8/ToV8.h:242: // because of "unresolved external symbol". Could you ...
5 years ago (2015-05-01 04:26:42 UTC) #10
tasak
Thank you for review. haraken@, I moved #include "core/dom/DOMException.h" to SyncError.h and PushError.h. https://codereview.chromium.org/1118653002/diff/1/Source/bindings/core/v8/ToV8.h File ...
5 years ago (2015-05-01 05:16:50 UTC) #11
haraken
LGTM
5 years ago (2015-05-01 05:34:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1118653002/40001
5 years ago (2015-05-01 05:45:02 UTC) #15
commit-bot: I haz the power
5 years ago (2015-05-01 06:39:08 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194789

Powered by Google App Engine
This is Rietveld 408576698