1. 05 Jan, 2010 1 commit
    • mjs@apple.com's avatar
      2010-01-04 Maciej Stachowiak <mjs@apple.com> · acbcc283
      mjs@apple.com authored
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              * wtf/Platform.h: Rename, reorganize and document OS() macros.
      
              Adapt to name changes. Also fixed a few incorrect OS checks.
      
              * API/JSContextRef.cpp:
              * assembler/MacroAssemblerARM.cpp:
              (JSC::isVFPPresent):
              * assembler/MacroAssemblerX86Common.h:
              * bytecode/SamplingTool.cpp:
              * config.h:
              * interpreter/RegisterFile.cpp:
              (JSC::RegisterFile::~RegisterFile):
              * interpreter/RegisterFile.h:
              (JSC::RegisterFile::RegisterFile):
              (JSC::RegisterFile::grow):
              * jit/ExecutableAllocator.h:
              * jit/ExecutableAllocatorFixedVMPool.cpp:
              * jit/ExecutableAllocatorPosix.cpp:
              * jit/ExecutableAllocatorSymbian.cpp:
              * jit/ExecutableAllocatorWin.cpp:
              * jit/JITOpcodes.cpp:
              (JSC::JIT::privateCompileCTIMachineTrampolines):
              * jit/JITStubs.cpp:
              * jsc.cpp:
              (main):
              * parser/Grammar.y:
              * profiler/ProfileNode.cpp:
              (JSC::getCount):
              * runtime/Collector.cpp:
              (JSC::Heap::Heap):
              (JSC::Heap::allocateBlock):
              (JSC::Heap::freeBlockPtr):
              (JSC::currentThreadStackBase):
              (JSC::getCurrentPlatformThread):
              (JSC::suspendThread):
              (JSC::resumeThread):
              (JSC::getPlatformThreadRegisters):
              (JSC::otherThreadStackPointer):
              * runtime/Collector.h:
              * runtime/DateConstructor.cpp:
              * runtime/DatePrototype.cpp:
              (JSC::formatLocaleDate):
              * runtime/InitializeThreading.cpp:
              (JSC::initializeThreading):
              * runtime/MarkStack.h:
              (JSC::MarkStack::MarkStackArray::shrinkAllocation):
              * runtime/MarkStackPosix.cpp:
              * runtime/MarkStackSymbian.cpp:
              * runtime/MarkStackWin.cpp:
              * runtime/StringPrototype.cpp:
              (JSC::stringProtoFuncLastIndexOf):
              * runtime/TimeoutChecker.cpp:
              (JSC::getCPUTime):
              * runtime/UString.cpp:
              (JSC::UString::from):
              * wtf/Assertions.cpp:
              * wtf/Assertions.h:
              * wtf/CurrentTime.cpp:
              (WTF::lowResUTCTime):
              * wtf/CurrentTime.h:
              (WTF::getLocalTime):
              * wtf/DateMath.cpp:
              * wtf/FastMalloc.cpp:
              (WTF::TCMalloc_ThreadCache::InitModule):
              (WTF::TCMallocStats::):
              * wtf/FastMalloc.h:
              * wtf/MathExtras.h:
              * wtf/RandomNumber.cpp:
              (WTF::randomNumber):
              * wtf/RandomNumberSeed.h:
              (WTF::initializeRandomNumberGenerator):
              * wtf/StringExtras.h:
              * wtf/TCSpinLock.h:
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              * wtf/TCSystemAlloc.cpp:
              * wtf/ThreadSpecific.h:
              (WTF::::destroy):
              * wtf/Threading.h:
              * wtf/ThreadingPthreads.cpp:
              (WTF::initializeThreading):
              (WTF::isMainThread):
              * wtf/ThreadingWin.cpp:
              (WTF::wtfThreadEntryPoint):
              (WTF::createThreadInternal):
              * wtf/VMTags.h:
              * wtf/unicode/icu/CollatorICU.cpp:
              (WTF::Collator::userDefault):
              * wtf/win/MainThreadWin.cpp:
              (WTF::initializeMainThreadPlatform):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              Adapt to name changes.
      
              * src/ChromiumBridge.cpp:
              * src/EditorClientImpl.cpp:
              (WebKit::EditorClientImpl::isSelectTrailingWhitespaceEnabled):
              (WebKit::):
              (WebKit::EditorClientImpl::handleEditingKeyboardEvent):
              * src/FrameLoaderClientImpl.cpp:
              (WebKit::FrameLoaderClientImpl::createPlugin):
              * src/GraphicsContext3D.cpp:
              (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
              (WebCore::GraphicsContext3DInternal::~GraphicsContext3DInternal):
              (WebCore::GraphicsContext3DInternal::makeContextCurrent):
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::selectionAsText):
              (WebKit::WebFrameImpl::printPage):
              * src/WebPluginContainerImpl.cpp:
              (WebKit::WebPluginContainerImpl::handleMouseEvent):
              (WebKit::WebPluginContainerImpl::handleKeyboardEvent):
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::mouseDown):
              (WebKit::WebViewImpl::mouseContextMenu):
              (WebKit::WebViewImpl::mouseUp):
              (WebKit::WebViewImpl::keyEvent):
              (WebKit::WebViewImpl::sendContextMenuEvent):
              (WebKit::WebViewImpl::setScrollbarColors):
              (WebKit::WebViewImpl::navigationPolicyFromMouseEvent):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              Adapt to name changes.
      
              * webkit/webkitwebsettings.cpp:
              (webkit_get_user_agent):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              Adapt to name changes. Also fixed a few incorrect OS checks.
      
              * accessibility/AccessibilityObject.h:
              * config.h:
              * dom/SelectElement.cpp:
              (WebCore::SelectElement::listBoxDefaultEventHandler):
              * inspector/InspectorFrontendHost.cpp:
              (WebCore::InspectorFrontendHost::platform):
              * loader/CachedFont.cpp:
              * loader/FTPDirectoryDocument.cpp:
              * loader/FTPDirectoryParser.cpp:
              * page/EventHandler.cpp:
              * page/Frame.cpp:
              (WebCore::Frame::setUseSecureKeyboardEntry):
              * page/NavigatorBase.cpp:
              (WebCore::NavigatorBase::platform):
              * page/Page.h:
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              * page/Settings.h:
              * page/chromium/DragControllerChromium.cpp:
              (WebCore::DragController::isCopyKeyDown):
              * page/chromium/EventHandlerChromium.cpp:
              (WebCore::EventHandler::accessKeyModifiers):
              * page/win/EventHandlerWin.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * platform/FileSystem.h:
              * platform/KeyboardCodes.h:
              * platform/PurgeableBuffer.h:
              * platform/chromium/ChromiumBridge.h:
              * platform/chromium/ClipboardChromium.cpp:
              (WebCore::ClipboardChromium::writeRange):
              * platform/chromium/ClipboardUtilitiesChromium.cpp:
              * platform/chromium/ClipboardUtilitiesChromium.h:
              * platform/chromium/PasteboardChromium.cpp:
              (WebCore::Pasteboard::writeSelection):
              (WebCore::Pasteboard::writePlainText):
              (WebCore::Pasteboard::documentFragment):
              * platform/chromium/PlatformKeyboardEventChromium.cpp:
              (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent):
              (WebCore::PlatformKeyboardEvent::currentCapsLockState):
              * platform/chromium/PopupMenuChromium.cpp:
              (WebCore::PopupListBox::layout):
              (WebCore::PopupMenu::show):
              * platform/graphics/BitmapImage.h:
              (WebCore::BitmapImage::mayFillWithSolidColor):
              * platform/graphics/FloatPoint.h:
              * platform/graphics/FloatRect.h:
              * platform/graphics/FloatSize.h:
              * platform/graphics/FontCache.cpp:
              (WebCore::alternateFamilyName):
              * platform/graphics/FontCache.h:
              * platform/graphics/FontFastPath.cpp:
              (WebCore::Font::glyphDataForCharacter):
              * platform/graphics/GlyphBuffer.h:
              (WebCore::GlyphBuffer::advanceAt):
              (WebCore::GlyphBuffer::add):
              * platform/graphics/Gradient.h:
              * platform/graphics/GraphicsContext.cpp:
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/GraphicsContext3D.h:
              * platform/graphics/ImageSource.h:
              * platform/graphics/IntRect.h:
              * platform/graphics/MediaPlayer.cpp:
              * platform/graphics/Path.h:
              * platform/graphics/Pattern.h:
              * platform/graphics/SimpleFontData.h:
              * platform/graphics/cg/ColorCG.cpp:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              * platform/graphics/chromium/FontCustomPlatformData.cpp:
              (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
              (WebCore::FontCustomPlatformData::fontPlatformData):
              (WebCore::createFontCustomPlatformData):
              * platform/graphics/chromium/FontCustomPlatformData.h:
              * platform/graphics/chromium/FontPlatformData.h:
              * platform/graphics/opentype/OpenTypeUtilities.cpp:
              * platform/graphics/opentype/OpenTypeUtilities.h:
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::GraphicsContext::getWindowsContext):
              * platform/graphics/qt/ImageQt.cpp:
              * platform/graphics/skia/GraphicsContextSkia.cpp:
              (WebCore::GraphicsContext::clipToImageBuffer):
              * platform/graphics/skia/ImageBufferSkia.cpp:
              (WebCore::ImageBuffer::ImageBuffer):
              * platform/graphics/skia/PlatformContextSkia.cpp:
              (PlatformContextSkia::State::State):
              (PlatformContextSkia::PlatformContextSkia):
              (PlatformContextSkia::save):
              (PlatformContextSkia::restore):
              * platform/graphics/skia/PlatformContextSkia.h:
              * platform/graphics/win/IconWin.cpp:
              (WebCore::Icon::createIconForFiles):
              (WebCore::Icon::paint):
              * platform/graphics/wx/GraphicsContextWx.cpp:
              * platform/gtk/FileSystemGtk.cpp:
              (WebCore::filenameToString):
              (WebCore::filenameFromString):
              (WebCore::filenameForDisplay):
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/network/curl/ResourceHandleManager.cpp:
              * platform/network/soup/ResourceHandleSoup.cpp:
              (WebCore::):
              * platform/text/String.cpp:
              (WebCore::String::format):
              (WebCore::String::number):
              * platform/text/TextEncoding.cpp:
              (WebCore::TextEncoding::encode):
              * platform/text/TextEncodingRegistry.cpp:
              (WebCore::buildBaseTextCodecMaps):
              (WebCore::extendTextCodecMaps):
              * platform/text/TextStream.cpp:
              * platform/text/TextStream.h:
              * platform/text/qt/TextCodecQt.cpp:
              (WebCore::TextCodecQt::decode):
              * platform/win/PlatformMouseEventWin.cpp:
              (WebCore::messageToEventType):
              (WebCore::PlatformMouseEvent::PlatformMouseEvent):
              * platform/win/PlatformScreenWin.cpp:
              (WebCore::deviceInfoForWidget):
              (WebCore::screenIsMonochrome):
              * platform/win/PopupMenuWin.cpp:
              (WebCore::PopupMenu::show):
              (WebCore::PopupMenu::paint):
              (WebCore::PopupMenu::registerClass):
              (WebCore::PopupMenu::PopupMenuWndProc):
              (WebCore::PopupMenu::wndProc):
              * platform/win/SystemTimeWin.cpp:
              (WebCore::userIdleTime):
              * platform/wx/FileSystemWx.cpp:
              (WebCore::unloadModule):
              * plugins/PluginDatabase.cpp:
              * plugins/PluginPackage.cpp:
              (WebCore::PluginPackage::compareFileVersion):
              * plugins/PluginPackage.h:
              * plugins/PluginView.cpp:
              (WebCore::PluginView::setFrameRect):
              (WebCore::PluginView::stop):
              (WebCore::PluginView::PluginView):
              * plugins/PluginView.h:
              * plugins/win/PluginDatabaseWin.cpp:
              (WebCore::addWindowsMediaPlayerPluginDirectory):
              (WebCore::addMacromediaPluginDirectories):
              * plugins/win/PluginPackageWin.cpp:
              (WebCore::PluginPackage::load):
              * plugins/win/PluginViewWin.cpp:
              (WebCore::registerPluginView):
              (WebCore::PluginView::wndProc):
              (WebCore::PluginView::updatePluginWidget):
              (WebCore::PluginView::paintIntoTransformedContext):
              (WebCore::PluginView::paintWindowedPluginIntoContext):
              (WebCore::PluginView::paint):
              (WebCore::PluginView::handleMouseEvent):
              (WebCore::PluginView::setParent):
              (WebCore::PluginView::setNPWindowRect):
              (WebCore::PluginView::platformStart):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              Adapt to name changes.
              
              * DumpRenderTree/DumpRenderTree.h:
              * DumpRenderTree/config.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      acbcc283
  2. 04 Jan, 2010 1 commit
    • mjs@apple.com's avatar
      2010-01-04 Maciej Stachowiak <mjs@apple.com> · cc668212
      mjs@apple.com authored
              Reviewed by Adam Barth.
      
              Reorganize, document and rename CPU() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33145
              ExecutableAllocatorSymbian appears to have buggy ARM version check
              https://bugs.webkit.org/show_bug.cgi?id=33138
              
              * wtf/Platform.h:
              Rename all macros related to detection of particular CPUs or
              classes of CPUs to CPU(), reorganize and document them.
      
              All remaining changes are adapting to the renames, plus fixing the
              second bug cited above.
              
              * assembler/ARMAssembler.cpp:
              * assembler/ARMAssembler.h:
              * assembler/ARMv7Assembler.h:
              * assembler/AbstractMacroAssembler.h:
              (JSC::AbstractMacroAssembler::Imm32::Imm32):
              * assembler/MacroAssembler.h:
              * assembler/MacroAssemblerARM.cpp:
              * assembler/MacroAssemblerARM.h:
              * assembler/MacroAssemblerCodeRef.h:
              (JSC::MacroAssemblerCodePtr::MacroAssemblerCodePtr):
              * assembler/MacroAssemblerX86.h:
              * assembler/MacroAssemblerX86Common.h:
              * assembler/MacroAssemblerX86_64.h:
              * assembler/X86Assembler.h:
              (JSC::X86Registers::):
              (JSC::X86Assembler::):
              (JSC::X86Assembler::movl_mEAX):
              (JSC::X86Assembler::movl_EAXm):
              (JSC::X86Assembler::repatchLoadPtrToLEA):
              (JSC::X86Assembler::X86InstructionFormatter::memoryModRM):
              * jit/ExecutableAllocator.h:
              * jit/ExecutableAllocatorFixedVMPool.cpp:
              * jit/ExecutableAllocatorPosix.cpp:
              * jit/ExecutableAllocatorSymbian.cpp:
              (JSC::ExecutableAllocator::intializePageSize):
              * jit/JIT.cpp:
              * jit/JIT.h:
              * jit/JITArithmetic.cpp:
              * jit/JITInlineMethods.h:
              (JSC::JIT::beginUninterruptedSequence):
              (JSC::JIT::restoreArgumentReferenceForTrampoline):
              (JSC::JIT::emitCount):
              * jit/JITOpcodes.cpp:
              (JSC::JIT::privateCompileCTIMachineTrampolines):
              * jit/JITPropertyAccess.cpp:
              (JSC::JIT::privateCompileGetByIdProto):
              (JSC::JIT::privateCompileGetByIdProtoList):
              (JSC::JIT::privateCompileGetByIdChainList):
              (JSC::JIT::privateCompileGetByIdChain):
              * jit/JITStubs.cpp:
              (JSC::JITThunks::JITThunks):
              * jit/JITStubs.h:
              * runtime/Collector.cpp:
              (JSC::currentThreadStackBase):
              (JSC::getPlatformThreadRegisters):
              (JSC::otherThreadStackPointer):
              * wrec/WREC.h:
              * wrec/WRECGenerator.cpp:
              (JSC::WREC::Generator::generateEnter):
              (JSC::WREC::Generator::generateReturnSuccess):
              (JSC::WREC::Generator::generateReturnFailure):
              * wrec/WRECGenerator.h:
              * wtf/FastMalloc.cpp:
              * wtf/TCSpinLock.h:
              (TCMalloc_SpinLock::Lock):
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              * wtf/Threading.h:
              * wtf/dtoa.cpp:
              * yarr/RegexJIT.cpp:
              (JSC::Yarr::RegexGenerator::generateEnter):
              (JSC::Yarr::RegexGenerator::generateReturn):
              * yarr/RegexJIT.h:
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Adam Barth.
      
              Reorganize, document and rename CPU() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33145
      
              * webkit/webkitwebsettings.cpp:
              (webkit_get_user_agent):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Adam Barth.
      
              Reorganize, document and rename CPU() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33145
      
              * page/NavigatorBase.cpp:
              * platform/text/AtomicString.cpp:
              (WebCore::equal):
              * platform/text/StringHash.h:
              (WebCore::StringHash::equal):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc668212
  3. 01 Jun, 2009 1 commit
    • barraclough@apple.com's avatar
      2009-06-01 Gavin Barraclough <barraclough@apple.com> · d00f4a6e
      barraclough@apple.com authored
              Reviewed by Sam "WX" Weinig.
      
              Allow the JIT to operate without relying on use of RWX memory, on platforms where this is supported.
      
              This patch adds a switch to Platform.h (ENABLE_ASSEMBLER_WX_EXCLUSIVE) which enables this mode of operation.
              When this flag is set, all executable memory will be allocated RX, and switched to RW only whilst being
              modified.  Upon completion of code generation the protection is switched back to RX to allow execution.
      
              Further optimization will be required before it is desirable to enable this mode of operation by default;
              enabling this presently incurs a 5%-10% regression.
      
              (Submitting disabled - no performance impact).
      
              * assembler/AbstractMacroAssembler.h:
              (JSC::AbstractMacroAssembler::CodeLocationInstruction::repatchLoadToLEA):
              (JSC::AbstractMacroAssembler::CodeLocationLabel::fromFunctionPointer):
              (JSC::AbstractMacroAssembler::CodeLocationJump::relink):
              (JSC::AbstractMacroAssembler::CodeLocationCall::relink):
              (JSC::AbstractMacroAssembler::CodeLocationNearCall::relink):
              (JSC::AbstractMacroAssembler::CodeLocationDataLabel32::repatch):
              (JSC::AbstractMacroAssembler::CodeLocationDataLabelPtr::repatch):
              (JSC::AbstractMacroAssembler::ProcessorReturnAddress::relinkCallerToTrampoline):
              (JSC::AbstractMacroAssembler::ProcessorReturnAddress::relinkCallerToFunction):
              (JSC::AbstractMacroAssembler::ProcessorReturnAddress::relinkNearCallerToTrampoline):
              (JSC::AbstractMacroAssembler::ProcessorReturnAddress::relinkNearCallerToFunction):
              (JSC::AbstractMacroAssembler::PatchBuffer::PatchBuffer):
              (JSC::AbstractMacroAssembler::PatchBuffer::~PatchBuffer):
              (JSC::AbstractMacroAssembler::PatchBuffer::link):
              (JSC::AbstractMacroAssembler::PatchBuffer::patch):
              (JSC::AbstractMacroAssembler::PatchBuffer::performFinalization):
              (JSC::::CodeLocationCommon::nearCallAtOffset):
              (JSC::::CodeLocationCall::CodeLocationCall):
              (JSC::::CodeLocationNearCall::CodeLocationNearCall):
              * assembler/AssemblerBuffer.h:
              (JSC::AssemblerBuffer::executableCopy):
              * assembler/X86Assembler.h:
              (JSC::CAN_SIGN_EXTEND_U32_64):
              (JSC::X86Assembler::linkJump):
              (JSC::X86Assembler::linkCall):
              (JSC::X86Assembler::patchPointer):
              (JSC::X86Assembler::relinkJump):
              (JSC::X86Assembler::relinkCall):
              (JSC::X86Assembler::repatchInt32):
              (JSC::X86Assembler::repatchPointer):
              (JSC::X86Assembler::repatchLoadToLEA):
              (JSC::X86Assembler::patchInt32):
              (JSC::X86Assembler::patchRel32):
              * jit/ExecutableAllocator.h:
              (JSC::ExecutableAllocator::):
              (JSC::ExecutableAllocator::makeWritable):
              (JSC::ExecutableAllocator::makeExecutable):
              * jit/ExecutableAllocatorFixedVMPool.cpp:
              (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
              * jit/ExecutableAllocatorPosix.cpp:
              (JSC::ExecutablePool::systemAlloc):
              (JSC::ExecutablePool::systemRelease):
              (JSC::ExecutableAllocator::reprotectRegion):
              * jit/ExecutableAllocatorWin.cpp:
              * jit/JITPropertyAccess.cpp:
              (JSC::JIT::patchGetByIdSelf):
              (JSC::JIT::patchPutByIdReplace):
              * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d00f4a6e
  4. 26 Apr, 2009 1 commit
  5. 22 Apr, 2009 2 commits
  6. 21 Apr, 2009 1 commit
    • ggaren@apple.com's avatar
      JavaScriptCore: · 41f3d950
      ggaren@apple.com authored
      2009-04-20  Geoffrey Garen  <ggaren@apple.com>
      
              Reviewed by Mark Rowe.
              
              Tiger crash fix: Put VM tags in their own header file, and fixed up the
              #ifdefs so they're not used on Tiger.
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * interpreter/RegisterFile.h:
              (JSC::RegisterFile::RegisterFile):
              * jit/ExecutableAllocatorFixedVMPool.cpp:
              (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
              * jit/ExecutableAllocatorPosix.cpp:
              (JSC::ExecutablePool::systemAlloc):
              * runtime/Collector.cpp:
              (JSC::allocateBlock):
              * wtf/VMTags.h: Added.
      
      JavaScriptGlue:
      
      2009-04-20  Geoffrey Garen  <ggaren@apple.com>
      
              Reviewed by Mark Rowe.
      
              Tiger crash fix: Put VM tags in their own header file, and fixed up the
              #ifdefs so they're not used on Tiger.
      
              * ForwardingHeaders/wtf/VMTags.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/HashTraits.h.
      
      WebCore:
      
      2009-04-20  Geoffrey Garen  <ggaren@apple.com>
      
              Reviewed by Mark Rowe.
      
              Tiger crash fix: Put VM tags in their own header file, and fixed up the
              #ifdefs so they're not used on Tiger.
      
              * ForwardingHeaders/wtf/VMTags.h: Copied from WebCore/ForwardingHeaders/wtf/HashTraits.h.
      
      WebKit/mac:
      
      2009-04-20  Geoffrey Garen  <ggaren@apple.com>
      
              Reviewed by Mark Rowe.
      
              Tiger crash fix: Put VM tags in their own header file, and fixed up the
              #ifdefs so they're not used on Tiger.
      
              * ForwardingHeaders/wtf/VMTags.h: Copied from ForwardingHeaders/wtf/HashTraits.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41f3d950
  7. 20 Apr, 2009 1 commit
    • weinig@apple.com's avatar
      2009-04-20 Sam Weinig <sam@webkit.org> · 5f068cf5
      weinig@apple.com authored
              Reviewed by Kevin McCullough.
      
              Always tag mmaped memory on darwin and clean up #defines
              now that they are a little bigger.
      
              * interpreter/RegisterFile.h:
              (JSC::RegisterFile::RegisterFile):
              * jit/ExecutableAllocatorFixedVMPool.cpp:
              (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
              * jit/ExecutableAllocatorPosix.cpp:
              (JSC::ExecutablePool::systemAlloc):
              * runtime/Collector.cpp:
              (JSC::allocateBlock):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f068cf5
  8. 18 Apr, 2009 1 commit
  9. 17 Apr, 2009 1 commit
    • barraclough@apple.com's avatar
      2009-04-17 Gavin Barraclough <barraclough@apple.com> · 7bfd5984
      barraclough@apple.com authored
              Reviewed by Geoff Garen.
      
              On x86_64, make all JIT-code allocations from a new heap, managed
              by FixedVMPoolAllocator.  This class allocates a single large (2Gb)
              pool of virtual memory from which all further allocations take place.
              Since all JIT code is allocated from this pool, we can continue to
              safely assume (as is already asserted) that it will always be possible
              to link any JIT-code to JIT-code jumps and calls.
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
                  Add new file.
              * jit/ExecutableAllocatorFixedVMPool.cpp: Added.
              (JSC::FreeListEntry::FreeListEntry):
              (JSC::AVLTreeAbstractorForFreeList::get_less):
              (JSC::AVLTreeAbstractorForFreeList::set_less):
              (JSC::AVLTreeAbstractorForFreeList::get_greater):
              (JSC::AVLTreeAbstractorForFreeList::set_greater):
              (JSC::AVLTreeAbstractorForFreeList::get_balance_factor):
              (JSC::AVLTreeAbstractorForFreeList::set_balance_factor):
              (JSC::AVLTreeAbstractorForFreeList::null):
              (JSC::AVLTreeAbstractorForFreeList::compare_key_key):
              (JSC::AVLTreeAbstractorForFreeList::compare_key_node):
              (JSC::AVLTreeAbstractorForFreeList::compare_node_node):
              (JSC::sortFreeListEntriesByPointer):
              (JSC::sortCommonSizedAllocations):
              (JSC::FixedVMPoolAllocator::release):
              (JSC::FixedVMPoolAllocator::reuse):
              (JSC::FixedVMPoolAllocator::addToFreeList):
              (JSC::FixedVMPoolAllocator::coalesceFreeSpace):
              (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
              (JSC::FixedVMPoolAllocator::alloc):
              (JSC::FixedVMPoolAllocator::free):
              (JSC::ExecutableAllocator::intializePageSize):
              (JSC::ExecutablePool::systemAlloc):
              (JSC::ExecutablePool::systemRelease):
                  The new 2Gb heap class!
              * jit/ExecutableAllocatorPosix.cpp:
                  Disable use of this implementation on x86_64.
              * wtf/AVLTree.h:
                  Add missing variable initialization.
              (WTF::::remove):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7bfd5984