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

Issue 2194793003: Introduce Maybe::To/ToChecked (Closed)

Created:
4 years, 4 months ago by haraken
Modified:
4 years, 4 months ago
CC:
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

Introduce Maybe::To/ToChecked Per discussion in https://groups.google.com/a/chromium.org/d/topic/platform-architecture-dev/vGLGCaMqhCU/discussion BUG= Committed: https://crrev.com/cf1779495d454003b806d50de80a2c713a782466 Cr-Commit-Position: refs/heads/master@{#38173}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M include/v8.h View 2 chunks +16 lines, -8 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
haraken
PTAL
4 years, 4 months ago (2016-07-29 10:14:55 UTC) #4
jochen (gone - plz use gerrit)
lgtm
4 years, 4 months ago (2016-07-29 10:19:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2194793003/1
4 years, 4 months ago (2016-07-29 10:52:55 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-29 10:54:35 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/cf1779495d454003b806d50de80a2c713a782466 Cr-Commit-Position: refs/heads/master@{#38173}
4 years, 4 months ago (2016-07-29 10:57:06 UTC) #12
jbroman
Out of curiosity, why does Maybe<T>::To take a reference, while MaybeHandle<T>::ToLocal takes a pointer? This ...
4 years, 4 months ago (2016-08-02 15:02:50 UTC) #13
jbroman
On 2016/08/02 at 15:02:50, jbroman wrote: > Out of curiosity, why does Maybe<T>::To take a ...
4 years, 4 months ago (2016-08-02 15:03:33 UTC) #14
haraken
4 years, 4 months ago (2016-08-02 15:17:35 UTC) #15
Message was sent while issue was closed.
On 2016/08/02 15:03:33, jbroman wrote:
> On 2016/08/02 at 15:02:50, jbroman wrote:
> > Out of curiosity, why does Maybe<T>::To take a reference, while
> MaybeHandle<T>::ToLocal takes a pointer? This was surprising to me, and it
also
> seems to me to be out of line with the Google C++ style guide (which
discourages
> non-const reference parameters).
> 
> (and by MaybeHandle I mean MaybeLocal, though v8::internal::MaybeHandle is
> similar)

Good point... Let me fix it tomorrow.

Powered by Google App Engine
This is Rietveld 408576698