BytecodeGenerator should align the stack according to native conventions
https://bugs.webkit.org/show_bug.cgi?id=124735

Reviewed by Mark Lam.

* bytecompiler/BytecodeGenerator.h:
(JSC::CallArguments::registerOffset):
(JSC::CallArguments::argumentCountIncludingThis):
* bytecompiler/NodesCodegen.cpp:
(JSC::CallArguments::CallArguments):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(159395) Fix branch8(…, AbsoluteAddress, …) in ARM64 MacroAssembler
https://bugs.webkit.org/show_bug.cgi?id=124688

Reviewed by Geoffrey Garen.

Changed handling of the address for the load8() in the branch8(AbsoluteAddress) to be like
the rest of the branchXX(AbsoluteAddress) fucntions.

* assembler/MacroAssemblerARM64.h:
(JSC::MacroAssemblerARM64::branch8):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSC: Removed unused opcodes from offline assembler
https://bugs.webkit.org/show_bug.cgi?id=124749

Reviewed by Mark Hahnenberg.

Removed the unused, X86 only peekq and pokeq.

* offlineasm/instructions.rb:
* offlineasm/x86.rb:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ARM64: Implement push/pop equivalents in LLInt
https://bugs.webkit.org/show_bug.cgi?id=124721

Reviewed by Filip Pizlo.

Added pushLRAndFP and popLRAndFP that push and pop the link register and frame pointer register.
These ops emit code just like what the compiler emits in the prologue and epilogue.  Also changed
pushCalleeSaves and popCalleeSaves to use the same store pair and load pair instructions to do
the actually pushing and popping.  Finally changed the implementation of push and pop to raise
an exception since we don't have (or need) a single register push or pop.

* llint/LowLevelInterpreter64.asm:
* offlineasm/arm64.rb:
* offlineasm/instructions.rb:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move page title handling to the page load state
https://bugs.webkit.org/show_bug.cgi?id=124748

Reviewed by Dan Bernstein.

* UIProcess/API/C/WKPage.cpp:
(WKPageCopyTitle):
* UIProcess/PageLoadState.cpp:
(WebKit::PageLoadState::reset):
(WebKit::PageLoadState::didCommitLoad):
(WebKit::PageLoadState::title):
(WebKit::PageLoadState::setTitle):
* UIProcess/PageLoadState.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didReceiveTitleForFrame):
* UIProcess/WebPageProxy.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening to hide annoying *.user files when.

* ANGLE.vcxproj: Added property svn:ignore.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Didn't mean to commit this.

* UIProcess/PageLoadState.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Don't fetch hidden platforms on build.webkit.org/dashboard
https://bugs.webkit.org/show_bug.cgi?id=124750

Reviewed by Tim Horton.

