1. 11 Sep, 2013 17 commits
  2. 10 Sep, 2013 23 commits
    • fpizlo@apple.com's avatar
      Propagate the Int48 stuff into the prediction propagator. · 3f780e4a
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121132
      
      Reviewed by Mark Hahnenberg.
              
      This still has no effect on codegen since Int48 still looks like a Double right now.
      
      * bytecode/ExitKind.cpp:
      (JSC::exitKindToString):
      * bytecode/ExitKind.h:
      * bytecode/SpeculatedType.cpp:
      (JSC::speculationFromValue):
      * bytecode/SpeculatedType.h:
      (JSC::isMachineIntSpeculation):
      (JSC::isMachineIntSpeculationExpectingDefined):
      (JSC::isMachineIntSpeculationForArithmetic):
      * dfg/DFGGraph.cpp:
      (JSC::DFG::Graph::dump):
      * dfg/DFGGraph.h:
      (JSC::DFG::Graph::addShouldSpeculateMachineInt):
      (JSC::DFG::Graph::mulShouldSpeculateInt32):
      (JSC::DFG::Graph::mulShouldSpeculateMachineInt):
      (JSC::DFG::Graph::negateShouldSpeculateMachineInt):
      (JSC::DFG::Graph::hasExitSite):
      * dfg/DFGNode.h:
      (JSC::DFG::Node::shouldSpeculateMachineInt):
      (JSC::DFG::Node::shouldSpeculateMachineIntForArithmetic):
      (JSC::DFG::Node::shouldSpeculateMachineIntExpectingDefined):
      (JSC::DFG::Node::canSpeculateInt48):
      * dfg/DFGNodeFlags.h:
      (JSC::DFG::nodeCanSpeculateInt48):
      * dfg/DFGPredictionPropagationPhase.cpp:
      (JSC::DFG::PredictionPropagationPhase::propagate):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f780e4a
    • fpizlo@apple.com's avatar
      Unreviewed, be a bit more clear about what we mean by 'js' tests. I think this · 0c73e20c
      fpizlo@apple.com authored
      got a bit overlooked from the fast/js->js refactoring.
      
      * Scripts/run-javascriptcore-tests:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c73e20c
    • fpizlo@apple.com's avatar
      Be explicit about backwards propagation properties that care about escaping to... · dc36e83f
      fpizlo@apple.com authored
      Be explicit about backwards propagation properties that care about escaping to bytecode, as opposed to just escaping within DFG code.
      
      Rubber stamped by Mark Hahnenberg.
              
      We need to care about escaping to bytecode if we're doing a lossy optimization,
      i.e. the optimization means we produce less information and so we can't rescue
      ourselves during OSR exit.
              
      We only need to care about escaping within the DFG code (and can ignore what
      might happen in bytecode) if we're doing an optimization that is lossless, i.e.
      we can always still reconstruct the values that bytecode wants.
              
      Example #1:
              
          Large int32 + int32 which overflows. We want to optimize away the overflow
          check and just do a 32-bit add.
                  
          This is lossy; the result should have one extra bit but we simply throw
          that bit away by doing a check-less 32-bit add. Hence we need to know that 
          even the bytecode wouldn't have cared about that bit. This is true in cases
          like (a + b) | 0.
              
      Example #2:
              
          Larbe int32 + int32 which overflows. We want to optimize away the overflow
          check by doing a 64-bit add.
                  
          This is lossless. We can always convert the resulting 64-bit int back to a
          double if that's what bytecode wants. Hence we only need to know that the
          DFG code won't want to do something to this value that would make 64-bit
          ints either unprofitable or unsound.
              
      The backwards propagator's notions of flags (NodeUsedAsValue, etc) are for lossy
      optimizations and so should be named in a way that reflects this. This patch
      calls then NodeBytecodeUsesAsValue, etc.
              
      * dfg/DFGAbstractInterpreterInlines.h:
      (JSC::DFG::::executeEffects):
      * dfg/DFGArrayMode.cpp:
      (JSC::DFG::ArrayMode::refine):
      * dfg/DFGBackwardsPropagationPhase.cpp:
      (JSC::DFG::BackwardsPropagationPhase::mergeDefaultFlags):
      (JSC::DFG::BackwardsPropagationPhase::propagate):
      * dfg/DFGFixupPhase.cpp:
      (JSC::DFG::FixupPhase::fixupNode):
      * dfg/DFGGraph.h:
      (JSC::DFG::Graph::addImmediateShouldSpeculateInt32):
      * dfg/DFGNode.h:
      (JSC::DFG::Node::arithNodeFlags):
      * dfg/DFGNodeFlags.cpp:
      (JSC::DFG::dumpNodeFlags):
      * dfg/DFGNodeFlags.h:
      (JSC::DFG::bytecodeUsesAsNumber):
      (JSC::DFG::bytecodeCanTruncateInteger):
      (JSC::DFG::bytecodeCanIgnoreNegativeZero):
      (JSC::DFG::nodeMayNegZero):
      (JSC::DFG::nodeCanSpeculateInt32):
      * dfg/DFGPredictionPropagationPhase.cpp:
      (JSC::DFG::PredictionPropagationPhase::propagate):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::compileDoubleAsInt32):
      (JSC::DFG::SpeculativeJIT::compileAdd):
      (JSC::DFG::SpeculativeJIT::compileArithSub):
      (JSC::DFG::SpeculativeJIT::compileArithNegate):
      (JSC::DFG::SpeculativeJIT::compileArithMul):
      (JSC::DFG::SpeculativeJIT::compileArithDiv):
      (JSC::DFG::SpeculativeJIT::compileArithMod):
      * dfg/DFGVariableAccessData.h:
      (JSC::DFG::VariableAccessData::shouldUseDoubleFormatAccordingToVote):
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::compileAdd):
      (JSC::FTL::LowerDFGToLLVM::compileArithSub):
      (JSC::FTL::LowerDFGToLLVM::compileArithMul):
      (JSC::FTL::LowerDFGToLLVM::compileArithDiv):
      (JSC::FTL::LowerDFGToLLVM::compileArithMod):
      (JSC::FTL::LowerDFGToLLVM::compileArithNegate):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc36e83f
    • dbates@webkit.org's avatar
      [iOS] Upstream text autosizing · acb8f4f0
      dbates@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=121111
      
      Reviewed by Andy Estes and Sam Weinig.
      
      Source/WebCore:
      
      Tests: platform/iphone-simulator/text-autosizing/anonymous-block.html
             platform/iphone-simulator/text-autosizing/contenteditable.html
             platform/iphone-simulator/text-autosizing/first-letter.html
             platform/iphone-simulator/text-autosizing/font-family-case-insensitive.html
             platform/iphone-simulator/text-autosizing/lists.html
             platform/iphone-simulator/text-autosizing/overflow.html
             platform/iphone-simulator/text-autosizing/percent-adjust-length-line-height.html
             platform/iphone-simulator/text-autosizing/percent-adjust-number-line-height.html
             platform/iphone-simulator/text-autosizing/percent-adjust-percent-line-height.html
      
      * WebCore.exp.in:
      * WebCore.xcodeproj/project.pbxproj:
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::ComputedStyleExtractor::propertyValue):
      * css/CSSParser.cpp:
      (WebCore::isValidKeywordPropertyAndValue):
      (WebCore::CSSParser::parseValue):
      * css/CSSProperty.cpp:
      (WebCore::CSSProperty::isInheritedProperty):
      * css/CSSPropertyNames.in: Add property -webkit-text-size-adjust.
      * css/DeprecatedStyleBuilder.cpp:
      (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue): Added.
      (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyInitialValue): Added.
      (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyInheritValue): Added.
      (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::createHandler): Added.
      (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::updateFont):
      (WebCore::StyleResolver::applyProperties): Add COMPILE_ASSERT to ensure that
      all properties that affect font size, including -webkit-text-size-adjust, are
      resolved before properties that depend on them; see <rdar://problem/13522835>.
      (WebCore::StyleResolver::applyProperty):
      (WebCore::StyleResolver::checkForTextSizeAdjust): Added.
      * css/StyleResolver.h:
      * dom/Document.cpp:
      (WebCore::TextAutoSizingTraits::constructDeletedValue): Added.
      (WebCore::TextAutoSizingTraits::isDeletedValue): Added.
      (WebCore::Document::detach):
      (WebCore::Document::addAutoSizingNode): Added.
      (WebCore::Document::validateAutoSizingNodes): Added.
      (WebCore::Document::resetAutoSizingNodes): Added.
      * dom/Document.h:
      * editing/EditingStyle.cpp:
      * page/Frame.h: Add declarations for setTextAutosizingWidth(), textAutosizingWidth().
      * page/FrameView.cpp:
      (WebCore::FrameView::layout):
      * page/Settings.in: Generate setter and getter for setting minimumZoomFontSize.
      * platform/graphics/Font.h:
      (WebCore::Font::equalForTextAutoSizing): Added.
      * platform/graphics/FontDescription.cpp:
      (WebCore::FontDescription::familiesEqualForTextAutoSizing): Added.
      * platform/graphics/FontDescription.h:
      (WebCore::FontDescription::equalForTextAutoSizing): Added.
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::RenderBlock):
      (WebCore::isVisibleRenderText): Added.
      (WebCore::resizeTextPermitted): Added.
      (WebCore::RenderBlock::immediateLineCount): Added.
      (WebCore::isNonBlocksOrNonFixedHeightListItems): Added.
      (WebCore::oneLineTextMultiplier): Added.
      (WebCore::textMultiplier): Added.
      (WebCore::RenderBlock::adjustComputedFontSizes): Added.
      * rendering/RenderBlock.h:
      (WebCore::RenderBlock::resetComputedFontSize): Added.
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::traverseNext): Added.
      (WebCore::includeNonFixedHeight): Added.
      (WebCore::RenderObject::adjustComputedFontSizesOnBlocks): Added.
      (WebCore::RenderObject::resetTextAutosizing): Added.
      * rendering/RenderObject.h:
      * rendering/RenderText.cpp:
      (WebCore::RenderText::RenderText):
      * rendering/RenderText.h:
      (WebCore::RenderText::candidateComputedTextSize): Added.
      (WebCore::RenderText::setCandidateComputedTextSize): Added.
      * rendering/style/RenderStyle.cpp:
      (WebCore::computeFontHash):
      (WebCore::RenderStyle::hashForTextAutosizing): Added.
      (WebCore::RenderStyle::equalForTextAutosizing): Added.
      (WebCore::RenderStyle::changeRequiresLayout):
      (WebCore::RenderStyle::specifiedLineHeight): Added; iOS-specific variant.
      We should reconcile this getter with the getter of the same name that is
      compiled when building with IOS_TEXT_AUTOSIZING disabled.
      (WebCore::RenderStyle::setSpecifiedLineHeight): Added.
      * rendering/style/RenderStyle.h:
      (WebCore::RenderStyle::initialSpecifiedLineHeight): Added.
      (WebCore::RenderStyle::initialTextSizeAdjust): Added.
      (WebCore::RenderStyle::setTextSizeAdjust): Added.
      (WebCore::RenderStyle::textSizeAdjust): Added.
      * rendering/style/StyleInheritedData.cpp:
      (WebCore::StyleInheritedData::StyleInheritedData):
      (WebCore::StyleInheritedData::operator==):
      * rendering/style/StyleInheritedData.h:
      * rendering/style/StyleRareInheritedData.cpp:
      (WebCore::StyleRareInheritedData::StyleRareInheritedData):
      (WebCore::StyleRareInheritedData::operator==):
      * rendering/style/StyleRareInheritedData.h:
      * rendering/style/TextSizeAdjustment.h: Added.
      (TextSizeAdjustment::TextSizeAdjustment):
      (TextSizeAdjustment::percentage):
      (TextSizeAdjustment::multiplier):
      (TextSizeAdjustment::isAuto):
      (TextSizeAdjustment::isNone):
      (TextSizeAdjustment::isPercentage):
      (TextSizeAdjustment::operator == ):
      (TextSizeAdjustment::operator != ):
      
      Source/WebKit/mac:
      
      * WebView/WebFrame.mm:
      (-[WebFrame resetTextAutosizingBeforeLayout]): Added.
      (-[WebFrame _setVisibleSize:]): Added.
      (-[WebFrame _setTextAutosizingWidth:]): Added.
      * WebView/WebFramePrivate.h:
      * WebView/WebPreferenceKeysPrivate.h:
      * WebView/WebPreferences.mm:
      (+[WebPreferences initialize]):
      (-[WebPreferences _setMinimumZoomFontSize:]): Added.
      (-[WebPreferences _minimumZoomFontSize]): Added.
      
      Source/WTF:
      
      Define iOS text autosizing to be enabled on iOS unless otherwise defined.
      
      * wtf/FeatureDefines.h:
      
      Tools:
      
      Implement infrastructure to test the iOS text autosizing code.
      
      * DumpRenderTree/TestRunner.cpp:
      (setTextAutosizingEnabledCallback): Added.
      (TestRunner::staticFunctions):
      * DumpRenderTree/TestRunner.h:
      * DumpRenderTree/mac/DumpRenderTree.mm:
      (resetDefaultsToConsistentValues):
      * DumpRenderTree/mac/TestRunnerMac.mm:
      (TestRunner::setTextAutosizingEnabled): Added.
      
      LayoutTests:
      
      Add tests to ensure we don't regress iOS text autosizing.
      
      * platform/iphone-simulator/text-autosizing/anonymous-block-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/anonymous-block.html: Added.
      * platform/iphone-simulator/text-autosizing/contenteditable-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/contenteditable.html: Added.
      * platform/iphone-simulator/text-autosizing/first-letter-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/first-letter.html: Added.
      * platform/iphone-simulator/text-autosizing/font-family-case-insensitive-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/font-family-case-insensitive.html: Added.
      * platform/iphone-simulator/text-autosizing/lists-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/lists.html: Added.
      * platform/iphone-simulator/text-autosizing/overflow-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/overflow.html: Added.
      * platform/iphone-simulator/text-autosizing/percent-adjust-length-line-height-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/percent-adjust-length-line-height.html: Added.
      * platform/iphone-simulator/text-autosizing/percent-adjust-number-line-height-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/percent-adjust-number-line-height.html: Added.
      * platform/iphone-simulator/text-autosizing/percent-adjust-percent-line-height-expected.txt: Added.
      * platform/iphone-simulator/text-autosizing/percent-adjust-percent-line-height.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155496 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      acb8f4f0
    • commit-queue@webkit.org's avatar
      WebKit crashes when trying to send a msg via 'today's birthdays' dialogue box on Facebook · 9440ee63
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120612#add_comment
      Patch by Chris Curtis <chris_curtis@apple.com> on 2013-09-10
      Reviewed by Geoffrey Garen.
      
      The codeBlock was assumed to exist when appendSourceToMessage was set.
      This was an invalid assumption. I added a check to ensure that there is a
      valid codeBlock before accessing it.
      
      * API/tests/testapi.c:
      (valueToObjectExceptionCallAsFunction):
      (valueToObjectExceptionTest):
      (main):
      * runtime/VM.cpp:
      (JSC::VM::throwException):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9440ee63
    • mark.lam@apple.com's avatar
      Fix some indentation in Interpreter.cpp. · 56229d84
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121136.
      
      Reviewed by Darin Adler.
      
      * interpreter/Interpreter.cpp:
      (JSC::UnwindFunctor::operator()):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56229d84
    • bfulgham@apple.com's avatar
      [Windows] Unreviewed test expectation maintenance. · 4530d2d4
      bfulgham@apple.com authored
      * platform/win/TestExpectations: Rearrange some test declarations
      to match Mac for easier comparison. Disable some unrelated tests
      (e.g., Ogg Vorbis tests).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4530d2d4
    • cfleizach@apple.com's avatar
      AX: AXValue/AXMenuItemMarkChar not defined for menuitemradio (should be false... · fed3d64e
      cfleizach@apple.com authored
      AX: AXValue/AXMenuItemMarkChar not defined for menuitemradio (should be false (0) with aria-checked=mixed | undefined)
      https://bugs.webkit.org/show_bug.cgi?id=120372
      
      Reviewed by Mario Sanchez Prada.
      
      Source/WebCore: 
      
      Add new roles to make the distinction between menu item, menu item radio and menu item checkbox.
      Expose AXValue for menu items, so that they can convey the, on/off/mixed state of aria-checked.
      
      Test: platform/mac/accessibility/menu-item-values.html
      
      * accessibility/AccessibilityNodeObject.cpp:
      (WebCore::AccessibilityNodeObject::isMenuRelated):
      (WebCore::AccessibilityNodeObject::isMenuItem):
      (WebCore::AccessibilityNodeObject::isChecked):
      (WebCore::AccessibilityNodeObject::actionElement):
      (WebCore::AccessibilityNodeObject::visibleText):
      (WebCore::AccessibilityNodeObject::title):
      * accessibility/AccessibilityObject.cpp:
      (WebCore::createARIARoleMap):
      (WebCore::AccessibilityObject::checkboxOrRadioValue):
      * accessibility/AccessibilityObject.h:
      * accessibility/AccessibilityRenderObject.cpp:
      (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
      * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
      (-[WebAccessibilityObjectWrapper accessibilityCanFuzzyHitTest]):
      (-[WebAccessibilityObjectWrapper accessibilityTraits]):
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
      (createAccessibilityRoleMap):
      (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
      
      LayoutTests: 
      
      * platform/mac/accessibility/menu-item-values-expected.txt: Added.
      * platform/mac/accessibility/menu-item-values.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fed3d64e
    • andersca@apple.com's avatar
      Remove wtf/Alignment.h · 64965189
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121077
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * platform/PODArena.h:
      (WebCore::PODArena::minAlignment):
      * platform/graphics/cpu/arm/filters/FELightingNEON.h:
      (WebCore::FELighting::platformApplyNeon):
      
      Source/WTF:
      
      * GNUmakefile.list.am:
      * WTF.pro:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/Alignment.h: Removed.
      * wtf/CMakeLists.txt:
      * wtf/text/ASCIIFastPath.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64965189
    • zoltan@webkit.org's avatar
      [Qt] Add FloatingObjects.h to Target.pri · 495c5d0d
      zoltan@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=121117
      
      Reviewed by Andreas Kling.
      
      No new tests, no behavior change.
      
      * Target.pri:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      495c5d0d
    • mhahnenberg@apple.com's avatar
      run-jsc-stress-tests should have a mode for always running the copy phase · 85afd290
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121128
      
      Reviewed by Geoffrey Garen.
      
      This will increase test coverage of the copying phase, which might not always get
      triggered normally with our default parameters for required Heap/CopiedBlock utilization.
      
      * Scripts/run-jsc-stress-tests:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85afd290
    • bdakin@apple.com's avatar
      Adding another screenshot for a potential blog post. · 121847ea
      bdakin@apple.com authored
      * blog-files/regions/unstyled-article.png: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      121847ea
    • mhahnenberg@apple.com's avatar
      MapData has some issues · ff9e657e
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121118
      
      Reviewed by Geoffrey Garen.
      
      * heap/CopiedBlock.h: Added some debug-only consistency checking logic. We now make sure that
      m_liveBytes is consistent with another field, m_liveObjects. m_liveObjects is the number of
      "objects" that currently reside in the CopiedBlock. If we have zero live bytes then we should have
      zero live objects. The converse and the inverse should also be true.
      (JSC::CopiedBlock::CopiedBlock):
      (JSC::CopiedBlock::didSurviveGC):
      (JSC::CopiedBlock::didEvacuateBytes):
      (JSC::CopiedBlock::canBeRecycled):
      (JSC::CopiedBlock::shouldEvacuate):
      (JSC::CopiedBlock::liveBytes):
      (JSC::CopiedBlock::checkConsistency):
      * heap/CopiedBlockInlines.h:
      (JSC::CopiedBlock::reportLiveBytes):
      * heap/CopyVisitorInlines.h:
      (JSC::CopyVisitor::didCopy):
      * runtime/MapData.cpp:
      (JSC::MapData::replaceAndPackBackingStore): Renamed parameter to be consistent with its meaning.
      (JSC::MapData::replaceBackingStore): Ditto. Also removed an unnecessary local variable.
      (JSC::MapData::visitChildren): Before we passed the size of the MapData to copyLater(), which
      was wrong. Now we pass capacity * sizeof(Entry).
      (JSC::MapData::copyBackingStore): Before when we reassigned the newly copied backing store, we
      set the capacity (in elements) to the size (in bytes) of the backing store. This made us think
      we're way bigger than we actually are. Now we just pass the old capacity in.
      * runtime/MapData.h:
      (JSC::MapData::capacityInBytes): Helper function to calculate the size of the backing store.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff9e657e
    • commit-queue@webkit.org's avatar
      Fix EFL build after r155477 · b9cc3fd8
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=121126
      
      Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-09-10
      Reviewed by Antonio Gomes.
      
      No new tests, build fix.
      
      * CMakeLists.txt: MediaStreamComponent.cpp and MediaStreamDescriptor.cpp
      were added with an incorrect path.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9cc3fd8
    • akling@apple.com's avatar
      AnimationController should have a Frame& internally. · a563719d
      akling@apple.com authored
      <https://webkit.org/b/121078>
      
      Reviewed by Anders Carlsson.
      
      The AnimationController is owned by the Frame so make the back-pointer
      a reference. This knocks off a couple of null checks.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a563719d
    • andersca@apple.com's avatar
      More WTF/Alignment.h removal · 075c9842
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121125
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * platform/PODArena.h:
      
      Source/WTF:
      
      * wtf/Alignment.h:
      * wtf/Vector.h:
      (WTF::VectorBuffer::swap):
      (WTF::VectorBuffer::inlineBuffer):
      * wtf/text/ASCIIFastPath.h:
      (WTF::isAlignedTo):
      (WTF::isAlignedToMachineWord):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      075c9842
    • bfulgham@apple.com's avatar
      Unreviewed build fix after r155476. · 56577082
      bfulgham@apple.com authored
      * GNUmakefile.list.am: Remove reference to deleted OwnPtrWin.cpp file.
      * WTF.pro: Ditto.
      * wtf/CMakeLists.txt: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56577082
    • fpizlo@apple.com's avatar
      We should say Int32 when we mean Int32. Saying Integer is just weird. · efacb616
      fpizlo@apple.com authored
      Rubber stamped by Mark Hahnenberg.
      
      * dfg/DFGAbstractInterpreterInlines.h:
      (JSC::DFG::::executeEffects):
      * dfg/DFGFixupPhase.cpp:
      (JSC::DFG::FixupPhase::fixupNode):
      (JSC::DFG::FixupPhase::fixupToPrimitive):
      (JSC::DFG::FixupPhase::fixIntEdge):
      (JSC::DFG::FixupPhase::truncateConstantsIfNecessary):
      (JSC::DFG::FixupPhase::attemptToMakeIntegerAdd):
      * dfg/DFGGraph.h:
      (JSC::DFG::Graph::addSpeculationMode):
      (JSC::DFG::Graph::valueAddSpeculationMode):
      (JSC::DFG::Graph::arithAddSpeculationMode):
      (JSC::DFG::Graph::addShouldSpeculateInt32):
      (JSC::DFG::Graph::mulShouldSpeculateInt32):
      (JSC::DFG::Graph::negateShouldSpeculateInt32):
      (JSC::DFG::Graph::addImmediateShouldSpeculateInt32):
      (JSC::DFG::Graph::mulImmediateShouldSpeculateInt32):
      * dfg/DFGNode.h:
      (JSC::DFG::Node::shouldSpeculateInt32):
      (JSC::DFG::Node::shouldSpeculateInt32ForArithmetic):
      (JSC::DFG::Node::shouldSpeculateInt32ExpectingDefined):
      (JSC::DFG::Node::canSpeculateInt32):
      * dfg/DFGNodeFlags.h:
      (JSC::DFG::nodeCanSpeculateInt32):
      * dfg/DFGPredictionPropagationPhase.cpp:
      (JSC::DFG::PredictionPropagationPhase::propagate):
      (JSC::DFG::PredictionPropagationPhase::doDoubleVoting):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::arrayify):
      (JSC::DFG::GPRTemporary::GPRTemporary):
      (JSC::DFG::SpeculativeJIT::compilePeepHoleIntegerBranch):
      (JSC::DFG::SpeculativeJIT::compileValueToInt32):
      (JSC::DFG::SpeculativeJIT::compileUInt32ToNumber):
      (JSC::DFG::SpeculativeJIT::compileInt32ToDouble):
      (JSC::DFG::SpeculativeJIT::compileGetByValOnIntTypedArray):
      (JSC::DFG::SpeculativeJIT::compilePutByValForIntTypedArray):
      (JSC::DFG::SpeculativeJIT::compileAdd):
      (JSC::DFG::SpeculativeJIT::compileArithSub):
      (JSC::DFG::SpeculativeJIT::compileArithNegate):
      (JSC::DFG::SpeculativeJIT::compileArithIMul):
      (JSC::DFG::SpeculativeJIT::compileArithMul):
      (JSC::DFG::SpeculativeJIT::compileArithDiv):
      (JSC::DFG::SpeculativeJIT::compileArithMod):
      (JSC::DFG::SpeculativeJIT::compileNewTypedArray):
      (JSC::DFG::SpeculativeJIT::speculateInt32):
      (JSC::DFG::SpeculativeJIT::emitSwitchImm):
      * dfg/DFGSpeculativeJIT.h:
      (JSC::DFG::SpeculateInt32Operand::SpeculateInt32Operand):
      (JSC::DFG::SpeculateInt32Operand::~SpeculateInt32Operand):
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::compileIntegerCompare):
      (JSC::DFG::SpeculativeJIT::compileLogicalNot):
      (JSC::DFG::SpeculativeJIT::emitBranch):
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::compileIntegerCompare):
      (JSC::DFG::SpeculativeJIT::compileLogicalNot):
      (JSC::DFG::SpeculativeJIT::emitBranch):
      (JSC::DFG::SpeculativeJIT::compile):
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::compileUInt32ToNumber):
      (JSC::FTL::LowerDFGToLLVM::compileGetByVal):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      efacb616
    • commit-queue@webkit.org's avatar
      [EFL][JHBUILD] Use a tarball for libseccomp, instead of git · cbde7449
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=121114
      
      Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-09-10
      Reviewed by Christophe Dumez.
      
      Use a tarball for libseccomp instead of git to avoid network issues on
      the buildbots while checking out the git repo. Using tarballs has the
      advantage of them being cached if the checksum matches, in which case
      there will be no need to download them again.
      
      * efl/jhbuild.modules:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cbde7449
    • fpizlo@apple.com's avatar
      Introduce a SpecInt48 type and be more careful about what we mean by "Top" · ff779d0f
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121116
      
      Reviewed by Oliver Hunt.
              
      SpecInt48 will mean that we have something that would be a double if it was a JSValue,
      but it's profitable to represent it as something other than a double.
              
      SpecInt48AsDouble means that it has a value that could have been represented like
      SpecInt48, but we're making a heuristic decision not to do it.
      
      * bytecode/SpeculatedType.h:
      (JSC::isInt48Speculation):
      * dfg/DFGAbstractInterpreterInlines.h:
      (JSC::DFG::::executeEffects):
      (JSC::DFG::::clobberCapturedVars):
      * dfg/DFGAbstractValue.cpp:
      (JSC::DFG::AbstractValue::filter):
      * dfg/DFGAbstractValue.h:
      (JSC::DFG::AbstractValue::makeHeapTop):
      (JSC::DFG::AbstractValue::makeBytecodeTop):
      (JSC::DFG::AbstractValue::isHeapTop):
      (JSC::DFG::AbstractValue::heapTop):
      (JSC::DFG::AbstractValue::validateType):
      (JSC::DFG::AbstractValue::validate):
      (JSC::DFG::AbstractValue::makeTop):
      * dfg/DFGInPlaceAbstractState.cpp:
      (JSC::DFG::InPlaceAbstractState::initialize):
      * dfg/DFGJITCompiler.h:
      (JSC::DFG::JITCompiler::noticeOSREntry):
      * dfg/DFGUseKind.h:
      (JSC::DFG::typeFilterFor):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff779d0f
    • mark.lam@apple.com's avatar
      Replace remaining "fast js" names in scripts. · 44e56482
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120899.
      
      Rubber stamped by Filip Pizlo.
      
      * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
      (test_layout_failure_new_output):
      (test_layout_crash_new_output):
      (test_mozilla_and_layout_failure_new_output):
      * Scripts/run-fast-jsc: Removed.
      * Scripts/run-javascriptcore-tests:
      * Scripts/run-layout-jsc: Copied from Tools/Scripts/run-fast-jsc.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      44e56482
    • eric.carlson@apple.com's avatar
      Make MediaStream objects ScriptWrappable · 21f9dfbb
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120879
      
      Reviewed by Jer Noble.
      
      * Modules/mediastream/MediaStream.h: Inherit from ScriptWrappable.
      * Modules/mediastream/MediaStreamTrack.h: Ditto.
      * Modules/mediastream/RTCDTMFSender.h: Ditto.
      * Modules/mediastream/RTCDataChannel.h: Ditto.
      * Modules/mediastream/RTCIceCandidate.h: Ditto.
      * Modules/mediastream/RTCPeerConnection.h: Ditto.
      * Modules/mediastream/RTCSessionDescription.h: Ditto.
      * Modules/mediastream/RTCStatsReport.h: Ditto.
      * Modules/mediastream/RTCStatsResponse.h: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      21f9dfbb
    • eric.carlson@apple.com's avatar
      Split MediaStreamDescriptor.h and MediaStreamComponent.h into .h and .cpp · 00bfa4ab
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120878
      
      Reviewed by Jer Noble.
      
      No new tests, no functional change.
      
      * CMakeLists.txt: Add MediaStreamComponent.cpp and MediaStreamDescriptor.cpp.
      * GNUmakefile.list.am: Ditto.
      
      * Modules/mediastream/LocalMediaStream.cpp:
      (WebCore::LocalMediaStream::create): MediaStreamDescriptor::create() doesn't take a UUID.
      
      * Modules/mediastream/MediaStream.cpp:
      (WebCore::createFromSourceVectors): Ditto.
      
      * WebCore.xcodeproj/project.pbxproj: Add MediaStreamComponent.cpp and MediaStreamDescriptor.cpp.
      
      * platform/mediastream/MediaStreamComponent.cpp: Added.
      * platform/mediastream/MediaStreamComponent.h:
      
      * platform/mediastream/MediaStreamDescriptor.cpp: Added.
      * platform/mediastream/MediaStreamDescriptor.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00bfa4ab