1. 26 Feb, 2012 6 commits
    • mhahnenberg@apple.com's avatar
      Implement fast path for op_new_array in the baseline JIT · 87ff87df
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=78612
      
      Reviewed by Filip Pizlo.
      
      heap/CopiedAllocator.h:
      (CopiedAllocator): Friended the JIT to allow access to m_currentOffset.
      * heap/CopiedSpace.h:
      (CopiedSpace): Friended the JIT to allow access to isOversize.
      (JSC::CopiedSpace::allocator):
      * heap/Heap.h:
      (JSC::Heap::storageAllocator): Added a getter for the CopiedAllocator class so the JIT
      can use it for simple allocation i.e. when we can just bump the offset without having to 
      do anything else.
      * jit/JIT.cpp:
      (JSC::JIT::privateCompileSlowCases): Added new slow case for op_new_array for when
      we have to bail out because the fast allocation path fails for whatever reason.
      * jit/JIT.h:
      (JIT):
      * jit/JITInlineMethods.h:
      (JSC::JIT::emitAllocateBasicStorage): Added utility function that allows objects to 
      allocate generic backing stores. This function is used by emitAllocateJSArray.
      (JSC):
      (JSC::JIT::emitAllocateJSArray): Added utility function that allows the client to 
      more easily allocate JSArrays. This function is used by emit_op_new_array and I expect 
      it will also be used for emit_op_new_array_buffer.
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_new_array): Changed to do inline allocation of JSArrays. Still does 
      a stub call for oversize arrays.
      (JSC):
      (JSC::JIT::emitSlow_op_new_array): New slow path that just bails out to a stub call if we 
      fail in any way on the fast path.
      * runtime/JSArray.cpp:
      (JSC):
      * runtime/JSArray.h: Added lots of offset functions for all the fields that we need to 
      initialize in the JIT.
      (ArrayStorage):
      (JSC::ArrayStorage::lengthOffset):
      (JSC::ArrayStorage::numValuesInVectorOffset):
      (JSC::ArrayStorage::allocBaseOffset):
      (JSC::ArrayStorage::vectorOffset):
      (JSArray):
      (JSC::JSArray::sparseValueMapOffset):
      (JSC::JSArray::subclassDataOffset):
      (JSC::JSArray::indexBiasOffset):
      (JSC):
      (JSC::JSArray::storageSize): Moved this function from being a static function in the cpp file
      to being a static function in the JSArray class. This move allows the JIT to call it to 
      see what size it should allocate.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      87ff87df
    • inferno@chromium.org's avatar
      Unreviewed, rolling out r108547. · f5af4c40
      inferno@chromium.org authored
      http://trac.webkit.org/changeset/108547
      https://bugs.webkit.org/show_bug.cgi?id=79606
      
      Crashes on ClusterFuzz (Requested by inferno-sec on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-02-26
      
      Source/WebCore:
      
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::RenderBlock::layoutInlineChildren):
      
      LayoutTests:
      
      * fast/css-generated-content/first-letter-textbox-parent-crash-expected.txt: Removed.
      * fast/css-generated-content/first-letter-textbox-parent-crash.html: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5af4c40
    • paroga@webkit.org's avatar
      Unreviewed. Build fix for ENABLE(CLASSIC_INTERPRETER) after r108681. · 70b431c6
      paroga@webkit.org authored
      * interpreter/Interpreter.cpp:
      (JSC::getLineNumberForCallFrame):
      (JSC::Interpreter::getStackTrace):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      70b431c6
    • paroga@webkit.org's avatar
      Unreviewed. Build fix for !ENABLE(JIT) after r108681. · dc90cbd3
      paroga@webkit.org authored
      * interpreter/Interpreter.cpp:
      (JSC::getLineNumberForCallFrame):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc90cbd3
    • abarth@webkit.org's avatar
      Move websockets to Modules/websockets · 1b18b622
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79598
      
      Reviewed by Eric Seidel.
      
      Nowadays, the only ENABLE(WEB_SOCKETS) ifdef in WebCore proper is in
      WebCore::Settings, and that will be removed (soon?) once Apple drops
      support for the old WebSockets protocol.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/websockets: Copied from Source/WebCore/websockets.
      * Target.pri:
      * WebCore.gyp/WebCore.gyp:
      * WebCore.gypi:
      * WebCore.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcproj/WebCoreCommon.vsprops:
      * WebCore.vcproj/copyForwardingHeaders.cmd:
      * WebCore.xcodeproj/project.pbxproj:
      * websockets: Removed.
      * websockets/CloseEvent.h: Removed.
      * websockets/CloseEvent.idl: Removed.
      * websockets/DOMWindowWebSocket.idl: Removed.
      * websockets/ThreadableWebSocketChannel.cpp: Removed.
      * websockets/ThreadableWebSocketChannel.h: Removed.
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp: Removed.
      * websockets/ThreadableWebSocketChannelClientWrapper.h: Removed.
      * websockets/WebSocket.cpp: Removed.
      * websockets/WebSocket.h: Removed.
      * websockets/WebSocket.idl: Removed.
      * websockets/WebSocketChannel.cpp: Removed.
      * websockets/WebSocketChannel.h: Removed.
      * websockets/WebSocketChannelClient.h: Removed.
      * websockets/WebSocketDeflater.cpp: Removed.
      * websockets/WebSocketDeflater.h: Removed.
      * websockets/WebSocketExtensionDispatcher.cpp: Removed.
      * websockets/WebSocketExtensionDispatcher.h: Removed.
      * websockets/WebSocketExtensionProcessor.h: Removed.
      * websockets/WebSocketFrame.h: Removed.
      * websockets/WebSocketHandshake.cpp: Removed.
      * websockets/WebSocketHandshake.h: Removed.
      * websockets/WebSocketHandshakeRequest.cpp: Removed.
      * websockets/WebSocketHandshakeRequest.h: Removed.
      * websockets/WebSocketHandshakeResponse.cpp: Removed.
      * websockets/WebSocketHandshakeResponse.h: Removed.
      * websockets/WorkerThreadableWebSocketChannel.cpp: Removed.
      * websockets/WorkerThreadableWebSocketChannel.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b18b622
    • benjamin@webkit.org's avatar
      Get rid of KURL::deprecatedString() · ca8591a8
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79594
      
      Reviewed by Andreas Kling.
      
      The method KURL::deprecatedString() is unused, remove it from WebCore.
      
      The last reference to the method was removed in r96779.
      
      * platform/KURL.cpp:
      (WebCore):
      * platform/KURL.h:
      (KURL):
      * platform/KURLGoogle.cpp:
      (WebCore):
      * platform/KURLWTFURL.cpp:
      (WebCore):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca8591a8
  2. 25 Feb, 2012 34 commits