If a platform is hidden, don't fetch its data. If it
becomes unhidden, try to fetch immediately (unless
you've recently fetched).

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Import some W3C tests for HTML template element
https://bugs.webkit.org/show_bug.cgi?id=124699

Reviewed by Antti Koivisto.

LayoutTests/imported/w3c:

Imported the shared resources for web-platform-tests/html-templates as well as tests under
serializing-html-templates and template-element at a274ad93ef5dc02ac042e0a5d58327d4135178ac.

* ChangeLog: Added.
* html-templates/resources/end-template-tag-in-body.html: Added.
* html-templates/resources/end-template-tag-in-head.html: Added.
* html-templates/resources/frameset-end-tag.html: Added.
* html-templates/resources/head-template-contents-div-no-end-tag.html: Added.
* html-templates/resources/head-template-contents-table-no-end-tag.html: Added.
* html-templates/resources/html-start-tag.html: Added.
* html-templates/resources/template-child-nodes-div.xhtml: Added.
* html-templates/resources/template-child-nodes-nested.xhtml: Added.
* html-templates/resources/template-contents-attribute.html: Added.
* html-templates/resources/template-contents-body.html: Added.
* html-templates/resources/template-contents-div-no-end-tag.html: Added.
* html-templates/resources/template-contents-empty.html: Added.
* html-templates/resources/template-contents-frameset.html: Added.
* html-templates/resources/template-contents-head.html: Added.
* html-templates/resources/template-contents-html.html: Added.
* html-templates/resources/template-contents-nested.html: Added.
* html-templates/resources/template-contents-table-no-end-tag.html: Added.
* html-templates/resources/template-contents-text.html: Added.
* html-templates/resources/template-contents.html: Added.
* html-templates/resources/template-descendant-body.html: Added.
* html-templates/resources/template-descendant-frameset.html: Added.
* html-templates/resources/template-descendant-head.html: Added.
* html-templates/resources/two-templates.html: Added.
* html-templates/serializing-html-templates/outerhtml-expected.txt: Added.
* html-templates/serializing-html-templates/outerhtml.html: Added.
* html-templates/template-element/content-attribute-expected.txt: Added.
* html-templates/template-element/content-attribute.html: Added.
* html-templates/template-element/node-document-changes-expected.txt: Added.
* html-templates/template-element/node-document-changes.html: Added.
* html-templates/template-element/template-as-a-descendant-expected.txt: Added.
* html-templates/template-element/template-as-a-descendant.html: Added.
* html-templates/template-element/template-content-expected.txt: Added.
* html-templates/template-element/template-content-node-document-expected.txt: Added.
* html-templates/template-element/template-content-node-document.html: Added.
* html-templates/template-element/template-content.html: Added.
* html-templates/template-element/template-descendant-body-expected.txt: Added.
* html-templates/template-element/template-descendant-body.html: Added.
* html-templates/template-element/template-descendant-frameset-expected.txt: Added.
* html-templates/template-element/template-descendant-frameset.html: Added.
* html-templates/template-element/template-descendant-head-expected.txt: Added.
* html-templates/template-element/template-descendant-head.html: Added.
* html-templates/testcommon.js: Added.

LayoutTests:

* imported/w3c/: Added.
* platform/win/TestExpectations: Skip the imported tests since the template element is disabled on Windows.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update apple builders.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Layout tests with editing need to be rebaselined.
https://bugs.webkit.org/show_bug.cgi?id=124751

Unreviewed, EFL rebaseline.

editing/input/reveal-caret-of-multiline-contenteditable.html test is rebaselined after r137239.
editing/selection/5354455-2.html test is rebaselined after r133000.
Rebaseline the expected results to suit editing-related performance in EFL.

Patch by Sun-woo Nam <sunny.nam@samsung.com> on 2013-11-21

* platform/efl-wk1/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt:
* platform/efl/editing/selection/5354455-2-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/124700> Fix some deprecation warnings.

Reviewed by Anders Carlsson.

Source/WebCore:

* platform/mac/HTMLConverter.mm:
(fileWrapperForURL): Move off a deprecated NSFileWrapper method.

Source/WebKit/mac:

* Plugins/WebNetscapePluginStream.mm:
(WebNetscapePluginStream::startStream): Move off a deprecated NSData method.
* WebView/WebDataSource.mm:
(-[WebDataSource _fileWrapperForURL:]): Move off a deprecated NSFileWrapper method.
* WebView/WebHTMLView.mm:
(-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.

Source/WebKit2:

* UIProcess/API/mac/WKView.mm:
(-[WKView namesOfPromisedFilesDroppedAtDestination:]): Move off a deprecated NSFileWrapper method.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update build-webkit after r159550.

* Scripts/webkitperl/FeatureList.pm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.

Reviewed by Alexey Proskuryakov.

Source/JavaScriptCore:

* Configurations/Base.xcconfig:

Source/ThirdParty/ANGLE:

* Configurations/Base.xcconfig:

Source/WebCore:

* Configurations/Base.xcconfig:

Source/WebKit/mac:

* Configurations/Base.xcconfig:

Source/WebKit2:

* Configurations/Base.xcconfig:

Source/WTF:

* Configurations/Base.xcconfig:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix WinCairo unreachable code warnings in SimpleLineLayout.cpp
https://bugs.webkit.org/show_bug.cgi?id=124704

Patch by Laszlo Vidacs <lac@inf.u-szeged.hu> on 2013-11-21
Reviewed by Antti Koivisto.

Fix unreachable code warnings using conditional directives.

* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::canUseFor):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Unreviewed buildfix after r159614 and r159656.

Source/WebCore:

* bindings/gobject/WebKitDOMCustom.cpp: Add missing header

Source/WebKit2:

* UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
(WebKit::WebInspectorServer::buildPageList): Use the page load state to get page title.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
webkitdirs::checkForArgumentAndRemoveFromArrayRef() removed wrong element
https://bugs.webkit.org/show_bug.cgi?id=124676

Patch by Nick Diego Yamane <nick.yamane@openbossa.org> on 2013-11-21
Reviewed by Daniel Bates.

checkForArgumentAndRemoveFromArrayRef functions was removing wrong
elements when there were more then one occurrence of that argument.
E.g: Checking for 'a' in {a, b, a, c}, the resulting array would be
{b, a}, when it should be {b, c}.

* Scripts/webkitdirs.pm:
(checkForArgumentAndRemoveFromArrayRef): bugfix mentioned above.
* Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRef.pl:
Added; Unit tests for webkitdirs::checkForArgumentAndRemoveFromArrayRef function.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/124702> Stop overriding VALID_ARCHS.

All modern versions of Xcode set it appropriately for our needs.

Reviewed by Alexey Proskuryakov.

Source/JavaScriptCore:

* Configurations/Base.xcconfig:

Source/WebCore:

* Configurations/Base.xcconfig:

Source/WebInspectorUI:

* Configurations/Base.xcconfig:

Source/WebKit/mac:

* Configurations/Base.xcconfig:

Source/WebKit2:

* Configurations/Base.xcconfig:

Tools:

* MiniBrowser/Configurations/Base.xcconfig:
* WebKitTestRunner/Configurations/Base.xcconfig:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CodeBlock::m_numCalleeRegisters need to honor native stack alignment.
https://bugs.webkit.org/show_bug.cgi?id=124754.

Reviewed by Filip Pizlo.

* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::newRegister):
* dfg/DFGVirtualRegisterAllocationPhase.cpp:
(JSC::DFG::VirtualRegisterAllocationPhase::run):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [CSS Shapes] Refactor highlighting code to decrease Shapes API surface
https://bugs.webkit.org/show_bug.cgi?id=124737

