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 318843003: Cleanup v8 usage in core (Closed)

Created:
6 years, 6 months ago by Nils Barth (inactive)
Modified:
6 years, 6 months ago
Reviewers:
haraken, yurys, eseidel
CC:
blink-reviews, blink-reviews-dom_chromium.org, shans, eae+blinkwatch, yurys+blink_chromium.org, apavlov+blink_chromium.org, loislo+blink_chromium.org, Steve Block, rune+blink, Yoav Weiss, aandrey+blink_chromium.org, pfeldman+blink_chromium.org, malch+blink_chromium.org, blink-reviews-css, blink-reviews-html_chromium.org, Timothy Loh, dstockwell, dglazkov+blink, gavinp+loader_chromium.org, devtools-reviews_chromium.org, rwlbuis, Eric Willigers, kenneth.christiansen, rjwright, sof, caseq+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, Nate Chapin, blink-reviews-animation_chromium.org, vsevik+blink_chromium.org, Mike Lawther (Google), ed+blinkwatch_opera.com, sergeyv+blink_chromium.org, pfeldman
Visibility:
Public.

Description

Cleanup v8 usage in core * Explicitly include v8.h where used. * Do *not* forward declare v8 symbols in headers, per: http://www.chromium.org/developers/coding-style/cpp-dos-and-donts#TOC-Exceptions There are 27 files in core (9 .h + 18 .cpp) that use v8. This corrects usage. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175551

Patch Set 1 #

Patch Set 2 : Tweak #

Patch Set 3 : Revised #

Patch Set 4 : Fix Skia compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -18 lines) Patch
M Source/core/animation/AnimationTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/EffectInputTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/TimingInputTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/MediaQueryListListener.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/StaticNodeList.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/ErrorEvent.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLCanvasElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLPlugInElement.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/AsyncCallStackTracker.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InjectedScriptManager.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InspectorOverlay.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/JavaScriptCallFrame.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/JavaScriptCallFrame.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/ScriptArguments.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/ScriptProfile.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M Source/core/inspector/ScriptProfile.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/EmptyClients.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/loader/FrameLoaderClient.h View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/testing/Internals.cpp View 2 chunks +1 line, -1 line 0 comments Download
M Source/core/testing/v8/WebCoreTestSupport.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/testing/v8/WebCoreTestSupport.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Nils Barth (inactive)
6 years, 6 months ago (2014-06-05 05:42:22 UTC) #1
haraken
Unfortunately, not LGTM. We discussed this before and decided to just include "v8.h". You can ...
6 years, 6 months ago (2014-06-05 05:52:30 UTC) #2
Nils Barth (inactive)
On 2014/06/05 05:52:30, haraken wrote: > Unfortunately, not LGTM. > > We discussed this before ...
6 years, 6 months ago (2014-06-05 06:05:31 UTC) #3
haraken
LGTM, thanks!
6 years, 6 months ago (2014-06-05 06:08:07 UTC) #4
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 6 months ago (2014-06-05 06:11:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/318843003/40001
6 years, 6 months ago (2014-06-05 06:11:56 UTC) #6
Nils Barth (inactive)
The CQ bit was unchecked by nbarth@chromium.org
6 years, 6 months ago (2014-06-05 07:17:41 UTC) #7
Nils Barth (inactive)
On 2014/06/05 07:17:41, Nils Barth wrote: > The CQ bit was unchecked by mailto:nbarth@chromium.org Turns ...
6 years, 6 months ago (2014-06-05 07:19:13 UTC) #8
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 6 months ago (2014-06-05 07:19:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/318843003/60001
6 years, 6 months ago (2014-06-05 07:20:11 UTC) #10
yurys
Hmm, we used to have Script* abstractions to isolate core/ from VM specific APIs, has ...
6 years, 6 months ago (2014-06-05 07:39:17 UTC) #11
Nils Barth (inactive)
On 2014/06/05 07:39:17, yurys wrote: > Hmm, we used to have Script* abstractions to isolate ...
6 years, 6 months ago (2014-06-05 08:00:06 UTC) #12
haraken
> Hmm, we used to have Script* abstractions to isolate core/ from VM specific > ...
6 years, 6 months ago (2014-06-05 08:09:22 UTC) #13
commit-bot: I haz the power
Change committed as 175551
6 years, 6 months ago (2014-06-05 08:32:00 UTC) #14
yurys
6 years, 6 months ago (2014-06-05 08:37:05 UTC) #15
Message was sent while issue was closed.
On 2014/06/05 08:00:06, Nils Barth wrote:
> On 2014/06/05 07:39:17, yurys wrote:
> > Hmm, we used to have Script* abstractions to isolate core/ from VM specific
> > APIs, has that changed?
> > 
> > At the moment we use both v8 APIs directly in the code under core/ and
Script*
> > abstractions which is odd. We should either keep using Script* abstractions
> and
> > move all code working with objects from v8:: namespace under bindings/v8/
> > (including v8.h should be prohibited under core/) or explicitly allow using
v8
> > API directly from core/. In the latter case we would eliminate some
> intermediate
> > layers in the inspector code that just wrap V8 objects.
> 
> Hi Yury,
> Agreed that this should be fixed!
> This CL is just making the dependencies explicit, which should help in
resolving
> them.
> 
> I've opened a bug for this:
> http://crbug.com/381046
> 
> This hasn't been a priority, since componentizing core vs. modules is the
first
> task,
> after which we plan to address core vs. bindings_core (currently intertwined).
> 
> Part of this involves moving these V8 calls into an abstraction layer below
core
> (gin?);
> I've commented on this briefly as followup to "componentizing core vs. modules
> in bindings":
>
https://docs.google.com/document/d/1TXth_c0l5hExCwFtZJaS9DFRfHC45zwdzCaAiIF1Q...

Thanks for clarifying! It wasn't obvious from the CL description.

Powered by Google App Engine
This is Rietveld 408576698