3 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
7 Build fix: DWARF and -gfull are incompatible with symbol separation.
9 * JavaScriptGlue.xcodeproj/project.pbxproj:
11 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
15 http://bugs.webkit.org/show_bug.cgi?id=10394
16 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
18 * JavaScriptGlue.xcodeproj/project.pbxproj:
20 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
24 http://bugs.webkit.org/show_bug.cgi?id=10384
25 Bug 10384: Switch to DWARF for Release configuration
27 * JavaScriptGlue.xcodeproj/project.pbxproj:
29 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
33 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
34 Make WebCore (and friends) compile with -Wshorten-64-to-32
36 * Adds -Wshorten-64-to-32 flag to Xcode project.
38 * JavaScriptGlue.xcodeproj/project.pbxproj:
40 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
44 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
45 Make WebCore compile with -Wundef
47 * Adds -Wundef flag to Xcode project
49 * JavaScriptGlue.xcodeproj/project.pbxproj:
51 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
55 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
56 Adopt pedantic changes from the Unity project to improve
57 cross-compiler compatibility
60 * Turning on gcc warning for missing newline at the end of a source file
61 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
63 * JavaScriptGlue.xcodeproj/project.pbxproj:
67 2006-07-19 Geoffrey Garen <ggaren@apple.com>
69 Fixed by Darin & Maciej, reviewed by me.
71 - Fixed <rdar://problem/4638934> Leopard 9A227: Installer crashes right
72 after LCA and while preparing Installation
74 Compile release/production with NDEBUG set, to ensure binary compatibility
75 between JavaScriptGlue and JavaScriptCore. In debug builds, JavaScriptCore
76 includes an extra debug data member in HashSet.
78 * JavaScriptGlue.xcodeproj/project.pbxproj:
82 2006-07-15 Maciej Stachowiak <mjs@apple.com>
86 - switch property lists to be vector+set of Identifiers instead of list of References
89 (KJSValueToCFTypeInternal): updated for JSC SPI changes
91 (JSValueWrapper::JSObjectCopyPropertyNames): ditto
93 (UserObjectImp::getPropertyNames): ditto
98 2006-07-14 Geoffrey Garen <ggaren@apple.com>
102 - Updated JSInterpreter to work with Interpreter ref-counting in JavaScriptCore.
104 (JSInterpreter::JSInterpreter::~JSInterpreter): Now protected to catch
107 2006-07-12 Anders Carlsson <acarlsson@apple.com>
112 (KJSValueToCFTypeInternal):
113 * JSValueWrapper.cpp:
114 (JSValueWrapper::JSObjectCopyPropertyNames):
116 (UserObjectImp::getPropertyList):
118 === Safari-521.15 ===
120 2006-07-07 Geoffrey Garen <ggaren@apple.com>
125 (KJSValueToCFTypeInternal):
126 * JSValueWrapper.cpp:
127 (JSValueWrapper::JSObjectCopyPropertyNames):
129 2006-07-03 Geoffrey Garen <ggaren@apple.com>
134 (JSRun::CheckSyntax): Updated to use new checkSyntax syntax in JSC.
135 * JavaScriptGlue.xcodeproj/project.pbxproj:
137 === Safari-521.14 ===
139 2006-06-28 Timothy Hatcher <timothy@apple.com>
141 Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
143 * JavaScriptGlue.xcodeproj/project.pbxproj:
145 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
149 * Info.plist: Fixed copyright to include 2003-2006.
151 === JavaScriptGlue-521.13 ===
153 2006-06-20 Geoffrey Garen <ggaren@apple.com>
157 - Required for JS API: Rename propList to getPropertyList and have it
158 take its target property list by reference so that subclasses can
159 add properties to the list before calling through to their superclasses.
162 (KJSValueToCFTypeInternal):
163 * JSValueWrapper.cpp:
164 (JSValueWrapper::JSObjectCopyPropertyNames):
166 (UserObjectImp::getPropertyList):
169 2006-06-15 Timothy Hatcher <timothy@apple.com>
171 Reviewed by Geoff and Darin.
173 Prefer the DWARF debugging symbols format for use in Xcode 2.3.
175 * JavaScriptGlue.xcodeproj/project.pbxproj:
177 2006-06-12 Geoffrey Garen <ggaren@apple.com>
179 Reviewed by TimO, Maciej.
181 - JSGlue part of merging InterpreterImp into Interpreter.
183 Since there's now a kjs forwarding header, I moved all forwarding
184 headers into a "ForwardingHeaders" directory, like in WebCore.
186 * ForwardingHeaders: Added.
187 * ForwardingHeaders/kjs: Added.
188 * ForwardingHeaders/kjs/ExecState.h: Added.
189 * ForwardingHeaders/wtf: Added.
190 * JavaScriptGlue.xcodeproj/project.pbxproj:
193 * wtf/AlwaysInline.h: Removed.
194 * wtf/Assertions.h: Removed.
195 * wtf/FastMalloc.h: Removed.
196 * wtf/Forward.h: Removed.
197 * wtf/HashCountedSet.h: Removed.
198 * wtf/HashSet.h: Removed.
199 * wtf/Noncopyable.h: Removed.
200 * wtf/OwnArrayPtr.h: Removed.
201 * wtf/OwnPtr.h: Removed.
202 * wtf/PassRefPtr.h: Removed.
203 * wtf/Platform.h: Removed.
204 * wtf/RefPtr.h: Removed.
205 * wtf/Vector.h: Removed.
207 === JavaScriptGlue-521.10 ===
209 2006-05-09 Maciej Stachowiak <mjs@apple.com>
211 Rubber stamped by Anders.
213 - renamed kxmlcore to wtf
221 * kxmlcore/AlwaysInline.h: Removed.
222 * kxmlcore/Assertions.h: Removed.
223 * kxmlcore/FastMalloc.h: Removed.
224 * kxmlcore/Forward.h: Removed.
225 * kxmlcore/HashCountedSet.h: Removed.
226 * kxmlcore/HashSet.h: Removed.
227 * kxmlcore/Noncopyable.h: Removed.
228 * kxmlcore/OwnArrayPtr.h: Removed.
229 * kxmlcore/OwnPtr.h: Removed.
230 * kxmlcore/PassRefPtr.h: Removed.
231 * kxmlcore/Platform.h: Removed.
232 * kxmlcore/RefPtr.h: Removed.
233 * kxmlcore/Vector.h: Removed.
236 2006-04-11 Darin Adler <darin@apple.com>
238 - try to fix Windows build
240 * kxmlcore/HashForward.h: Removed.
242 2006-04-10 Darin Adler <darin@apple.com>
244 Rubber-stamped by John Sullivan.
246 - added forwarding headers for the new Forward.h and HashForward.h files
248 * kxmlcore/Forward.h: Added.
249 * kxmlcore/HashForward.h: Added.
251 2006-04-04 Timothy Hatcher <timothy@apple.com>
255 The Debug and Release frameworks are now built with install paths relative to the build products directory.
256 This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore.
258 * JavaScriptGlue.xcodeproj/project.pbxproj:
260 2006-04-02 Eric Seidel <eseidel@apple.com>
262 Reviewed by andersca.
264 Add missing forwarding header.
266 * kxmlcore/Vector.h: Added.
268 2006-03-31 Geoffrey Garen <ggaren@apple.com>
272 - Fixed <rdar://problem/4430836> JavaScript patch crashing Quartz
275 JSValueWrappers used to hold on to the ExecState that pertained at
276 the time of their creation. Since ExecStates are transient, that
277 design was totally bogus, and it would crash once the ExecState had
280 Unfortunately, there's no clean solution to this problem, since
281 the JSGlue API has no notion of state. The solution here is to use
282 a shared, global ExecState for the purpose of JSGlue calls. Given
283 the pre-existing limitations in the JSGlue API, this design
284 shouldn't actually introduce any new limitations (see comments in
287 I tested with Quartz Composer and PAC files, neither of which are
291 (KJSValueToJSObject):
292 * JSValueWrapper.cpp:
293 (JSValueWrapper::JSValueWrapper):
294 (JSValueWrapper::GetValue):
295 (getProcessGlobalExecState):
296 (JSValueWrapper::JSObjectCopyPropertyNames):
297 (JSValueWrapper::JSObjectCopyProperty):
298 (JSValueWrapper::JSObjectSetProperty):
299 (JSValueWrapper::JSObjectCallFunction):
300 (JSValueWrapper::JSObjectCopyCFValue):
303 Also added a test harness file. It was helpful while I was testing,
304 and may come in handy in the future:
306 * JavaScriptGlue.xcodeproj/project.pbxproj:
307 testjsglue.cpp: Added.
309 2006-03-28 Darin Adler <darin@apple.com>
313 - added a build step that checks for init routines
315 * JavaScriptGlue.xcodeproj/project.pbxproj: Added a custom build phase that invokes the
316 check-for-global-initializers script.
318 2006-03-02 Maciej Stachowiak <mjs@apple.com>
320 Not reviewed, but I noticed these trivial extra changes were needed to avoid
321 breaking the build with my reviewed patch for:
323 http://bugs.webkit.org/show_bug.cgi?id=7387
325 Add config.h, includes of it, and Platform.h forwarding header.
331 * JSValueWrapper.cpp:
332 * JavaScriptGlue.cpp:
335 * kxmlcore/Platform.h: Added.
337 === JavaScriptGlue-521.7 ===
339 2006-02-10 Geoffrey Garen <ggaren@apple.com>
346 (UserObjectImp::toPrimitive):
349 2006-02-03 Timothy Hatcher <timothy@apple.com>
353 Renamed configuration names to Debug, Release and Production.
355 * JavaScriptGlue.xcodeproj/project.pbxproj:
357 2006-02-01 Darin Adler <darin@apple.com>
359 - added some forwarding headers to make new JavaScriptCore changes work
361 * kxmlcore/Assertions.h: Added.
362 * kxmlcore/Noncopyable.h: Added.
363 * kxmlcore/OwnPtr.h: Added.
364 * kxmlcore/OwnArrayPtr.h: Added.
366 2006-01-16 Timothy Hatcher <timothy@apple.com>
368 Adding the license header to all files so we can
369 move JavaScriptGlue into the open source repository.
372 * JSBase.cpp: license header added.
374 * JSObject.cpp: ditto.
378 * JSUtils.cpp: ditto.
380 * JSValueWrapper.cpp: ditto.
381 * JSValueWrapper.h: ditto.
382 * JavaScriptGlue.cpp: ditto.
383 * JavaScriptGlue.h: ditto.
384 * UserObjectImp.cpp: ditto.
385 * UserObjectImp.h: ditto.
387 2005-12-21 Timothy Hatcher <timothy@apple.com>
389 * JavaScriptGlue.xcodeproj/project.pbxproj:
390 Set tab width to 8, indent width to 4 and uses tabs to false per file.
392 2005-12-19 Darin Adler <darin@apple.com>
394 Reviewed by Geoff Garen and Eric Seidel.
396 - fix http://bugs.webkit.org/show_bug.cgi?id=4923
397 stop using <ostream> in WebCore, eliminating the <cmath> troubles it causes
399 * kxmlcore/AlwaysInline.h: Added.
401 2005-12-15 Darin Adler <darin@apple.com>
405 * JSRun.cpp: (JSRun::Evaluate): Updated for change to Interpreter::evaluate.
407 2005-12-15 Darin Adler <darin@apple.com>
409 Reviewed by Tim Hatcher.
411 * JavaScriptGlue.xcodeproj/project.pbxproj: Removed some redundant build
412 settings, turned off prebinding explicitly for our Development and
413 Deployment builds, remove .exp file from sources. All "clean-up".
417 2005-12-13 Geoffrey Garen <ggaren@apple.com>
419 - Fixed build after Anders's last checkin to JavaScriptCore.
424 (UserObjectImp::userObjectGetter): Updated to reflect new argument that
425 getters take (unused here).
428 2005-12-13 Maciej Stachowiak <mjs@apple.com>
432 - added forwarding header for HashCountedSet
434 * kxmlcore/HashCountedSet.h: Added.
436 2005-12-10 Darin Adler <darin@apple.com>
438 Rubber stamped by Maciej.
440 - updated for KJS class renaming
442 * many files and functions
444 2005-12-10 Darin Adler <darin@apple.com>
448 - eliminated the old Undefined(), Null(), Boolean(), Number(), and String()
450 Code now uses jsUndefined(), jsNull(), jsBoolean(), jsNumber(), and jsString().
455 (UserObjectImp::callAsFunction):
456 (UserObjectImp::toPrimitive):
458 2005-12-05 Maciej Stachowiak <mjs@apple.com>
460 - added new forwarding headers
462 * kxmlcore/PassRefPtr.h: Added.
463 * kxmlcore/RefPtr.h: Added.
465 2005-12-05 Maciej Stachowiak <mjs@apple.com>
467 * kxmlcore/PassRefPtr.h: Added.
469 2005-11-26 Maciej Stachowiak <mjs@apple.com>
471 Rubber stamped by Eric.
473 - renamed InterpreterLock to JSLock
478 (KJSValueToCFTypeInternal):
479 * JSValueWrapper.cpp:
480 (JSValueWrapper::JSObjectCopyPropertyNames):
481 (JSValueWrapper::JSObjectCopyProperty):
482 (JSValueWrapper::JSObjectSetProperty):
483 (JSValueWrapper::JSObjectCallFunction):
484 (JSValueWrapper::JSObjectCopyCFValue):
485 * JavaScriptGlue.cpp:
489 (JSUnlockInterpreter):
491 (UserObjectImp::callAsFunction):
493 2005-11-16 Maciej Stachowiak <mjs@apple.com>
497 Updated to use new API to drop all locks.
499 * JavaScriptGlue.cpp:
501 (JSUnlockInterpreter):
503 (UserObjectImp::callAsFunction):
505 2005-11-14 Geoffrey Garen <ggaren@apple.com>
509 - Part of the fix for <rdar://problem/4342216> Installer crash in
510 KJS::ValueImp::marked() when garbage collector runs inside call to
511 ConstantValues::init()
513 Added locking in JSRunCreate, since JSRun::JSRun constructs an object.
515 * JavaScriptGlue.cpp:
518 2005-11-10 Geoffrey Garen <ggaren@apple.com>
522 - Fixed <rdar://problem/4334445> installer crashed on my
523 dual g4 450Mhz after clicking language
525 - Reversed backwards NULL check.
526 - Inserted guards against NULL fJSUserObject data member.
527 - Cleaned up some style.
530 (KJSValueToCFTypeInternal):
532 (UserObjectImp::~UserObjectImp):
533 (UserObjectImp::callAsFunction):
534 (UserObjectImp::userObjectGetter):
535 (UserObjectImp::getOwnPropertySlot):
536 (UserObjectImp::put):
537 (UserObjectImp::mark):
539 2005-11-04 Timothy Hatcher <timothy@apple.com>
543 * JavaScriptGlue.xcodeproj/project.pbxproj:
544 Fixed the FRAMEWORK_SEARCH_PATHS to look in the WebKit
545 Frameworks for the Default config.
547 2005-11-03 Timothy Hatcher <timothy@apple.com>
549 Reviewed by Darin and Vicki.
551 * JavaScriptGlue.xcodeproj/project.pbxproj:
552 Change to use $(SYSTEM_LIBRARY_DIR) consistently and place
553 $(NEXT_ROOT) in a few spots to make build-root work.
555 2005-11-01 Maciej Stachowiak <mjs@apple.com>
559 <rdar://problem/4324107> get JavaScriptGlue working with TOT JavaScriptCore again
561 - reverted all this stuff to use ReferenceList instead of IdentifierSequencedSet
564 (KJSValueToCFTypeInternal):
565 * JSValueWrapper.cpp:
566 (JSValueWrapper::JSObjectCopyPropertyNames):
568 (UserObjectImp::propList):
571 2005-10-11 Timothy Hatcher <timothy@apple.com>
573 Setup the proper Framework search path for the Default config.
574 Prepping for a TOT submission and build by B&I.
576 * JavaScriptGlue.xcodeproj/project.pbxproj:
578 2005-10-10 Darin Adler <darin@apple.com>
582 - converted tabs to spaces, NULL to 0, added some (void), got rid of __ prefixes
583 in headers (reserved for compiler/library)
594 * JSValueWrapper.cpp:
596 * JavaScriptGlue.cpp:
601 2005-10-10 Darin Adler <darin@apple.com>
603 * .cvsignore: Added. Ignore Makefile.in and Makefile.
605 2005-10-07 Timothy Hatcher <timothy@apple.com>
609 Build fix, needed to disable RTTI. Upgraded to a native target.
611 * JavaScriptGlue.xcodeproj/project.pbxproj:
614 2005-10-05 Maciej Stachowiak <mjs@apple.com>
616 Reviewed by Eric and Darin.
618 <rdar://problem/4260506> Port JavaScriptGlue to TOT JavaScriptCore
622 (JSRun::GlobalObject):
624 (JSInterpreter::JSInterpreter):
626 (KJSValueToJSObject):
628 (KJSValueToCFTypeInternal):
631 * JSValueWrapper.cpp:
632 (JSValueWrapper::JSValueWrapper):
633 (JSValueWrapper::GetValue):
634 (JSValueWrapper::JSObjectCopyPropertyNames):
635 (JSValueWrapper::JSObjectCopyProperty):
636 (JSValueWrapper::JSObjectSetProperty):
637 (JSValueWrapper::JSObjectCallFunction):
638 (JSValueWrapper::JSObjectMark):
640 * JavaScriptGlue.cpp:
641 (JSRunCopyGlobalObject):
642 * JavaScriptGlue.xcodeproj/project.pbxproj:
643 * Makefile.am: Added.
645 (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
646 (UserObjectImp::UserObjectImp):
647 (UserObjectImp::callAsFunction):
648 (UserObjectImp::getPropertyNames):
649 (UserObjectImp::userObjectGetter):
650 (UserObjectImp::getOwnPropertySlot):
651 (UserObjectImp::put):
652 (UserObjectImp::toPrimitive):
653 (UserObjectImp::mark):
655 * kxmlcore/FastMalloc.h: Added.
656 * kxmlcore/HashSet.h: Added.
658 2005-09-14 Maciej Stachowiak <mjs@apple.com>
662 - fixed <rdar://problem/4214783> REGRESSION: kjs_fast_malloc crash due to lack of locking on multiple threads (seen selecting volumes in the installer)
664 Make sure to lock using the InterpreterLock class in all places that need it
665 (including anything that uses the collector, the parser, the protect count hash table,
666 and anything that allocates via fast_malloc).
671 (KJSValueToCFTypeInternal):
673 * JSValueWrapper.cpp:
674 (JSValueWrapper::JSObjectCopyPropertyNames):
675 (JSValueWrapper::JSObjectCopyProperty):
676 (JSValueWrapper::JSObjectSetProperty):
677 (JSValueWrapper::JSObjectCallFunction):
678 (JSValueWrapper::JSObjectCopyCFValue):
679 * JavaScriptGlue.cpp:
682 2005-09-27 Adele Peterson <adele@apple.com>
686 <rdar://problem/4223297> JavaScriptGlue: Submit 64-bit compatible versions of your API and SPIs by September 15
688 * JavaScriptGlue.h: Changed UInt32 to CFTypeID for JSTypeID
690 2005-09-06 Geoffrey Garen <ggaren@apple.com>
692 -upgraded project files to XCode 2.1
694 * JavaScriptGlue.pbproj/project.pbxproj: Removed.
695 * JavaScriptGlue.xcodeproj/.cvsignore: Added.
696 * JavaScriptGlue.xcodeproj/project.pbxproj: Added.
698 2005-09-01 Maciej Stachowiak <mjs@apple.com>
700 Rubber stamped by hyatt.
702 - initial import of JavaScriptGlue into our repository
704 * English.lproj/InfoPlist.strings: Added.
710 (JSBase::RetainCount):
712 (JSBase::CopyDescription):
715 * JSObject.cpp: Added.
716 (JSUserObject::JSUserObject):
717 (JSUserObject::~JSUserObject):
718 (JSUserObject::CopyPropertyNames):
719 (JSUserObject::CopyProperty):
720 (JSUserObject::SetProperty):
721 (JSUserObject::ImplementsCall):
722 (JSUserObject::CallFunction):
723 (JSUserObject::CopyCFValue):
724 (JSUserObject::Equal):
725 (JSUserObject::Mark):
726 (JSUserObject::GetData):
728 (JSUserObject::DataType):
734 (JSRun::GlobalObject):
735 (JSRun::GetInterpreter):
737 (JSRun::CheckSyntax):
739 (JSInterpreter::JSInterpreter):
740 (JSInterpreter::JSInterpreter::~JSInterpreter):
741 (JSInterpreter::Flags):
742 * JSUtils.cpp: Added.
745 (CFStringToIdentifier):
746 (IdentifierToCFString):
747 (KJSValueToJSObject):
749 (KJSValueToCFTypeInternal):
755 * JSValueWrapper.cpp: Added.
756 (JSValueWrapper::JSValueWrapper):
757 (JSValueWrapper::~JSValueWrapper):
758 (JSValueWrapper::GetValue):
759 (JSValueWrapper::GetExecState):
760 (JSValueWrapper::GetJSObectCallBacks):
761 (JSValueWrapper::JSObjectDispose):
762 (JSValueWrapper::JSObjectCopyPropertyNames):
763 (JSValueWrapper::JSObjectCopyProperty):
764 (JSValueWrapper::JSObjectSetProperty):
765 (JSValueWrapper::JSObjectCallFunction):
766 (JSValueWrapper::JSObjectCopyCFValue):
767 (JSValueWrapper::JSObjectMark):
768 * JSValueWrapper.h: Added.
769 * JavaScriptGlue.cpp: Added.
779 (JSObjectCreateInternal):
780 (JSObjectCopyCFValue):
782 (JSObjectCopyProperty):
783 (JSObjectSetProperty):
784 (JSObjectCallFunction):
787 (JSRunCopyGlobalObject):
791 (JSTypeGetCFArrayCallBacks):
794 (JSObjectCreateWithCFType):
796 (JSObjectCopyPropertyNames):
797 (CFJSObjectCopyProperty):
798 (CFJSObjectSetProperty):
799 (CFJSObjectCopyCFValue):
801 (CFJSObjectCopyPropertyNames):
802 (JSCreateCFArrayFromJSArray):
803 (JSCreateJSArrayFromCFArray):
805 (JSUnlockInterpreter):
806 * JavaScriptGlue.exp: Added.
807 * JavaScriptGlue.h: Added.
808 * JavaScriptGlue.pbproj/project.pbxproj: Added.
809 * UserObjectImp.cpp: Added.
810 (UserObjectPrototypeImp::UserObjectPrototypeImp):
811 (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
812 (UserObjectImp::UserObjectImp):
813 (UserObjectImp::~UserObjectImp):
814 (UserObjectImp::classInfo):
815 (UserObjectImp::implementsCall):
816 (UserObjectImp::call):
817 (UserObjectImp::propList):
818 (UserObjectImp::hasProperty):
819 (UserObjectImp::get):
820 (UserObjectImp::put):
821 (UserObjectImp::GetJSUserObject):
822 (UserObjectImp::toPrimitive):
823 (UserObjectImp::toBoolean):
824 (UserObjectImp::toNumber):
825 (UserObjectImp::toString):
826 (UserObjectImp::mark):
827 * UserObjectImp.h: Added.