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

Issue 1647833005: Make handle ctors explicit (Closed)

Created:
4 years, 10 months ago by xaxxon
Modified:
4 years, 10 months ago
CC:
Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Make handle ctors explicit Without this change, the v8::Local<> constructor will be picked up by the compiler as an option for an implicit cast for any pointer type. This leads to bad error messages when accidentally passing an erroneous pointer type to a function wanting a Local<> (complains about a pointer assignment in Local<>'s constructor as opposed to a bad type for the parameter of the function being called) and also causes ambiguity errors where none should exist when calling overloaded functions (for example a function taking either a std::string or a v8::Local<v8::Script> cannot be called with a const char * because the compiler sees both types as being constructable with a const char *). R=jochen@chromium.org BUG= Committed: https://crrev.com/b6c9b70356ca4d2d36424a384290baaa7ba85207 Cr-Commit-Position: refs/heads/master@{#33602}

Patch Set 1 #

Patch Set 2 : Updated v8::Local<T>::Local(T*) constructor to be explicit #

Patch Set 3 : same change but to persistent constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M include/v8.h View 1 2 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
xaxxon
4 years, 10 months ago (2016-01-28 09:17:25 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647833005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647833005/1
4 years, 10 months ago (2016-01-28 09:19:32 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-28 09:52:07 UTC) #5
jochen (gone - plz use gerrit)
I wonder whether just adding "explicit" to the constructor would have the same effect
4 years, 10 months ago (2016-01-28 09:54:33 UTC) #6
jochen (gone - plz use gerrit)
I just saw that you replied by email. Could you use the "reply" method on ...
4 years, 10 months ago (2016-01-28 18:09:16 UTC) #7
xaxxon
On 2016/01/28 18:09:16, jochen wrote: > I just saw that you replied by email. Could ...
4 years, 10 months ago (2016-01-29 01:20:36 UTC) #8
xaxxon
On 2016/01/29 01:20:36, xaxxon wrote: > On 2016/01/28 18:09:16, jochen wrote: > > I just ...
4 years, 10 months ago (2016-01-29 01:26:03 UTC) #9
xaxxon
On 2016/01/29 01:26:03, xaxxon wrote: > On 2016/01/29 01:20:36, xaxxon wrote: > > On 2016/01/28 ...
4 years, 10 months ago (2016-01-29 01:33:42 UTC) #10
jochen (gone - plz use gerrit)
thx, lgtm I updated the CL description to match the required format
4 years, 10 months ago (2016-01-29 08:32:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647833005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647833005/40001
4 years, 10 months ago (2016-01-29 08:32:46 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-01-29 09:12:36 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 09:13:03 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b6c9b70356ca4d2d36424a384290baaa7ba85207
Cr-Commit-Position: refs/heads/master@{#33602}

Powered by Google App Engine
This is Rietveld 408576698