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

Issue 970403003: bindings: Use V8 MaybeLocal APIs in V8DeviceMotionEventCustom (Closed)

Created:
5 years, 9 months ago by bashi
Modified:
5 years, 9 months ago
Reviewers:
haraken, Jens Widell, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung, arv+blink, vivekg, kinuko+serviceworker
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

bindings: Use V8 MaybeLocal APIs in V8DeviceMotionEventCustom The V8 team is deprecating ToXXX() methods which takes v8::Isolate* for better exception handling. The new APIs return Maybe{Local}<T>, which requires explicit empty checks. Use it instead of APIs which return Local<T> BUG=462402 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191599

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Total comments: 11

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M Source/bindings/modules/v8/custom/V8DeviceMotionEventCustom.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (6 generated)
bashi
PTAL? https://codereview.chromium.org/970403003/diff/20001/Source/bindings/core/v8/V8MaybeLocalToLocal.h File Source/bindings/core/v8/V8MaybeLocalToLocal.h (right): https://codereview.chromium.org/970403003/diff/20001/Source/bindings/core/v8/V8MaybeLocalToLocal.h#newcode35 Source/bindings/core/v8/V8MaybeLocalToLocal.h:35: #define MAYBE_LOCAL_TO_LOCAL_VOID(context, inValue, outValue) do { \ I'm ...
5 years, 9 months ago (2015-03-04 04:42:11 UTC) #2
Yuki
https://codereview.chromium.org/970403003/diff/20001/Source/bindings/core/v8/V8MaybeLocalToLocal.h File Source/bindings/core/v8/V8MaybeLocalToLocal.h (right): https://codereview.chromium.org/970403003/diff/20001/Source/bindings/core/v8/V8MaybeLocalToLocal.h#newcode40 Source/bindings/core/v8/V8MaybeLocalToLocal.h:40: } while (false); You don't want the last semi-colon.
5 years, 9 months ago (2015-03-04 05:14:32 UTC) #4
haraken
I'm not quite sure if MAYBE_LOCAL_TO_LOCAL_VOID is a good abstraction. ToXXX() won't be the only ...
5 years, 9 months ago (2015-03-04 05:48:24 UTC) #5
bashi
Thanks for reviews. I changed the implementation based on your inputs (both online/offline). Could you ...
5 years, 9 months ago (2015-03-04 08:45:57 UTC) #6
Jens Widell
https://codereview.chromium.org/970403003/diff/40001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/40001/Source/bindings/core/v8/V8BindingMacros.h#newcode83 Source/bindings/core/v8/V8BindingMacros.h:83: if (!(callExpression).ToLocal(&outValue) || outValue.IsEmpty()) \ Should ToLocal() failing and ...
5 years, 9 months ago (2015-03-04 09:01:44 UTC) #8
Yuki
https://codereview.chromium.org/970403003/diff/40001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/40001/Source/bindings/core/v8/V8BindingMacros.h#newcode81 Source/bindings/core/v8/V8BindingMacros.h:81: #define CALL_V8_WITH_CHECK_MAYBELOCAL(type, outValue, callExpression, failureExpression) \ From the point ...
5 years, 9 months ago (2015-03-04 09:04:22 UTC) #9
bashi
https://codereview.chromium.org/970403003/diff/40001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/40001/Source/bindings/core/v8/V8BindingMacros.h#newcode81 Source/bindings/core/v8/V8BindingMacros.h:81: #define CALL_V8_WITH_CHECK_MAYBELOCAL(type, outValue, callExpression, failureExpression) \ On 2015/03/04 09:04:22, ...
5 years, 9 months ago (2015-03-04 10:12:45 UTC) #10
Jens Widell
https://codereview.chromium.org/970403003/diff/60001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/60001/Source/bindings/core/v8/V8BindingMacros.h#newcode84 Source/bindings/core/v8/V8BindingMacros.h:84: v8::TryCatch block; \ This TryCatch serves no purpose. Exceptions ...
5 years, 9 months ago (2015-03-04 10:21:45 UTC) #11
Jens Widell
https://codereview.chromium.org/970403003/diff/60001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/60001/Source/bindings/core/v8/V8BindingMacros.h#newcode81 Source/bindings/core/v8/V8BindingMacros.h:81: #define CALL_V8_WITH_CHECK_MAYBELOCAL_DEFAULT(type, outVariable, callExpression, returnValue) \ This macro reminds ...
5 years, 9 months ago (2015-03-04 10:33:05 UTC) #12
bashi
On 2015/03/04 10:33:05, Jens Widell wrote: > https://codereview.chromium.org/970403003/diff/60001/Source/bindings/core/v8/V8BindingMacros.h > File Source/bindings/core/v8/V8BindingMacros.h (right): > > https://codereview.chromium.org/970403003/diff/60001/Source/bindings/core/v8/V8BindingMacros.h#newcode81 ...
5 years, 9 months ago (2015-03-05 01:53:25 UTC) #13
haraken
On 2015/03/05 01:53:25, bashi1 wrote: > On 2015/03/04 10:33:05, Jens Widell wrote: > > > ...
5 years, 9 months ago (2015-03-05 02:02:27 UTC) #14
bashi
On 2015/03/05 02:02:27, haraken wrote: > On 2015/03/05 01:53:25, bashi1 wrote: > > On 2015/03/04 ...
5 years, 9 months ago (2015-03-06 01:05:24 UTC) #15
haraken
https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h#newcode81 Source/bindings/core/v8/V8BindingMacros.h:81: #define CALL_V8_MAYBELOCAL(outVariable, isolate, callExpression, exceptionState, failureReturnValue) \ Nit: I'd ...
5 years, 9 months ago (2015-03-06 02:44:08 UTC) #16
bashi
https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h#newcode81 Source/bindings/core/v8/V8BindingMacros.h:81: #define CALL_V8_MAYBELOCAL(outVariable, isolate, callExpression, exceptionState, failureReturnValue) \ On 2015/03/06 ...
5 years, 9 months ago (2015-03-06 02:54:44 UTC) #17
Yuki
https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h#newcode83 Source/bindings/core/v8/V8BindingMacros.h:83: v8::TryCatch block; \ On 2015/03/06 02:54:44, bashi1 wrote: > ...
5 years, 9 months ago (2015-03-06 04:30:03 UTC) #18
bashi
Chatted offline with haraken-san, and we are going to simply replace APIs for now. Thanks ...
5 years, 9 months ago (2015-03-06 05:11:37 UTC) #20
haraken
https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h File Source/bindings/core/v8/V8BindingMacros.h (right): https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h#newcode83 Source/bindings/core/v8/V8BindingMacros.h:83: v8::TryCatch block; \ On 2015/03/06 05:11:37, bashi1 wrote: > ...
5 years, 9 months ago (2015-03-06 05:30:52 UTC) #21
bashi
On 2015/03/06 05:30:52, haraken wrote: > https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h > File Source/bindings/core/v8/V8BindingMacros.h (right): > > https://codereview.chromium.org/970403003/diff/80001/Source/bindings/core/v8/V8BindingMacros.h#newcode83 > ...
5 years, 9 months ago (2015-03-06 05:34:13 UTC) #22
haraken
In conclusion, the patch set 6 LGTM.
5 years, 9 months ago (2015-03-06 05:36:14 UTC) #23
bashi
On 2015/03/06 05:36:14, haraken wrote: > In conclusion, the patch set 6 LGTM. I'll wait ...
5 years, 9 months ago (2015-03-06 05:38:31 UTC) #24
haraken
On 2015/03/06 05:38:31, bashi1 wrote: > On 2015/03/06 05:36:14, haraken wrote: > > In conclusion, ...
5 years, 9 months ago (2015-03-06 05:42:58 UTC) #25
dcarney
On 2015/03/06 05:42:58, haraken wrote: > On 2015/03/06 05:38:31, bashi1 wrote: > > On 2015/03/06 ...
5 years, 9 months ago (2015-03-06 07:27:17 UTC) #26
Jens Widell
LGTM
5 years, 9 months ago (2015-03-06 07:31:51 UTC) #27
bashi
Reversed the conditions as the V8 fix is rolled.
5 years, 9 months ago (2015-03-09 23:45:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/970403003/140001
5 years, 9 months ago (2015-03-09 23:46:37 UTC) #31
commit-bot: I haz the power
5 years, 9 months ago (2015-03-10 02:41:44 UTC) #32
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191599

Powered by Google App Engine
This is Rietveld 408576698