1 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
5 Build fix: DWARF and -gfull are incompatible with symbol separation.
7 * JavaScriptGlue.xcodeproj/project.pbxproj:
9 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
13 http://bugzilla.opendarwin.org/show_bug.cgi?id=10394
14 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
16 * JavaScriptGlue.xcodeproj/project.pbxproj:
18 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
22 http://bugzilla.opendarwin.org/show_bug.cgi?id=10384
23 Bug 10384: Switch to DWARF for Release configuration
25 * JavaScriptGlue.xcodeproj/project.pbxproj:
27 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
31 - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10192
32 Make WebCore (and friends) compile with -Wshorten-64-to-32
34 * Adds -Wshorten-64-to-32 flag to Xcode project.
36 * JavaScriptGlue.xcodeproj/project.pbxproj:
38 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
42 - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10176
43 Make WebCore compile with -Wundef
45 * Adds -Wundef flag to Xcode project
47 * JavaScriptGlue.xcodeproj/project.pbxproj:
49 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
53 - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10080
54 Adopt pedantic changes from the Unity project to improve
55 cross-compiler compatibility
58 * Turning on gcc warning for missing newline at the end of a source file
59 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
61 * JavaScriptGlue.xcodeproj/project.pbxproj:
65 2006-07-19 Geoffrey Garen <ggaren@apple.com>
67 Fixed by Darin & Maciej, reviewed by me.
69 - Fixed <rdar://problem/4638934> Leopard 9A227: Installer crashes right
70 after LCA and while preparing Installation
72 Compile release/production with NDEBUG set, to ensure binary compatibility
73 between JavaScriptGlue and JavaScriptCore. In debug builds, JavaScriptCore
74 includes an extra debug data member in HashSet.
76 * JavaScriptGlue.xcodeproj/project.pbxproj:
80 2006-07-15 Maciej Stachowiak <mjs@apple.com>
84 - switch property lists to be vector+set of Identifiers instead of list of References
87 (KJSValueToCFTypeInternal): updated for JSC SPI changes
89 (JSValueWrapper::JSObjectCopyPropertyNames): ditto
91 (UserObjectImp::getPropertyNames): ditto
96 2006-07-14 Geoffrey Garen <ggaren@apple.com>
100 - Updated JSInterpreter to work with Interpreter ref-counting in JavaScriptCore.
102 (JSInterpreter::JSInterpreter::~JSInterpreter): Now protected to catch
105 2006-07-12 Anders Carlsson <acarlsson@apple.com>
110 (KJSValueToCFTypeInternal):
111 * JSValueWrapper.cpp:
112 (JSValueWrapper::JSObjectCopyPropertyNames):
114 (UserObjectImp::getPropertyList):
116 === Safari-521.15 ===
118 2006-07-07 Geoffrey Garen <ggaren@apple.com>
123 (KJSValueToCFTypeInternal):
124 * JSValueWrapper.cpp:
125 (JSValueWrapper::JSObjectCopyPropertyNames):
127 2006-07-03 Geoffrey Garen <ggaren@apple.com>
132 (JSRun::CheckSyntax): Updated to use new checkSyntax syntax in JSC.
133 * JavaScriptGlue.xcodeproj/project.pbxproj:
135 === Safari-521.14 ===
137 2006-06-28 Timothy Hatcher <timothy@apple.com>
139 Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
141 * JavaScriptGlue.xcodeproj/project.pbxproj:
143 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
147 * Info.plist: Fixed copyright to include 2003-2006.
149 === JavaScriptGlue-521.13 ===
151 2006-06-20 Geoffrey Garen <ggaren@apple.com>
155 - Required for JS API: Rename propList to getPropertyList and have it
156 take its target property list by reference so that subclasses can
157 add properties to the list before calling through to their superclasses.
160 (KJSValueToCFTypeInternal):
161 * JSValueWrapper.cpp:
162 (JSValueWrapper::JSObjectCopyPropertyNames):
164 (UserObjectImp::getPropertyList):
167 2006-06-15 Timothy Hatcher <timothy@apple.com>
169 Reviewed by Geoff and Darin.
171 Prefer the DWARF debugging symbols format for use in Xcode 2.3.
173 * JavaScriptGlue.xcodeproj/project.pbxproj:
175 2006-06-12 Geoffrey Garen <ggaren@apple.com>
177 Reviewed by TimO, Maciej.
179 - JSGlue part of merging InterpreterImp into Interpreter.
181 Since there's now a kjs forwarding header, I moved all forwarding
182 headers into a "ForwardingHeaders" directory, like in WebCore.
184 * ForwardingHeaders: Added.
185 * ForwardingHeaders/kjs: Added.
186 * ForwardingHeaders/kjs/ExecState.h: Added.
187 * ForwardingHeaders/wtf: Added.
188 * JavaScriptGlue.xcodeproj/project.pbxproj:
191 * wtf/AlwaysInline.h: Removed.
192 * wtf/Assertions.h: Removed.
193 * wtf/FastMalloc.h: Removed.
194 * wtf/Forward.h: Removed.
195 * wtf/HashCountedSet.h: Removed.
196 * wtf/HashSet.h: Removed.
197 * wtf/Noncopyable.h: Removed.
198 * wtf/OwnArrayPtr.h: Removed.
199 * wtf/OwnPtr.h: Removed.
200 * wtf/PassRefPtr.h: Removed.
201 * wtf/Platform.h: Removed.
202 * wtf/RefPtr.h: Removed.
203 * wtf/Vector.h: Removed.
205 === JavaScriptGlue-521.10 ===
207 2006-05-09 Maciej Stachowiak <mjs@apple.com>
209 Rubber stamped by Anders.
211 - renamed kxmlcore to wtf
219 * kxmlcore/AlwaysInline.h: Removed.
220 * kxmlcore/Assertions.h: Removed.
221 * kxmlcore/FastMalloc.h: Removed.
222 * kxmlcore/Forward.h: Removed.
223 * kxmlcore/HashCountedSet.h: Removed.
224 * kxmlcore/HashSet.h: Removed.
225 * kxmlcore/Noncopyable.h: Removed.
226 * kxmlcore/OwnArrayPtr.h: Removed.
227 * kxmlcore/OwnPtr.h: Removed.
228 * kxmlcore/PassRefPtr.h: Removed.
229 * kxmlcore/Platform.h: Removed.
230 * kxmlcore/RefPtr.h: Removed.
231 * kxmlcore/Vector.h: Removed.
234 2006-04-11 Darin Adler <darin@apple.com>
236 - try to fix Windows build
238 * kxmlcore/HashForward.h: Removed.
240 2006-04-10 Darin Adler <darin@apple.com>
242 Rubber-stamped by John Sullivan.
244 - added forwarding headers for the new Forward.h and HashForward.h files
246 * kxmlcore/Forward.h: Added.
247 * kxmlcore/HashForward.h: Added.
249 2006-04-04 Timothy Hatcher <timothy@apple.com>
253 The Debug and Release frameworks are now built with install paths relative to the build products directory.
254 This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore.
256 * JavaScriptGlue.xcodeproj/project.pbxproj:
258 2006-04-02 Eric Seidel <eseidel@apple.com>
260 Reviewed by andersca.
262 Add missing forwarding header.
264 * kxmlcore/Vector.h: Added.
266 2006-03-31 Geoffrey Garen <ggaren@apple.com>
270 - Fixed <rdar://problem/4430836> JavaScript patch crashing Quartz
273 JSValueWrappers used to hold on to the ExecState that pertained at
274 the time of their creation. Since ExecStates are transient, that
275 design was totally bogus, and it would crash once the ExecState had
278 Unfortunately, there's no clean solution to this problem, since
279 the JSGlue API has no notion of state. The solution here is to use
280 a shared, global ExecState for the purpose of JSGlue calls. Given
281 the pre-existing limitations in the JSGlue API, this design
282 shouldn't actually introduce any new limitations (see comments in
285 I tested with Quartz Composer and PAC files, neither of which are
289 (KJSValueToJSObject):
290 * JSValueWrapper.cpp:
291 (JSValueWrapper::JSValueWrapper):
292 (JSValueWrapper::GetValue):
293 (getProcessGlobalExecState):
294 (JSValueWrapper::JSObjectCopyPropertyNames):
295 (JSValueWrapper::JSObjectCopyProperty):
296 (JSValueWrapper::JSObjectSetProperty):
297 (JSValueWrapper::JSObjectCallFunction):
298 (JSValueWrapper::JSObjectCopyCFValue):
301 Also added a test harness file. It was helpful while I was testing,
302 and may come in handy in the future:
304 * JavaScriptGlue.xcodeproj/project.pbxproj:
305 testjsglue.cpp: Added.
307 2006-03-28 Darin Adler <darin@apple.com>
311 - added a build step that checks for init routines
313 * JavaScriptGlue.xcodeproj/project.pbxproj: Added a custom build phase that invokes the
314 check-for-global-initializers script.
316 2006-03-02 Maciej Stachowiak <mjs@apple.com>
318 Not reviewed, but I noticed these trivial extra changes were needed to avoid
319 breaking the build with my reviewed patch for:
321 http://bugzilla.opendarwin.org/show_bug.cgi?id=7387
323 Add config.h, includes of it, and Platform.h forwarding header.
329 * JSValueWrapper.cpp:
330 * JavaScriptGlue.cpp:
333 * kxmlcore/Platform.h: Added.
335 === JavaScriptGlue-521.7 ===
337 2006-02-10 Geoffrey Garen <ggaren@apple.com>
344 (UserObjectImp::toPrimitive):
347 2006-02-03 Timothy Hatcher <timothy@apple.com>
351 Renamed configuration names to Debug, Release and Production.
353 * JavaScriptGlue.xcodeproj/project.pbxproj:
355 2006-02-01 Darin Adler <darin@apple.com>
357 - added some forwarding headers to make new JavaScriptCore changes work
359 * kxmlcore/Assertions.h: Added.
360 * kxmlcore/Noncopyable.h: Added.
361 * kxmlcore/OwnPtr.h: Added.
362 * kxmlcore/OwnArrayPtr.h: Added.
364 2006-01-16 Timothy Hatcher <timothy@apple.com>
366 Adding the license header to all files so we can
367 move JavaScriptGlue into the open source repository.
370 * JSBase.cpp: license header added.
372 * JSObject.cpp: ditto.
376 * JSUtils.cpp: ditto.
378 * JSValueWrapper.cpp: ditto.
379 * JSValueWrapper.h: ditto.
380 * JavaScriptGlue.cpp: ditto.
381 * JavaScriptGlue.h: ditto.
382 * UserObjectImp.cpp: ditto.
383 * UserObjectImp.h: ditto.
385 2005-12-21 Timothy Hatcher <timothy@apple.com>
387 * JavaScriptGlue.xcodeproj/project.pbxproj:
388 Set tab width to 8, indent width to 4 and uses tabs to false per file.
390 2005-12-19 Darin Adler <darin@apple.com>
392 Reviewed by Geoff Garen and Eric Seidel.
394 - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4923
395 stop using <ostream> in WebCore, eliminating the <cmath> troubles it causes
397 * kxmlcore/AlwaysInline.h: Added.
399 2005-12-15 Darin Adler <darin@apple.com>
403 * JSRun.cpp: (JSRun::Evaluate): Updated for change to Interpreter::evaluate.
405 2005-12-15 Darin Adler <darin@apple.com>
407 Reviewed by Tim Hatcher.
409 * JavaScriptGlue.xcodeproj/project.pbxproj: Removed some redundant build
410 settings, turned off prebinding explicitly for our Development and
411 Deployment builds, remove .exp file from sources. All "clean-up".
415 2005-12-13 Geoffrey Garen <ggaren@apple.com>
417 - Fixed build after Anders's last checkin to JavaScriptCore.
422 (UserObjectImp::userObjectGetter): Updated to reflect new argument that
423 getters take (unused here).
426 2005-12-13 Maciej Stachowiak <mjs@apple.com>
430 - added forwarding header for HashCountedSet
432 * kxmlcore/HashCountedSet.h: Added.
434 2005-12-10 Darin Adler <darin@apple.com>
436 Rubber stamped by Maciej.
438 - updated for KJS class renaming
440 * many files and functions
442 2005-12-10 Darin Adler <darin@apple.com>
446 - eliminated the old Undefined(), Null(), Boolean(), Number(), and String()
448 Code now uses jsUndefined(), jsNull(), jsBoolean(), jsNumber(), and jsString().
453 (UserObjectImp::callAsFunction):
454 (UserObjectImp::toPrimitive):
456 2005-12-05 Maciej Stachowiak <mjs@apple.com>
458 - added new forwarding headers
460 * kxmlcore/PassRefPtr.h: Added.
461 * kxmlcore/RefPtr.h: Added.
463 2005-12-05 Maciej Stachowiak <mjs@apple.com>
465 * kxmlcore/PassRefPtr.h: Added.
467 2005-11-26 Maciej Stachowiak <mjs@apple.com>
469 Rubber stamped by Eric.
471 - renamed InterpreterLock to JSLock
476 (KJSValueToCFTypeInternal):
477 * JSValueWrapper.cpp:
478 (JSValueWrapper::JSObjectCopyPropertyNames):
479 (JSValueWrapper::JSObjectCopyProperty):
480 (JSValueWrapper::JSObjectSetProperty):
481 (JSValueWrapper::JSObjectCallFunction):
482 (JSValueWrapper::JSObjectCopyCFValue):
483 * JavaScriptGlue.cpp:
487 (JSUnlockInterpreter):
489 (UserObjectImp::callAsFunction):
491 2005-11-16 Maciej Stachowiak <mjs@apple.com>
495 Updated to use new API to drop all locks.
497 * JavaScriptGlue.cpp:
499 (JSUnlockInterpreter):
501 (UserObjectImp::callAsFunction):
503 2005-11-14 Geoffrey Garen <ggaren@apple.com>
507 - Part of the fix for <rdar://problem/4342216> Installer crash in
508 KJS::ValueImp::marked() when garbage collector runs inside call to
509 ConstantValues::init()
511 Added locking in JSRunCreate, since JSRun::JSRun constructs an object.
513 * JavaScriptGlue.cpp:
516 2005-11-10 Geoffrey Garen <ggaren@apple.com>
520 - Fixed <rdar://problem/4334445> installer crashed on my
521 dual g4 450Mhz after clicking language
523 - Reversed backwards NULL check.
524 - Inserted guards against NULL fJSUserObject data member.
525 - Cleaned up some style.
528 (KJSValueToCFTypeInternal):
530 (UserObjectImp::~UserObjectImp):
531 (UserObjectImp::callAsFunction):
532 (UserObjectImp::userObjectGetter):
533 (UserObjectImp::getOwnPropertySlot):
534 (UserObjectImp::put):
535 (UserObjectImp::mark):
537 2005-11-04 Timothy Hatcher <timothy@apple.com>
541 * JavaScriptGlue.xcodeproj/project.pbxproj:
542 Fixed the FRAMEWORK_SEARCH_PATHS to look in the WebKit
543 Frameworks for the Default config.
545 2005-11-03 Timothy Hatcher <timothy@apple.com>
547 Reviewed by Darin and Vicki.
549 * JavaScriptGlue.xcodeproj/project.pbxproj:
550 Change to use $(SYSTEM_LIBRARY_DIR) consistently and place
551 $(NEXT_ROOT) in a few spots to make build-root work.
553 2005-11-01 Maciej Stachowiak <mjs@apple.com>
557 <rdar://problem/4324107> get JavaScriptGlue working with TOT JavaScriptCore again
559 - reverted all this stuff to use ReferenceList instead of IdentifierSequencedSet
562 (KJSValueToCFTypeInternal):
563 * JSValueWrapper.cpp:
564 (JSValueWrapper::JSObjectCopyPropertyNames):
566 (UserObjectImp::propList):
569 2005-10-11 Timothy Hatcher <timothy@apple.com>
571 Setup the proper Framework search path for the Default config.
572 Prepping for a TOT submission and build by B&I.
574 * JavaScriptGlue.xcodeproj/project.pbxproj:
576 2005-10-10 Darin Adler <darin@apple.com>
580 - converted tabs to spaces, NULL to 0, added some (void), got rid of __ prefixes
581 in headers (reserved for compiler/library)
592 * JSValueWrapper.cpp:
594 * JavaScriptGlue.cpp:
599 2005-10-10 Darin Adler <darin@apple.com>
601 * .cvsignore: Added. Ignore Makefile.in and Makefile.
603 2005-10-07 Timothy Hatcher <timothy@apple.com>
607 Build fix, needed to disable RTTI. Upgraded to a native target.
609 * JavaScriptGlue.xcodeproj/project.pbxproj:
612 2005-10-05 Maciej Stachowiak <mjs@apple.com>
614 Reviewed by Eric and Darin.
616 <rdar://problem/4260506> Port JavaScriptGlue to TOT JavaScriptCore
620 (JSRun::GlobalObject):
622 (JSInterpreter::JSInterpreter):
624 (KJSValueToJSObject):
626 (KJSValueToCFTypeInternal):
629 * JSValueWrapper.cpp:
630 (JSValueWrapper::JSValueWrapper):
631 (JSValueWrapper::GetValue):
632 (JSValueWrapper::JSObjectCopyPropertyNames):
633 (JSValueWrapper::JSObjectCopyProperty):
634 (JSValueWrapper::JSObjectSetProperty):
635 (JSValueWrapper::JSObjectCallFunction):
636 (JSValueWrapper::JSObjectMark):
638 * JavaScriptGlue.cpp:
639 (JSRunCopyGlobalObject):
640 * JavaScriptGlue.xcodeproj/project.pbxproj:
641 * Makefile.am: Added.
643 (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
644 (UserObjectImp::UserObjectImp):
645 (UserObjectImp::callAsFunction):
646 (UserObjectImp::getPropertyNames):
647 (UserObjectImp::userObjectGetter):
648 (UserObjectImp::getOwnPropertySlot):
649 (UserObjectImp::put):
650 (UserObjectImp::toPrimitive):
651 (UserObjectImp::mark):
653 * kxmlcore/FastMalloc.h: Added.
654 * kxmlcore/HashSet.h: Added.
656 2005-09-14 Maciej Stachowiak <mjs@apple.com>
660 - fixed <rdar://problem/4214783> REGRESSION: kjs_fast_malloc crash due to lack of locking on multiple threads (seen selecting volumes in the installer)
662 Make sure to lock using the InterpreterLock class in all places that need it
663 (including anything that uses the collector, the parser, the protect count hash table,
664 and anything that allocates via fast_malloc).
669 (KJSValueToCFTypeInternal):
671 * JSValueWrapper.cpp:
672 (JSValueWrapper::JSObjectCopyPropertyNames):
673 (JSValueWrapper::JSObjectCopyProperty):
674 (JSValueWrapper::JSObjectSetProperty):
675 (JSValueWrapper::JSObjectCallFunction):
676 (JSValueWrapper::JSObjectCopyCFValue):
677 * JavaScriptGlue.cpp:
680 2005-09-27 Adele Peterson <adele@apple.com>
684 <rdar://problem/4223297> JavaScriptGlue: Submit 64-bit compatible versions of your API and SPIs by September 15
686 * JavaScriptGlue.h: Changed UInt32 to CFTypeID for JSTypeID
688 2005-09-06 Geoffrey Garen <ggaren@apple.com>
690 -upgraded project files to XCode 2.1
692 * JavaScriptGlue.pbproj/project.pbxproj: Removed.
693 * JavaScriptGlue.xcodeproj/.cvsignore: Added.
694 * JavaScriptGlue.xcodeproj/project.pbxproj: Added.
696 2005-09-01 Maciej Stachowiak <mjs@apple.com>
698 Rubber stamped by hyatt.
700 - initial import of JavaScriptGlue into our repository
702 * English.lproj/InfoPlist.strings: Added.
708 (JSBase::RetainCount):
710 (JSBase::CopyDescription):
713 * JSObject.cpp: Added.
714 (JSUserObject::JSUserObject):
715 (JSUserObject::~JSUserObject):
716 (JSUserObject::CopyPropertyNames):
717 (JSUserObject::CopyProperty):
718 (JSUserObject::SetProperty):
719 (JSUserObject::ImplementsCall):
720 (JSUserObject::CallFunction):
721 (JSUserObject::CopyCFValue):
722 (JSUserObject::Equal):
723 (JSUserObject::Mark):
724 (JSUserObject::GetData):
726 (JSUserObject::DataType):
732 (JSRun::GlobalObject):
733 (JSRun::GetInterpreter):
735 (JSRun::CheckSyntax):
737 (JSInterpreter::JSInterpreter):
738 (JSInterpreter::JSInterpreter::~JSInterpreter):
739 (JSInterpreter::Flags):
740 * JSUtils.cpp: Added.
743 (CFStringToIdentifier):
744 (IdentifierToCFString):
745 (KJSValueToJSObject):
747 (KJSValueToCFTypeInternal):
753 * JSValueWrapper.cpp: Added.
754 (JSValueWrapper::JSValueWrapper):
755 (JSValueWrapper::~JSValueWrapper):
756 (JSValueWrapper::GetValue):
757 (JSValueWrapper::GetExecState):
758 (JSValueWrapper::GetJSObectCallBacks):
759 (JSValueWrapper::JSObjectDispose):
760 (JSValueWrapper::JSObjectCopyPropertyNames):
761 (JSValueWrapper::JSObjectCopyProperty):
762 (JSValueWrapper::JSObjectSetProperty):
763 (JSValueWrapper::JSObjectCallFunction):
764 (JSValueWrapper::JSObjectCopyCFValue):
765 (JSValueWrapper::JSObjectMark):
766 * JSValueWrapper.h: Added.
767 * JavaScriptGlue.cpp: Added.
777 (JSObjectCreateInternal):
778 (JSObjectCopyCFValue):
780 (JSObjectCopyProperty):
781 (JSObjectSetProperty):
782 (JSObjectCallFunction):
785 (JSRunCopyGlobalObject):
789 (JSTypeGetCFArrayCallBacks):
792 (JSObjectCreateWithCFType):
794 (JSObjectCopyPropertyNames):
795 (CFJSObjectCopyProperty):
796 (CFJSObjectSetProperty):
797 (CFJSObjectCopyCFValue):
799 (CFJSObjectCopyPropertyNames):
800 (JSCreateCFArrayFromJSArray):
801 (JSCreateJSArrayFromCFArray):
803 (JSUnlockInterpreter):
804 * JavaScriptGlue.exp: Added.
805 * JavaScriptGlue.h: Added.
806 * JavaScriptGlue.pbproj/project.pbxproj: Added.
807 * UserObjectImp.cpp: Added.
808 (UserObjectPrototypeImp::UserObjectPrototypeImp):
809 (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
810 (UserObjectImp::UserObjectImp):
811 (UserObjectImp::~UserObjectImp):
812 (UserObjectImp::classInfo):
813 (UserObjectImp::implementsCall):
814 (UserObjectImp::call):
815 (UserObjectImp::propList):
816 (UserObjectImp::hasProperty):
817 (UserObjectImp::get):
818 (UserObjectImp::put):
819 (UserObjectImp::GetJSUserObject):
820 (UserObjectImp::toPrimitive):
821 (UserObjectImp::toBoolean):
822 (UserObjectImp::toNumber):
823 (UserObjectImp::toString):
824 (UserObjectImp::mark):
825 * UserObjectImp.h: Added.