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