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

Issue 2429343004: [CachedAccessor] for window.document. (Closed)

Created:
4 years, 2 months ago by vogelheim
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CachedAccessor] for window.document. - Implemend [CachedAccessor] attribute to enable cached accessors. - Implement a cached accessor for window.document. This is based on crrev.com/2335203006 by peterssen@google.com, with only a minor fix added. Intent to implement & ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/OhIFnre7ytQ Previous (reviewed) CL: https://codereview.chromium.org/2335203006/ Depends on V8 CL: https://codereview.chromium.org/2405213002/ BUG=chromium:634276 Committed: https://crrev.com/460ec9e9068eb8bf57ce3fae68bb277ca4106f9a Cr-Commit-Position: refs/heads/master@{#430551}

Patch Set 1 : crrev.com/2335203006, rebased. #

Patch Set 2 : run-bindings-tests --reset-results #

Patch Set 3 : Fix cached accessor use in non-mainWorld. #

Patch Set 4 : Fix compile. #

Patch Set 5 : Oh look, layouttests, document is a getter now. #

Total comments: 13

Patch Set 6 : Review feedback (and rebase) #

Total comments: 1

Patch Set 7 : Rebase + update test expectations. #

Patch Set 8 : Fix expectation for global-interface-listing-expected, windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -294 lines) Patch
M third_party/WebKit/LayoutTests/imported/wpt/html/browsers/the-window-object/window-properties-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/IDLExtendedAttributes.md View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp View 1 2 3 4 5 6 7 chunks +23 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h View 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp View 1 2 3 4 5 6 2 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_attributes.py View 1 2 3 4 5 6 4 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8SVGTestInterface.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedPrimaryGlobal.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 4 5 6 5 chunks +53 lines, -53 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceOriginTrialEnabled.cpp View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 4 5 6 4 chunks +157 lines, -157 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 2 3 4 5 6 2 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Window.idl View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 40 (23 generated)
vogelheim
ptal. This is the follow-up to crrev.com/2335203006. For easier review, I split up the patch ...
4 years, 2 months ago (2016-10-20 08:09:55 UTC) #12
haraken
LGTM https://codereview.chromium.org/2429343004/diff/150001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2429343004/diff/150001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode246 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:246: isolate, getterCallback, nullptr, data, v8::Local<v8::Signature>(), nullptr => cachedAccessorCallback? ...
4 years, 2 months ago (2016-10-20 08:22:23 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2429343004/diff/150001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp File third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/2429343004/diff/150001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp#newcode423 third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp:423: CHECK(V8PrivateProperty::getWindowDocumentCachedAccessor(m_isolate).set( how does this work for isolated worlds? This ...
4 years, 2 months ago (2016-10-20 08:44:42 UTC) #14
vogelheim
https://codereview.chromium.org/2429343004/diff/150001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2429343004/diff/150001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode246 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:246: isolate, getterCallback, nullptr, data, v8::Local<v8::Signature>(), On 2016/10/20 08:22:23, haraken ...
4 years, 2 months ago (2016-10-20 13:27:59 UTC) #15
haraken
https://codereview.chromium.org/2429343004/diff/150001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2429343004/diff/150001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode246 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:246: isolate, getterCallback, nullptr, data, v8::Local<v8::Signature>(), On 2016/10/20 13:27:59, vogelheim ...
4 years, 2 months ago (2016-10-20 13:40:33 UTC) #16
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-20 13:51:27 UTC) #17
haraken
https://codereview.chromium.org/2429343004/diff/170001/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl File third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl (right): https://codereview.chromium.org/2429343004/diff/170001/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl#newcode240 third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl:240: static v8::Local<v8::Private> {{attribute.name}}CachedAccessorCallback(v8::Isolate* isolate) I'm just curious, but when ...
4 years, 1 month ago (2016-10-24 12:55:43 UTC) #18
haraken
One more comment: Can we implement a logic in Debug builds to fall back to ...
4 years, 1 month ago (2016-10-24 13:07:47 UTC) #19
haraken
Do you have any timeline for landing this CL? We want to move all Window's ...
4 years, 1 month ago (2016-11-02 02:37:58 UTC) #20
chromium-reviews
Hi Kentaro, The timeline is basically: 1) 2429343004 (v8) -> 2) 2405213002 (v8) -> 3) ...
4 years, 1 month ago (2016-11-03 15:56:08 UTC) #21
blink-reviews
Hi Kentaro, The timeline is basically: 1) 2429343004 (v8) -> 2) 2405213002 (v8) -> 3) ...
4 years, 1 month ago (2016-11-03 15:56:09 UTC) #22
vogelheim
ptal (or let me know if the previous lgtms still hold) The dependent V8 CLs ...
4 years, 1 month ago (2016-11-07 14:59:39 UTC) #25
haraken
Still LGTM
4 years, 1 month ago (2016-11-07 15:02:48 UTC) #26
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-11-07 18:13:30 UTC) #29
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/2429343004/210001
4 years, 1 month ago (2016-11-08 09:03:58 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:210001)
4 years, 1 month ago (2016-11-08 09:09:14 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 09:19:10 UTC) #40
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/460ec9e9068eb8bf57ce3fae68bb277ca4106f9a
Cr-Commit-Position: refs/heads/master@{#430551}

Powered by Google App Engine
This is Rietveld 408576698