Reviewed by Timothy Hatcher.

Source/WebCore:

Add a virtual method to Shapes, buildPath, that can be used to build the
path (in the Shape coordinate system) for display in the Inspector. This allows us
to remove methods such as type(), polygon(), and logicalRx/Ry() which exposed the
inner workings of the Shapes classes. Also covers the addition of the BoxShape type.

Refactoring, existing test is inspector-protocol/model/highlight-shape-outside.html.

* inspector/InspectorOverlay.cpp:
(WebCore::appendPathCommandAndPoints): Points need to be translated from shape space
to renderer space using ShapeInfo.
(WebCore::buildObjectForShapeOutside): Add the ShapeOutsideInfo to the path info struct.
* rendering/shapes/BoxShape.cpp:
(WebCore::BoxShape::buildPath): Build the path for a BoxShape.
* rendering/shapes/BoxShape.h:
* rendering/shapes/PolygonShape.cpp:
(WebCore::PolygonShape::buildPath): Build the path for a PolygonShape.
* rendering/shapes/PolygonShape.h:
* rendering/shapes/RasterShape.h:
* rendering/shapes/RectangleShape.cpp:
(WebCore::RectangleShape::buildPath): Build the path for a RectangleShape.
* rendering/shapes/RectangleShape.h:
* rendering/shapes/Shape.h:

LayoutTests:

The shapes paths are now drawn in shape-coordinate space before being translated to
renderer space. With different writing modes, shapes may have their coordinates
translated. For example, a rectangle specified as four points [top left, top right,
bottom right, bottom left] in vertical-lr space would appear as [top left, bottom left,
bottom right, top right] in horizontal-tb space. Adjusting the previous tests, and
adding a test for the new box value.

* inspector-protocol/model/highlight-shape-outside-expected.txt:
* inspector-protocol/model/highlight-shape-outside.html:


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