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