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