- 08 Apr, 2008 1 commit
-
-
aroben@apple.com authored
JavaScriptCore: Move callOnMainThread to WTF Reviewed by Alexey Proskuryakov. * GNUmakefile.am: * JavaScriptCore.pri: * JavaScriptCore.vcproj/WTF/WTF.vcproj: * JavaScriptCore.xcodeproj/project.pbxproj: * JavaScriptCoreSources.bkl: Added new files. * wtf/MainThread.cpp: * wtf/MainThread.h: * wtf/gtk/MainThreadGtk.cpp: * wtf/mac/MainThreadMac.mm: * wtf/qt/MainThreadQt.cpp: * wtf/win/MainThreadWin.cpp: * wtf/wx/MainThreadWx.cpp: Moved here from WebCore/platform. Replaced all instances of "WebCore" with "WTF". * kjs/bool_object.cpp: Touched to force JavaScriptCore.vcproj to build. to the WTF namespace. * wtf/ThreadingWin.cpp: (WTF::initializeThreading): Call initializeMainThread. WebCore: Move callOnMainThread to WTF Reviewed by Alexey Proskuryakov. * GNUmakefile.am: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCoreSources.bkl: Removed MainThread files. * bindings/js/JSCustomSQLTransactionCallback.cpp: * loader/icon/IconDatabase.cpp: (WebCore::iconDatabase): * storage/Database.cpp: (WebCore::Database::Database): * storage/DatabaseTracker.cpp: Updated #includes and replaced calls to WebCore::initializeThreadingAndMainThread with calls to KJS::initializeThreading. * platform/MainThread.cpp: Removed. * platform/MainThread.h: Removed. * platform/gtk/MainThreadGtk.cpp: Removed. * platform/mac/MainThreadMac.mm: Removed. * platform/qt/MainThreadQt.cpp: Removed. * platform/win/MainThreadWin.cpp: Removed. * platform/wx/MainThreadWx.cpp: Removed. WebKit/gtk: Move callOnMainThread to WTF Reviewed by Alexey Proskuryakov. * webkit/webkitprivate.cpp: Updated #include. (webkit_init): Changed to call KJS::initializeThreading. WebKit/win: Move callOnMainThread to WTF Reviewed by Alexey Proskuryakov. * WebIconDatabase.cpp: Updated #include git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 07 Apr, 2008 4 commits
-
-
beidson@apple.com authored
2008-04-07 Brady Eidson <beidson@apple.com> Add "ENABLE_DOM_STORAGE" to keep in sync with the rest of the project * Configurations/JavaScriptCore.xcconfig: WebKit/mac: 2008-04-07 Brady Eidson <beidson@apple.com> Add "ENABLE_DOM_STORAGE" to keep in sync with the rest of the project * Configurations/WebKit.xcconfig: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
* wtf/ThreadingWin.cpp: Back out some changes I didn't mean to land. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31694 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
Reviewed by Alexey Proskuryakov. * wtf/Threading.h: Declare the new function. * wtf/ThreadingGtk.cpp: (WTF::initializeThreading): Initialize the main thread identifier. (WTF::isMainThread): Added. * wtf/ThreadingNone.cpp: Ditto ThreadingGtk.cpp. (WTF::initializeThreading): (WTF::isMainThread): * wtf/ThreadingPthreads.cpp: Ditto. (WTF::initializeThreading): (WTF::isMainThread): * wtf/ThreadingWin.cpp: Ditto. (WTF::initializeThreading): (WTF::isMainThread): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Make UString thread-safe. No change on SunSpider total, although individual tests have changed a lot, up to 3%. * kjs/InitializeThreading.cpp: (KJS::initializeThreading): Call UString::null() to initialize a static. * kjs/identifier.cpp: (KJS::CStringTranslator::translate): (KJS::UCharBufferTranslator::translate): Use "true" for a boolean value instead of 1, because it's C++. * kjs/ustring.h: (KJS::CString::adopt): Added a method to create from a char* buffer without copying. (KJS::UString::Rep::ref): Removed an assertion for JSLock::lockCount, as it's no longer necessary to hold JSLock when working with strings. (KJS::UString::Rep::deref): Ditto. (KJS::UString::Rep::isStatic): Added a field to quickly determine that this is an empty or null static string. * kjs/ustring.cpp: (KJS::): Removed normalStatBufferSize and statBufferSize, as there is no reason to have such an advanced implementation of a debug-only ascii() method. Removed a long-obsolete comment about UChar. (KJS::UString::Rep::createCopying): Removed an assertion for JSLock::lockCount. (KJS::UString::Rep::create): Ditto. (KJS::UString::Rep::destroy): Ditto. Do not do anything for static null and empty strings, as refcounting is not reliable for those. Reordered branches for a noticeable speed gain - apparently this functiton is hot enough for SunSpider to see an effect from this! (KJS::UString::null): Moved a star, added a comment. (KJS::UString::cstring): Reimplemented to not call ascii(), which is not thread-safe. (KJS::UString::ascii): Simplified statBuffer handling logic. (KJS::UString::toDouble): Use cstring() instead of ascii(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 02 Apr, 2008 4 commits
-
-
mrowe@apple.com authored
Reviewed by Oliver Hunt. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
christian@webkit.org authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31575 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Turn off using 64-bit arithmetic on 32-bit hardware, as dtoa own code is faster than compiler-provided emulation. 1% speedup on Acid3 test 26. * kjs/dtoa.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Make MathExtras.h thread safe. * kjs/math_object.cpp: (KJS::mathProtoFuncRandom): If threading is enabled, rely on initializeThreading to call wtf_random_init(). * wtf/Threading.h: * wtf/ThreadingGtk.cpp: (WTF::initializeThreading): * wtf/ThreadingNone.cpp: (WTF::initializeThreading): * wtf/ThreadingPthreads.cpp: (WTF::initializeThreading): * wtf/ThreadingWin.cpp: (WTF::initializeThreading): Call wtf_random_init(); made the function non-inline to avoid having to include too many headers in Threading.h. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 31 Mar, 2008 1 commit
-
-
eric@webkit.org authored
Make matching of regexps using ^ much faster http://bugs.webkit.org/show_bug.cgi?id=18086 * pcre/pcre_compile.cpp: (compileBranch): (branchNeedsLineStart): * pcre/pcre_exec.cpp: (match): (jsRegExpExecute): * pcre/pcre_internal.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 29 Mar, 2008 2 commits
-
-
ap@webkit.org authored
<rdar://problem/5829556> REGRESSION: Leak in KJS::initializeThreading() * kjs/InitializeThreading.cpp: (KJS::initializeThreading): There is no guarantee that initializeThreading() is called only once; check that the mutex hasn't been already allocated. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
<http://bugs.webkit.org/show_bug.cgi?id=17924> <rdar://problem/5806933> Reviewed by Geoff. It turns out this is trivially avoidable if we just match firefox's semantics and ensure that an assignment in a const declaration always writes to the variable object. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 28 Mar, 2008 3 commits
-
-
ap@webkit.org authored
Fix a dtoa thread safety issue. WebCore can call kjs_strtod without holding JS lock, but we didn't have thread safety compiled in for dtoa. This is a 0.5% regression on SunSpider, which Sam Weinig has volunteered to cover with his recent improvement. * kjs/dtoa.cpp: (Bigint::Balloc): (Bigint::Bfree): Changed to use fastMalloc/fastDelete - they are much faster than the dtoa custom version was in the presence of locking (but somewhat slower in single-threaded case). (Bigint::pow5mult): Got rid of the dreaded double-checked locking anti-pattern (had to restructure the code to avoid significant performance implications). (Bigint::lshift): Rewrote to avoid an allocation, if possible. (Bigint::rv_alloc): (Bigint::kjs_freedtoa): (Bigint::kjs_dtoa): Check for USE(MULTIPLE_THREADS), not dtoa legacy MULTIPLE_THREADS. * kjs/InitializeThreading.cpp: Added. (KJS::initializeThreading): * kjs/InitializeThreading.h: Added. Initialize threading at KJS level, if enabled. * kjs/dtoa.h: Expose dtoa mutex for KJS::initializeThreading. * kjs/testkjs.cpp: (kjsmain): Call initializeThreading. * JavaScriptCore.exp: Export KJS::initializeThreading. * GNUmakefile.am: * JavaScriptCore.exp: * JavaScriptCore.pri: * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: * JavaScriptCoreSources.bkl: * JavaScriptCore.xcodeproj/project.pbxproj: Added InitializeThreading.{h,cpp}. * wtf/Threading.h: Removed a using directive for WTF::initializeThreading - it is only to be called from KJS::initializeThreading, and having it in the global namespace is useless. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
2008-03-28 Brady Eidson <beidson@apple.com> Reviewed by Darin Export Unicode/UTF8.h and convertUTF16ToUTF8() for more flexible conversion in WebCore * JavaScriptCore.exp: * JavaScriptCore.xcodeproj/project.pbxproj: WebCore: 2008-03-28 Brady Eidson <beidson@apple.com> Reviewed by Darin Using convertUTF16ToUTF8() from WTF, add a helper function that gives you a UTF8 SharedBuffer created from a String. * ForwardingHeaders/wtf/unicode/UTF8.h: Added. * platform/text/PlatformString.h: * platform/text/String.cpp: (WebCore::utf8Buffer): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mrowe@apple.com authored
Reviewed by Mark Rowe. <rdar://problem/5826236> Regular expressions with large nested repetition counts can have their compiled length calculated incorrectly. * pcre/pcre_compile.cpp: (multiplyWithOverflowCheck): (calculateCompiledPatternLength): Check for overflow when dealing with nested repetition counts and bail with an error rather than returning incorrect results. 2008-03-27 Mark Rowe <mrowe@apple.com> Reviewed by Adam Roben. Tests for <rdar://problem/5826236> Regular expressions with large nested repetition counts can have their compiled length calculated incorrectly. * fast/js/regexp-overflow-expected.txt: * fast/js/resources/regexp-overflow.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 26 Mar, 2008 8 commits
-
-
mrowe@apple.com authored
Rubber-stamped by Brady Eidson. * Configurations/JavaScriptCore.xcconfig: * Configurations/WebCore.xcconfig: * Configurations/WebKit.xcconfig: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
<http://bugs.webkit.org/show_bug.cgi?id=18060> Reviewed by Geoff Garen. Bug fix: * API/JSCallbackObjectFunctions.h: (KJS::JSCallbackObject<Base>::toString): Make the DropAllLocks instance only be in scope while calling convertToType. Test: * API/testapi.c: (MyObject_convertToType): Implement type conversion to string. * API/testapi.js: Add a test for type conversion to string. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
* kjs/array_instance.cpp: Touched this. * wtf/HashFunctions.h: (WTF::intHash): Added 8- and 16-bit versions of intHash. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
JavaScriptCore: Force JSC headers to be copied by touching a file * kjs/array_instance.cpp: (KJS::ArrayInstance::getPropertyNames): WebCore: Turn on SVG animation on Windows Also touched some files to force things to rebuild/regenerate. * WebCore.vcproj/WebCore.vcproj: Added ENABLE_SVG_ANIMATION. * WebCore.vcproj/build-generated-files.sh: Ditto. * bindings/scripts/CodeGenerator.pm: Touched. * config.h: Touched. * svg/svgtags.in: Touched. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
Written with Darin. Added HashTable plumbing to support using wchar_t as a key type. * wtf/HashFunctions.h: * wtf/HashTraits.h: (WTF::): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs@apple.com authored
Reviewed by Darin. - JSC part of fix for "SVG multichar glyph matching matches longest instead of first (affects Acid3 test 79)" http://bugs.webkit.org/show_bug.cgi?id=18118 * wtf/HashFunctions.h: (WTF::): * wtf/HashTraits.h: (WTF::): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Cache C string identifiers by address, not value, assuming that C strings can only be literals. 1% speedup on Acid3 test 26. * kjs/identifier.cpp: (KJS::literalIdentifierTable): (KJS::Identifier::add): Added a new table to cache UString::Reps created from C strings by address. Elements are never removed from this cache, as only predefined identifiers can get there. * kjs/identifier.h: (KJS::Identifier::Identifier): Added a warning. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
An assertion was failing in function-toString-object-literals.html when parsing 1e-500. The condition existed before, and got uncovered by turning compiled-out dtoa checks into ASSERTs. The assertion was verifying that the caller wasn't constructing a Bigint from 0. This might have had some reason behind it originally, but I couldn't find any, and this doesn't look like a reasonable requirement. * kjs/dtoa.cpp: (d2b): Removed the assertion (two copies in different code paths). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 25 Mar, 2008 5 commits
-
-
aroben@apple.com authored
JavaScriptCore: Fix Bug 18077: Integrate testapi.c into the Windows build <http://bugs.webkit.org/show_bug.cgi?id=18077> Reviewed by Steve Falkenburg. * JavaScriptCore.vcproj/testapi/testapi.vcproj: Added. WebCore: Add an UnusedParam.h forwarding header for use by testapi Reviewed by Steve Falkenburg. * ForwardingHeaders/wtf/UnusedParam.h: Added. WebKit/win: Fix Bug 18077: Integrate testapi.c into the Windows build <http://bugs.webkit.org/show_bug.cgi?id=18077> Reviewed by Steve Falkenburg. * WebKit.vcproj/WebKit.sln: Added testapi.vcproj to the solution. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
Currently you must compile testapi.c as C++ code since MSVC does not support many C features that GCC does. Reviewed by Steve Falkenburg. * API/testapi.c: (nan): Added an implementation of this for MSVC. (assertEqualsAsUTF8String): Use malloc instead of dynamically-sized stack arrays. (assertEqualsAsCharactersPtr): Ditto. (print_callAsFunction): Ditto. (main): Ditto, and explicitly cast from UniChar* to JSChar*. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
We can't remove the os-win32 directory yet because other ports (at least wx) are still relying on it. Reviewed by Steve Falkenburg. * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: - Made all the include paths match the one for the Debug configuration (these got out of sync in r30797) - Removed os-win32 from the include path - Removed os-win32 from the directories we copy to $WebKitOutputDir. - Removed stdint.h from the project * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.make: Delete the files that we may have previously copied from the os-win32 directory. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
* kjs/dtoa.cpp: Include stdint.h. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Cleanup dtoa.cpp style. * kjs/dtoa.cpp: (Bigint::Balloc): (Bigint::Bfree): (Bigint::multadd): (Bigint::s2b): (Bigint::hi0bits): (Bigint::lo0bits): (Bigint::i2b): (Bigint::mult): (Bigint::pow5mult): (Bigint::lshift): (Bigint::cmp): (Bigint::diff): (Bigint::ulp): (Bigint::b2d): (Bigint::d2b): (Bigint::ratio): (Bigint::): (Bigint::match): (Bigint::hexnan): (Bigint::kjs_strtod): (Bigint::quorem): (Bigint::rv_alloc): (Bigint::nrv_alloc): (Bigint::kjs_freedtoa): (Bigint::kjs_dtoa): * kjs/dtoa.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 24 Mar, 2008 2 commits
-
-
darin@apple.com authored
Reviewed by Sam. - convert a JavaScript immediate number to a string more efficiently 2% speedup of Acid3 test 26 * kjs/JSImmediate.cpp: (KJS::JSImmediate::toString): Take advantage of the fact that all immediate numbers are integers, and use the faster UString function for formatting integers instead of the slower one that works for floating point. I think this is a leftover from when immediate numbers were floating point. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
2008-03-23 Sam Weinig <sam@webkit.org> Reviewed by Darin Adler. Fix http://bugs.webkit.org/show_bug.cgi?id=18048 The "thisObject" parameter to JSEvaluateScript is not used properly Making passing a thisObject to JSEvaluateScript actually set the thisObject of the created ExecState. * API/testapi.c: (main): Add tests for setting the thisObject when calling JSEvaluateScript. * kjs/ExecState.cpp: (KJS::ExecState::ExecState): Assign the thisObject to m_thisValue and remove the comment. WebCore: 2008-03-24 Sam Weinig <sam@webkit.org> Reviewed by Darin Adler. Fix http://bugs.webkit.org/show_bug.cgi?id=18048 The "thisObject" parameter to JSEvaluateScript is not used properly * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::evaluate): No need to pass a thisObject since we want the global object to be used. * bridge/jni/jni_jsobject.mm: (JavaJSObject::eval): To avoid any change to this function, don't pass a thisObject to keep the same behavior. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 22 Mar, 2008 2 commits
-
-
eric@webkit.org authored
* dom/xhtml/level3/core/documentgetdoctype01-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric@webkit.org authored
Make testkjs flush stdout after printing. * JavaScriptCore.xcodeproj/project.pbxproj: * kjs/testkjs.cpp: (functionPrint): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 Mar, 2008 5 commits
-
-
oliver@apple.com authored
Reviewed by Maciej Added a method to JSVariableObject to allow us to inject DontDelete properties into the symbol table and localStorage. This results in a 0.4% progression in SunSpider, with a 8% gain in math-partial-sums. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
Reviewed by Geoff Garen The problem was caused by JSObject::getPropertyAttributes not being aware of the JSVariableObject SymbolTable. The fix is to make getPropertyAttributes virtual and override in JSVariableObject. This does not produce any performance regression. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31225 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ddkilzer@apple.com authored
Webkit does not build on linux powerpc <http://bugs.webkit.org/show_bug.cgi?id=17019> Reviewed by David Kilzer. * wtf/TCSpinLock.h: (TCMalloc_SpinLock::Unlock): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31216 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
zecke@webkit.org authored
2008-03-21 Rodney Dawes <dobey@wayofthemonkey.com> Reviewed by Holger. http://bugs.webkit.org/show_bug.cgi?id=17981 Add javascriptcore_cppflags to Programs_minidom_CPPFLAGS. * GNUmakefile.am: WebCore/ChaneLog: 2008-03-21 Rodney Dawes <dobey@wayofthemonkey.com> Reviewed by Holger. http://bugs.webkit.org/show_bug.cgi?id=17981 Remove WebCore/ForwardingHeaders from cppflags as it is not needed, and causes build problems with GTK+. * GNUmakefile.am: WebKitTools/ChangeLog: 2008-03-21 Rodney Dawes <dobey@wayofthemonkey.com> Reviewed by Holger. http://bugs.webkit.org/show_bug.cgi?id=17981 Add webcore and javascriptcore cppflags to programs' _CPPFLAGS. * GNUmakefile.am: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Consolidate static identifier initializers within CommonIdentifiers. No reliably measurable change on SunSpider; maybe a tiny improvement (within 0.2%). * kjs/CommonIdentifiers.h: Added static identifiers that were lazily initialized throughout the code. * kjs/date_object.cpp: (KJS::DateObjectImp::DateObjectImp): * kjs/function_object.cpp: (KJS::FunctionPrototype::FunctionPrototype): * kjs/object_object.cpp: (KJS::ObjectPrototype::ObjectPrototype): * kjs/regexp_object.cpp: (KJS::RegExpPrototype::RegExpPrototype): Use the values from CommonIdentifiers. * kjs/lookup.h: Caching the identifier in a static wasn't a win on SunSpider, removed it. * kjs/value.h: (KJS::jsNaN): We already have a shared NaN value, no need for a duplicate here. * wtf/MathExtras.h: (wtf_atan2): Having local variables for numeric_limits constants is good for readability, but there is no reason to keep them static. * JavaScriptCore.exp: Don't needlessly export JSGlobalObject::s_head. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Mar, 2008 3 commits
-
-
oliver@apple.com authored
Reviewed by Maciej To avoid any extra branches when managing an inline ScopeChainNode in the ScopeChain the inline node gets inserted with a refcount of 2. This meant than when the ScopeChain was destroyed the ScopeChainNodes above the inline node would be leaked. We resolve this by manually popping the inline node in the FunctionExecState destructor. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31205 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mrowe@apple.com authored
Ensure that the defines in FEATURE_DEFINES are sorted so that they will match the default settings of build-webkit. This will prevent the world from being rebuilt if you happen to switch between building in Xcode and with build-webkit on the command-line. Reviewed by Sam Weinig. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ddkilzer@apple.com authored
Reviewed by David Kilzer. Fix http://bugs.webkit.org/show_bug.cgi?id=17923 Bug 17923: ARM platform endian defines inaccurate * wtf/Platform.h: Replaced !defined(__ARMEL__) check with !defined(__VFP_FP__) for PLATFORM(MIDDLE_ENDIAN) git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-