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