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

Issue 2785943002: [Bindings] Simplify V8PrivateProperty::Symbol methods (Closed)

Created:
3 years, 8 months ago by peria
Modified:
3 years, 8 months ago
Reviewers:
haraken, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify V8PrivateProperty::Symbol methods Before this CL, those methods took a context as an argument. But in case of setting/getting private property, the context to be used is the current realm and it can be taken from the isolate. Plus, a context in the argument can be wrong if a developer misunderstands what should be passed. Hence this CL removes the argument |context| from Symbol's methods and does a clean-up changes around it. BUG=611864 Review-Url: https://codereview.chromium.org/2785943002 Cr-Commit-Position: refs/heads/master@{#461051} Committed: https://chromium.googlesource.com/chromium/src/+/55fd47019c03eac50969cd75ebac4119d3474bd4

Patch Set 1 : . #

Total comments: 10

Patch Set 2 : . #

Patch Set 3 : NOLINT comment hack #

Total comments: 10

Patch Set 4 : work for comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -154 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp View 4 chunks +15 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp View 3 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h View 1 2 3 3 chunks +36 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8CustomEventCustom.cpp View 4 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8ErrorEventCustom.cpp View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8MessageEventCustom.cpp View 3 chunks +12 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp View 4 chunks +13 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h View 6 chunks +12 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp View 2 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor2.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/events/MessageEvent.cpp View 1 chunk +2 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (14 generated)
peria
PTL https://codereview.chromium.org/2785943002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2785943002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode142 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:142: static Symbol V8_PRIVATE_PROPERTY_GETTER_NAME( \ A presubmit error warns ...
3 years, 8 months ago (2017-03-30 07:08:26 UTC) #6
Yuki
https://codereview.chromium.org/2785943002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2785943002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode104 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:104: if (v8Call(object->GetPrivate(context(), m_privateSymbol), value)) v8Call is deprecated, so it's ...
3 years, 8 months ago (2017-03-30 07:25:42 UTC) #7
peria
https://codereview.chromium.org/2785943002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2785943002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode104 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:104: if (v8Call(object->GetPrivate(context(), m_privateSymbol), value)) On 2017/03/30 07:25:42, Yuki wrote: ...
3 years, 8 months ago (2017-03-30 07:41:37 UTC) #8
Yuki
LGTM.
3 years, 8 months ago (2017-03-30 07:53:03 UTC) #9
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/2785943002/60001
3 years, 8 months ago (2017-03-30 07:56:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/398502)
3 years, 8 months ago (2017-03-30 08:02:58 UTC) #15
peria
On 2017/03/30 08:02:58, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-03-30 10:33:56 UTC) #16
haraken
LGTM https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode95 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:95: v8::Local<v8::Value> getOrUndefined(v8::Local<v8::Object> object) const { Not related to ...
3 years, 8 months ago (2017-03-30 13:53:34 UTC) #17
Yuki
https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode95 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:95: v8::Local<v8::Value> getOrUndefined(v8::Local<v8::Object> object) const { On 2017/03/30 13:53:34, haraken ...
3 years, 8 months ago (2017-03-30 14:18:14 UTC) #18
haraken
https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode95 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:95: v8::Local<v8::Value> getOrUndefined(v8::Local<v8::Object> object) const { On 2017/03/30 14:18:14, Yuki ...
3 years, 8 months ago (2017-03-30 14:21:37 UTC) #19
Yuki
https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode122 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:122: v8::Local<v8::Context> context() const { On 2017/03/30 14:21:37, haraken wrote: ...
3 years, 8 months ago (2017-03-30 15:02:43 UTC) #20
haraken
On 2017/03/30 15:02:43, Yuki wrote: > https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h > File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): > > https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode122 > ...
3 years, 8 months ago (2017-03-30 15:03:32 UTC) #21
peria
https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2785943002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode122 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:122: v8::Local<v8::Context> context() const { On 2017/03/30 15:02:43, Yuki wrote: ...
3 years, 8 months ago (2017-03-30 15:53:24 UTC) #23
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/2785943002/80001
3 years, 8 months ago (2017-03-31 03:40:28 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 05:45:35 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/55fd47019c03eac50969cd75ebac...

Powered by Google App Engine
This is Rietveld 408576698