Show
Ignore:
Timestamp:
08/01/08 14:47:24 (5 months ago)
Author:
sroret
Message:

merge with webkit revision 35510

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/JavaScriptCore/ChangeLog

    r424 r427  
     12008-08-01  Kevin Ollivier <kevino@theolliviers.com> 
     2 
     3        Second attempt at Windows/wx build fix. Instead of avoiding inclusion of windows.h, 
     4        use defines, etc. to avoid conflicts in each affected file. Also, change PLATFORM(WIN) 
     5        to PLATFORM(WIN_OS) so that other ports using Windows headers get the right impls. 
     6 
     7        * VM/SamplingTool.cpp: 
     8        * wtf/Threading.h: 
     9 
     102008-07-31  Anders Carlsson  <andersca@apple.com> 
     11 
     12        Reviewed by Adam. 
     13 
     14        Fix Windows build. 
     15         
     16        * kjs/collector.h: 
     17        * wtf/FastMalloc.cpp: 
     18 
     192008-07-31  Csaba Osztrogonac  <oszi@inf.u-szeged.hu> 
     20 
     21        Reviewed by Simon. 
     22 
     23        Bug 20170: [Qt] missing namespace defines in JavaScriptCore.pro 
     24        <https://bugs.webkit.org/show_bug.cgi?id=20170> 
     25 
     26        * JavaScriptCore.pro: Added missing define. 
     27 
     282008-07-31  Alexey Proskuryakov  <ap@webkit.org> 
     29 
     30        Rubber-stamped by Maciej. 
     31 
     32        Eliminate JSLock (it was already disabled, removing the stub implementaion and all 
     33        call sites now). 
     34 
     35        * API/JSBase.cpp: 
     36        (JSEvaluateScript): 
     37        (JSCheckScriptSyntax): 
     38        (JSGarbageCollect): 
     39        * API/JSCallbackConstructor.cpp: 
     40        (KJS::constructJSCallback): 
     41        * API/JSCallbackFunction.cpp: 
     42        (KJS::JSCallbackFunction::call): 
     43        * API/JSCallbackObjectFunctions.h: 
     44        (KJS::::init): 
     45        (KJS::::getOwnPropertySlot): 
     46        (KJS::::put): 
     47        (KJS::::deleteProperty): 
     48        (KJS::::construct): 
     49        (KJS::::hasInstance): 
     50        (KJS::::call): 
     51        (KJS::::getPropertyNames): 
     52        (KJS::::toNumber): 
     53        (KJS::::toString): 
     54        (KJS::::staticValueGetter): 
     55        (KJS::::callbackGetter): 
     56        * API/JSContextRef.cpp: 
     57        (JSGlobalContextCreateInGroup): 
     58        (JSGlobalContextRetain): 
     59        (JSGlobalContextRelease): 
     60        * API/JSObjectRef.cpp: 
     61        (JSObjectMake): 
     62        (JSObjectMakeFunctionWithCallback): 
     63        (JSObjectMakeConstructor): 
     64        (JSObjectMakeFunction): 
     65        (JSObjectHasProperty): 
     66        (JSObjectGetProperty): 
     67        (JSObjectSetProperty): 
     68        (JSObjectGetPropertyAtIndex): 
     69        (JSObjectSetPropertyAtIndex): 
     70        (JSObjectDeleteProperty): 
     71        (JSObjectCallAsFunction): 
     72        (JSObjectCallAsConstructor): 
     73        (JSObjectCopyPropertyNames): 
     74        (JSPropertyNameArrayRelease): 
     75        (JSPropertyNameAccumulatorAddName): 
     76        * API/JSStringRef.cpp: 
     77        (JSStringRelease): 
     78        * API/JSValueRef.cpp: 
     79        (JSValueIsEqual): 
     80        (JSValueIsInstanceOfConstructor): 
     81        (JSValueMakeNumber): 
     82        (JSValueMakeString): 
     83        (JSValueToNumber): 
     84        (JSValueToStringCopy): 
     85        (JSValueToObject): 
     86        (JSValueProtect): 
     87        (JSValueUnprotect): 
     88        * ForwardingHeaders/JavaScriptCore/JSLock.h: Removed. 
     89        * GNUmakefile.am: 
     90        * JavaScriptCore.exp: 
     91        * JavaScriptCore.order: 
     92        * JavaScriptCore.pri: 
     93        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: 
     94        * JavaScriptCore.xcodeproj/project.pbxproj: 
     95        * JavaScriptCoreSources.bkl: 
     96        * kjs/AllInOneFile.cpp: 
     97        * kjs/JSGlobalData.cpp: 
     98        (KJS::JSGlobalData::JSGlobalData): 
     99        * kjs/JSGlobalData.h: 
     100        * kjs/JSGlobalObject.cpp: 
     101        (KJS::JSGlobalObject::~JSGlobalObject): 
     102        (KJS::JSGlobalObject::init): 
     103        * kjs/JSLock.cpp: Removed. 
     104        * kjs/JSLock.h: Removed. 
     105        * kjs/Shell.cpp: 
     106        (functionGC): 
     107        (jscmain): 
     108        * kjs/collector.cpp: 
     109        (KJS::Heap::~Heap): 
     110        (KJS::Heap::heapAllocate): 
     111        (KJS::Heap::setGCProtectNeedsLocking): 
     112        (KJS::Heap::protect): 
     113        (KJS::Heap::unprotect): 
     114        (KJS::Heap::collect): 
     115        * kjs/identifier.cpp: 
     116        * kjs/interpreter.cpp: 
     117        (KJS::Interpreter::checkSyntax): 
     118        (KJS::Interpreter::evaluate): 
     119 
     1202008-07-31  Alexey Proskuryakov  <ap@webkit.org> 
     121 
     122        Rubber-stamped by Oliver Hunt. 
     123 
     124        Fix the Mac project to not display "test/" as part of file name for tests. 
     125 
     126        * JavaScriptCore.xcodeproj/project.pbxproj: 
     127 
     1282008-07-31  Eric Seidel  <eric@webkit.org> 
     129 
     130        Reviewed by Alexey Proskuryakov. 
     131         
     132        Rename USE(MULTIPLE_THREADS) to ENABLE(JSC_MULTIPLE_THREADS) 
     133        to better match the use/enable pattern (and better describe 
     134        the usage of the feature in question.) 
     135         
     136        I also fixed a couple other ENABLE_ macros to be pre-processor 
     137        definition override-able to match the rest of the ENABLE_ macros 
     138        since it seems to be our convention that build systems can set 
     139        ENABLE_ macros in Makefiles. 
     140 
     141        * kjs/InitializeThreading.cpp: 
     142        (KJS::initializeThreadingOnce): 
     143        * kjs/JSGlobalData.cpp: 
     144        (KJS::JSGlobalData::JSGlobalData): 
     145        (KJS::JSGlobalData::~JSGlobalData): 
     146        * kjs/MathObject.cpp: 
     147        * kjs/collector.cpp: 
     148        (KJS::Heap::Heap): 
     149        (KJS::Heap::~Heap): 
     150        (KJS::allocateBlock): 
     151        (KJS::Heap::markStackObjectsConservatively): 
     152        * kjs/collector.h: 
     153        * kjs/dtoa.cpp: 
     154        (KJS::pow5mult): 
     155        (KJS::rv_alloc): 
     156        (KJS::freedtoa): 
     157        (KJS::dtoa): 
     158        * wtf/FastMalloc.cpp: 
     159        * wtf/Platform.h: 
     160        * wtf/RefCountedLeakCounter.cpp: 
     161 
     1622008-07-30  Eric Seidel  <eric@webkit.org> 
     163 
     164        Reviewed by Mark Rowe. 
     165         
     166        Try to clean up our usage of USE(MULTIPLE_THREADS) vs. USE(PTHREADS) a little. 
     167        It looks like JSC assumes that if MULTIPLE_THREADS is defined, then pthreads will always be available 
     168        I'm not sure that's always the case for gtk, certainly not for Windows.  We should eventually go back 
     169        and fix wtf/Threading.h to cover all these cases some day. 
     170 
     171        * kjs/JSLock.cpp: 
     172        * kjs/collector.h: 
     173        * wtf/Platform.h: 
     174 
     1752008-07-30  Eric Seidel  <eric@webkit.org> 
     176 
     177        Reviewed by Oliver. 
     178         
     179        MSVC warns when structs are called classes or vice versa. 
     180        Make all the source refer to JSGlobalData as a class. 
     181 
     182        * kjs/CommonIdentifiers.h: 
     183        * kjs/JSGlobalData.h: 
     184        * kjs/Parser.h: 
     185        * kjs/lexer.h: 
     186 
     1872008-07-30  Alexey Proskuryakov  <ap@webkit.org> 
     188 
     189        Reviewed by Geoff Garen. 
     190 
     191        Add consistency checks to UString to document and enforce its design. 
     192 
     193        * kjs/ustring.cpp: 
     194        (KJS::UString::Rep::create): 
     195        (KJS::UString::Rep::destroy): 
     196        (KJS::UString::Rep::checkConsistency): 
     197        (KJS::UString::expandCapacity): 
     198        (KJS::UString::expandPreCapacity): 
     199        (KJS::UString::UString): 
     200        (KJS::UString::spliceSubstringsWithSeparators): 
     201        (KJS::UString::append): 
     202        * kjs/ustring.h: 
     203        (KJS::UString::Rep::checkConsistency): 
     204 
     2052008-07-30  Gavin Barraclough  <barraclough@apple.com> 
     206 
     207        Reviewed by Geoff Garen. 
     208 
     209        Fixes for Windows and non-AllInOne file build with SamplingTool, plus review fixes. 
     210 
     211        * GNUmakefile.am:              Adding SamplingTool.cpp to build. 
     212        * JavaScriptCore.exp:          Export hooks to init & control SamplingTool. 
     213        * JavaScriptCore.pri:          Adding SamplingTool.cpp to build. 
     214        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Adding SamplingTool.cpp to build. 
     215        * JavaScriptCore.xcodeproj/project.pbxproj: Adding SamplingTool.cpp to build. 
     216        * JavaScriptCoreSources.bkl:   Adding SamplingTool.cpp to build. 
     217        * VM/Machine.cpp:              MACHINE_SAMPLING_callingNativeFunction renamed MACHINE_SAMPLING_callingHostFunction 
     218        * VM/Machine.h: 
     219        * VM/Opcode.cpp:               SamplingTool moved to SamplingTool.cpp/.h, opcodeNames generated from FOR_EACH_OPCODE_ID. 
     220        * VM/Opcode.h: 
     221        * VM/SamplingTool.cpp:         Added .cpp/.h for SamplingTool. 
     222        * VM/SamplingTool.h: 
     223        * kjs/Shell.cpp:               Switched SAMPLING_TOOL_ENABLED to ENABLE_SAMPLING_TOOL. 
     224        * wtf/Platform.h:              Added ENABLE_SAMPLING_TOOL config option. 
     225        * kjs/nodes.cpp:               Header include to fix non-AllInOne builds. 
     226 
     2272008-07-30  Ariya Hidayat  <ariya.hidayat@trolltech.com> 
     228 
     229        Reviewed by Alexey Proskuryakov. 
     230 
     231        Fix compilation without multi-threading support. 
     232 
     233        * kjs/collector.cpp: 
     234        (KJS::Heap::Heap): 
     235 
     2362008-07-30  Anders Carlsson  <andersca@apple.com> 
     237         
     238        Add WebKitAvailability.h forwarding header. 
     239         
     240        * ForwardingHeaders/JavaScriptCore/WebKitAvailability.h: Added. 
     241 
     2422008-07-30  Anders Carlsson  <andersca@apple.com> 
     243 
     244        Fix the else. 
     245         
     246        * API/WebKitAvailability.h: 
     247 
     2482008-07-30  Anders Carlsson  <andersca@apple.com> 
     249 
     250        * API/WebKitAvailability.h: 
     251        Fix Windows (and other non-Mac builds). 
     252         
     253        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: 
     254        Add WebKitAvailability.h to the project. 
     255 
     2562008-07-30  Anders Carlsson  <andersca@apple.com> 
     257 
     258        One step closer towards fixing the Windows build. 
     259         
     260        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.make: 
     261        Make sure to copy WebKitAvailability.h 
     262 
     2632008-07-29  Gavin Barraclough  <barraclough@apple.com> 
     264 
     265        Reviewed by Geoff Garen. 
     266 
     267        Bug 20209: Atomize constant strings 
     268        <https://bugs.webkit.org/show_bug.cgi?id=20209> 
     269 
     270        Prevents significant performance degradation seen when a script contains multiple 
     271        identical strings that are used as keys to identify properties on objects. 
     272 
     273        No performance change on SunSpider. 
     274 
     275        * kjs/nodes.cpp: Atomize constant strings. 
     276 
    12772008-07-30  Oliver Hunt  <oliver@apple.com> 
    2278