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

Issue 964553003: bindings: Use V8 MaybeLocal<> APIs in Dictionary class (Closed)

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

Description

bindings: Use V8 MaybeLocal<> APIs in Dictionary class We should use APIs which require explicit checks. No behavioral change. BUG=462402 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192679

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -76 lines) Patch
M Source/bindings/core/v8/CustomElementConstructorBuilder.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/Dictionary.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -5 lines 0 comments Download
M Source/bindings/core/v8/Dictionary.cpp View 1 2 3 4 5 6 7 8 4 chunks +40 lines, -30 lines 0 comments Download
M Source/bindings/core/v8/DictionaryHelperForCore.cpp View 1 2 3 4 5 6 7 8 chunks +18 lines, -36 lines 0 comments Download
M Source/bindings/core/v8/V8BindingMacros.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
bashi
PTAL? This is a first attempt to use MaybeLocal<> APIs. We might want to have ...
5 years, 9 months ago (2015-03-03 04:25:05 UTC) #2
haraken
It looks like Dictionary is a bit too hard as a starting point. Shall we ...
5 years, 9 months ago (2015-03-03 05:12:15 UTC) #3
bashi
https://codereview.chromium.org/964553003/diff/20001/Source/bindings/core/v8/Dictionary.h File Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/964553003/diff/20001/Source/bindings/core/v8/Dictionary.h#newcode48 Source/bindings/core/v8/Dictionary.h:48: class Dictionary final : public ScriptState::Observer { On 2015/03/03 ...
5 years, 9 months ago (2015-03-03 05:56:28 UTC) #4
haraken
https://codereview.chromium.org/964553003/diff/20001/Source/bindings/core/v8/Dictionary.h File Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/964553003/diff/20001/Source/bindings/core/v8/Dictionary.h#newcode138 Source/bindings/core/v8/Dictionary.h:138: v8::Local<v8::Context> m_context; On 2015/03/03 05:56:28, bashi1 wrote: > On ...
5 years, 9 months ago (2015-03-03 06:12:14 UTC) #5
bashi
On 2015/03/03 06:12:14, haraken wrote: > https://codereview.chromium.org/964553003/diff/20001/Source/bindings/core/v8/Dictionary.h > File Source/bindings/core/v8/Dictionary.h (right): > > https://codereview.chromium.org/964553003/diff/20001/Source/bindings/core/v8/Dictionary.h#newcode138 > ...
5 years, 9 months ago (2015-03-03 06:29:41 UTC) #6
haraken
On 2015/03/03 06:29:41, bashi1 wrote: > On 2015/03/03 06:12:14, haraken wrote: > > > https://codereview.chromium.org/964553003/diff/20001/Source/bindings/core/v8/Dictionary.h ...
5 years, 9 months ago (2015-03-03 06:55:12 UTC) #7
bashi
On 2015/03/03 06:55:12, haraken wrote: > On 2015/03/03 06:29:41, bashi1 wrote: > > On 2015/03/03 ...
5 years, 9 months ago (2015-03-03 07:09:44 UTC) #8
dcarney
https://codereview.chromium.org/964553003/diff/60001/Source/bindings/core/v8/Dictionary.cpp File Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/964553003/diff/60001/Source/bindings/core/v8/Dictionary.cpp#newcode236 Source/bindings/core/v8/Dictionary.cpp:236: v8::MaybeLocal<v8::String> maybeKey = properties->Get(i)->ToString(context()); you want to use a ...
5 years, 9 months ago (2015-03-06 07:42:45 UTC) #9
bashi
Updated. PTAL? https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/DictionaryHelperForCore.cpp File Source/bindings/core/v8/DictionaryHelperForCore.cpp (left): https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/DictionaryHelperForCore.cpp#oldcode68 Source/bindings/core/v8/DictionaryHelperForCore.cpp:68: v8::Local<v8::Boolean> v8Bool = v8Value->ToBoolean(dictionary.isolate()); I think we ...
5 years, 9 months ago (2015-03-27 03:11:08 UTC) #11
haraken
https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/Dictionary.cpp File Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/Dictionary.cpp#newcode218 Source/bindings/core/v8/Dictionary.cpp:218: return true; I'm not sure if this should always ...
5 years, 9 months ago (2015-03-27 03:33:33 UTC) #12
bashi
https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/Dictionary.cpp File Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/Dictionary.cpp#newcode218 Source/bindings/core/v8/Dictionary.cpp:218: return true; On 2015/03/27 03:33:33, haraken wrote: > > ...
5 years, 9 months ago (2015-03-27 03:55:24 UTC) #13
haraken
https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/Dictionary.cpp File Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/Dictionary.cpp#newcode218 Source/bindings/core/v8/Dictionary.cpp:218: return true; On 2015/03/27 03:55:24, bashi1 wrote: > On ...
5 years, 9 months ago (2015-03-27 03:59:25 UTC) #14
bashi
https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/Dictionary.cpp File Source/bindings/core/v8/Dictionary.cpp (right): https://codereview.chromium.org/964553003/diff/120001/Source/bindings/core/v8/Dictionary.cpp#newcode218 Source/bindings/core/v8/Dictionary.cpp:218: return true; On 2015/03/27 03:59:24, haraken wrote: > On ...
5 years, 9 months ago (2015-03-27 04:34:25 UTC) #15
Yuki
lgtm from my perspective. https://codereview.chromium.org/964553003/diff/140001/Source/bindings/core/v8/Dictionary.h File Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/964553003/diff/140001/Source/bindings/core/v8/Dictionary.h#newcode122 Source/bindings/core/v8/Dictionary.h:122: bool toObject(v8::Local<v8::Object>*) const; nit: Since ...
5 years, 9 months ago (2015-03-27 06:48:33 UTC) #16
bashi
https://codereview.chromium.org/964553003/diff/140001/Source/bindings/core/v8/Dictionary.h File Source/bindings/core/v8/Dictionary.h (right): https://codereview.chromium.org/964553003/diff/140001/Source/bindings/core/v8/Dictionary.h#newcode122 Source/bindings/core/v8/Dictionary.h:122: bool toObject(v8::Local<v8::Object>*) const; On 2015/03/27 06:48:33, Yuki wrote: > ...
5 years, 9 months ago (2015-03-27 07:05:50 UTC) #17
haraken
LGTM (if the Local<Array>() concern is resolved).
5 years, 9 months ago (2015-03-27 07:10:08 UTC) #18
dcarney
> GetPropertyNames() calls NewJSArray() regardless there is no property name. I > read this as ...
5 years, 9 months ago (2015-03-27 08:14:29 UTC) #19
dcarney
> GetPropertyNames() calls NewJSArray() regardless there is no property name. I > read this as ...
5 years, 9 months ago (2015-03-27 08:14:33 UTC) #20
bashi
On 2015/03/27 08:14:33, dcarney wrote: > > GetPropertyNames() calls NewJSArray() regardless there is no property ...
5 years, 9 months ago (2015-03-27 08:25:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/964553003/160001
5 years, 9 months ago (2015-03-27 08:26:12 UTC) #24
commit-bot: I haz the power
5 years, 9 months ago (2015-03-27 14:07:10 UTC) #25
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192679

Powered by Google App Engine
This is Rietveld 408576698