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

Issue 15861022: Build WTF as dll in component build (Closed)

Created:
7 years, 7 months ago by jamesr
Modified:
7 years, 7 months ago
CC:
blink-reviews, loislo+blink_chromium.org, jsbell+bindings_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, abarth-chromium, adamk+blink_chromium.org, haraken, Nate Chapin, jeez, eseidel
Visibility:
Public.

Description

Build WTF as dll in component build This componentizes WTF so it builds as a separate DLL in the component build. This slightly (~10% on mac debug) decreases the size of the main Blink DLL and is a prerequisite for componentizing other parts of the Blink codebase. This patch is mostly mechanically adding export annotations to symbols used outside WTF, but it also changes the way that platform capabilities are injected into WTF to passing function pointers in during WebKit::initialize. TBR=darin@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151200

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : the trybots are hungry....hungry for EXPORTS #

Patch Set 4 : Fix AutoDrainedPool ctor and ThreadSpecificThreadExit exports #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -436 lines) Patch
M Source/WebKit/chromium/src/WebKit.cpp View 1 3 chunks +25 lines, -2 lines 0 comments Download
M Source/WebKit/chromium/src/WebViewImpl.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M Source/WebKit/chromium/tests/DeferredImageDecoderTest.cpp View 1 2 chunks +0 lines, -3 lines 0 comments Download
M Source/WebKit/chromium/tests/ImageFrameGeneratorTest.cpp View 1 2 chunks +0 lines, -2 lines 0 comments Download
M Source/bindings/v8/ScriptController.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M Source/bindings/v8/ScriptController.cpp View 1 1 chunk +0 lines, -10 lines 0 comments Download
M Source/modules/webdatabase/DatabaseManager.cpp View 1 2 chunks +0 lines, -2 lines 0 comments Download
M Source/wtf/ArrayBuffer.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/wtf/ArrayBufferContents.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/wtf/ArrayBufferView.h View 1 chunk +5 lines, -4 lines 0 comments Download
M Source/wtf/Assertions.h View 2 chunks +16 lines, -14 lines 0 comments Download
M Source/wtf/AutodrainedPool.h View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download
M Source/wtf/BitVector.h View 2 chunks +5 lines, -4 lines 0 comments Download
M Source/wtf/CryptographicallyRandomNumber.h View 2 chunks +9 lines, -3 lines 0 comments Download
M Source/wtf/CryptographicallyRandomNumber.cpp View 3 chunks +9 lines, -2 lines 0 comments Download
M Source/wtf/CurrentTime.h View 1 2 chunks +9 lines, -2 lines 0 comments Download
M Source/wtf/CurrentTime.cpp View 1 chunk +15 lines, -4 lines 0 comments Download
M Source/wtf/DateMath.h View 2 chunks +25 lines, -24 lines 0 comments Download
M Source/wtf/DecimalNumber.h View 1 chunk +6 lines, -4 lines 0 comments Download
M Source/wtf/DynamicAnnotations.h View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/wtf/FastMalloc.h View 2 chunks +21 lines, -19 lines 0 comments Download
M Source/wtf/GregorianDateTime.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/wtf/MD5.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M Source/wtf/MainThread.h View 1 chunk +6 lines, -4 lines 0 comments Download
M Source/wtf/MainThread.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/wtf/MemoryInstrumentation.h View 1 2 4 chunks +7 lines, -6 lines 0 comments Download
D Source/wtf/OSRandomSource.h View 1 chunk +0 lines, -39 lines 0 comments Download
D Source/wtf/OSRandomSource.cpp View 1 chunk +0 lines, -43 lines 0 comments Download
M Source/wtf/ParallelJobsGeneric.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M Source/wtf/ParallelJobsLibdispatch.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/wtf/RandomNumber.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/wtf/RefCounted.h View 1 2 chunks +8 lines, -7 lines 0 comments Download
M Source/wtf/RefCountedLeakCounter.h View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/wtf/SHA1.h View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/wtf/ThreadSpecific.h View 1 2 3 4 chunks +11 lines, -10 lines 0 comments Download
M Source/wtf/Threading.h View 1 2 chunks +19 lines, -19 lines 0 comments Download
M Source/wtf/Threading.cpp View 1 1 chunk +9 lines, -0 lines 0 comments Download
M Source/wtf/ThreadingPrimitives.h View 3 chunks +7 lines, -6 lines 0 comments Download
M Source/wtf/ThreadingPthreads.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/wtf/ThreadingWin.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + Source/wtf/WTFExport.h View 1 chunk +19 lines, -14 lines 0 comments Download
M Source/wtf/WTFThreadData.h View 2 chunks +9 lines, -8 lines 0 comments Download
M Source/wtf/dtoa.h View 2 chunks +12 lines, -11 lines 0 comments Download
M Source/wtf/text/AtomicString.h View 4 chunks +13 lines, -12 lines 0 comments Download
M Source/wtf/text/Base64.h View 2 chunks +13 lines, -12 lines 0 comments Download
M Source/wtf/text/CString.h View 3 chunks +7 lines, -6 lines 0 comments Download
M Source/wtf/text/StringBuilder.h View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/wtf/text/StringImpl.h View 5 chunks +19 lines, -18 lines 0 comments Download
M Source/wtf/text/StringStatics.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/wtf/text/StringStatics.cpp View 1 chunk +8 lines, -8 lines 0 comments Download
M Source/wtf/text/TextEncoding.h View 2 chunks +11 lines, -10 lines 0 comments Download
M Source/wtf/text/TextEncodingRegistry.h View 2 chunks +5 lines, -4 lines 0 comments Download
M Source/wtf/text/WTFString.h View 5 chunks +33 lines, -32 lines 0 comments Download
M Source/wtf/unicode/Collator.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/wtf/unicode/UTF8.h View 3 chunks +8 lines, -7 lines 0 comments Download
M Source/wtf/wtf.gyp View 2 chunks +12 lines, -6 lines 0 comments Download
M Source/wtf/wtf.gypi View 2 chunks +1 line, -2 lines 0 comments Download
M Tools/DumpRenderTree/chromium/TestShell.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jamesr
7 years, 7 months ago (2013-05-25 20:09:31 UTC) #1
jamesr
https://codereview.chromium.org/15861022/diff/1/Source/WebKit/chromium/src/WebKit.cpp File Source/WebKit/chromium/src/WebKit.cpp (right): https://codereview.chromium.org/15861022/diff/1/Source/WebKit/chromium/src/WebKit.cpp#newcode151 Source/WebKit/chromium/src/WebKit.cpp:151: WTF::setRandomSource(cryptographicallyRandomValues); these have to be set before WTF::initializeThreading(). these ...
7 years, 7 months ago (2013-05-25 20:11:39 UTC) #2
jamesr
Another possibility this enables is having a wtf_unittests target that depends only on wtf.dll instead ...
7 years, 7 months ago (2013-05-25 20:21:16 UTC) #3
darin (slow to review)
LGTM https://codereview.chromium.org/15861022/diff/1/Source/WebKit/chromium/src/WebKit.cpp File Source/WebKit/chromium/src/WebKit.cpp (right): https://codereview.chromium.org/15861022/diff/1/Source/WebKit/chromium/src/WebKit.cpp#newcode151 Source/WebKit/chromium/src/WebKit.cpp:151: WTF::setRandomSource(cryptographicallyRandomValues); On 2013/05/25 20:11:39, jamesr wrote: > these ...
7 years, 7 months ago (2013-05-25 21:42:43 UTC) #4
jamesr
On 2013/05/25 20:21:16, jamesr wrote: > Another possibility this enables is having a wtf_unittests target ...
7 years, 7 months ago (2013-05-25 22:14:03 UTC) #5
jamesr
https://codereview.chromium.org/15861022/diff/1/Source/WebKit/chromium/src/WebKit.cpp File Source/WebKit/chromium/src/WebKit.cpp (right): https://codereview.chromium.org/15861022/diff/1/Source/WebKit/chromium/src/WebKit.cpp#newcode151 Source/WebKit/chromium/src/WebKit.cpp:151: WTF::setRandomSource(cryptographicallyRandomValues); On 2013/05/25 21:42:43, darin wrote: > On 2013/05/25 ...
7 years, 7 months ago (2013-05-26 01:09:10 UTC) #6
darin (slow to review)
OK, LGTM On May 25, 2013 6:09 PM, <jamesr@chromium.org> wrote: > > https://codereview.chromium.**org/15861022/diff/1/Source/** > WebKit/chromium/src/WebKit.cpp<https://codereview.chromium.org/15861022/diff/1/Source/WebKit/chromium/src/WebKit.cpp> ...
7 years, 7 months ago (2013-05-26 01:22:58 UTC) #7
jamesr
Adam, could you approve the ScriptController changes please?
7 years, 7 months ago (2013-05-27 23:15:57 UTC) #8
jamesr
Committed patchset #4 manually as r151200 (presubmit successful).
7 years, 7 months ago (2013-05-27 23:43:22 UTC) #9
abarth-chromium
7 years, 7 months ago (2013-05-28 00:04:01 UTC) #10
Message was sent while issue was closed.
The seem fine to me, but I don't have much more of a clue why that code existed
than you do.  :)

Powered by Google App Engine
This is Rietveld 408576698