Add local to/from operand helpers similar to argument to/from operand2
https://bugs.webkit.org/show_bug.cgi?id=121056

Reviewed by Geoffrey Garen.

Added localToOperand(), operandToLocal() and operandIsLocal() to Operands.h, very similar to
argumentToOperand(), et al.  Used the new helpers everywhere where an index into a data
structure is intended instead of the actual virtual register offset.  When the stack is
changed to grow down, local register offsets can be negative.  Also added the helper
DFG::SpeculativeJIT::generationInfoFromVirtualRegister() for the common case accessing 
m_generationInfo[operandToLocal(val)].

* bytecode/CodeBlock.cpp:
* bytecode/CodeBlock.h:
* bytecode/Operands.h:
(JSC::localToOperand):
(JSC::operandIsLocal):
(JSC::operandToLocal):
* bytecompiler/BytecodeGenerator.h:
* dfg/DFGAbstractInterpreterInlines.h:
* dfg/DFGByteCodeParser.cpp:
* dfg/DFGCFGSimplificationPhase.cpp:
* dfg/DFGCPSRethreadingPhase.cpp:
* dfg/DFGOSREntry.cpp:
* dfg/DFGOSRExitCompiler32_64.cpp:
* dfg/DFGOSRExitCompiler64.cpp:
* dfg/DFGScoreBoard.h:
* dfg/DFGSpeculativeJIT.cpp:
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::generationInfoFromVirtualRegister):
* dfg/DFGSpeculativeJIT32_64.cpp:
* dfg/DFGSpeculativeJIT64.cpp:
* dfg/DFGValidate.cpp:
* dfg/DFGVariableEventStream.cpp:
* dfg/DFGVirtualRegisterAllocationPhase.cpp:
* jit/JITInlines.h:
* jit/JITOpcodes.cpp:
* jit/JITOpcodes32_64.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ScriptRunner should have a Document& internally.
<https://webkit.org/b/121072>

Reviewed by Anders Carlsson.

Change ScriptRunner::m_document to a reference since it's tied to
the lifetime of the Document.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155416 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ScriptController should have a Frame& internally.
<https://webkit.org/b/121071>

Reviewed by Anders Carlsson.

Change ScriptController::m_frame to a reference since it's tied to
the lifetime of the owning Frame.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Change virtual register function arguments from unsigned to int
https://bugs.webkit.org/show_bug.cgi?id=121055

Reviewed by Filip Pizlo.

This is a largely mechanical change.  This changes function paramaters and local variables used to
represent bytecode operands from being unsigned to be int.

* bytecode/CodeOrigin.h:
* dfg/DFGByteCodeParser.cpp:
* jit/JIT.h:
* jit/JITArithmetic.cpp:
* jit/JITArithmetic32_64.cpp:
* jit/JITInlines.h:
* jit/JITOpcodes.cpp:
* jit/JITOpcodes32_64.cpp:
* jit/JITPropertyAccess.cpp:
* jit/JITPropertyAccess32_64.cpp:
* jit/JITStubCall.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
HTMLTextAreaElement no longer needs custom style resolve callbacks.
<https://webkit.org/b/121073>

Reviewed by Ryosuke Niwa.

After r155408 HTMLTextAreaElement doesn't override didAttachRenderer() anymore,
so we don't need to fire callbacks on textarea elements during style resolve.

* html/HTMLTextAreaElement.cpp:
(WebCore::HTMLTextAreaElement::HTMLTextAreaElement):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155419 268f45cc-cd09-0410-ab3c-d52691b4dbfc
There should be one "invalid" virtual register constant
https://bugs.webkit.org/show_bug.cgi?id=121057

Reviewed by Filip Pizlo.

Unify all references to an invalid virtual register to be the enum InvalidVirtualRegister.
Changed the value of InvalidVirtualRegister to be maximum integer value.

* bytecode/CodeBlock.h:
(JSC::CodeBlock::setArgumentsRegister):
(JSC::CodeBlock::usesArguments):
* bytecode/LazyOperandValueProfile.h:
(JSC::LazyOperandValueProfileKey::LazyOperandValueProfileKey):
(JSC::LazyOperandValueProfileKey::operator!):
(JSC::LazyOperandValueProfileKey::isHashTableDeletedValue):
(JSC::LazyOperandValueProfile::LazyOperandValueProfile):
* bytecode/UnlinkedCodeBlock.cpp:
(JSC::UnlinkedCodeBlock::UnlinkedCodeBlock):
* bytecode/UnlinkedCodeBlock.h:
(JSC::UnlinkedCodeBlock::usesArguments):
(JSC::UnlinkedCodeBlock::usesGlobalObject):
* bytecode/VirtualRegister.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unreviewed gunk I just accidentally committed :|

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155421 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Adding "explicit" keyword in DOM related classes constructor
https://bugs.webkit.org/show_bug.cgi?id=121031

Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-09-09
Reviewed by Ryosuke Niwa.

Added the explicit keyword in constructors.

