Allow WK2 to read from NSUserDefaults when it has no prefs identifier
https://bugs.webkit.org/show_bug.cgi?id=128124

Reviewed by Sam Weinig.

WebPreferences would never read from NSUserDefaults if no identifier
had been set, but this prevents us from reading useful debugging prefs.

Fix to read pref names using a "WebKit2" prefix when no identifier
is set.

* UIProcess/mac/WebPreferencesMac.mm:
(WebKit::makeKey):
(WebKit::WebPreferences::platformInitializeStore):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Keep only captured symbols in CodeBlock symbol tables.
<https://webkit.org/b/128050>

Discard all uncaptured symbols at the end of codegen since only
the captured ones will be used after that point.

~2MB progression on Membuster OSUS.

Reviewed by Geoffrey Garen.

* bytecode/UnlinkedCodeBlock.h:
(JSC::UnlinkedCodeBlock::setSymbolTable):
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::generate):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] WK1 Clients Only Latch on Momentum Scroll
https://bugs.webkit.org/show_bug.cgi?id=128133

Reviewed by Simon Fraser.

* platform/PlatformWheelEvent.h:
(WebCore::PlatformWheelEvent::useLatchedEventElement): Update
predicate to recognize the start and change phases of the wheel
event as latchable (not just momentum start/change).


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][CMake] Enable SUBPIXEL_LAYOUT in FeatureDefines.h like EFL does
https://bugs.webkit.org/show_bug.cgi?id=128136

Reviewed by Martin Robinson.

* wtf/FeatureDefines.h: enable SUBPIXEL_LAYOUT if it's not set, for GTK+.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
kill-old-processes doesn't kill plugin processes
https://bugs.webkit.org/show_bug.cgi?id=128138

Reviewed by Andreas Kling.

Add plugin process names to the list of processes to kill.

* BuildSlaveSupport/kill-old-processes:
(main):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
More tail pointer consolidation
https://bugs.webkit.org/show_bug.cgi?id=128139

Reviewed by Andreas Kling.

Add a new tailOffset() function and reimplement allocationSize() and tailPointer()
in terms of it. Use tailPointer() instead of reinterpret_cast-ing this + 1.

* wtf/text/StringImpl.cpp:
(WTF::StringImpl::createUninitializedInternalNonEmpty):
* wtf/text/StringImpl.h:
(WTF::StringImpl::StringImpl):
(WTF::StringImpl::requiresCopy):
(WTF::StringImpl::allocationSize):
(WTF::StringImpl::tailOffset):
(WTF::StringImpl::tailPointer):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r163011-r163031): Web Inspector: Latest nightly crashes when showing the Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=127901

Reviewed by Geoffrey Garen.

Set VM::topCallFrame before making calls to possible C++ code in
generateProtoChainAccessStub() and tryBuildGetByIDList().

* jit/Repatch.cpp:
(JSC::generateProtoChainAccessStub):
(JSC::tryBuildGetByIDList):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unused code in CSSParser.cpp
https://bugs.webkit.org/show_bug.cgi?id=128135

Reviewed by Darin Adler.

* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the cloop due to GenGC
https://bugs.webkit.org/show_bug.cgi?id=128137

Reviewed by Geoffrey Garen.

* llint/LLIntSlowPaths.cpp:
(JSC::LLInt::llint_write_barrier_slow):
* llint/LLIntSlowPaths.h:
* llint/LowLevelInterpreter.cpp:
(JSC::CLoopRegister::operator JSCell*):
* llint/LowLevelInterpreter32_64.asm:
* llint/LowLevelInterpreter64.asm:
* offlineasm/cloop.rb:
* offlineasm/instructions.rb:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix for 128110

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
StringImpl::tailOffset() should return the offset right after m_hashAndFlags
https://bugs.webkit.org/show_bug.cgi?id=128141

Reviewed by Andreas Kling.

* wtf/text/StringImpl.h:
(WTF::StringImpl::tailOffset):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Cairo] GraphicsContext::m_pixelSnappingFactor is uninitialized
https://bugs.webkit.org/show_bug.cgi?id=128102

Patch by Hunseop Jeong <hs85.jeong@samsung.com> on 2014-02-03
Reviewed by Csaba Osztrogonác.

Initalize m_pixelSnappingFactor to 1

* platform/graphics/cairo/GraphicsContextCairo.cpp:
(WebCore::GraphicsContext::GraphicsContext): Initialized pixelSnappingFactor to 1 and
fixed the coding style violation.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163348 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix Windows build.

* wtf/text/StringImpl.h:
(WTF::StringImpl::tailOffset):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add loading property to WKWebView
https://bugs.webkit.org/show_bug.cgi?id=128144

Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/WKWebView.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView isLoading]):
* UIProcess/Cocoa/NavigationState.mm:
(WebKit::NavigationState::willChangeIsLoading):
(WebKit::NavigationState::didChangeIsLoading):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LLInt: Regex for pseudo-instructions is too big
https://bugs.webkit.org/show_bug.cgi?id=128148

Reviewed by Mark Lam.

* offlineasm/instructions.rb:
* offlineasm/parser.rb:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163351 268f45cc-cd09-0410-ab3c-d52691b4dbfc