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

Issue 2795593006: Abstract out Modulator from V8PerContextData (Closed)

Created:
3 years, 8 months ago by adithyas
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Abstract out Modulator from V8PerContextData To move V8PerContextData to platform/bindings, we need to remove its dependency to Modulator. This CL creates a general abstraction for V8PerContextData to hold instances of garbage collected objects and makes Modulator use this abstraction. BUG=682322 Review-Url: https://codereview.chromium.org/2795593006 Cr-Commit-Position: refs/heads/master@{#462564} Committed: https://chromium.googlesource.com/chromium/src/+/0e6bf6e952ea8db241c4972fdf97bb7309502f61

Patch Set 1 #

Patch Set 2 : Clear map in V8PerContextData destructor #

Patch Set 3 : Add comment #

Patch Set 4 : Add new from method for Modulator #

Total comments: 12

Patch Set 5 : Code review fixes #

Patch Set 6 : Rebase #

Patch Set 7 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -21 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptModuleTest.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h View 1 2 3 4 3 chunks +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp View 2 3 4 2 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Modulator.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Modulator.cpp View 1 2 3 4 1 chunk +28 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (13 generated)
adithyas
3 years, 8 months ago (2017-04-04 17:55:05 UTC) #2
esprehn
It seems like maybe this belongs in platform/bindings instead? https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/Modulator.cpp?q=Modulator&l=21 https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/ScriptModuleResolver.h?l=33 https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/ModuleScript.h?l=8 All this code ...
3 years, 8 months ago (2017-04-04 18:11:57 UTC) #4
adithyas
On 2017/04/04 at 18:11:57, esprehn wrote: > It seems like maybe this belongs in platform/bindings ...
3 years, 8 months ago (2017-04-04 20:38:26 UTC) #5
jbroman
On 2017/04/04 at 20:38:26, adithyas wrote: > On 2017/04/04 at 18:11:57, esprehn wrote: > > ...
3 years, 8 months ago (2017-04-04 21:16:48 UTC) #6
kouhei (in TOK)
PS4 lgtm if haraken is OK. On 2017/04/04 21:16:48, jbroman wrote: > On 2017/04/04 at ...
3 years, 8 months ago (2017-04-05 00:50:49 UTC) #7
haraken
LGTM https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp File third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp (right): https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp#newcode75 third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp:75: m_dataMap.clear(); Is this needed? https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h File third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h (right): ...
3 years, 8 months ago (2017-04-05 02:08:10 UTC) #8
kouhei (in TOK)
https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/core/dom/Modulator.cpp File third_party/WebKit/Source/core/dom/Modulator.cpp (right): https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/core/dom/Modulator.cpp#newcode14 third_party/WebKit/Source/core/dom/Modulator.cpp:14: V8PerContextData* getPerContextData(LocalFrame* frame) { On 2017/04/05 02:08:10, haraken wrote: ...
3 years, 8 months ago (2017-04-05 02:09:05 UTC) #9
jbroman
lgtm If we want to take another look at whether some parts of the modules ...
3 years, 8 months ago (2017-04-05 21:07:01 UTC) #10
dcheng
https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/core/dom/Modulator.cpp File third_party/WebKit/Source/core/dom/Modulator.cpp (right): https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/core/dom/Modulator.cpp#newcode12 third_party/WebKit/Source/core/dom/Modulator.cpp:12: const char* kPerContextDataKey = "Modulator"; Drive-by: const char kPerContextDataKey[] ...
3 years, 8 months ago (2017-04-05 21:13:29 UTC) #11
adithyas
https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp File third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp (right): https://codereview.chromium.org/2795593006/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp#newcode75 third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp:75: m_dataMap.clear(); On 2017/04/05 at 21:07:00, jbroman wrote: > On ...
3 years, 8 months ago (2017-04-05 21:45:36 UTC) #12
adithyas
3 years, 8 months ago (2017-04-05 21:45:36 UTC) #13
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/2795593006/80001
3 years, 8 months ago (2017-04-05 21:46:25 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/389546)
3 years, 8 months ago (2017-04-05 21:52:38 UTC) #18
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/2795593006/120001
3 years, 8 months ago (2017-04-06 18:34:19 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 18:55:00 UTC) #28
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/0e6bf6e952ea8db241c4972fdf97...

Powered by Google App Engine
This is Rietveld 408576698