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