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