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