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

Issue 1769273004: Remove V8RecrusionScope, cleanup call sites. (Closed)

Created:
4 years, 9 months ago by dgozman
Modified:
4 years, 9 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-worker-reviews_chromium.org, caseq+blink_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, extensions-reviews_chromium.org, falken, gavinp+loader_chromium.org, horo+watch_chromium.org, jam, Nate Chapin, kinuko+watch, kinuko+worker_chromium.org, kozyatinskiy+blink_chromium.org, loading-reviews_chromium.org, lushnikov+blink_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, pfeldman, pfeldman+blink_chromium.org, rwlbuis, sergeyv+blink_chromium.org, sof, tommyw+watchlist_chromium.org, tyoshino+watch_chromium.org, webcomponents-bugzilla_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove V8RecrusionScope, cleanup call sites. - blink-side usages migrated to v8::MicrotasksScope; - clients of WebScopedMicrotaskSuppression migrated to v8::MicrotasksScope; - moved Microtask.{h,cpp} to bindings/core/v8; - removed extra wrappers from V8DebuggerClient; - fixed a couple of inspector tests which relied on trace event not emitted from debugger anymore. Attempt #2. First one failed due to missing scopes in platform/v8_inspector. See issue 594974. BUG=585949 Committed: https://crrev.com/8ce1943be5284c67fb79cae9bf1576624fba97b6 Cr-Commit-Position: refs/heads/master@{#381569}

Patch Set 1 #

Total comments: 8

Patch Set 2 : review comments, a couple more tests #

Total comments: 14

Patch Set 3 : rebased, addressed comments #

Patch Set 4 : removed some context scopes #

Patch Set 5 : rebased #

Patch Set 6 : rebased #

Patch Set 7 : rebased #

Patch Set 8 : new line in test #

Patch Set 9 : rebased, added missing scopes to v8_inspector #

Patch Set 10 : rebased #

Patch Set 11 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -658 lines) Patch
M chrome/test/base/v8_unit_test.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M components/guest_view/renderer/guest_view_container.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/guest_view/renderer/guest_view_request.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/v8_value_converter_impl_unittest.cc View 8 chunks +14 lines, -8 lines 0 comments Download
M content/renderer/java/gin_java_bridge_value_converter_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/v8_var_converter_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/renderer/activity_log_converter_strategy_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/renderer/guest_view/extensions_guest_view_container.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/renderer/messaging_bindings.cc View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/renderer/module_system.cc View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/renderer/safe_builtins.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/renderer/script_context.cc View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M extensions/renderer/utils_native_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/renderer/v8_helpers.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/timeline/fetch-as-stream.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-bound-function-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-injected-script-eval.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-injected-script-eval-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-layout.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-recalculate-styles.html View 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-recalculate-styles-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-script-id-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-time-expected.txt View 1 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-timer-expected.txt View 1 1 chunk +0 lines, -13 lines 0 comments Download
A + third_party/WebKit/Source/bindings/core/v8/Microtask.h View 1 2 2 chunks +19 lines, -1 line 0 comments Download
A + third_party/WebKit/Source/bindings/core/v8/Microtask.cpp View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ReadableStreamOperationsTest.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.h View 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/bindings/core/v8/V8RecursionScope.h View 1 chunk +0 lines, -99 lines 0 comments Download
D third_party/WebKit/Source/bindings/core/v8/V8RecursionScope.cpp View 1 chunk +0 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 3 4 5 6 7 8 12 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/v8.gypi View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/core/dom/Microtask.h View 1 2 1 chunk +0 lines, -58 lines 0 comments Download
D third_party/WebKit/Source/core/dom/Microtask.cpp View 1 2 1 chunk +0 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/core/dom/MutationObserver.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskRunQueue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSlotElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/DevToolsHost.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ThreadDebugger.h View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp View 1 2 3 4 5 3 chunks +7 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/ReadableStreamDataConsumerHandle.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/ReadableStreamDataConsumerHandleTest.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h View 1 2 3 4 5 6 7 8 9 3 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp View 1 2 3 4 5 6 7 8 9 10 18 chunks +19 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.cpp View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.h View 4 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.h View 1 2 2 chunks +3 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.cpp View 1 2 3 4 5 6 7 8 11 chunks +23 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp View 1 2 3 4 5 6 7 8 9 chunks +59 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8FunctionCall.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8FunctionCall.cpp View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8JavaScriptCallFrame.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8JavaScriptCallFrame.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h View 1 2 3 4 5 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebKit.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/web/WebScopedMicrotaskSuppression.cpp View 1 chunk +0 lines, -63 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h View 1 chunk +0 lines, -76 lines 0 comments Download

