- 27 Apr, 2010 20 commits
-
-
pfeldman@chromium.org authored
Reviewed by Yury Semikhatsky. Chrome Dev Tools: Further beautify themes. https://bugs.webkit.org/show_bug.cgi?id=38187 * src/js/DevTools.js: (WebInspector.setToolbarColors): * src/js/devTools.css: (body.platform-windows #toolbar, body.platform-windows.inactive #toolbar): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Patch by Thomas Zander <t.zander@nokia.com> on 2010-04-27 Reviewed by Simon Hausmann. Disable thumb mode due to library size limitations, just like it's done for the sbs/sbsv2 based build system. * WebCore.pro: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Patch by Thomas Zander <t.zander@nokia.com> on 2010-04-27 Reviewed by Simon Hausmann. * JavaScriptCore.pri: It is necessary to specify the library search path when linking against JavaScriptCore. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jocelyn.turcotte@nokia.com authored
https://bugs.webkit.org/show_bug.cgi?id=37867 Reviewed by Simon Hausmann. Patch by Prasanth Ullattil <prasanth.ullattil@nokia.com> * runtime/Structure.cpp: (JSC::Structure::transitionTableAdd): * wtf/MathExtras.h: * wtf/Platform.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jocelyn.turcotte@nokia.com authored
Reviewed by Simon Hausmann. * config.h: (JSC::Structure::transitionTableAdd): * wtf/Assertions.h: * wtf/Atomics.h: * wtf/CurrentTime.h: (WTF::getLocalTime): * wtf/Platform.h: * wtf/StaticConstructors.h: * wtf/StringExtras.h: * wtf/Vector.h: (WTF::::append): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jocelyn.turcotte@nokia.com authored
Reviewed by Tor Arne Vestbø. https://bugs.webkit.org/show_bug.cgi?id=37867 - Make sure JavaScriptCore's debug_and_release config follows that of WebCore. - Use different name for JavaScriptCore target in debug and release since they might be written in the same path at the same time on parallel builds - Consolidate the DESTDIR determination logic in JavaScriptCore.pri * JavaScriptCore.pri: * JavaScriptCore.pro: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jocelyn.turcotte@nokia.com authored
https://bugs.webkit.org/show_bug.cgi?id=37867 Reviewed by Kenneth Rohde Christiansen. As the rest of Qt compiles in the C++0x mode, people might start compiling it in this mode. WebKit don't support this yet. Patch by Thiago Macieira <thiago.macieira@nokia.com> JavaScriptCore: * JavaScriptCore.pro: WebCore: * WebCore.pro: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jorlow@chromium.org authored
Unreviewed. Previous disabling only did so via TIMEOUT failures. Needs to ignore TEXT failures on quota-tracking.html as well. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jorlow@chromium.org authored
Unreviewed. Disable quota-tracking in Chromium until Dumi can take a look. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58303 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jorlow@chromium.org authored
Unreviewed build fix. Revert 58274 and 58269 (WebSQLDatabase changes) https://bugs.webkit.org/show_bug.cgi?id=38191 * storage/quota-tracking-expected.txt: * storage/quota-tracking.html: 2010-04-27 Jeremy Orlow <jorlow@chromium.org> Unreviewed build fix. Revert 58274 and 58269 (WebSQLDatabase changes) https://bugs.webkit.org/show_bug.cgi?id=38191 Chromium bots are hitting ASSERTS when running layout tests. * platform/sql/SQLiteDatabase.cpp: (WebCore::SQLiteDatabase::maximumSize): (WebCore::SQLiteDatabase::freeSpaceSize): * platform/sql/SQLiteDatabase.h: * platform/sql/SQLiteStatement.cpp: (WebCore::SQLiteStatement::prepare): * storage/Database.cpp: (WebCore::Database::performOpenAndVerify): * storage/Database.h: * storage/SQLTransaction.cpp: (WebCore::SQLTransaction::postflightAndCommit): git-...
-
yuzo@google.com authored
Unreviewed, fix build breakage by reverting r58299. https://bugs.webkit.org/show_bug.cgi?id=35329 * fast/css/parsing-page-rule-expected.txt: Removed. * fast/css/parsing-page-rule.html: Removed. 2010-04-27 Yuzo Fujishima <yuzo@google.com> Unreviewed, fix build breakage by reverting r58299. * css/CSSGrammar.y: * css/CSSParser.cpp: (WebCore::CSSParser::CSSParser): (WebCore::CSSParser::clearProperties): * css/CSSParser.h: * css/CSSSelector.cpp: (WebCore::CSSSelector::pseudoId): (WebCore::nameToPseudoTypeMap): (WebCore::CSSSelector::extractPseudoType): * css/CSSSelector.h: (WebCore::CSSSelector::): * css/tokenizer.flex: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
yuzo@google.com authored
Reviewed by Shinichiro Hamaji. WebCore::CSSSelector::RareData::parseNth doesn't check whether the search for '-' in the argument was successful. This results in incorrect parsing. For example, '3n' is parsed as if it were '3n-3'. The code has been working OK just accidentally. https://bugs.webkit.org/show_bug.cgi?id=37787 No new tests are added because the original behavior is accidentally OK. * css/CSSSelector.cpp: (WebCore::CSSSelector::RareData::parseNth): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
yuzo@google.com authored
Reviewed by David Hyatt. Enhance CSS parser for Paged Media (Iteration 1) In this change, the grammar is extended and skeletal methods for creating page rules and margin at-rules are defined. The contents of the methods should be implemented by other changes. https://bugs.webkit.org/show_bug.cgi?id=35329 * fast/css/parsing-page-rule-expected.txt: Copied from LayoutTests/editing/selection/doubleclick-whitespace-img-crash-expected.txt. * fast/css/parsing-page-rule.html: Added. 2010-04-27 Yuzo Fujishima <yuzo@google.com> Reviewed by David Hyatt. Enhance CSS parser for Paged Media (Iteration 1) In this change, the grammar is extended and skeletal methods for creating page rules and margin at-rules are defined. The contents of the methods should be implemented by other changes. https://bugs.webkit.org/show_bug.cgi?id=35329 Test: fast/css/parsing-page-rule.html * css/CSSGrammar.y: * css/CSSParser.cpp: (WebCore::CSSParser::CSSParser): (WebCore::CSSParser::clearProperties): (WebCore::CSSParser::lex): (WebCore::CSSParser::text): (WebCore::CSSParser::createPageRule): (WebCore::CSSParser::createMarginAtRule): (WebCore::CSSParser::startDeclarationsForMarginBox): (WebCore::CSSParser::endDeclarationsForMarginBox): * css/CSSParser.h: * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): * css/CSSSelector.h: (WebCore::CSSSelector::): * css/tokenizer.flex: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Reviewed by Eric Seidel. Remove custom bindings for TreeWalker https://bugs.webkit.org/show_bug.cgi?id=38182 This custom code is just CallWith=ScriptState. * WebCore.gypi: * bindings/js/JSTreeWalkerCustom.cpp: (WebCore::JSTreeWalker::markChildren): * bindings/scripts/CodeGeneratorJS.pm: * bindings/scripts/CodeGeneratorV8.pm: * bindings/scripts/test/TestObj.idl: * bindings/v8/custom/V8TreeWalkerCustom.cpp: Removed. * dom/TreeWalker.idl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58298 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Reviewed by Maciej Stachowiak. REGRESSION(r58261): webkit-patch upload does not work in an SVN checkout. https://bugs.webkit.org/show_bug.cgi?id=38186 Unfortunately, we don't have a good way of testing this change because our test coverage of the scm.py API is poor... * Scripts/webkitpy/common/checkout/scm.py: * Scripts/webkitpy/tool/steps/preparechangelog.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Adam Barth. Move code out of GenerateImplementation to make it more smaller https://bugs.webkit.org/show_bug.cgi?id=38176 * bindings/scripts/CodeGeneratorJS.pm: - Move some code into a new GenerateAttributesHashTable method. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Reviewed by Eric Seidel. Add CallWith=DynamicFrame to CodeGenerator https://bugs.webkit.org/show_bug.cgi?id=38174 I've only used this in one instance, but this is infrastructure that I think will help remove a bunch of custom bindings code. Also, added a few tests of tricky argument cases. * bindings/js/JSHTMLFormElementCustom.cpp: * bindings/scripts/CodeGeneratorJS.pm: * bindings/scripts/CodeGeneratorV8.pm: * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: (webkit_dom_test_obj_with_dynamic_frame): (webkit_dom_test_obj_with_dynamic_frame_and_arg): (webkit_dom_test_obj_with_dynamic_frame_and_optional_arg): (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture): (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad): * bindings/scripts/test/GObject/WebKitDOMTestObj.h: * bindings/scripts/test/JS/JSTestObj.cpp: ...
-
jam@chromium.org authored
Reviewed by Darin Fisher. [chromium] Prepare to making WebThemeEngine cross-platform https://bugs.webkit.org/show_bug.cgi?id=38077 * WebKit.gyp: * public/WebThemeEngine.h: Added. * public/win/WebThemeEngine.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Adam Barth. Remove unused code from text_diff.py https://bugs.webkit.org/show_bug.cgi?id=38170 * Scripts/webkitpy/layout_tests/test_types/text_diff.py: - Remove is_render_tree_dump which appears unused. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@chromium.org authored
Reviewed by Adam Barth. [Chromium] Crash after calling window.print() on a window object that has been closed. https://bugs.webkit.org/show_bug.cgi?id=38148 It is unfortunately not possible to write a layout test for this as the crash occurs in an API that is only called by Chrome while showing a print dialog. * src/WebViewImpl.cpp: (WebKit::WebView::willEnterModalLoop): (WebKit::WebView::didExitModalLoop): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 26 Apr, 2010 20 commits
-
-
abarth@webkit.org authored
Reviewed by Eric Seidel. webkit-patch pretty-diff is broken https://bugs.webkit.org/show_bug.cgi?id=38172 We need to register for these options because they're used when we look up the diff. * Scripts/webkitpy/tool/steps/confirmdiff.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Unreviewed. Update comment to better reflect reality. * bindings/scripts/test/TestObj.idl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Reviewed by Eric Seidel. Add ObjC and GObject to run-bindings-test https://bugs.webkit.org/show_bug.cgi?id=38168 Added expected results. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Added. (WebKit::kit): (webkit_dom_test_obj_void_method): (webkit_dom_test_obj_void_method_with_args): (webkit_dom_test_obj_int_method): (webkit_dom_test_obj_int_method_with_args): (webkit_dom_test_obj_obj_method): (webkit_dom_test_obj_obj_method_with_args): (webkit_dom_test_obj_method_with_exception): (webkit_dom_test_obj_method_with_optional_arg): (webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg): (webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args): (webkit_dom_test_obj_get_read_only_int_attr): (webkit_dom_test_obj_get_read_only_string_attr): (webkit_dom_test_obj_get_read_only_test_obj_attr): (webkit_dom_test_obj_get_int_attr): (webkit_dom_test_obj_set_int_attr): (webkit_dom_test_obj_get_string_attr): (webkit_dom_test_obj_set_string_attr): (webkit_dom_test_obj_get_test_obj_attr): (webkit_dom_test_obj_set_test_obj_attr): (webkit_dom_test_obj_get_attr_with_exception): (webkit_dom_test_obj_set_attr_with_exception): (webkit_dom_test_obj_get_attr_with_setter_exception): (webkit_dom_test_obj_set_attr_with_setter_exception): (webkit_dom_test_obj_get_attr_with_getter_exception): (webkit_dom_test_obj_set_attr_with_getter_exception): (WebKit::wrapTestObj): (WebKit::core): (webkit_dom_test_obj_finalize): (webkit_dom_test_obj_set_property): (webkit_dom_test_obj_get_property): (webkit_dom_test_obj_class_init): (webkit_dom_test_obj_init): * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Added. * bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h: Added. * bindings/scripts/test/ObjC/DOMTestObj.h: Added. * bindings/scripts/test/ObjC/DOMTestObj.mm: Added. (-[DOMTestObj dealloc]): (-[DOMTestObj finalize]): (-[DOMTestObj readOnlyIntAttr]): (-[DOMTestObj readOnlyStringAttr]): (-[DOMTestObj readOnlyTestObjAttr]): (-[DOMTestObj intAttr]): (-[DOMTestObj setIntAttr:]): (-[DOMTestObj stringAttr]): (-[DOMTestObj setStringAttr:]): (-[DOMTestObj testObjAttr]): (-[DOMTestObj setTestObjAttr:]): (-[DOMTestObj attrWithException]): (-[DOMTestObj setAttrWithException:]): (-[DOMTestObj attrWithSetterException]): (-[DOMTestObj setAttrWithSetterException:]): (-[DOMTestObj attrWithGetterException]): (-[DOMTestObj setAttrWithGetterException:]): (-[DOMTestObj customAttr]): (-[DOMTestObj setCustomAttr:]): (-[DOMTestObj voidMethod]): (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]): (-[DOMTestObj intMethod]): (-[DOMTestObj intMethodWithArgs:strArg:objArg:]): (-[DOMTestObj objMethod]): (-[DOMTestObj objMethodWithArgs:strArg:objArg:]): (-[DOMTestObj methodWithException]): (-[DOMTestObj customMethod]): (-[DOMTestObj customMethodWithArgs:strArg:objArg:]): (-[DOMTestObj methodWithOptionalArg:]): (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]): (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]): (core): (kit): * bindings/scripts/test/ObjC/DOMTestObjInternal.h: Added. 2010-04-26 Adam Barth <abarth@webkit.org> Reviewed by Eric Seidel. Add ObjC and GObject to run-bindings-test https://bugs.webkit.org/show_bug.cgi?id=38168 * Scripts/run-bindings-tests: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Reviewed by Eric Seidel. Add testing infrastructure for JSC bindings generator https://bugs.webkit.org/show_bug.cgi?id=38167 This required moving the test files around a bit more. * bindings/scripts/test/JS/JSTestObj.cpp: Added. (WebCore::): (WebCore::JSTestObjConstructor::JSTestObjConstructor): (WebCore::JSTestObjConstructor::classInfo): (WebCore::JSTestObjConstructor::createStructure): (WebCore::JSTestObjConstructor::getOwnPropertySlot): (WebCore::JSTestObjConstructor::getOwnPropertyDescriptor): (WebCore::JSTestObjPrototype::self): (WebCore::JSTestObjPrototype::getOwnPropertySlot): (WebCore::JSTestObjPrototype::getOwnPropertyDescriptor): (WebCore::JSTestObj::JSTestObj): (WebCore::JSTestObj::~JSTestObj): (WebCore::JSTestObj::createPrototype): (WebCore::JSTestObj::getOwnPropertySlot): (WebCore::JSTestObj::getOwnPropertyDescriptor): (WebCore::jsTestObjReadOnlyIntAttr): (WebCore::jsTestObjReadOnlyStringAttr): (WebCore::jsTestObjReadOnlyTestObjAttr): (WebCore::jsTestObjIntAttr): (WebCore::jsTestObjStringAttr): (WebCore::jsTestObjTestObjAttr): (WebCore::jsTestObjAttrWithException): (WebCore::jsTestObjAttrWithSetterException): (WebCore::jsTestObjAttrWithGetterException): (WebCore::jsTestObjCustomAttr): (WebCore::jsTestObjConstructor): (WebCore::JSTestObj::put): (WebCore::setJSTestObjIntAttr): (WebCore::setJSTestObjStringAttr): (WebCore::setJSTestObjTestObjAttr): (WebCore::setJSTestObjAttrWithException): (WebCore::setJSTestObjAttrWithSetterException): (WebCore::setJSTestObjAttrWithGetterException): (WebCore::setJSTestObjCustomAttr): (WebCore::JSTestObj::getConstructor): (WebCore::jsTestObjPrototypeFunctionVoidMethod): (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionIntMethod): (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionObjMethod): (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithException): (WebCore::jsTestObjPrototypeFunctionCustomMethod): (WebCore::jsTestObjPrototypeFunctionCustomMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg): (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg): (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs): (WebCore::toJS): (WebCore::toTestObj): * bindings/scripts/test/JS/JSTestObj.h: Added. (WebCore::JSTestObj::classInfo): (WebCore::JSTestObj::createStructure): (WebCore::JSTestObj::impl): (WebCore::JSTestObjPrototype::classInfo): (WebCore::JSTestObjPrototype::createStructure): (WebCore::JSTestObjPrototype::JSTestObjPrototype): * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/V8/V8TestObj.cpp: Renamed from WebCore/bindings/scripts/test/V8TestObj.cpp. (WebCore::): (WebCore::TestObjInternal::V8_USE): (WebCore::TestObjInternal::readOnlyIntAttrAttrGetter): (WebCore::TestObjInternal::readOnlyStringAttrAttrGetter): (WebCore::TestObjInternal::readOnlyTestObjAttrAttrGetter): (WebCore::TestObjInternal::intAttrAttrGetter): (WebCore::TestObjInternal::intAttrAttrSetter): (WebCore::TestObjInternal::stringAttrAttrGetter): (WebCore::TestObjInternal::stringAttrAttrSetter): (WebCore::TestObjInternal::testObjAttrAttrGetter): (WebCore::TestObjInternal::testObjAttrAttrSetter): (WebCore::TestObjInternal::attrWithExceptionAttrGetter): (WebCore::TestObjInternal::attrWithExceptionAttrSetter): (WebCore::TestObjInternal::attrWithSetterExceptionAttrGetter): (WebCore::TestObjInternal::attrWithSetterExceptionAttrSetter): (WebCore::TestObjInternal::attrWithGetterExceptionAttrGetter): (WebCore::TestObjInternal::attrWithGetterExceptionAttrSetter): (WebCore::TestObjInternal::voidMethodCallback): (WebCore::TestObjInternal::voidMethodWithArgsCallback): (WebCore::TestObjInternal::intMethodCallback): (WebCore::TestObjInternal::intMethodWithArgsCallback): (WebCore::TestObjInternal::objMethodCallback): (WebCore::TestObjInternal::objMethodWithArgsCallback): (WebCore::TestObjInternal::methodWithExceptionCallback): (WebCore::TestObjInternal::methodWithOptionalArgCallback): (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback): (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback): (WebCore::TestObjInternal::overloadedMethod1Callback): (WebCore::TestObjInternal::overloadedMethod2Callback): (WebCore::TestObjInternal::overloadedMethod3Callback): (WebCore::TestObjInternal::overloadedMethod4Callback): (WebCore::TestObjInternal::overloadedMethodCallback): (WebCore::ConfigureV8TestObjTemplate): (WebCore::V8TestObj::GetRawTemplate): (WebCore::V8TestObj::GetTemplate): (WebCore::V8TestObj::toNative): (WebCore::V8TestObj::HasInstance): (WebCore::V8TestObj::wrap): (WebCore::toV8): (WebCore::V8TestObj::derefObject): * bindings/scripts/test/V8/V8TestObj.h: Renamed from WebCore/bindings/scripts/test/V8TestObj.h. 2010-04-26 Adam Barth <abarth@webkit.org> Reviewed by Eric Seidel. Add testing infrastructure for JSC bindings generator https://bugs.webkit.org/show_bug.cgi?id=38167 Add support for testing more than one bindings. Also, converted the script to PEP8 style. * Scripts/run-bindings-tests: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
Reviewed by Gavin Barraclough. Need to support more efficient dispatch of lightweight builtins https://bugs.webkit.org/show_bug.cgi?id=38155 The problem with calling lightweight builtins is that marshalling the call from the nitro calling convention to the system calling convention is very expensive relative to the cost of the actually evaluating the function. To work around this problem this patch adds the ability to define a custom thunk for a builtin. This allows us to use high performance custom implementations of the common and sensible versions of simple builtins. This patch includes a simple (use of which is currently hardcoded) thunk for charCodeAt. This adds a JSInterfaceJIT subclass called SpecializedThunkJIT that has helper functions to remove (or at least reduce) the need to have separate thunk implementations for each JSValue encoding. * GNUmakefile.am: * JavaScriptCore.pro: * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: * JavaScriptCore.xcodeproj/project.pbxproj: Many project file updates * create_hash_table: Add thunk generation callbacks to the hash tables, currently we hardcode the script to only support charCodeAt * jit/JITStubCall.h: * jit/JITStubs.cpp: (JSC::JITThunks::~JITThunks): (JSC::JITThunks::specializedThunk): * jit/JITStubs.h: * jit/SpecializedThunkJIT.h: Added. (JSC::SpecializedThunkJIT::SpecializedThunkJIT): (JSC::SpecializedThunkJIT::loadCellArgument): (JSC::SpecializedThunkJIT::loadJSStringArgument): (JSC::SpecializedThunkJIT::loadInt32Argument): (JSC::SpecializedThunkJIT::appendFailure): (JSC::SpecializedThunkJIT::returnInt32): (JSC::SpecializedThunkJIT::finalize): (JSC::SpecializedThunkJIT::argumentToVirtualRegister): (JSC::SpecializedThunkJIT::tagReturnAsInt32): * jit/ThunkGenerators.cpp: Added. (JSC::ThunkHelpers::stringImplDataOffset): (JSC::ThunkHelpers::jsStringLengthOffset): (JSC::ThunkHelpers::jsStringValueOffset): (JSC::charCodeAtThunkGenerator): * jit/ThunkGenerators.h: Added. * runtime/Executable.h: (JSC::NativeExecutable::NativeExecutable): * runtime/JSFunction.cpp: (JSC::JSFunction::JSFunction): * runtime/JSFunction.h: * runtime/JSGlobalData.h: (JSC::JSGlobalData::getThunk): * runtime/JSString.h: (JSC::): * runtime/JSValue.h: Protect some of the JSVALUE32 and JSVALUE32_64 only constants and function behind appropriate USE() guards to make it harder to use the wrong flags for the target build. * runtime/Lookup.cpp: (JSC::HashTable::createTable): (JSC::setUpStaticFunctionSlot): * runtime/Lookup.h: (JSC::HashEntry::initialize): (JSC::HashEntry::generator): (JSC::HashEntry::): Make the lookup tables use a specialized thunkGenerator if present * wtf/text/StringImpl.h: 2010-04-26 Oliver Hunt <oliver@apple.com> Reviewed by Gavin Barraclough. Need to support more efficient dispatch of lightweight builtins https://bugs.webkit.org/show_bug.cgi?id=38155 Update bindings generation to include new thunk generator field in the property map hash tables. * bindings/scripts/CodeGeneratorJS.pm: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Adam Barth. Refactor results.html generation out into a new method and test it https://bugs.webkit.org/show_bug.cgi?id=38164 Hopefully this results in no change in functionality. * Scripts/webkitpy/layout_tests/run_webkit_tests.py: * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
Reviewed by Gavin Barraclough. Factor some basic JS interface logic out of JIT and into a superclass https://bugs.webkit.org/show_bug.cgi?id=38163 Create JSInterfaceJIT to hold some common low level functions for interacting with the JS RegisterFile. Doing this separately from https://bugs.webkit.org/show_bug.cgi?id=38155 to ease reviewing. * JavaScriptCore.xcodeproj/project.pbxproj: * jit/JIT.h: * jit/JITInlineMethods.h: (JSC::JIT::emitJumpSlowCaseIfNotJSCell): * jit/JSInterfaceJIT.h: Added. (JSC::JSInterfaceJIT::emitLoadJSCell): (JSC::JSInterfaceJIT::emitJumpIfNotJSCell): (JSC::JSInterfaceJIT::emitLoadInt32): (JSC::JSInterfaceJIT::tagFor): (JSC::JSInterfaceJIT::payloadFor): (JSC::JSInterfaceJIT::addressFor): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58283 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Unreviewed, rolling out r58265. http://trac.webkit.org/changeset/58265 https://bugs.webkit.org/show_bug.cgi?id=38021 This change prevents me from uploading patches. It also breaks sheriff-bot. * Scripts/webkitpy/tool/steps/options.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Reviewed by Eric Seidel. Move bindings test directory into the scripts directory https://bugs.webkit.org/show_bug.cgi?id=38161 This test is really of the bindings scripts not of the bindings themselves. By moving the files into the scripts directory, we'll be able to test JSC as well. * bindings/scripts/test/TestObj.idl: Renamed from WebCore/bindings/v8/test/TestObj.idl. * bindings/scripts/test/V8TestObj.cpp: Renamed from WebCore/bindings/v8/test/V8TestObj.cpp. (WebCore::): (WebCore::TestObjInternal::V8_USE): (WebCore::TestObjInternal::readOnlyIntAttrAttrGetter): (WebCore::TestObjInternal::readOnlyStringAttrAttrGetter): (WebCore::TestObjInternal::readOnlyTestObjAttrAttrGetter): (WebCore::TestObjInternal::intAttrAttrGetter): (WebCore::TestObjInternal::intAttrAttrSetter): (WebCore::TestObjInternal::stringAttrAttrGetter): (WebCore::TestObjInternal::stringAttrAttrSetter): (WebCore::TestObjInternal::testObjAttrAttrGetter): (WebCore::TestObjInternal::testObjAttrAttrSetter): (WebCore::TestObjInternal::attrWithExceptionAttrGetter): (WebCore::TestObjInternal::attrWithExceptionAttrSetter): (WebCore::TestObjInternal::attrWithSetterExceptionAttrGetter): (WebCore::TestObjInternal::attrWithSetterExceptionAttrSetter): (WebCore::TestObjInternal::attrWithGetterExceptionAttrGetter): (WebCore::TestObjInternal::attrWithGetterExceptionAttrSetter): (WebCore::TestObjInternal::voidMethodCallback): (WebCore::TestObjInternal::voidMethodWithArgsCallback): (WebCore::TestObjInternal::intMethodCallback): (WebCore::TestObjInternal::intMethodWithArgsCallback): (WebCore::TestObjInternal::objMethodCallback): (WebCore::TestObjInternal::objMethodWithArgsCallback): (WebCore::TestObjInternal::methodWithExceptionCallback): (WebCore::TestObjInternal::methodWithOptionalArgCallback): (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback): (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback): (WebCore::TestObjInternal::overloadedMethod1Callback): (WebCore::TestObjInternal::overloadedMethod2Callback): (WebCore::TestObjInternal::overloadedMethod3Callback): (WebCore::TestObjInternal::overloadedMethod4Callback): (WebCore::TestObjInternal::overloadedMethodCallback): (WebCore::ConfigureV8TestObjTemplate): (WebCore::V8TestObj::GetRawTemplate): (WebCore::V8TestObj::GetTemplate): (WebCore::V8TestObj::toNative): (WebCore::V8TestObj::HasInstance): (WebCore::V8TestObj::wrap): (WebCore::toV8): (WebCore::V8TestObj::derefObject): * bindings/scripts/test/V8TestObj.h: Renamed from WebCore/bindings/v8/test/V8TestObj.h. 2010-04-26 Adam Barth <abarth@webkit.org> Reviewed by Eric Seidel. Move bindings test directory into the scripts directory https://bugs.webkit.org/show_bug.cgi?id=38161 Change script to point to the new location of these data files. * Scripts/run-bindings-tests: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Jian Li. [chromium] Fix ChromiumDataObject::setURL to not populate its internal URL list with empty URLs. https://bugs.webkit.org/show_bug.cgi?id=38159 No new tests. * platform/chromium/ChromiumDataObject.h: (WebCore::ChromiumDataObject::setURL): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Adam Barth. [chromium] new-run-webkit-tests hangs on Chromium Bots (OS X and Linux) https://bugs.webkit.org/show_bug.cgi?id=37987 Rolled out: http://trac.webkit.org/changeset/58062 http://trac.webkit.org/changeset/58060 http://trac.webkit.org/changeset/58059 http://trac.webkit.org/changeset/58055 http://trac.webkit.org/changeset/58054 and parts of: http://trac.webkit.org/changeset/58050 I also wrote some new comments and a tiny amount of new code to help make ChromiumDriver.run_test easier to read. In order to unit-test my new code, I had to change ChromiumDriver to not automatically start itself when created. That ended up being a lot of plumbing, but is hopefully easier to understand now. There are no tests for the (restored) wdiff code. wdiff does not exist on all systems, so for now we will assume it worked since it is just old code being reverted. * Scripts/webkitpy/layout_tests/driver_test.py: - Use create_driver instead of start_driver, and be sure to call .stop() * Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py: - Use create_driver instead of start_driver * Scripts/webkitpy/layout_tests/port/base.py: - Added a comment to explain that diffs are binary files. - Various patch reverts relating to wdiff - Add Driver._command_wrapper to share code between WebKitDriver and ChromiumDriver. - Made _command_wrapper use shlex.split to get rid of the FIXME. * Scripts/webkitpy/layout_tests/port/base_unittest.py: Added. - test the new _command_wrapper * Scripts/webkitpy/layout_tests/port/chromium.py: - Use _command_wrapper to get rid of a bunch of ugly code. - Make __init__ stop auto-starting. - Rename create_driver to start_driver. - Added _write_command_and_read_line to make it possible to put a FIXME next to read_line() w/o having to put it in two places. - Moved test_shell command building into _test_shell_command and tested it. - Fix comments to say test_shell since ChromiumDriver is test_shell only. * Scripts/webkitpy/layout_tests/port/chromium_unittest.py: Added. - Test the new test_shell_command method. * Scripts/webkitpy/layout_tests/port/dryrun.py: - Rename create_driver to start_driver. * Scripts/webkitpy/layout_tests/port/test.py: - Rename create_driver to start_driver. * Scripts/webkitpy/layout_tests/port/webkit.py: - Rename create_driver to start_driver. - Treat output as binary arrays. * Scripts/webkitpy/layout_tests/test_types/test_type_base.py: - Treat diff files as binary. * Scripts/webkitpy/layout_tests/test_types/text_diff.py: - Treat diff files as binary. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Unreviewed. Mark run-bindings-tests executable so we can execute it. * Scripts/run-bindings-tests: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
yuzo@google.com authored
Unreviewed, Chromium test expectation change. To keep up with the change that turned on HTML5 DB AUTO_VACUUM. https://bugs.webkit.org/show_bug.cgi?id=36251 * platform/chromium-mac/storage/quota-tracking-expected.txt: Removed. * platform/chromium-win/storage/quota-tracking-expected.txt: Removed. * platform/chromium/storage/quota-tracking-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Reviewed by Jian Li. [Chromium] Don't make file paths available in text/uri-list when dragging files. https://bugs.webkit.org/show_bug.cgi?id=25882 Test will be checked in with WebCore/platform/mac fix. * platform/chromium/ClipboardChromium.cpp: (WebCore::ClipboardChromium::getData): (WebCore::ClipboardChromium::types): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
tony@chromium.org authored
Reviewed by David Levin. [chromium] build-webkit --chromium should build release by default https://bugs.webkit.org/show_bug.cgi?id=38028 * Scripts/build-dumprendertree: Also should build release by default * Scripts/build-webkit: Make sure to pass command line args through * Scripts/webkitdirs.pm: Build the right configuration git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
dumi@chromium.org authored
Turning on AUTO_VACUUM has increased the amount of space used by databases. * storage/quota-tracking-expected.txt: * storage/quota-tracking.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs@apple.com authored
Reviewed by Darin Adler. REGRESSION (r57292): 1.5% page load speed regression from visited link information leak fix https://bugs.webkit.org/show_bug.cgi?id=38131 I did a number of separate optimizations which speed up style resolution enough to more than make up for the regression. This measures as a total PLT speedup of somewhere between 1.5% and 3.7%. Optimizations done: - Cache determineLinkState results, to avoid the need to repeatedly compute the visited link hash for the same element. This directly addresses much of the slowdown, since all elements get their style computed twice now. - Added a fast way to get the length of a CSSMutableStyleDeclaration, and use in CSSStyleSelector::matchRulesForList, since it was hot there. - Hoist some loop invariant code that's not detected by the compiler out of the main loop in matchRules...
-
weinig@apple.com authored
Reviewed by Alexey Proskuryakov. * platform/mac/WebCoreObjCExtras.mm: (WebCoreObjCScheduleDeallocateOnMainThread): This can always use isMainThread(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-