1. 22 Jul, 2005 1 commit
    • ggaren's avatar
      JavaScriptCore: · c9983ce3
      ggaren authored
              Reviewed by darin.
      
              * tests/mozilla/jsDriver.pl: now takes the path to testkjs as a command-line argument
              * tests/mozilla/run-mozilla-tests: Removed.
      
      WebKitTools:
      
              Moved Tools/Scripts/run-mozilla-tests to WebKitTools/Scripts/run-javascriptcore-tests.
              run-javascriptcore-tests now passes its command-line arguments to jsDriver.pl
      
              Moved Tools/Scripts/update-mozilla-js-test-results to
              WebKitTools/Scripts/update-javascriptcore-test-results.
      
              Reviewed by darin.
      
              * Scripts/run-javascriptcore-tests: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c9983ce3
  2. 21 Jul, 2005 2 commits
    • ggaren's avatar
      JavaScriptCore: · e888e87b
      ggaren authored
              Reviewed by NOBODY (OOPS!).
      
              * JavaScriptCore.xcodeproj/.cvsignore: Added.
      
      WebCore:
      
              Reviewed by NOBODY (OOPS!).
      
              Test cases added: (NONE)
      
              * WebCore.xcodeproj/.cvsignore: Added.
      
      WebKit:
      
              Reviewed by NOBODY (OOPS!).
      
              * WebKit.xcodeproj/.cvsignore: Added.
      
      WebKitTools:
      
              Reviewed by NOBODY (OOPS!).
      
              * DumpRenderTree/DumpRenderTree.xcodeproj/.cvsignore: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e888e87b
    • ggaren's avatar
      JavaScriptCore: · 5974b0d4
      ggaren authored
              Reviewed by NOBODY (OOPS!).
      
              * JavaScriptCore.pbproj/project.pbxproj: Removed.
              * JavaScriptCore.xcodeproj/ggaren.pbxuser: Added.
              * JavaScriptCore.xcodeproj/ggaren.perspective: Added.
              * JavaScriptCore.xcodeproj/project.pbxproj: Added.
              * Makefile.am:
      
      WebCore:
      
              Reviewed by NOBODY (OOPS!).
      
              Test cases added: (NONE)
      
              * Makefile.am:
      
      WebKit:
      
              Reviewed by NOBODY (OOPS!).
      
              * Makefile.am:
      
      WebKitTools:
      
              Reviewed by NOBODY (OOPS!).
      
              * Scripts/build-webkit:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5974b0d4
  3. 20 Jul, 2005 1 commit
  4. 19 Jul, 2005 3 commits
    • ggaren's avatar
      -fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3991 · 63805304
      ggaren authored
              JSC doesn't implement Array.prototype.toLocaleString()
      
              -test failure: ecma_3/Array/15.4.4.3-1.js
      
              Reviewed by mjs.
      
              * kjs/array_object.cpp:
              (ArrayProtoFuncImp::call): now searches for toString and
              toLocaleString overrides in the array's elements
      
              * tests/mozilla/expected.html: failures are under 100! woohoo!
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      63805304
    • darin's avatar
      - fixed the build · df96aa09
      darin authored
              * kjs/lookup.h: (KJS::lookupPut): Remove bogus const; was preventing WebCore from
              compiling (not sure why this didn't affect my other build machine).
      
              - one other tiny tweak (so sue me)
      
              * bindings/runtime_root.cpp: Remove unneeded declaration.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df96aa09
    • darin's avatar
      JavaScriptCore: · 02fbf08a
      darin authored
              Reviewed by Geoff Garen.
      
              - eliminated try wrappers for get/put/call since we don't use C++ exceptions any more
      
              * kjs/lookup.h: Changed tryCall in IMPLEMENT_PROTOFUNC here to call. It doesn't make
              sense for this macro to use the name tryCall anyway, since that's specific to how
              WebCore used this, so this is good anyway. On the other hand, it might be a problem
              for KDOM or KSVG, in which case we'll need another macro for them, since JavaScriptCore
              should presumably not have the C++ exception support.
      
      WebCore:
      
              Reviewed by Geoff Garen.
      
              Test cases added: None. Structural change only.
      
              - eliminated try wrappers for get/put/call since we don't use C++ exceptions any more
      
              * khtml/ecma/kjs_binding.cpp: Removed DOMObject::get, DOMObject::set, DOMFunction::get,
              and DOMFunction::call.
              * khtml/ecma/kjs_binding.h: Removed get, set, tryGet, trySet, call, tryCall from DOMObject
              and DOMFunction. Removed DOMObjectLookupGet, DOMObjectLookupGetValue, and DOMObjectLookupPut.
              We can just do things the normal way now.
      
              The rest of the changes are just renames and removal of a couple stray tryCall wrappers.
      
                  tryGet -> get
                  tryPut -> put
                  tryCall -> call
                  putValue -> putValueProperty
                  DOMObjectLookupGet -> lookupGet
                  DOMObjectLookupGetValue -> lookupGetValue
                  DOMObjectLookupPut -> lookupPut
      
              * khtml/ecma/domparser.cpp:
              (KJS::DOMParserProtoFunc::call):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::get):
              (KJS::DOMCSSStyleDeclaration::put):
              (KJS::DOMCSSStyleDeclarationProtoFunc::call):
              (KJS::DOMStyleSheet::get):
              (KJS::DOMStyleSheet::put):
              (KJS::DOMStyleSheetList::get):
              (KJS::DOMStyleSheetListFunc::call):
              (KJS::DOMMediaList::get):
              (KJS::DOMMediaList::put):
              (KJS::KJS::DOMMediaListProtoFunc::call):
              (KJS::DOMCSSStyleSheet::get):
              (KJS::DOMCSSStyleSheetProtoFunc::call):
              (KJS::DOMCSSRuleList::get):
              (KJS::DOMCSSRuleListFunc::call):
              (KJS::DOMCSSRule::get):
              (KJS::DOMCSSRule::put):
              (KJS::DOMCSSRule::putValueProperty):
              (KJS::DOMCSSRuleFunc::call):
              (KJS::CSSRuleConstructor::get):
              (KJS::DOMCSSValue::get):
              (KJS::DOMCSSValue::put):
              (KJS::CSSValueConstructor::get):
              (KJS::DOMCSSPrimitiveValue::get):
              (KJS::DOMCSSPrimitiveValueProtoFunc::call):
              (KJS::CSSPrimitiveValueConstructor::get):
              (KJS::DOMCSSValueList::get):
              (KJS::DOMCSSValueListFunc::call):
              (KJS::DOMRGBColor::get):
              (KJS::DOMRect::get):
              (KJS::DOMCounter::get):
              * khtml/ecma/kjs_css.h:
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::get):
              (KJS::DOMNode::put):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMNodeProtoFunc::call):
              (KJS::DOMNodeList::get):
              (KJS::DOMNodeList::call):
              (KJS::DOMNodeListFunc::call):
              (KJS::DOMAttr::get):
              (KJS::DOMAttr::put):
              (KJS::DOMAttr::putValueProperty):
              (KJS::DOMDocument::get):
              (KJS::DOMDocument::put):
              (KJS::DOMDocument::putValueProperty):
              (KJS::DOMDocumentProtoFunc::call):
              (KJS::DOMElement::get):
              (KJS::DOMElementProtoFunc::call):
              (KJS::DOMDOMImplementationProtoFunc::call):
              (KJS::DOMDocumentType::get):
              (KJS::DOMNamedNodeMap::get):
              (KJS::DOMNamedNodeMapProtoFunc::call):
              (KJS::DOMProcessingInstruction::get):
              (KJS::DOMProcessingInstruction::put):
              (KJS::DOMNotation::get):
              (KJS::DOMEntity::get):
              (KJS::NodeConstructor::get):
              (KJS::DOMExceptionConstructor::get):
              (KJS::DOMNamedNodesCollection::get):
              (KJS::DOMCharacterData::get):
              (KJS::DOMCharacterData::put):
              (KJS::DOMCharacterDataProtoFunc::call):
              (KJS::DOMText::get):
              (KJS::DOMTextProtoFunc::call):
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::EventConstructor::get):
              (KJS::DOMEvent::get):
              (KJS::DOMEvent::put):
              (KJS::DOMEvent::putValueProperty):
              (KJS::DOMEventProtoFunc::call):
              (KJS::EventExceptionConstructor::get):
              (KJS::DOMUIEvent::get):
              (KJS::DOMUIEventProtoFunc::call):
              (KJS::DOMMouseEvent::get):
              (KJS::DOMMouseEventProtoFunc::call):
              (KJS::DOMKeyboardEvent::get):
              (KJS::DOMKeyboardEventProtoFunc::call):
              (KJS::MutationEventConstructor::get):
              (KJS::DOMMutationEvent::get):
              (KJS::DOMMutationEventProtoFunc::call):
              (KJS::DOMWheelEvent::get):
              (KJS::DOMWheelEventProtoFunc::call):
              (KJS::Clipboard::get):
              (KJS::Clipboard::put):
              (KJS::Clipboard::putValueProperty):
              (KJS::ClipboardProtoFunc::call):
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::HTMLDocFunction::call):
              (KJS::HTMLDocument::get):
              (KJS::KJS::HTMLDocument::put):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::KJS::HTMLElement::get):
              (KJS::KJS::HTMLElementFunction::call):
              (KJS::KJS::HTMLElement::put):
              (KJS::HTMLElement::putValueProperty):
              (KJS::KJS::HTMLCollection::get):
              (KJS::KJS::HTMLCollection::call):
              (KJS::KJS::HTMLCollectionProtoFunc::call):
              (KJS::KJS::HTMLSelectCollection::get):
              (KJS::KJS::HTMLSelectCollection::put):
              (KJS::Image::get):
              (KJS::Image::put):
              (KJS::Image::putValueProperty):
              (KJS::KJS::Context2DFunction::call):
              (KJS::Context2D::get):
              (KJS::Context2D::put):
              (KJS::Context2D::putValueProperty):
              (KJS::GradientFunction::call):
              (KJS::Gradient::get):
              (KJS::Gradient::put):
              (KJS::Gradient::putValueProperty):
              (KJS::ImagePattern::get):
              (KJS::ImagePattern::put):
              (KJS::ImagePattern::putValueProperty):
              * khtml/ecma/kjs_html.h:
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::PluginsFunc::call):
              (KJS::NavigatorFunc::call):
              * khtml/ecma/kjs_range.cpp:
              (KJS::DOMRange::get):
              (KJS::DOMRangeProtoFunc::call):
              (KJS::RangeConstructor::get):
              * khtml/ecma/kjs_range.h:
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::DOMNodeIterator::get):
              (KJS::DOMNodeIteratorProtoFunc::call):
              (KJS::NodeFilterConstructor::get):
              (KJS::DOMNodeFilterProtoFunc::call):
              (KJS::DOMTreeWalker::get):
              (KJS::DOMTreeWalker::put):
              (KJS::DOMTreeWalkerProtoFunc::call):
              * khtml/ecma/kjs_traversal.h:
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractView::get):
              (KJS::DOMAbstractViewFunc::call):
              * khtml/ecma/kjs_views.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::WindowFunc::call):
              (KJS::LocationFunc::call):
              (KJS::SelectionFunc::call):
              (KJS::HistoryFunc::call):
              (KJS::KonquerorFunc::call):
              * khtml/ecma/xmlhttprequest.cpp:
              (KJS::XMLHttpRequest::get):
              (KJS::XMLHttpRequest::put):
              (KJS::XMLHttpRequest::putValueProperty):
              (KJS::XMLHttpRequestProtoFunc::call):
              * khtml/ecma/xmlhttprequest.h:
              * khtml/ecma/xmlserializer.cpp:
              (KJS::XMLSerializerProtoFunc::call):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02fbf08a
  5. 18 Jul, 2005 1 commit
  6. 15 Jul, 2005 1 commit
    • ggaren's avatar
      -rolled in KDE fixes for http://bugzilla.opendarwin.org/show_bug.cgi?id=3601 · 57b32066
      ggaren authored
              Error instance type info
      
              Reviewed by mjs.
      
              * kjs/error_object.cpp:
              - Created ErrorInstanceImp class for Error() objects.
              - Changed parent object for Native Errors to "Function" (matches
              ECMA spec).
              (ErrorInstanceImp::ErrorInstanceImp):
              (ErrorProtoFuncImp::call):
              (ErrorObjectImp::construct):
              (NativeErrorImp::construct):
      
              * kjs/error_object.h:
              (KJS::ErrorInstanceImp::classInfo):
              * kjs/object.h: made comment more informative about ClassInfo
      
              * tests/mozilla/expected.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57b32066
  7. 14 Jul, 2005 5 commits
    • ggaren's avatar
      - fixed: JS test suite expects an out of memory error · 882afaa4
      ggaren authored
              that our memory efficiency avoids
      
              Reviewed by mjs.
      
              * tests/mozilla/js1_5/Array/regress-157652.js:
              test now expects normal execution
      
              * tests/mozilla/expected.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      882afaa4
    • ggaren's avatar
      - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4006 · e4be5414
      ggaren authored
              testkjs doesn't implement gc()
      
              - test failure:
              ecma_3/Function/regress-104584.js
      
              Reviewed by mjs.
      
              * kjs/interpreter.cpp:
              (Interpreter::finalCheck): removed misleading while && comment
      
              * kjs/testkjs.cpp: added "gc" function to global object
              (TestFunctionImp::):
              (TestFunctionImp::call):
              (main):
      
              * tests/mozilla/expected.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e4be5414
    • ggaren's avatar
      -rolled in patches for http://bugzilla.opendarwin.org/show_bug.cgi?id=3945 · 07d4ce61
      ggaren authored
              [PATCH] Safe merges of comments and other trivialities from KDE's kjs
      
              -patch by Martijn Klingens <klingens@kde.org>
      
              * kjs/array_instance.h:
              * kjs/array_object.cpp:
              * kjs/array_object.h:
              * kjs/bool_object.cpp:
              * kjs/bool_object.h:
              * kjs/collector.cpp:
              * kjs/collector.h:
              * kjs/completion.h:
              * kjs/context.h:
              * kjs/date_object.cpp:
              * kjs/date_object.h:
              * kjs/debugger.cpp:
              * kjs/debugger.h:
              * kjs/dtoa.h:
              * kjs/error_object.cpp:
              * kjs/error_object.h:
              * kjs/function.cpp:
              * kjs/function.h:
              * kjs/function_object.cpp:
              * kjs/function_object.h:
              * kjs/grammar.y:
              * kjs/identifier.cpp:
              * kjs/identifier.h:
              * kjs/internal.cpp:
              * kjs/internal.h:
              * kjs/interpreter.cpp:
              * kjs/interpreter.h:
              * kjs/interpreter_map.cpp:
              * kjs/interpreter_map.h:
              * kjs/lexer.cpp:
              * kjs/lexer.h:
              * kjs/list.cpp:
              * kjs/list.h:
              * kjs/lookup.cpp:
              * kjs/lookup.h:
              * kjs/math_object.cpp:
              * kjs/math_object.h:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/nodes2string.cpp:
              * kjs/number_object.cpp:
              * kjs/number_object.h:
              * kjs/object.cpp:
              * kjs/object.h:
              * kjs/object_object.cpp:
              * kjs/object_object.h:
              * kjs/operations.cpp:
              * kjs/operations.h:
              * kjs/property_map.cpp:
              * kjs/property_map.h:
              * kjs/reference.cpp:
              * kjs/reference.h:
              * kjs/reference_list.cpp:
              * kjs/reference_list.h:
              * kjs/regexp.cpp:
              * kjs/regexp.h:
              * kjs/regexp_object.cpp:
              * kjs/regexp_object.h:
              * kjs/scope_chain.cpp:
              * kjs/scope_chain.h:
              * kjs/simple_number.h:
              * kjs/string_object.cpp:
              * kjs/string_object.h:
              * kjs/testkjs.cpp:
              * kjs/types.h:
              * kjs/ustring.cpp:
              * kjs/ustring.h:
              * kjs/value.cpp:
              * kjs/value.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07d4ce61
    • ggaren's avatar
      -fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3970 · 277d8507
      ggaren authored
              throw statements fail inside eval statements
      
              Reviewed by mjs.
      
              * kjs/function.cpp:
              (KJS::GlobalFuncImp::call):
              Big change since I fixed the tabbing. The important part is:
              if (c.complType() == Throw)
                exec->setException(c.value());
      
              * kjs/nodes.cpp:
              (ThrowNode::execute): removed duplicate KJS_CHECKEXCEPTION
              (TryNode::execute):
              try now clears the exception state before the finally block executes,
              and checks the state after the block executes, so that exceptions in
              finally code get caught.
      
              * tests/mozilla/expected.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      277d8507
    • ggaren's avatar
      JavaScriptCore: · 5b8ed8bb
      ggaren authored
      	-landed fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=3412
      	Object.prototype is missing toLocaleString
      
      	- patch by Mark Rowe (bdash) <opendarwin.org@bdash.net.nz>
      
      	-layout test info in webcore changelog
      
              Reviewed by mjs.
      
              * kjs/object_object.cpp:
              (ObjectPrototypeImp::ObjectPrototypeImp):
              (ObjectProtoFuncImp::call):
              * kjs/object_object.h:
              (KJS::ObjectProtoFuncImp::):
      
      WebCore:
      
      	-landed layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=3412
      	Object.prototype is missing toLocaleString
      
              Reviewed by mjs.
      
              Test cases added:
              * layout-tests/fast/js/object-prototype-toLocaleString-expected.txt: Added.
              * layout-tests/fast/js/object-prototype-toLocaleString.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b8ed8bb
  8. 12 Jul, 2005 2 commits
    • ggaren's avatar
      Reviewed by mjs. · 419c2a90
      ggaren authored
              * kjs/function.cpp:
              (KJS::IndexToNameMap::operator[]): fixed infinite recursion
              bug in last checkin
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      419c2a90
    • ggaren's avatar
      -fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3881 · c5fb7ed5
      ggaren authored
              arguments object should share values with function parameters
      
              Reviewed by mjs.
      
              ArgumentsImp now uses a simple hash lookup to share values
              with the activation object.
      
              * kjs/function.cpp:
              (KJS::FunctionImp::getParameterName):
              (KJS::IndexToNameMap::IndexToNameMap):
              (KJS::IndexToNameMap::~IndexToNameMap):
              (KJS::IndexToNameMap::isMapped):
              (KJS::IndexToNameMap::unMap):
              (KJS::IndexToNameMap::operator[]):
              (KJS::ArgumentsImp::ArgumentsImp):
              (KJS::ArgumentsImp::mark):
              (KJS::ArgumentsImp::get):
              (KJS::ArgumentsImp::put):
              (KJS::ArgumentsImp::deleteProperty):
              (KJS::ArgumentsImp::hasOwnProperty):
              (KJS::ActivationImp::createArgumentsObject):
              * kjs/function.h:
              * tests/mozilla/expected.html: updated results
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5fb7ed5
  9. 09 Jul, 2005 2 commits
  10. 08 Jul, 2005 3 commits
  11. 07 Jul, 2005 1 commit
  12. 03 Jul, 2005 1 commit
    • mjs's avatar
      JavaScriptCore: · c261a117
      mjs authored
      	Original patch from Mark Rowe <opendarwin.org@bdash.net.nz>, reviewed by me.
      	Fixes to patch by me, reviewed by John Sullivan.
      
      	- fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3293
      
              Test cases added:
              * tests/mozilla/expected.html: Two tests newly pass.
      
              * bindings/objc/objc_runtime.h:
              * bindings/objc/objc_runtime.mm:
              (ObjcFallbackObjectImp::hasOwnProperty):
              * bindings/runtime_array.cpp:
              (RuntimeArrayImp::hasOwnProperty):
              * bindings/runtime_array.h:
              * bindings/runtime_object.cpp:
              (RuntimeObjectImp::hasOwnProperty):
              * bindings/runtime_object.h:
              * kjs/array_instance.h:
              * kjs/array_object.cpp:
              (ArrayInstanceImp::hasOwnProperty):
              * kjs/function.cpp:
              (KJS::FunctionImp::hasOwnProperty):
              (KJS::ActivationImp::hasOwnProperty):
              * kjs/function.h:
              * kjs/lookup.h:
              * kjs/object.cpp:
              (KJS::ObjectImp::hasProperty):
              (KJS::ObjectImp::hasOwnProperty):
              * kjs/object.h:
              (KJS::Object::hasOwnProperty):
              * kjs/object_object.cpp:
              (ObjectPrototypeImp::ObjectPrototypeImp):
              (ObjectProtoFuncImp::call):
              * kjs/object_object.h:
              (KJS::ObjectProtoFuncImp::):
              * kjs/string_object.cpp:
              (StringInstanceImp::hasOwnProperty):
              * kjs/string_object.h:
      
      WebCore:
      
      	Original patch from Mark Rowe <opendarwin.org@bdash.net.nz>, reviewed by me.
      	Fixes to patch by me, reviewed by John Sullivan.
      
      	- fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3293
      
              Test cases added:
              * layout-tests/fast/js/has-own-property.html: Added - tests this change.
              * layout-tests/fast/js/eval-var-decl.html: Added - test depends on this change.
      
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::hasOwnProperty):
              * khtml/ecma/kjs_css.h:
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNodeList::hasOwnProperty):
              (KJS::DOMElement::tryGet):
              (KJS::DOMNamedNodeMap::hasOwnProperty):
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::hasOwnProperty):
              (KJS::HTMLDocument::tryGet):
              (KJS::KJS::HTMLElement::hasOwnProperty):
              (KJS::KJS::HTMLCollection::hasOwnProperty):
              * khtml/ecma/kjs_html.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::hasOwnProperty):
              (KJS::Konqueror::hasOwnProperty):
              * khtml/ecma/kjs_window.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c261a117
  13. 01 Jul, 2005 7 commits
  14. 30 Jun, 2005 2 commits
    • ggaren's avatar
      -rolled in KDE fix to <rdar://problem/4167660> JavaScript fails to · b5a40fe4
      ggaren authored
              throw exceptions for invalid break/continue statements
      
              No layout tests because it's already covered by the Mozilla suite
      
              Reviewed by mjs.
      
              * kjs/internal.h: LabelStack now tracks where you are relative to
              switch and iteration (loop) statements
      
              (KJS::LabelStack::LabelStack):
              (KJS::LabelStack::pushIteration):
              (KJS::LabelStack::popIteration):
              (KJS::LabelStack::inIteration):
              (KJS::LabelStack::pushSwitch):
              (KJS::LabelStack::popSwitch):
              (KJS::LabelStack::inSwitch):
      
              * kjs/nodes.cpp:
              These files were updated to use the new LabelStack:
              (DoWhileNode::execute):
              (WhileNode::execute):
              (ForNode::execute):
              (ForInNode::execute):
              (SwitchNode::execute):
      
              These files were updated to throw exceptions for invalid
              break/continue statements:
              (BreakNode::execute):
              (ContinueNode::execute):
      
              * tests/mozilla/expected.html: Updated expected results to reflect fix
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b5a40fe4
    • kdecker's avatar
      Reviewed by rjw. · 580e7266
      kdecker authored
      	fixed: <rdar://problem/4166838> failed assertion in`Interpreter::lockCount() > 0
      
      	no layout test added; this is in the bindings code.
      
              * bindings/objc/WebScriptObject.mm:
              (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]): make sure to lock and unlock the interpreter around allocations.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      580e7266
  15. 29 Jun, 2005 4 commits
  16. 28 Jun, 2005 1 commit
  17. 27 Jun, 2005 1 commit
    • mjs's avatar
      Reviewed by Darin. · bcd9d066
      mjs authored
      	- replace hash functions  with better ones
      
              * JavaScriptCore.pbproj/project.pbxproj: Add new file to build.
              * kjs/interpreter_map.cpp:
              (KJS::InterpreterMap::computeHash): Use shared pointer hash.
              * kjs/pointer_hash.h: Added.
              (KJS::pointerHash): Pointer hash based on 32-bit mix and 64-bit mix hashes.
              * kjs/protected_values.cpp:
              (KJS::ProtectedValues::computeHash): Use shared pointer hash.
              * kjs/ustring.cpp:
              (KJS::UString::Rep::computeHash): Use SuperFastHash algorithm.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcd9d066
  18. 22 Jun, 2005 1 commit
  19. 21 Jun, 2005 1 commit
    • adele's avatar
      JavaScriptCore: · 7fc92270
      adele authored
              rolling out fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=3293, since it caused layout test failures.
      	fast/forms/element-by-name
              fast/loader/loadInProgress
      
              * ChangeLog:
              * bindings/objc/objc_runtime.h:
              * bindings/objc/objc_runtime.mm:
              (ObjcFallbackObjectImp::hasProperty):
              * bindings/runtime_array.cpp:
              (RuntimeArrayImp::hasProperty):
              * bindings/runtime_array.h:
              * bindings/runtime_object.cpp:
              (RuntimeObjectImp::hasProperty):
              * bindings/runtime_object.h:
              * kjs/array_instance.h:
              * kjs/array_object.cpp:
              (ArrayInstanceImp::hasProperty):
              * kjs/function.cpp:
              (KJS::FunctionImp::hasProperty):
              (KJS::ActivationImp::hasProperty):
              * kjs/function.h:
              * kjs/object.cpp:
              (KJS::ObjectImp::hasProperty):
              * kjs/object.h:
              * kjs/object_object.cpp:
              (ObjectPrototypeImp::ObjectPrototypeImp):
              (ObjectProtoFuncImp::call):
              * kjs/object_object.h:
              (KJS::ObjectProtoFuncImp::):
              * kjs/string_object.cpp:
              (StringInstanceImp::hasProperty):
              * kjs/string_object.h:
              * tests/mozilla/expected.html:
      
      WebCore:
      
              rolling out fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=3293, since it caused layout test failures.
      	fast/forms/element-by-name
              fast/loader/loadInProgress
      
              * ChangeLog:
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::hasProperty):
              * khtml/ecma/kjs_css.h:
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNodeList::hasProperty):
              (KJS::DOMNamedNodeMap::hasProperty):
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::hasProperty):
              (KJS::KJS::HTMLElement::hasProperty):
              (KJS::KJS::HTMLCollection::hasProperty):
              * khtml/ecma/kjs_html.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::hasProperty):
              (KJS::Konqueror::hasProperty):
              * khtml/ecma/kjs_window.h:
              * layout-tests/fast/js/eval-var-decl-expected.txt: Removed. This test used hasOwnProperty
              * layout-tests/fast/js/eval-var-decl.html: Removed. This test used hasOwnProperty
              * layout-tests/fast/js/hasOwnProperty-expected.txt: Removed.
              * layout-tests/fast/js/hasOwnProperty.html: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fc92270