Messages

Total messages: 56 (27 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769273004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769273004/1
4 years, 9 months ago (2016-03-07 23:00:59 UTC) #2
dgozman
Could you please take a look? This should be a final cleanup patch.
4 years, 9 months ago (2016-03-08 00:00:13 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/192627)
4 years, 9 months ago (2016-03-08 00:27:13 UTC) #6
pfeldman
https://codereview.chromium.org/1769273004/diff/1/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp File third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp (right): https://codereview.chromium.org/1769273004/diff/1/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp#newcode343 third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp:343: int cookie = m_manager->debugger()->willExecuteScript(context(), script->GetUnboundScript()->GetId()); m_debugger->runCompiledScript? https://codereview.chromium.org/1769273004/diff/1/third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.cpp File third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.cpp ...
4 years, 9 months ago (2016-03-08 01:44:21 UTC) #7
dgozman
PTAL https://codereview.chromium.org/1769273004/diff/1/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp File third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp (right): https://codereview.chromium.org/1769273004/diff/1/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp#newcode343 third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp:343: int cookie = m_manager->debugger()->willExecuteScript(context(), script->GetUnboundScript()->GetId()); On 2016/03/08 01:44:20, ...
4 years, 9 months ago (2016-03-08 02:23:01 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769273004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769273004/20001
4 years, 9 months ago (2016-03-08 02:23:57 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/191632)
4 years, 9 months ago (2016-03-08 03:43:43 UTC) #12
nyquist
FYI: I'm not familiar with this code, but it might be a follow up of ...
4 years, 9 months ago (2016-03-08 08:09:50 UTC) #14
pfeldman
https://codereview.chromium.org/1769273004/diff/20001/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp File third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp (right): https://codereview.chromium.org/1769273004/diff/20001/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp#newcode329 third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp:329: if (!m_manager->debugger()->client()->isExecutionAllowed()) Can you do this within runCompiledScript? https://codereview.chromium.org/1769273004/diff/20001/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.cpp ...
4 years, 9 months ago (2016-03-08 20:23:21 UTC) #15
dgozman
PTAL https://codereview.chromium.org/1769273004/diff/20001/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp File third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp (right): https://codereview.chromium.org/1769273004/diff/20001/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp#newcode329 third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp:329: if (!m_manager->debugger()->client()->isExecutionAllowed()) On 2016/03/08 20:23:21, pfeldman wrote: > ...
4 years, 9 months ago (2016-03-09 22:01:53 UTC) #16
pfeldman
lgtm
4 years, 9 months ago (2016-03-10 02:42:37 UTC) #19
dgozman
Jochen, could you please take a look? It's mostly mechanical replace, with only interesting file ...
4 years, 9 months ago (2016-03-10 02:47:29 UTC) #20
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-10 15:47:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769273004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769273004/100001
4 years, 9 months ago (2016-03-14 18:34:09 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/35481) linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, ...
4 years, 9 months ago (2016-03-14 19:03:17 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769273004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769273004/120001
4 years, 9 months ago (2016-03-14 19:12:39 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/196347)
4 years, 9 months ago (2016-03-14 20:38:13 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769273004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769273004/140001
4 years, 9 months ago (2016-03-14 21:14:52 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 9 months ago (2016-03-14 22:57:29 UTC) #36
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/133a1579d2a087acdcdd4e9247062edb0bd1e5a3 Cr-Commit-Position: refs/heads/master@{#381103}
4 years, 9 months ago (2016-03-14 22:58:30 UTC) #38
dvadym
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1804043002/ by dvadym@chromium.org. ...
4 years, 9 months ago (2016-03-15 14:07:35 UTC) #39
dvadym
On 2016/03/15 14:07:35, dvadym wrote: > A revert of this CL (patchset #8 id:140001) has ...
4 years, 9 months ago (2016-03-15 14:25:37 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769273004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769273004/160001
4 years, 9 months ago (2016-03-15 22:22:35 UTC) #43
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 00:11:43 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769273004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769273004/200001
4 years, 9 months ago (2016-03-16 16:51:13 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 18:03:25 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769273004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769273004/200001
4 years, 9 months ago (2016-03-16 22:23:48 UTC) #52
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 9 months ago (2016-03-16 22:31:06 UTC) #54
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 22:32:49 UTC) #56
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/8ce1943be5284c67fb79cae9bf1576624fba97b6
Cr-Commit-Position: refs/heads/master@{#381569}

Powered by Google App Engine
This is Rietveld 408576698