1. 18 Mar, 2007 1 commit
    • mjs's avatar
      JavaScriptCore: · 23fc88db
      mjs authored
              Reviewed by Mark.
              
              - avoid static construction (and global variable access) in a smarter, more portable way,
              to later enable MUTLI_THREAD mode to work on other platforms and compilers.
              
              * kjs/CommonIdentifiers.cpp: Added. New class to hold all the shared identifiers.
              (KJS::CommonIdentifiers::CommonIdentifiers):
              (KJS::CommonIdentifiers::shared):
              * kjs/CommonIdentifiers.h: Added.
      
              * kjs/ExecState.h:
              (KJS::ExecState::propertyNames): Hand the CommonIdentifiers instance here for easy access.
              (KJS::ExecState::ExecState):
      
              * API/JSObjectRef.cpp:
              (JSObjectMakeConstructor):
              * CMakeLists.txt:
              * JavaScriptCore.exp:
              * JavaScriptCore.pri:
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * JavaScriptCoreSources.bkl:
              * bindings/runtime_array.cpp:
              (RuntimeArray::getOwnPropertySlot):
              (RuntimeArray::put):
              * bindings/runtime_method.cpp:
              (RuntimeMethod::getOwnPropertySlot):
              * kjs/array_object.cpp:
              (ArrayInstance::getOwnPropertySlot):
              (ArrayInstance::put):
              (ArrayInstance::deleteProperty):
              (ArrayProtoFunc::ArrayProtoFunc):
              (ArrayProtoFunc::callAsFunction):
              (ArrayObjectImp::ArrayObjectImp):
              * kjs/bool_object.cpp:
              (BooleanPrototype::BooleanPrototype):
              (BooleanProtoFunc::BooleanProtoFunc):
              (BooleanProtoFunc::callAsFunction):
              (BooleanObjectImp::BooleanObjectImp):
              * kjs/completion.h:
              (KJS::Completion::Completion):
              * kjs/date_object.cpp:
              (KJS::DateProtoFunc::DateProtoFunc):
              (KJS::DateObjectImp::DateObjectImp):
              (KJS::DateObjectFuncImp::DateObjectFuncImp):
              * kjs/error_object.cpp:
              (ErrorPrototype::ErrorPrototype):
              (ErrorProtoFunc::ErrorProtoFunc):
              (ErrorProtoFunc::callAsFunction):
              (ErrorObjectImp::ErrorObjectImp):
              (ErrorObjectImp::construct):
              (NativeErrorPrototype::NativeErrorPrototype):
              (NativeErrorImp::NativeErrorImp):
              (NativeErrorImp::construct):
              (NativeErrorImp::callAsFunction):
              * kjs/function.cpp:
              (KJS::FunctionImp::getOwnPropertySlot):
              (KJS::FunctionImp::put):
              (KJS::FunctionImp::deleteProperty):
              (KJS::FunctionImp::getParameterName):
              (KJS::DeclaredFunctionImp::construct):
              (KJS::IndexToNameMap::unMap):
              (KJS::Arguments::Arguments):
              (KJS::ActivationImp::getOwnPropertySlot):
              (KJS::ActivationImp::deleteProperty):
              (KJS::GlobalFuncImp::GlobalFuncImp):
              * kjs/function_object.cpp:
              (FunctionPrototype::FunctionPrototype):
              (FunctionProtoFunc::FunctionProtoFunc):
              (FunctionProtoFunc::callAsFunction):
              (FunctionObjectImp::FunctionObjectImp):
              (FunctionObjectImp::construct):
              * kjs/grammar.y:
              * kjs/identifier.cpp:
              * kjs/identifier.h:
              * kjs/interpreter.cpp:
              (KJS::Interpreter::init):
              (KJS::Interpreter::initGlobalObject):
              * kjs/interpreter.h:
              * kjs/lookup.h:
              * kjs/math_object.cpp:
              (MathFuncImp::MathFuncImp):
              * kjs/nodes.cpp:
              (ArrayNode::evaluate):
              (FuncDeclNode::processFuncDecl):
              (FuncExprNode::evaluate):
              * kjs/number_object.cpp:
              (NumberPrototype::NumberPrototype):
              (NumberProtoFunc::NumberProtoFunc):
              (NumberObjectImp::NumberObjectImp):
              * kjs/object.cpp:
              (KJS::JSObject::put):
              (KJS::JSObject::defaultValue):
              (KJS::JSObject::hasInstance):
              * kjs/object.h:
              (KJS::JSObject::getOwnPropertySlot):
              * kjs/object_object.cpp:
              (ObjectPrototype::ObjectPrototype):
              (ObjectProtoFunc::ObjectProtoFunc):
              (ObjectObjectImp::ObjectObjectImp):
              * kjs/regexp_object.cpp:
              (RegExpPrototype::RegExpPrototype):
              (RegExpProtoFunc::RegExpProtoFunc):
              (RegExpObjectImp::RegExpObjectImp):
              * kjs/string_object.cpp:
              (KJS::StringInstance::getOwnPropertySlot):
              (KJS::StringInstance::put):
              (KJS::StringInstance::deleteProperty):
              (KJS::StringPrototype::StringPrototype):
              (KJS::StringProtoFunc::StringProtoFunc):
              (KJS::StringProtoFunc::callAsFunction):
              (KJS::StringObjectImp::StringObjectImp):
              (KJS::StringObjectFuncImp::StringObjectFuncImp):
              * kjs/testkjs.cpp:
              (TestFunctionImp::TestFunctionImp):
      
      WebCore:
      
              Reviewed by Mark.
      
              - avoid static construction (and global variable access) in a smarter, more portable way,
              to later enable MUTLI_THREAD mode to work on other platforms and compilers.
              
              * bindings/js/JSCustomXPathNSResolver.cpp:
              (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
              * bindings/js/JSHTMLInputElementBase.cpp:
              (WebCore::JSHTMLInputElementBaseFunction::JSHTMLInputElementBaseFunction):
              * bindings/js/JSHTMLOptionElementConstructor.cpp:
              (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
              * bindings/js/JSXMLHttpRequest.cpp:
              (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
              * bindings/js/JSXSLTProcessor.cpp:
              (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
              * bindings/js/kjs_dom.cpp:
              (KJS::DOMNamedNodeMap::getOwnPropertySlot):
              (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
              * bindings/js/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              * bindings/js/kjs_html.cpp:
              (KJS::HTMLElementFunction::HTMLElementFunction):
              (KJS::JSHTMLCollection::getOwnPropertySlot):
              * bindings/js/kjs_window.cpp:
              (KJS::ScheduledAction::execute):
              * bindings/objc/WebScriptObject.mm:
              * bindings/scripts/CodeGeneratorJS.pm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      23fc88db
  2. 31 Dec, 2006 1 commit
    • ddkilzer's avatar
      JavaScriptCore: · 60a7a800
      ddkilzer authored
              Reviewed by Geoff.
      
              Update embedded pcre library from version 6.2 to 6.4.  Changes from pcre 6.2 to 6.3
              did not include any files in JavaScriptCore/pcre.
      
              All changes include renaming EXPORT to PCRE_EXPORT, renaming of ucp_findchar() to
              _pcre_ucp_findchar(), or comment changes.  Additional changes noted below.
      
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Updated source file list.
              * JavaScriptCore.xcodeproj/project.pbxproj: Renamed pcre_printint.c to pcre_printint.src
              and changed it from a source file to a header file.
              * JavaScriptCoreSources.bkl: Updated source file list.
              * pcre/CMakeLists.txt: Updated source file list.
              * pcre/pcre-config.h:
              * pcre/pcre.h: Updated version.
              * pcre/pcre.pri: Updated source file list.
              * pcre/pcre_compile.c: Include pcre_printint.src #if DEBUG.
              (pcre_compile2):
              * pcre/pcre_config.c:
              * pcre/pcre_exec.c:
              (match):
              * pcre/pcre_fullinfo.c:
              * pcre/pcre_info.c:
              * pcre/pcre_internal.h: Added header guard.  Removed export of _pcre_printint().
              * pcre/pcre_ord2utf8.c:
              * pcre/pcre_printint.c: Renamed to pcre_printint.src.
              * pcre/pcre_printint.src: Added.  Renamed _pcre_printint() to pcre_printint().
              * pcre/pcre_refcount.c:
              * pcre/pcre_study.c:
              * pcre/pcre_tables.c:
              * pcre/pcre_try_flipped.c:
              * pcre/pcre_ucp_findchar.c: Added contents of ucp_findchar.c.
              * pcre/pcre_version.c:
              * pcre/pcre_xclass.c:
              (_pcre_xclass):
              * pcre/ucp.h: Removed export of ucp_findchar().
              * pcre/ucp_findchar.c: Removed.  Contents moved to pcre_ucp_findchar.c.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60a7a800
  3. 12 Nov, 2006 1 commit
    • bdash's avatar
      2006-11-12 Mark Rowe <bdash@webkit.org> · 3e7c4ace
      bdash authored
              Reviewed by Mitz.
      
              Linux/Gdk compilation fixes, and bakefile cleanups.  Based on patches by
              Alp Toker.
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCoreSources.bkl:
              * page/PageState.cpp:
              * platform/gdk/ChromeClientGdk.h:
              (WebCore::ChromeClientGdk::ref):
              (WebCore::ChromeClientGdk::deref):
              * platform/gdk/FrameGdk.cpp:
              (WebCore::FrameGdkClientDefault::openURL):
              (WebCore::FrameGdkClientDefault::didReceiveData):
              (WebCore::FrameGdkClientDefault::receivedAllData):
              (WebCore::FrameGdk::FrameGdk):
              (WebCore::FrameGdk::~FrameGdk):
              * platform/gdk/FrameGdk.h:
              * platform/gdk/KeyEventGdk.cpp:
              (WebCore::keyIdentifierForGdkKeyCode):
              * platform/gdk/ScreenClientGdk.h: Removed.
              * platform/gdk/TemporaryLinkStubs.cpp:
              (FrameGdk::canPaste):
              (FrameGdk::originalRequestURL):
              (TextField::TextField):
              * platform/network/gdk/ResourceHandleManager.cpp:
              (WebCore::ResourceHandleManager::downloadTimerCallback):
              (WebCore::ResourceHandleManager::add):
              (WebCore::ResourceHandleManager::cancel):
              * webcore-base.bkl:
      2006-11-12  Mark Rowe  <bdash@webkit.org>
      
              Reviewed by Mitz.
      
              Clean up of JavaScriptCore bakefiles.
      
              * JavaScriptCoreSources.bkl:
              * jscore.bkl:
      2006-11-12  Mark Rowe  <bdash@webkit.org>
      
              Reviewed by Mitz.
      
              Clean up of GdkLauncher bakefile.
      
              * GdkLauncher/gdklauncher.bkl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e7c4ace
  4. 04 Oct, 2006 1 commit
  5. 15 Sep, 2006 1 commit
    • bdash's avatar
      2006-09-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com> · e2ec6f25
      bdash authored
              Reviewed by Adam.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=10864
              Bug 10864: Linux\GDK build fixes
      
              * JavaScriptCoreSources.bkl:
              * jscore.bkl:
      
      2006-09-15  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
      
              Reviewed by Adam.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=10864
              Bug 10864: Linux\GDK build fixes
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCoreSources.bkl:
              * platform/gdk/FontCacheGdk.cpp:
              * platform/gdk/FontDataGdk.cpp:
              (WebCore::FontData::platformInit):
              * platform/gdk/FontGdk.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/gdk/FrameGdk.cpp:
              (WebCore::FrameGdk::handleGdkEvent):
              * platform/gdk/FrameGdk.h:
              * platform/gdk/ImageGdk.cpp: Added.
              (WebCore::Image::initPlatformData):
              (WebCore::Image::invalidatePlatformData):
              (WebCore::Image::loadPlatformResource):
              (WebCore::Image::supportsType):
              * platform/gdk/RenderPopupMenuGdk.cpp:
              (WebCore::RenderPopupMenuGdk::hidePopup):
              * platform/gdk/RenderPopupMenuGdk.h:
              * platform/gdk/ScreenGdk.cpp:
              (WebCore::drawableForPage):
              (WebCore::screenRect):
              (WebCore::screenDepth):
              (WebCore::usableScreenRect):
              (WebCore::scaleFactor):
              * platform/gdk/SystemTimeLinux.cpp:
              (WebCore::currentTime):
              * platform/gdk/TemporaryLinkStubs.cpp:
              (FrameGdk::bindingRootObject):
              (FrameGdk::markMisspellings):
              (WebCore::screenDepthPerComponent):
              (WebCore::screenIsMonochrome):
              (WebCore::fileButtonChooseFileLabel):
              (WebCore::fileButtonNoFileSelectedLabel):
              (FrameGdk::shouldChangeSelection):
              (FrameGdk::respondToChangedSelection):
              (FrameGdk::respondToChangedContents):
              (Path::contains):
              (PlatformScrollBar::PlatformScrollBar):
              (PlatformScrollBar::~PlatformScrollBar):
              (PlatformScrollBar::width):
              (PlatformScrollBar::height):
              (PlatformScrollBar::setEnabled):
              (PlatformScrollBar::paint):
              (PlatformScrollBar::setScrollBarValue):
              (PlatformScrollBar::setKnobProportion):
              (PlatformScrollBar::setRect):
              (ScrollBar::ScrollBar):
              (FileChooser::FileChooser):
              (FileChooser::~FileChooser):
              (FileChooser::openFileChooser):
              (FileChooser::basenameForWidth):
              (FileChooser::uploadControlDetaching):
              (FileChooser::chooseFile):
              (Icon::Icon):
              (Icon::~Icon):
              (Icon::newIconForFile):
              (Icon::paint):
              (IconLoader::stopLoading):
              (IconLoader::startLoading):
              (IconLoader::createForFrame):
              (IconDatabase::isIconExpiredForIconURL):
              (IconDatabase::hasEntryForIconURL):
              (IconDatabase::sharedIconDatabase):
              * platform/gdk/WidgetGdk.cpp:
              * webcore-base.bkl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16382 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e2ec6f25
  6. 02 Sep, 2006 1 commit
  7. 29 Jul, 2006 1 commit
    • darin's avatar
      JavaScriptCore: · ad19609e
      darin authored
              Reviewed by Darin.
      
              - fixes for Linux build
      
              * JavaScriptCoreSources.bkl: Added new files to build, kjs/PropertyNameArray.cpp
              and kjs/testkjs.cpp, and removed old files.
      
      WebCore:
      
              Reviewed and tweaked by Darin.
      
              - fixes for Linux build
                (still might not compile, since Darin tweaked but was unable to test).
      
              * WebCoreSources.bkl: Added some new sources, removed some obsolete ones.
              * Projects/gdk/webcore-gdk.bkl: Added RenderPopupMenuGdk.cpp
      
              * html/HTMLPlugInElement.h: Removed incorrect syntax with class name
              before ::.
      
              * platform/gdk/FrameGdk.h:
              * platform/gdk/FrameGdk.cpp: Updated parameters of constructor. Moved a couple stubs
              out of this file.
              * platform/gdk/RenderPopupMenuGdk.h: Added.
              * platform/gdk/RenderPopupMenuGdk.cpp: Added. Just a file full of empty stubs.
              * platform/gdk/RenderThemeGdk.h:
              * platform/gdk/RenderThemeGdk.cpp: (WebCore::RenderThemeGdk::createPopupMenu): Added.
      
              * platform/gdk/TemporaryLinkStubs.cpp: Add some new stubs.
      
      WebKitTools:
      
              Reviewed by Darin.
      
              - fixes for Linux build
      
              * GdkLauncher/mk: Added call to bakefile_gen before calling make.
              * GdkLauncher/gdklauncher.bkl: Tweak comment.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad19609e
  8. 30 Jun, 2006 1 commit
    • darin's avatar
      Reviewed by Darin. · fed93534
      darin authored
              Compilation fixes for Linux/Gdk.
      
              * JavaScriptCore/kjs/interpreter.cpp: added include of signal.h
              * JavaScriptCore/kjs/ExecState.h: added missing class declaration 
              * JavaScriptCore/kjs/ExecState.cpp: case wrong on include of context.h 
              * JavaScriptCore/JavaScriptCoreSources.bkl: added Context.cpp and ExecState.cpp
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fed93534
  9. 10 Jun, 2006 1 commit
    • ggaren's avatar
      JavaScriptCore: · 1ec99535
      ggaren authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8515
              Linux porting compile bug
              
              Fix by Mike Emmel, Reviewed by Darin.
      
              * JavaScriptCoreSources.bkl:
              * jscore.bkl:
              * wtf/Platform.h:
      
      WebCore:
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8515
              Linux porting compile bug
              
              Fix by Mike Emmel, Reviewed by Darin.
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCoreSources.bkl:
              * css/maketokenizer:
              * html/HTMLCanvasElement.cpp:
              * html/HTMLImageElement.h:
              * icon/IconDatabase.cpp:
              * make-generated-sources.sh:
              * page/Frame.h:
              * page/FramePrivate.h:
              * platform/Cursor.h:
              * platform/FontData.h:
              (WebCore::FontData::getGlyphIndex):
              * platform/GlyphBuffer.h:
              (WebCore::GlyphBuffer::glyphAt):
              (WebCore::GlyphBuffer::advanceAt):
              (WebCore::GlyphBuffer::add):
              * platform/GraphicsContext.h:
              * platform/PlatformKeyboardEvent.h:
              * platform/PlatformMouseEvent.h:
              * platform/PlatformWheelEvent.h:
              * platform/ScrollView.h:
              * platform/TransferJob.h:
              (WebCore::TransferJob::getInternal):
              * platform/TransferJobInternal.h:
              (WebCore::TransferJobInternal::TransferJobInternal):
              * platform/Widget.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::GraphicsContext):
              (WebCore::GraphicsContext::roundToDevicePixels):
              * webcore-base.bkl:
              * xpath/impl/XPathValue.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ec99535
  10. 13 May, 2006 1 commit
    • ap's avatar
      2006-05-13 Kevin M. Ollivier <kevino@theolliviers.com> · f3516ff1
      ap authored
              Reviewed by Darin, landed by ap.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528
                Bakefiles (and generated Makefiles) for wx and gdk ports
      
      JavaScriptCore:
              * make-generated-sources.sh: 
              Added script to configure environment to run DerivedSources.make
              
              * JavaScriptCoreSources.bkl:
              Added JavaScriptCore sources list for Bakefile.
              
              * jscore.bkl:
              Bakefile used to generate JavaScriptCore project files 
              (currently only used by wx and gdk ports)
      
      WebCore:
              * make-generated-sources.sh: 
              Added script to configure environment to run DerivedSources.make
              
              * move-js-headers.sh:
              Added script to copy JavaScriptCore includes into one dir so that 
              Framework-style includes will work on all OSes. (written by Mike Emmel)
              
              * platform/wx: New dir, home for the wxWidgets port
              * platform/wx/wx-encodings.txt: Added temp. stub for wx encodings file.
              
              * Projects: New dir, for various project files for ports.
              
              * Projects/gdk: New dir, GDK port files.
              * Projects/webcore-gdk.bkl: Bakefile to generate GDK port project files
              
              * Projects/wx: New dir, wxWidgets port files.
              * Projects/webcore-wx.bkl: Bakefile to generate wxWidgets port project files
      
      WebKitTools:
              * Scripts/install-unix-extras: Added.
              * Scripts/regenerate-makefiles: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3516ff1