Fixed ChangeLog comments.
[WebKit-https.git] / JavaScriptGlue / ChangeLog
1 2006-05-09  Maciej Stachowiak  <mjs@apple.com>
2
3         Rubber stamped by Anders.
4         
5         - renamed kxmlcore to wtf
6         
7         kxmlcore --> wtf
8         KXMLCore --> WTF
9         KXC --> WTF
10
11         * config.h:
12         * kxmlcore: Removed.
13         * kxmlcore/AlwaysInline.h: Removed.
14         * kxmlcore/Assertions.h: Removed.
15         * kxmlcore/FastMalloc.h: Removed.
16         * kxmlcore/Forward.h: Removed.
17         * kxmlcore/HashCountedSet.h: Removed.
18         * kxmlcore/HashSet.h: Removed.
19         * kxmlcore/Noncopyable.h: Removed.
20         * kxmlcore/OwnArrayPtr.h: Removed.
21         * kxmlcore/OwnPtr.h: Removed.
22         * kxmlcore/PassRefPtr.h: Removed.
23         * kxmlcore/Platform.h: Removed.
24         * kxmlcore/RefPtr.h: Removed.
25         * kxmlcore/Vector.h: Removed.
26         * wtf: Added.
27
28 2006-04-11  Darin Adler  <darin@apple.com>
29
30         - try to fix Windows build
31
32         * kxmlcore/HashForward.h: Removed.
33
34 2006-04-10  Darin Adler  <darin@apple.com>
35
36         Rubber-stamped by John Sullivan.
37
38         - added forwarding headers for the new Forward.h and HashForward.h files
39
40         * kxmlcore/Forward.h: Added.
41         * kxmlcore/HashForward.h: Added.
42
43 2006-04-04  Timothy Hatcher  <timothy@apple.com>
44
45         Reviewed by Darin.
46
47         The Debug and Release frameworks are now built with install paths relative to the build products directory.
48         This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore. 
49
50         * JavaScriptGlue.xcodeproj/project.pbxproj:
51
52 2006-04-02  Eric Seidel  <eseidel@apple.com>
53
54         Reviewed by andersca.
55
56         Add missing forwarding header.
57
58         * kxmlcore/Vector.h: Added.
59
60 2006-03-31  Geoffrey Garen  <ggaren@apple.com>
61
62         Reviewed by Darin.
63
64         - Fixed <rdar://problem/4430836> JavaScript patch crashing Quartz
65         Composer
66
67         JSValueWrappers used to hold on to the ExecState that pertained at
68         the time of their creation. Since ExecStates are transient, that
69         design was totally bogus, and it would crash once the ExecState had
70         been deallocated.
71
72         Unfortunately, there's no clean solution to this problem, since
73         the JSGlue API has no notion of state. The solution here is to use
74         a shared, global ExecState for the purpose of JSGlue calls. Given
75         the pre-existing limitations in the JSGlue API, this design
76         shouldn't actually introduce any new limitations (see comments in
77         JSValueWrapper.cpp).
78
79         I tested with Quartz Composer and PAC files, neither of which are
80         layout-testable.
81         
82         * JSUtils.cpp:
83         (KJSValueToJSObject):
84         * JSValueWrapper.cpp:
85         (JSValueWrapper::JSValueWrapper):
86         (JSValueWrapper::GetValue):
87         (getProcessGlobalExecState):
88         (JSValueWrapper::JSObjectCopyPropertyNames):
89         (JSValueWrapper::JSObjectCopyProperty):
90         (JSValueWrapper::JSObjectSetProperty):
91         (JSValueWrapper::JSObjectCallFunction):
92         (JSValueWrapper::JSObjectCopyCFValue):
93         * JSValueWrapper.h:
94
95         Also added a test harness file. It was helpful while I was testing,
96         and may come in handy in the future:
97         
98         * JavaScriptGlue.xcodeproj/project.pbxproj:
99         testjsglue.cpp: Added.
100
101 2006-03-28  Darin Adler  <darin@apple.com>
102
103         Reviewed by Geoff.
104
105         - added a build step that checks for init routines
106
107         * JavaScriptGlue.xcodeproj/project.pbxproj: Added a custom build phase that invokes the
108         check-for-global-initializers script.
109
110 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
111
112         Not reviewed, but I noticed these trivial extra changes were needed to avoid
113         breaking the build with my reviewed patch for:
114         
115         http://bugzilla.opendarwin.org/show_bug.cgi?id=7387
116         
117         Add config.h, includes of it, and Platform.h forwarding header.
118
119         * JSBase.cpp:
120         * JSObject.cpp:
121         * JSRun.cpp:
122         * JSUtils.cpp:
123         * JSValueWrapper.cpp:
124         * JavaScriptGlue.cpp:
125         * UserObjectImp.cpp:
126         * config.h: Added.
127         * kxmlcore/Platform.h: Added.
128
129 === JavaScriptGlue-521.7 ===
130
131 2006-02-10  Geoffrey Garen  <ggaren@apple.com>
132
133         Reviewed by eric.
134
135         - Fixed build.
136
137         * UserObjectImp.cpp:
138         (UserObjectImp::toPrimitive):
139         * UserObjectImp.h:
140
141 2006-02-03  Timothy Hatcher  <timothy@apple.com>
142
143         Reviewed by Justin.
144
145         Renamed configuration names to Debug, Release and Production.
146
147         * JavaScriptGlue.xcodeproj/project.pbxproj:
148
149 2006-02-01  Darin Adler  <darin@apple.com>
150
151         - added some forwarding headers to make new JavaScriptCore changes work
152
153         * kxmlcore/Assertions.h: Added.
154         * kxmlcore/Noncopyable.h: Added.
155         * kxmlcore/OwnPtr.h: Added.
156         * kxmlcore/OwnArrayPtr.h: Added.
157
158 2006-01-16  Timothy Hatcher  <timothy@apple.com>
159
160         Adding the license header to all files so we can
161         move JavaScriptGlue into the open source repository.
162
163         * LICENSE: Added.
164         * JSBase.cpp: license header added.
165         * JSBase.h: ditto.
166         * JSObject.cpp: ditto.
167         * JSObject.h: ditto.
168         * JSRun.cpp: ditto.
169         * JSRun.h: ditto.
170         * JSUtils.cpp: ditto.
171         * JSUtils.h: ditto.
172         * JSValueWrapper.cpp: ditto.
173         * JSValueWrapper.h: ditto.
174         * JavaScriptGlue.cpp: ditto.
175         * JavaScriptGlue.h: ditto.
176         * UserObjectImp.cpp: ditto.
177         * UserObjectImp.h: ditto.
178
179 2005-12-21  Timothy Hatcher  <timothy@apple.com>
180
181         * JavaScriptGlue.xcodeproj/project.pbxproj:
182           Set tab width to 8, indent width to 4 and uses tabs to false per file.
183
184 2005-12-19  Darin Adler  <darin@apple.com>
185
186         Reviewed by Geoff Garen and Eric Seidel.
187
188         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4923
189           stop using <ostream> in WebCore, eliminating the <cmath> troubles it causes
190
191         * kxmlcore/AlwaysInline.h: Added.
192
193 2005-12-15  Darin Adler  <darin@apple.com>
194
195         Reviewed by Maciej.
196
197         * JSRun.cpp: (JSRun::Evaluate): Updated for change to Interpreter::evaluate.
198
199 2005-12-15  Darin Adler  <darin@apple.com>
200
201         Reviewed by Tim Hatcher.
202
203         * JavaScriptGlue.xcodeproj/project.pbxproj: Removed some redundant build
204         settings, turned off prebinding explicitly for our Development and
205         Deployment builds, remove .exp file from sources. All "clean-up".
206
207 === Safari-521~5 ===
208
209 2005-12-13  Geoffrey Garen  <ggaren@apple.com>
210
211     - Fixed build after Anders's last checkin to JavaScriptCore.
212     
213         Reviewed by darin.
214
215         * UserObjectImp.cpp:
216         (UserObjectImp::userObjectGetter): Updated to reflect new argument that 
217     getters take (unused here).
218         * UserObjectImp.h:
219
220 2005-12-13  Maciej Stachowiak  <mjs@apple.com>
221
222         Reviewed by Eric.
223
224     - added forwarding header for HashCountedSet
225
226         * kxmlcore/HashCountedSet.h: Added.
227
228 2005-12-10  Darin Adler  <darin@apple.com>
229
230         Rubber stamped by Maciej.
231
232         - updated for KJS class renaming
233
234         * many files and functions
235
236 2005-12-10  Darin Adler  <darin@apple.com>
237
238         Reviewed by Maciej.
239
240         - eliminated the old Undefined(), Null(), Boolean(), Number(), and String()
241
242         Code now uses jsUndefined(), jsNull(), jsBoolean(), jsNumber(), and jsString().
243
244         * JSUtils.cpp:
245         (JSObjectKJSValue):
246         * UserObjectImp.cpp:
247         (UserObjectImp::callAsFunction):
248         (UserObjectImp::toPrimitive):
249
250 2005-12-05  Maciej Stachowiak  <mjs@apple.com>
251
252         - added new forwarding headers
253
254         * kxmlcore/PassRefPtr.h: Added.
255         * kxmlcore/RefPtr.h: Added.
256
257 2005-12-05  Maciej Stachowiak  <mjs@apple.com>
258
259         * kxmlcore/PassRefPtr.h: Added.
260
261 2005-11-26  Maciej Stachowiak  <mjs@apple.com>
262
263         Rubber stamped by Eric.
264
265     - renamed InterpreterLock to JSLock
266
267         * JSUtils.cpp:
268         (CFStringToUString):
269         (JSObjectKJSValue):
270         (KJSValueToCFTypeInternal):
271         * JSValueWrapper.cpp:
272         (JSValueWrapper::JSObjectCopyPropertyNames):
273         (JSValueWrapper::JSObjectCopyProperty):
274         (JSValueWrapper::JSObjectSetProperty):
275         (JSValueWrapper::JSObjectCallFunction):
276         (JSValueWrapper::JSObjectCopyCFValue):
277         * JavaScriptGlue.cpp:
278         (JSRunCreate):
279         (JSCollect):
280         (JSLockInterpreter):
281         (JSUnlockInterpreter):
282         * UserObjectImp.cpp:
283         (UserObjectImp::callAsFunction):
284
285 2005-11-16  Maciej Stachowiak  <mjs@apple.com>
286
287         Reviewed by Geoff.
288
289     Updated to use new API to drop all locks.
290
291         * JavaScriptGlue.cpp:
292         (JSLockInterpreter):
293         (JSUnlockInterpreter):
294         * UserObjectImp.cpp:
295         (UserObjectImp::callAsFunction):
296
297 2005-11-14  Geoffrey Garen  <ggaren@apple.com>
298
299         Reviewed by mjs.
300
301         - Part of the fix for <rdar://problem/4342216> Installer crash in 
302           KJS::ValueImp::marked() when garbage collector runs inside call to 
303           ConstantValues::init()
304           
305         Added locking in JSRunCreate, since JSRun::JSRun constructs an object.
306         
307         * JavaScriptGlue.cpp:
308         (JSRunCreate):
309
310 2005-11-10  Geoffrey Garen  <ggaren@apple.com>
311
312         Reviewed by Maciej.
313
314         - Fixed <rdar://problem/4334445> installer crashed on my 
315           dual g4 450Mhz after clicking language
316
317         - Reversed backwards NULL check.
318         - Inserted guards against NULL fJSUserObject data member.
319         - Cleaned up some style.
320
321         * JSUtils.cpp:
322         (KJSValueToCFTypeInternal):
323         * UserObjectImp.cpp:
324         (UserObjectImp::~UserObjectImp):
325         (UserObjectImp::callAsFunction):
326         (UserObjectImp::userObjectGetter):
327         (UserObjectImp::getOwnPropertySlot):
328         (UserObjectImp::put):
329         (UserObjectImp::mark):
330
331 2005-11-04  Timothy Hatcher  <timothy@apple.com>
332
333         Reviewed by Darin.
334
335         * JavaScriptGlue.xcodeproj/project.pbxproj:
336           Fixed the FRAMEWORK_SEARCH_PATHS to look in the WebKit
337           Frameworks for the Default config.
338
339 2005-11-03  Timothy Hatcher  <timothy@apple.com>
340
341         Reviewed by Darin and Vicki.
342
343         * JavaScriptGlue.xcodeproj/project.pbxproj:
344           Change to use $(SYSTEM_LIBRARY_DIR) consistently and place
345           $(NEXT_ROOT) in a few spots to make build-root work.
346
347 2005-11-01  Maciej Stachowiak  <mjs@apple.com>
348
349     Reviewed by: Eric.
350     
351         <rdar://problem/4324107> get JavaScriptGlue working with TOT JavaScriptCore again
352
353     - reverted all this stuff to use ReferenceList instead of IdentifierSequencedSet
354
355         * JSUtils.cpp:
356         (KJSValueToCFTypeInternal):
357         * JSValueWrapper.cpp:
358         (JSValueWrapper::JSObjectCopyPropertyNames):
359         * UserObjectImp.cpp:
360         (UserObjectImp::propList):
361         * UserObjectImp.h:
362
363 2005-10-11  Timothy Hatcher  <timothy@apple.com>
364
365         Setup the proper Framework search path for the Default config.
366         Prepping for a TOT submission and build by B&I.
367
368         * JavaScriptGlue.xcodeproj/project.pbxproj:
369
370 2005-10-10  Darin Adler  <darin@apple.com>
371
372         Reviewed by Eric.
373
374         - converted tabs to spaces, NULL to 0, added some (void), got rid of __ prefixes
375           in headers (reserved for compiler/library)
376
377         * Info.plist:
378         * JSBase.cpp:
379         * JSBase.h:
380         * JSObject.cpp:
381         * JSObject.h:
382         * JSRun.cpp:
383         * JSRun.h:
384         * JSUtils.cpp:
385         * JSUtils.h:
386         * JSValueWrapper.cpp:
387         * JSValueWrapper.h:
388         * JavaScriptGlue.cpp:
389         * JavaScriptGlue.h:
390         * UserObjectImp.cpp:
391         * UserObjectImp.h:
392
393 2005-10-10  Darin Adler  <darin@apple.com>
394
395         * .cvsignore: Added. Ignore Makefile.in and Makefile.
396
397 2005-10-07  Timothy Hatcher  <timothy@apple.com>
398
399         Reviewed by Maciej.
400         
401         Build fix, needed to disable RTTI. Upgraded to a native target.
402
403         * JavaScriptGlue.xcodeproj/project.pbxproj:
404         * Info.plist
405
406 2005-10-05  Maciej Stachowiak  <mjs@apple.com>
407
408         Reviewed by Eric and Darin.
409
410     <rdar://problem/4260506> Port JavaScriptGlue to TOT JavaScriptCore
411
412         * JSRun.cpp:
413         (JSRun::JSRun):
414         (JSRun::GlobalObject):
415         * JSRun.h:
416         (JSInterpreter::JSInterpreter):
417         * JSUtils.cpp:
418         (KJSValueToJSObject):
419         (JSObjectKJSValue):
420         (KJSValueToCFTypeInternal):
421         (KJSValueToCFType):
422         * JSUtils.h:
423         * JSValueWrapper.cpp:
424         (JSValueWrapper::JSValueWrapper):
425         (JSValueWrapper::GetValue):
426         (JSValueWrapper::JSObjectCopyPropertyNames):
427         (JSValueWrapper::JSObjectCopyProperty):
428         (JSValueWrapper::JSObjectSetProperty):
429         (JSValueWrapper::JSObjectCallFunction):
430         (JSValueWrapper::JSObjectMark):
431         * JSValueWrapper.h:
432         * JavaScriptGlue.cpp:
433         (JSRunCopyGlobalObject):
434         * JavaScriptGlue.xcodeproj/project.pbxproj:
435         * Makefile.am: Added.
436         * UserObjectImp.cpp:
437         (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
438         (UserObjectImp::UserObjectImp):
439         (UserObjectImp::callAsFunction):
440         (UserObjectImp::getPropertyNames):
441         (UserObjectImp::userObjectGetter):
442         (UserObjectImp::getOwnPropertySlot):
443         (UserObjectImp::put):
444         (UserObjectImp::toPrimitive):
445         (UserObjectImp::mark):
446         * UserObjectImp.h:
447         * kxmlcore/FastMalloc.h: Added.
448         * kxmlcore/HashSet.h: Added.
449
450 2005-09-14  Maciej Stachowiak  <mjs@apple.com>
451
452         Reviewed by Geoff.
453
454     - fixed <rdar://problem/4214783> REGRESSION: kjs_fast_malloc crash due to lack of locking on multiple threads (seen selecting volumes in the installer)
455
456     Make sure to lock using the InterpreterLock class in all places that need it
457     (including anything that uses the collector, the parser, the protect count hash table,
458     and anything that allocates via fast_malloc).
459
460         * JSUtils.cpp:
461         (CFStringToUString):
462         (JSObjectKJSValue):
463         (KJSValueToCFTypeInternal):
464         * JSUtils.h:
465         * JSValueWrapper.cpp:
466         (JSValueWrapper::JSObjectCopyPropertyNames):
467         (JSValueWrapper::JSObjectCopyProperty):
468         (JSValueWrapper::JSObjectSetProperty):
469         (JSValueWrapper::JSObjectCallFunction):
470         (JSValueWrapper::JSObjectCopyCFValue):
471         * JavaScriptGlue.cpp:
472         (JSCollect):
473
474 2005-09-27  Adele Peterson  <adele@apple.com>
475
476         Reviewed by Maciej.
477
478         <rdar://problem/4223297> JavaScriptGlue: Submit 64-bit compatible versions of your API and SPIs by September 15
479
480         * JavaScriptGlue.h: Changed UInt32 to CFTypeID for JSTypeID
481
482 2005-09-06  Geoffrey Garen  <ggaren@apple.com>
483
484         -upgraded project files to XCode 2.1
485
486         * JavaScriptGlue.pbproj/project.pbxproj: Removed.
487         * JavaScriptGlue.xcodeproj/.cvsignore: Added.
488         * JavaScriptGlue.xcodeproj/project.pbxproj: Added.
489
490 2005-09-01  Maciej Stachowiak  <mjs@apple.com>
491
492         Rubber stamped by hyatt.
493
494     - initial import of JavaScriptGlue into our repository
495
496         * English.lproj/InfoPlist.strings: Added.
497         * JSBase.cpp: Added.
498         (JSBase::JSBase):
499         (JSBase::~JSBase):
500         (JSBase::Retain):
501         (JSBase::Release):
502         (JSBase::RetainCount):
503         (JSBase::GetTypeID):
504         (JSBase::CopyDescription):
505         (JSBase::Equal):
506         * JSBase.h: Added.
507         * JSObject.cpp: Added.
508         (JSUserObject::JSUserObject):
509         (JSUserObject::~JSUserObject):
510         (JSUserObject::CopyPropertyNames):
511         (JSUserObject::CopyProperty):
512         (JSUserObject::SetProperty):
513         (JSUserObject::ImplementsCall):
514         (JSUserObject::CallFunction):
515         (JSUserObject::CopyCFValue):
516         (JSUserObject::Equal):
517         (JSUserObject::Mark):
518         (JSUserObject::GetData):
519         * JSObject.h: Added.
520         (JSUserObject::DataType):
521         * JSRun.cpp: Added.
522         (JSRun::JSRun):
523         (JSRun::~JSRun):
524         (JSRun::Flags):
525         (JSRun::GetSource):
526         (JSRun::GlobalObject):
527         (JSRun::GetInterpreter):
528         (JSRun::Evaluate):
529         (JSRun::CheckSyntax):
530         * JSRun.h: Added.
531         (JSInterpreter::JSInterpreter):
532         (JSInterpreter::JSInterpreter::~JSInterpreter):
533         (JSInterpreter::Flags):
534         * JSUtils.cpp: Added.
535         (CFStringToUString):
536         (UStringToCFString):
537         (CFStringToIdentifier):
538         (IdentifierToCFString):
539         (KJSValueToJSObject):
540         (JSObjectKJSValue):
541         (KJSValueToCFTypeInternal):
542         (KJSValueToCFType):
543         (GetCFNull):
544         * JSUtils.h: Added.
545         (RetainCFType):
546         (ReleaseCFType):
547         * JSValueWrapper.cpp: Added.
548         (JSValueWrapper::JSValueWrapper):
549         (JSValueWrapper::~JSValueWrapper):
550         (JSValueWrapper::GetValue):
551         (JSValueWrapper::GetExecState):
552         (JSValueWrapper::GetJSObectCallBacks):
553         (JSValueWrapper::JSObjectDispose):
554         (JSValueWrapper::JSObjectCopyPropertyNames):
555         (JSValueWrapper::JSObjectCopyProperty):
556         (JSValueWrapper::JSObjectSetProperty):
557         (JSValueWrapper::JSObjectCallFunction):
558         (JSValueWrapper::JSObjectCopyCFValue):
559         (JSValueWrapper::JSObjectMark):
560         * JSValueWrapper.h: Added.
561         * JavaScriptGlue.cpp: Added.
562         (JSSetCFNull):
563         (JSGetCFNull):
564         (JSRetain):
565         (JSRelease):
566         (JSCopyDescription):
567         (JSEqual):
568         (JSGetTypeID):
569         (JSGetRetainCount):
570         (JSObjectCreate):
571         (JSObjectCreateInternal):
572         (JSObjectCopyCFValue):
573         (JSObjectGetData):
574         (JSObjectCopyProperty):
575         (JSObjectSetProperty):
576         (JSObjectCallFunction):
577         (JSRunCreate):
578         (JSRunCopySource):
579         (JSRunCopyGlobalObject):
580         (JSRunEvaluate):
581         (JSRunCheckSyntax):
582         (JSCollect):
583         (JSTypeGetCFArrayCallBacks):
584         (JSCFRetain):
585         (JSCFRelease):
586         (JSObjectCreateWithCFType):
587         (CFJSObjectDispose):
588         (JSObjectCopyPropertyNames):
589         (CFJSObjectCopyProperty):
590         (CFJSObjectSetProperty):
591         (CFJSObjectCopyCFValue):
592         (CFJSObjectEqual):
593         (CFJSObjectCopyPropertyNames):
594         (JSCreateCFArrayFromJSArray):
595         (JSCreateJSArrayFromCFArray):
596         (JSLockInterpreter):
597         (JSUnlockInterpreter):
598         * JavaScriptGlue.exp: Added.
599         * JavaScriptGlue.h: Added.
600         * JavaScriptGlue.pbproj/project.pbxproj: Added.
601         * UserObjectImp.cpp: Added.
602         (UserObjectPrototypeImp::UserObjectPrototypeImp):
603         (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
604         (UserObjectImp::UserObjectImp):
605         (UserObjectImp::~UserObjectImp):
606         (UserObjectImp::classInfo):
607         (UserObjectImp::implementsCall):
608         (UserObjectImp::call):
609         (UserObjectImp::propList):
610         (UserObjectImp::hasProperty):
611         (UserObjectImp::get):
612         (UserObjectImp::put):
613         (UserObjectImp::GetJSUserObject):
614         (UserObjectImp::toPrimitive):
615         (UserObjectImp::toBoolean):
616         (UserObjectImp::toNumber):
617         (UserObjectImp::toString):
618         (UserObjectImp::mark):
619         * UserObjectImp.h: Added.
620