* dom/ActiveDOMObject.h:
* dom/ContainerNode.h:
* dom/DocumentStyleSheetCollection.h:
* dom/ElementAncestorIterator.h:
* dom/ElementData.h:
* dom/ElementRareData.h:
* dom/EventListenerMap.h:
* dom/QualifiedName.h:
(WebCore::QualifiedName::QualifiedName):
* dom/TreeScope.h:
* dom/ViewportArguments.h:
(WebCore::ViewportArguments::ViewportArguments):
* dom/VisitedLinkState.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155422 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove more references to the deleted js-test-style.css.
https://bugs.webkit.org/show_bug.cgi?id=120899.

Reviewed by Ryosuke Niwa.

Tools: 

* Scripts/webkitpy/to_be_moved/update_webgl_conformance_tests.py:
(translate_includes):

LayoutTests: 

* fast/canvas/webgl/array-unit-tests.html:
* fast/canvas/webgl/context-lost-restored.html:
* fast/canvas/webgl/context-lost.html:
* fast/canvas/webgl/typed-arrays-in-workers.html:
* fast/css/aspect-ratio-parsing-tests.html:
* fast/forms/fieldset/fieldset-disabled.html:
* fast/js/apply-varargs.html:
* fast/js/line-column-numbers.html:
* fast/js/stack-at-creation-for-error-objects.html:
* fast/js/stack-trace.html:
* platform/iphone-simulator/accessibility/accessibility-aria-table-children.html:
* platform/iphone-simulator/accessibility/accessibility-crash-in-axcontainer.html:
* platform/iphone-simulator/accessibility/accessibility-hint.html:
* platform/iphone-simulator/accessibility/aria-label-with-internal-text.html:
* platform/iphone-simulator/accessibility/aria-pressed-state.html:
* platform/iphone-simulator/accessibility/centerpoint.html:
* platform/iphone-simulator/accessibility/file-upload-button.html:
* platform/iphone-simulator/accessibility/focus-change-notifications.html:
* platform/iphone-simulator/accessibility/header-elements.html:
* platform/iphone-simulator/accessibility/identifier.html:
* platform/iphone-simulator/accessibility/internal-link.html:
* platform/iphone-simulator/accessibility/landmark-type.html:
* platform/iphone-simulator/accessibility/link-with-images-text.html:
* platform/iphone-simulator/accessibility/link-with-only-image.html:
* platform/iphone-simulator/accessibility/math.html:
* platform/iphone-simulator/accessibility/mixed-checkboxes.html:
* platform/iphone-simulator/accessibility/password-value.html:
* platform/iphone-simulator/accessibility/placeholder-value.html:
* platform/iphone-simulator/accessibility/popup-button-value-label.html:
* platform/iphone-simulator/accessibility/progressbar.html:
* platform/iphone-simulator/accessibility/selected-buttons.html:
* platform/iphone-simulator/accessibility/selected-text.html:
* platform/iphone-simulator/accessibility/svg-path-crash.html:
* platform/iphone-simulator/accessibility/tab-role.html:
* platform/iphone-simulator/accessibility/table-cell-for-row-col.html:
* platform/iphone-simulator/accessibility/table-cell-ranges.html:
* platform/iphone-simulator/accessibility/tables-lists.html:
* platform/iphone-simulator/accessibility/text-line-no-ignored-elements.html:
* platform/iphone-simulator/accessibility/text-marker-list-item.html:
* platform/iphone-simulator/accessibility/text-marker-validation.html:
* platform/iphone-simulator/accessibility/text-role.html:
* platform/iphone-simulator/accessibility/textfield-in-axvalue.html:
* platform/iphone-simulator/accessibility/url-test.html:
* platform/mac/accessibility/document-title-used-for-description.html:
* platform/mac/accessibility/iframe-aria-hidden.html:
* platform/mac/accessibility/scrollbars.html:
* platform/mac/accessibility/search-with-frames.html:
* platform/mac/accessibility/selected-tab-crash.html:
* platform/mac/accessibility/submit-button-default-value.html:
* platform/mac/accessibility/supports-focus-setting.html:
* platform/mac/fast/forms/input-appearance-spinbutton-up.html:
* platform/mac/fast/forms/input-appearance-spinbutton.html:
* svg/dom/css-transforms.xhtml:
* svg/dynamic-updates/SVG-dynamic-css-transform.html:
* svg/dynamic-updates/SVGClipPathElement-css-transform-influences-hitTesting.html:
* webaudio/audiobuffersource-loop-comprehensive.html:
* webaudio/audiobuffersource-start.html:
* webaudio/audioparam-connect-audioratesignal.html:
* webaudio/audioparam-summingjunction.html:
* webaudio/biquad-allpass.html:
* webaudio/biquad-bandpass.html:
* webaudio/biquad-highpass.html:
* webaudio/biquad-highshelf.html:
* webaudio/biquad-lowpass.html:
* webaudio/biquad-lowshelf.html:
* webaudio/biquad-notch.html:
* webaudio/biquad-peaking.html:
* webaudio/convolution-mono-mono.html:
* webaudio/convolver-setBuffer-null.html:
* webaudio/distance-exponential.html:
* webaudio/distance-inverse.html:
* webaudio/distance-linear.html:
* webaudio/javascriptaudionode-zero-input-channels.html:
* webaudio/oscillator-basic.html:
* webaudio/panner-equalpower-stereo.html:
* webaudio/panner-equalpower.html:



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