JavaScriptCore:
[WebKit.git] / JavaScriptGlue / ChangeLog
1 2006-02-03  Timothy Hatcher  <timothy@apple.com>
2
3         Reviewed by Justin.
4
5         Renamed configuration names to Debug, Release and Production.
6
7         * JavaScriptGlue.xcodeproj/project.pbxproj:
8
9 2006-02-01  Darin Adler  <darin@apple.com>
10
11         - added some forwarding headers to make new JavaScriptCore changes work
12
13         * kxmlcore/Assertions.h: Added.
14         * kxmlcore/Noncopyable.h: Added.
15         * kxmlcore/OwnPtr.h: Added.
16         * kxmlcore/OwnArrayPtr.h: Added.
17
18 2006-01-16  Timothy Hatcher  <timothy@apple.com>
19
20         Adding the license header to all files so we can
21         move JavaScriptGlue into the open source repository.
22
23         * LICENSE: Added.
24         * JSBase.cpp: license header added.
25         * JSBase.h: ditto.
26         * JSObject.cpp: ditto.
27         * JSObject.h: ditto.
28         * JSRun.cpp: ditto.
29         * JSRun.h: ditto.
30         * JSUtils.cpp: ditto.
31         * JSUtils.h: ditto.
32         * JSValueWrapper.cpp: ditto.
33         * JSValueWrapper.h: ditto.
34         * JavaScriptGlue.cpp: ditto.
35         * JavaScriptGlue.h: ditto.
36         * UserObjectImp.cpp: ditto.
37         * UserObjectImp.h: ditto.
38
39 2005-12-21  Timothy Hatcher  <timothy@apple.com>
40
41         * JavaScriptGlue.xcodeproj/project.pbxproj:
42           Set tab width to 8, indent width to 4 and uses tabs to false per file.
43
44 2005-12-19  Darin Adler  <darin@apple.com>
45
46         Reviewed by Geoff Garen and Eric Seidel.
47
48         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4923
49           stop using <ostream> in WebCore, eliminating the <cmath> troubles it causes
50
51         * kxmlcore/AlwaysInline.h: Added.
52
53 2005-12-15  Darin Adler  <darin@apple.com>
54
55         Reviewed by Maciej.
56
57         * JSRun.cpp: (JSRun::Evaluate): Updated for change to Interpreter::evaluate.
58
59 2005-12-15  Darin Adler  <darin@apple.com>
60
61         Reviewed by Tim Hatcher.
62
63         * JavaScriptGlue.xcodeproj/project.pbxproj: Removed some redundant build
64         settings, turned off prebinding explicitly for our Development and
65         Deployment builds, remove .exp file from sources. All "clean-up".
66
67 === Safari-521~5 ===
68
69 2005-12-13  Geoffrey Garen  <ggaren@apple.com>
70
71     - Fixed build after Anders's last checkin to JavaScriptCore.
72     
73         Reviewed by darin.
74
75         * UserObjectImp.cpp:
76         (UserObjectImp::userObjectGetter): Updated to reflect new argument that 
77     getters take (unused here).
78         * UserObjectImp.h:
79
80 2005-12-13  Maciej Stachowiak  <mjs@apple.com>
81
82         Reviewed by Eric.
83
84     - added forwarding header for HashCountedSet
85
86         * kxmlcore/HashCountedSet.h: Added.
87
88 2005-12-10  Darin Adler  <darin@apple.com>
89
90         Rubber stamped by Maciej.
91
92         - updated for KJS class renaming
93
94         * many files and functions
95
96 2005-12-10  Darin Adler  <darin@apple.com>
97
98         Reviewed by Maciej.
99
100         - eliminated the old Undefined(), Null(), Boolean(), Number(), and String()
101
102         Code now uses jsUndefined(), jsNull(), jsBoolean(), jsNumber(), and jsString().
103
104         * JSUtils.cpp:
105         (JSObjectKJSValue):
106         * UserObjectImp.cpp:
107         (UserObjectImp::callAsFunction):
108         (UserObjectImp::toPrimitive):
109
110 2005-12-05  Maciej Stachowiak  <mjs@apple.com>
111
112         - added new forwarding headers
113
114         * kxmlcore/PassRefPtr.h: Added.
115         * kxmlcore/RefPtr.h: Added.
116
117 2005-12-05  Maciej Stachowiak  <mjs@apple.com>
118
119         * kxmlcore/PassRefPtr.h: Added.
120
121 2005-11-26  Maciej Stachowiak  <mjs@apple.com>
122
123         Rubber stamped by Eric.
124
125     - renamed InterpreterLock to JSLock
126
127         * JSUtils.cpp:
128         (CFStringToUString):
129         (JSObjectKJSValue):
130         (KJSValueToCFTypeInternal):
131         * JSValueWrapper.cpp:
132         (JSValueWrapper::JSObjectCopyPropertyNames):
133         (JSValueWrapper::JSObjectCopyProperty):
134         (JSValueWrapper::JSObjectSetProperty):
135         (JSValueWrapper::JSObjectCallFunction):
136         (JSValueWrapper::JSObjectCopyCFValue):
137         * JavaScriptGlue.cpp:
138         (JSRunCreate):
139         (JSCollect):
140         (JSLockInterpreter):
141         (JSUnlockInterpreter):
142         * UserObjectImp.cpp:
143         (UserObjectImp::callAsFunction):
144
145 2005-11-16  Maciej Stachowiak  <mjs@apple.com>
146
147         Reviewed by Geoff.
148
149     Updated to use new API to drop all locks.
150
151         * JavaScriptGlue.cpp:
152         (JSLockInterpreter):
153         (JSUnlockInterpreter):
154         * UserObjectImp.cpp:
155         (UserObjectImp::callAsFunction):
156
157 2005-11-14  Geoffrey Garen  <ggaren@apple.com>
158
159         Reviewed by mjs.
160
161         - Part of the fix for <rdar://problem/4342216> Installer crash in 
162           KJS::ValueImp::marked() when garbage collector runs inside call to 
163           ConstantValues::init()
164           
165         Added locking in JSRunCreate, since JSRun::JSRun constructs an object.
166         
167         * JavaScriptGlue.cpp:
168         (JSRunCreate):
169
170 2005-11-10  Geoffrey Garen  <ggaren@apple.com>
171
172         Reviewed by Maciej.
173
174         - Fixed <rdar://problem/4334445> installer crashed on my 
175           dual g4 450Mhz after clicking language
176
177         - Reversed backwards NULL check.
178         - Inserted guards against NULL fJSUserObject data member.
179         - Cleaned up some style.
180
181         * JSUtils.cpp:
182         (KJSValueToCFTypeInternal):
183         * UserObjectImp.cpp:
184         (UserObjectImp::~UserObjectImp):
185         (UserObjectImp::callAsFunction):
186         (UserObjectImp::userObjectGetter):
187         (UserObjectImp::getOwnPropertySlot):
188         (UserObjectImp::put):
189         (UserObjectImp::mark):
190
191 2005-11-04  Timothy Hatcher  <timothy@apple.com>
192
193         Reviewed by Darin.
194
195         * JavaScriptGlue.xcodeproj/project.pbxproj:
196           Fixed the FRAMEWORK_SEARCH_PATHS to look in the WebKit
197           Frameworks for the Default config.
198
199 2005-11-03  Timothy Hatcher  <timothy@apple.com>
200
201         Reviewed by Darin and Vicki.
202
203         * JavaScriptGlue.xcodeproj/project.pbxproj:
204           Change to use $(SYSTEM_LIBRARY_DIR) consistently and place
205           $(NEXT_ROOT) in a few spots to make build-root work.
206
207 2005-11-01  Maciej Stachowiak  <mjs@apple.com>
208
209     Reviewed by: Eric.
210     
211         <rdar://problem/4324107> get JavaScriptGlue working with TOT JavaScriptCore again
212
213     - reverted all this stuff to use ReferenceList instead of IdentifierSequencedSet
214
215         * JSUtils.cpp:
216         (KJSValueToCFTypeInternal):
217         * JSValueWrapper.cpp:
218         (JSValueWrapper::JSObjectCopyPropertyNames):
219         * UserObjectImp.cpp:
220         (UserObjectImp::propList):
221         * UserObjectImp.h:
222
223 2005-10-11  Timothy Hatcher  <timothy@apple.com>
224
225         Setup the proper Framework search path for the Default config.
226         Prepping for a TOT submission and build by B&I.
227
228         * JavaScriptGlue.xcodeproj/project.pbxproj:
229
230 2005-10-10  Darin Adler  <darin@apple.com>
231
232         Reviewed by Eric.
233
234         - converted tabs to spaces, NULL to 0, added some (void), got rid of __ prefixes
235           in headers (reserved for compiler/library)
236
237         * Info.plist:
238         * JSBase.cpp:
239         * JSBase.h:
240         * JSObject.cpp:
241         * JSObject.h:
242         * JSRun.cpp:
243         * JSRun.h:
244         * JSUtils.cpp:
245         * JSUtils.h:
246         * JSValueWrapper.cpp:
247         * JSValueWrapper.h:
248         * JavaScriptGlue.cpp:
249         * JavaScriptGlue.h:
250         * UserObjectImp.cpp:
251         * UserObjectImp.h:
252
253 2005-10-10  Darin Adler  <darin@apple.com>
254
255         * .cvsignore: Added. Ignore Makefile.in and Makefile.
256
257 2005-10-07  Timothy Hatcher  <timothy@apple.com>
258
259         Reviewed by Maciej.
260         
261         Build fix, needed to disable RTTI. Upgraded to a native target.
262
263         * JavaScriptGlue.xcodeproj/project.pbxproj:
264         * Info.plist
265
266 2005-10-05  Maciej Stachowiak  <mjs@apple.com>
267
268         Reviewed by Eric and Darin.
269
270     <rdar://problem/4260506> Port JavaScriptGlue to TOT JavaScriptCore
271
272         * JSRun.cpp:
273         (JSRun::JSRun):
274         (JSRun::GlobalObject):
275         * JSRun.h:
276         (JSInterpreter::JSInterpreter):
277         * JSUtils.cpp:
278         (KJSValueToJSObject):
279         (JSObjectKJSValue):
280         (KJSValueToCFTypeInternal):
281         (KJSValueToCFType):
282         * JSUtils.h:
283         * JSValueWrapper.cpp:
284         (JSValueWrapper::JSValueWrapper):
285         (JSValueWrapper::GetValue):
286         (JSValueWrapper::JSObjectCopyPropertyNames):
287         (JSValueWrapper::JSObjectCopyProperty):
288         (JSValueWrapper::JSObjectSetProperty):
289         (JSValueWrapper::JSObjectCallFunction):
290         (JSValueWrapper::JSObjectMark):
291         * JSValueWrapper.h:
292         * JavaScriptGlue.cpp:
293         (JSRunCopyGlobalObject):
294         * JavaScriptGlue.xcodeproj/project.pbxproj:
295         * Makefile.am: Added.
296         * UserObjectImp.cpp:
297         (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
298         (UserObjectImp::UserObjectImp):
299         (UserObjectImp::callAsFunction):
300         (UserObjectImp::getPropertyNames):
301         (UserObjectImp::userObjectGetter):
302         (UserObjectImp::getOwnPropertySlot):
303         (UserObjectImp::put):
304         (UserObjectImp::toPrimitive):
305         (UserObjectImp::mark):
306         * UserObjectImp.h:
307         * kxmlcore/FastMalloc.h: Added.
308         * kxmlcore/HashSet.h: Added.
309
310 2005-09-14  Maciej Stachowiak  <mjs@apple.com>
311
312         Reviewed by Geoff.
313
314     - fixed <rdar://problem/4214783> REGRESSION: kjs_fast_malloc crash due to lack of locking on multiple threads (seen selecting volumes in the installer)
315
316     Make sure to lock using the InterpreterLock class in all places that need it
317     (including anything that uses the collector, the parser, the protect count hash table,
318     and anything that allocates via fast_malloc).
319
320         * JSUtils.cpp:
321         (CFStringToUString):
322         (JSObjectKJSValue):
323         (KJSValueToCFTypeInternal):
324         * JSUtils.h:
325         * JSValueWrapper.cpp:
326         (JSValueWrapper::JSObjectCopyPropertyNames):
327         (JSValueWrapper::JSObjectCopyProperty):
328         (JSValueWrapper::JSObjectSetProperty):
329         (JSValueWrapper::JSObjectCallFunction):
330         (JSValueWrapper::JSObjectCopyCFValue):
331         * JavaScriptGlue.cpp:
332         (JSCollect):
333
334 2005-09-27  Adele Peterson  <adele@apple.com>
335
336         Reviewed by Maciej.
337
338         <rdar://problem/4223297> JavaScriptGlue: Submit 64-bit compatible versions of your API and SPIs by September 15
339
340         * JavaScriptGlue.h: Changed UInt32 to CFTypeID for JSTypeID
341
342 2005-09-06  Geoffrey Garen  <ggaren@apple.com>
343
344         -upgraded project files to XCode 2.1
345
346         * JavaScriptGlue.pbproj/project.pbxproj: Removed.
347         * JavaScriptGlue.xcodeproj/.cvsignore: Added.
348         * JavaScriptGlue.xcodeproj/project.pbxproj: Added.
349
350 2005-09-01  Maciej Stachowiak  <mjs@apple.com>
351
352         Rubber stamped by hyatt.
353
354     - initial import of JavaScriptGlue into our repository
355
356         * English.lproj/InfoPlist.strings: Added.
357         * JSBase.cpp: Added.
358         (JSBase::JSBase):
359         (JSBase::~JSBase):
360         (JSBase::Retain):
361         (JSBase::Release):
362         (JSBase::RetainCount):
363         (JSBase::GetTypeID):
364         (JSBase::CopyDescription):
365         (JSBase::Equal):
366         * JSBase.h: Added.
367         * JSObject.cpp: Added.
368         (JSUserObject::JSUserObject):
369         (JSUserObject::~JSUserObject):
370         (JSUserObject::CopyPropertyNames):
371         (JSUserObject::CopyProperty):
372         (JSUserObject::SetProperty):
373         (JSUserObject::ImplementsCall):
374         (JSUserObject::CallFunction):
375         (JSUserObject::CopyCFValue):
376         (JSUserObject::Equal):
377         (JSUserObject::Mark):
378         (JSUserObject::GetData):
379         * JSObject.h: Added.
380         (JSUserObject::DataType):
381         * JSRun.cpp: Added.
382         (JSRun::JSRun):
383         (JSRun::~JSRun):
384         (JSRun::Flags):
385         (JSRun::GetSource):
386         (JSRun::GlobalObject):
387         (JSRun::GetInterpreter):
388         (JSRun::Evaluate):
389         (JSRun::CheckSyntax):
390         * JSRun.h: Added.
391         (JSInterpreter::JSInterpreter):
392         (JSInterpreter::JSInterpreter::~JSInterpreter):
393         (JSInterpreter::Flags):
394         * JSUtils.cpp: Added.
395         (CFStringToUString):
396         (UStringToCFString):
397         (CFStringToIdentifier):
398         (IdentifierToCFString):
399         (KJSValueToJSObject):
400         (JSObjectKJSValue):
401         (KJSValueToCFTypeInternal):
402         (KJSValueToCFType):
403         (GetCFNull):
404         * JSUtils.h: Added.
405         (RetainCFType):
406         (ReleaseCFType):
407         * JSValueWrapper.cpp: Added.
408         (JSValueWrapper::JSValueWrapper):
409         (JSValueWrapper::~JSValueWrapper):
410         (JSValueWrapper::GetValue):
411         (JSValueWrapper::GetExecState):
412         (JSValueWrapper::GetJSObectCallBacks):
413         (JSValueWrapper::JSObjectDispose):
414         (JSValueWrapper::JSObjectCopyPropertyNames):
415         (JSValueWrapper::JSObjectCopyProperty):
416         (JSValueWrapper::JSObjectSetProperty):
417         (JSValueWrapper::JSObjectCallFunction):
418         (JSValueWrapper::JSObjectCopyCFValue):
419         (JSValueWrapper::JSObjectMark):
420         * JSValueWrapper.h: Added.
421         * JavaScriptGlue.cpp: Added.
422         (JSSetCFNull):
423         (JSGetCFNull):
424         (JSRetain):
425         (JSRelease):
426         (JSCopyDescription):
427         (JSEqual):
428         (JSGetTypeID):
429         (JSGetRetainCount):
430         (JSObjectCreate):
431         (JSObjectCreateInternal):
432         (JSObjectCopyCFValue):
433         (JSObjectGetData):
434         (JSObjectCopyProperty):
435         (JSObjectSetProperty):
436         (JSObjectCallFunction):
437         (JSRunCreate):
438         (JSRunCopySource):
439         (JSRunCopyGlobalObject):
440         (JSRunEvaluate):
441         (JSRunCheckSyntax):
442         (JSCollect):
443         (JSTypeGetCFArrayCallBacks):
444         (JSCFRetain):
445         (JSCFRelease):
446         (JSObjectCreateWithCFType):
447         (CFJSObjectDispose):
448         (JSObjectCopyPropertyNames):
449         (CFJSObjectCopyProperty):
450         (CFJSObjectSetProperty):
451         (CFJSObjectCopyCFValue):
452         (CFJSObjectEqual):
453         (CFJSObjectCopyPropertyNames):
454         (JSCreateCFArrayFromJSArray):
455         (JSCreateJSArrayFromCFArray):
456         (JSLockInterpreter):
457         (JSUnlockInterpreter):
458         * JavaScriptGlue.exp: Added.
459         * JavaScriptGlue.h: Added.
460         * JavaScriptGlue.pbproj/project.pbxproj: Added.
461         * UserObjectImp.cpp: Added.
462         (UserObjectPrototypeImp::UserObjectPrototypeImp):
463         (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
464         (UserObjectImp::UserObjectImp):
465         (UserObjectImp::~UserObjectImp):
466         (UserObjectImp::classInfo):
467         (UserObjectImp::implementsCall):
468         (UserObjectImp::call):
469         (UserObjectImp::propList):
470         (UserObjectImp::hasProperty):
471         (UserObjectImp::get):
472         (UserObjectImp::put):
473         (UserObjectImp::GetJSUserObject):
474         (UserObjectImp::toPrimitive):
475         (UserObjectImp::toBoolean):
476         (UserObjectImp::toNumber):
477         (UserObjectImp::toString):
478         (UserObjectImp::mark):
479         * UserObjectImp.h: Added.
480