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