1 2011-01-17 Dan Bernstein <mitz@apple.com>
3 Rubber-stamped by Mark Rowe.
5 Update xcodeproj svn:ignore to include xcuserdata.
7 * JavaScriptGlue.xcodeproj: Modified property svn:ignore.
9 2011-01-10 Geoffrey Garen <ggaren@apple.com>
11 Reviewed by Oliver Hunt.
13 Moved Collector.* => Heap.*, since the file contains a class named "Heap".
17 2011-01-02 Dan Bernstein <mitz@apple.com>
19 Rubber-stamped by Simon Fraser.
21 <rdar://problem/8812159> Update copyright strings
25 2010-12-22 Dan Bernstein <mitz@apple.com>
27 Rubber-stamped by Mark Rowe.
29 Changed WebKitTools to Tools in script build phases.
31 * JavaScriptGlue.xcodeproj/project.pbxproj:
33 2010-12-21 Geoffrey Garen <ggaren@apple.com>
35 Reviewed by Gavin Barraclough & Oliver Hunt.
37 Added PageAllocationAligned, a cross-platform abstraction for memory allocations with arbitrary alignment requirements
38 https://bugs.webkit.org/show_bug.cgi?id=51359
40 * ForwardingHeaders/wtf/PageAllocationAligned.h: Added.
42 2010-12-21 Daniel Bates <dbates@rim.com>
44 Reviewed by Eric Seidel and Darin Adler.
46 Deallocate GregorianDateTime.timeZone (if allocated) when copying so that we don't leak memory.
47 https://bugs.webkit.org/show_bug.cgi?id=51367
49 Add forwarding header for PassOwnArrayPtr.h.
51 * ForwardingHeaders/wtf/PassOwnArrayPtr.h: Added.
53 2010-12-18 Gavin Barraclough <barraclough@apple.com>
55 Reviewed by Oliver Hunt.
57 Bug 26276 - Need a mechanism to determine stack extent
59 Add forwarding header for StackBounds.h.
61 * ForwardingHeaders/wtf/StackBounds.h: Added.
63 2010-12-20 Geoffrey Garen <ggaren@apple.com>
65 Reviewed by Sam Weinig.
67 Factored common page set management into a new PageBlock base class
68 https://bugs.webkit.org/show_bug.cgi?id=51285
70 * ForwardingHeaders/wtf/PageBlock.h: Added.
72 2010-12-01 Geoffrey Garen <ggaren@apple.com>
74 Build fix: Added a forwarding header.
76 * ForwardingHeaders/wtf/OSAllocator.h: Added.
78 2010-10-25 Oliver Hunt <oliver@apple.com>
80 Reviewed by Gavin Barraclough.
82 Remove exec and globalData arguments from jsNumber
83 https://bugs.webkit.org/show_bug.cgi?id=48270
85 Don't pass exec to jsNumber
90 (UserObjectImp::toPrimitive):
92 2010-10-25 Sheriff Bot <webkit.review.bot@gmail.com>
94 Unreviewed, rolling out r70451.
95 http://trac.webkit.org/changeset/70451
96 https://bugs.webkit.org/show_bug.cgi?id=48249
98 Broke set-unloaded-frame-location.html under Qt (Requested by
101 * ForwardingHeaders/wtf/text/TextPosition.h: Removed.
103 2010-10-16 Patrick Gansterer <paroga@webkit.org>
105 Reviewed by Adam Barth.
107 Rename StringHasherFunctions.h to StringHasher.h
108 https://bugs.webkit.org/show_bug.cgi?id=47200
110 * ForwardingHeaders/wtf/StringHashFunctions.h: Removed.
111 * ForwardingHeaders/wtf/StringHasher.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/StringHashFunctions.h.
113 2010-09-09 Michael Saboff <msaboff@apple.com>
115 Reviewed by Gavin Barraclough.
117 Added ListHashSet.h as an exported header in support of RegExp tracing.
118 https://bugs.webkit.org/show_bug.cgi?id=45401
120 * ForwardingHeaders/wtf/ListHashSet.h: Added.
122 2010-09-07 Anders Carlsson <andersca@apple.com>
124 Reviewed by Darin Adler.
126 <rdar://problem/8381749> -Wcast-align warning emitted when building with clang
128 Remove the -Wcast-align-warning since it isn't really useful, and clang is more aggressive about warning than gcc.
130 * Configurations/Base.xcconfig:
132 2010-08-26 Sam Weinig <sam@webkit.org>
134 Reviewed by Darin Adler.
137 https://bugs.webkit.org/show_bug.cgi?id=44627
139 Add new forwarding header.
141 * ForwardingHeaders/wtf/OwnArrayPtrCommon.h: Added.
143 2010-08-23 Gavin Barraclough <barraclough@apple.com>
145 Reviewed by Oliver Hunt.
147 https://bugs.webkit.org/show_bug.cgi?id=44487
149 * ForwardingHeaders/wtf/text/WTFString.h: Added.
151 2010-08-24 Oliver Hunt <oliver@apple.com>
153 Reviewed by Geoff Garen.
155 Don't seed the JS random number generator from time()
156 https://bugs.webkit.org/show_bug.cgi?id=41868
157 <rdar://problem/8171025>
159 Add forwarding header for RandomNumber in JavaScriptGlue
161 * ForwardingHeaders/wtf/RandomNumber.h: Added.
163 2010-08-11 Gavin Barraclough <barraclough@apple.com>
165 Rubber stamps by Darin Adler & Sam Weinig.
167 Bug 43867 - Some UString cleanup
169 Change JSC::UString data(), size(), and from(), to characters(), length(), and number() to match WTF::String.
170 Move string concatenation methods to a new header to simplify down UString.h. Remove is8Bit().
174 (KJSValueToCFTypeInternal):
175 * JavaScriptGlue.xcodeproj/project.pbxproj:
177 2010-08-04 Gavin Barraclough <barraclough@apple.com>
179 Reviewed by Sam Weinig.
181 Bug 43515 - Fix small design issues with PageAllocation, split out PageReservation.
182 (add forwarding headers)
184 * ForwardingHeaders/wtf/Bitmap.h: Added.
185 * ForwardingHeaders/wtf/PageReservation.h: Added.
187 2010-08-04 Sheriff Bot <webkit.review.bot@gmail.com>
189 Unreviewed, rolling out r64655.
190 http://trac.webkit.org/changeset/64655
191 https://bugs.webkit.org/show_bug.cgi?id=43496
193 JavaScriptCore references patch seems to have caused
194 regressions in QT and GTK builds (Requested by nlawrence on
197 * JSValueWrapper.cpp:
198 (JSValueWrapper::JSObjectMark):
200 2010-08-04 Nathan Lawrence <nlawrence@apple.com>
202 Reviewed by Darin Adler.
204 Removed unneeded marking. We need to remove this marking in order to have
205 MarkStack::append take references for updating movable objects.
207 https://bugs.webkit.org/show_bug.cgi?id=41177
209 * JSValueWrapper.cpp:
210 (JSValueWrapper::JSObjectMark):
212 2010-08-03 Gavin Barraclough <barraclough@apple.com>
214 Build fix following r64624.
216 * ForwardingHeaders/wtf/BitMap.h: Added.
218 2010-07-27 Gavin Barraclough <barraclough@apple.com>
220 Reviewed by Oliver Hunt.
222 Bug 42621 - Add a bump allocator for the YARR interpreter
224 The regex engine requires lifo allocation, however currently uses the general purpose
225 malloc/free memory allocation. A simple bump pointer allocator should provide a lower
226 overhead allocation solution.
228 * ForwardingHeaders/wtf/BumpPointerAllocator.h: Added.
230 2010-07-26 Gavin Barraclough <barraclough@apple.com>
232 Reviewed by Oliver Hunt.
234 Bug 43009 - Abstract out page allocation from executable allocators
236 * ForwardingHeaders/wtf/PageAllocation.h: Added.
238 2010-07-01 Oliver Hunt <oliver@apple.com>
240 Reviewed by Maciej Stachowiak.
242 Add a FixedArray template to encapsulate fixed length arrays
243 https://bugs.webkit.org/show_bug.cgi?id=41506
245 Add forwarding header.
247 * ForwardingHeaders/wtf/FixedArray.h: Added.
249 2010-06-02 Gavin Barraclough <barraclough@apple.com>
251 Reviewed by Oliver Hunt.
253 Bug 40094 - The return type of NativeFunction should be EncodedJSValue
254 On Windows & Linux, using JSVALUE32_64, EncodedJSValue is returned in registers, but JSValue is not.
257 (nativeCallFunction):
259 2010-05-28 Geoffrey Garen <ggaren@apple.com>
261 Reviewed by Sam Weinig, Gavin Barraclough, Oliver Hunt.
263 Simplified the host calling convention.
265 PART ONE: Functional code changes.
267 [ None in JavaScriptGlue ]
269 PART TWO: Global search and replace.
271 In the areas below, I used global search-and-replace to change
272 (ExecState*, JSObject*, JSValue, const ArgList&) => (ExecState*)
273 args.size() => exec->argumentCount()
274 args.at(i) => exec->argument(i)
277 (nativeCallFunction):
279 (UserObjectImp::callAsFunction):
282 2010-04-23 Sam Weinig <sam@webkit.org>
284 Reviewed by David Levin.
286 Fix for https://bugs.webkit.org/show_bug.cgi?id=38060
289 Add necessary forwarding headers.
291 * ForwardingHeaders/wtf/Atomics.h: Added.
292 * ForwardingHeaders/wtf/ThreadSafeShared.h: Added.
293 * ForwardingHeaders/wtf/ThreadingPrimitives.h: Added.
295 2010-04-22 Sam Weinig <sam@webkit.org>
297 Reviewed by Anders Carlsson.
299 Fix for https://bugs.webkit.org/show_bug.cgi?id=38022
300 Move isMainThread predicate function to MainThread.h
302 Added forwarding header for MainThread.h
304 * ForwardingHeaders/wtf/MainThread.h: Added.
306 2010-04-22 Gavin Barraclough <barraclough@apple.com>
308 Rubber stamped by Sam Weinig
310 Do not get the globaldata for the APIShim via the
311 global object; global object construction creates identifiers
312 which results in the ASSERTs checking the thread data's
313 identifierTable has been set failing.
316 (unprotectGlobalObject):
317 (getThreadGlobalData):
318 (getThreadGlobalObject):
319 (JSGlueAPIEntry::JSGlueAPIEntry):
320 (JSGlueAPICallback::~JSGlueAPICallback):
322 2010-04-21 Geoffrey Garen <ggaren@apple.com>
324 Reviewed by Sam Weinig.
326 <rdar://problem/7879485> Leopard: Crash after opening Software Update dialog
329 (unprotectGlobalObject): Use the version of JSGlueAPIEntry that doesn't
330 call pthread_getspecific, since it's not safe to call pthread_getspecific
331 from a thread-specific data destructor. (<rdar://problem/7889842>
332 pthread_getspecific returns 0 when called from thread-specific data
335 (getThreadGlobalObject): Make sure to set the currentIdentifierTable
336 when first constructing our JSGlobalObject, since JSGlueAPIEntry has not
337 yet had an opportunity to do so.
339 (JSGlueAPIEntry::JSGlueAPIEntry):
340 * JSUtils.h: New version of JSGlueAPIEntry that doesn't call
343 2010-04-21 Gavin Barraclough <barraclough@apple.com>
345 Reviewed by NOBODY (build fix).
346 Errk! tree on fire, add fwd!
348 * ForwardingHeaders/wtf/text/StringHash.h: Added.
350 2010-04-20 Gavin Barraclough <barraclough@apple.com>
352 Reviewed by Oliver Hunt, Darin Adler.
354 Bug 37906 - Remove JSC::UStringImpl; unify with StringImpl.
355 Add forwarding header.
357 * ForwardingHeaders/wtf/ASCIICType.h: Added.
358 * ForwardingHeaders/wtf/text/StringImpl.h: Added.
360 2010-04-20 Gavin Barraclough <barraclough@apple.com>
362 Reviewed by Oliver Hunt.
364 Bug 37895 - Share common code from UStringImplBase with StringImpl
365 Add forwarding header.
367 * ForwardingHeaders/wtf/text/StringImplBase.h: Added.
369 2010-04-20 Gavin Barraclough <barraclough@apple.com>
371 Rubber stamped by Maciej Stachowiak (relanding r57829).
372 Added missing JS_EXPORTDATA
374 * ForwardingHeaders/wtf/WTFThreadData.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/WTFThreadData.h.
376 (JSGlueAPIEntry::JSGlueAPIEntry):
377 (JSGlueAPIEntry::~JSGlueAPIEntry):
378 (JSGlueAPICallback::JSGlueAPICallback):
379 (JSGlueAPICallback::~JSGlueAPICallback):
381 2010-04-19 Gavin Barraclough <barraclough@apple.com>
383 Reviewed by NOBODY (rolling out r57829).
386 * ForwardingHeaders/wtf/WTFThreadData.h: Removed.
388 (JSGlueAPIEntry::JSGlueAPIEntry):
389 (JSGlueAPIEntry::~JSGlueAPIEntry):
390 (JSGlueAPICallback::JSGlueAPICallback):
391 (JSGlueAPICallback::~JSGlueAPICallback):
393 2010-04-16 Gavin Barraclough <barraclough@apple.com>
395 Reviewed by Sam Weinig.
397 https://bugs.webkit.org/show_bug.cgi?id=37745
398 Move string uniquing tables to (new) WTFThreadData class.
400 Remove AtomicString's dependency on ThreadGlobalData so that we can move
401 WebCore's string classes up to WTF.
403 * ForwardingHeaders/wtf/WTFThreadData.h: Added.
404 * JSUtils.cpp: Update
405 (JSGlueAPIEntry::JSGlueAPIEntry):
406 (JSGlueAPIEntry::~JSGlueAPIEntry):
407 (JSGlueAPICallback::JSGlueAPICallback):
408 (JSGlueAPICallback::~JSGlueAPICallback):
410 2010-03-31 Gavin Barraclough <barraclough@apple.com>
412 Reviewed by Geoff Garen.
414 Bug 36871 - Remove JSC::CString
415 Use WTF::CString instead (which until recently was WebCore::CString).
417 * ForwardingHeaders/wtf/text: Added.
418 * ForwardingHeaders/wtf/text/CString.h: Added.
420 2010-03-11 Mark Rowe <mrowe@apple.com>
422 Reviewed by David Kilzer.
424 <rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version
426 Default to using the appropriate SDK if the target Mac OS X version is not the current Mac OS X version.
428 * Configurations/Base.xcconfig:
430 2010-03-11 Mark Rowe <mrowe@apple.com>
432 Reviewed by Tim Hatcher.
434 <rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version
436 Introduce TARGET_MAC_OS_X_VERSION_MAJOR to represent the Mac OS X version that is being targeted. It defaults to the
437 current Mac OS X version unless otherwise specified.
439 Key off TARGET_MAC_OS_X_VERSION_MAJOR where we'd previously been keying off MAC_OS_X_VERSION_MAJOR.
441 Explicitly map from the target Mac OS X version to the preferred compiler since Xcode's default compiler choice
442 may not be usable when targetting a different Mac OS X version.
444 Key off TARGET_GCC_VERSION rather than MAC_OS_X_VERSION_MAJOR in locations where we'd previously been keying off
445 MAC_OS_X_VERSION_MAJOR but the decision is really related to the compiler version being used.
447 * Configurations/Base.xcconfig:
448 * Configurations/DebugRelease.xcconfig:
449 * Configurations/Version.xcconfig:
450 * JavaScriptGlue.xcodeproj/project.pbxproj:
452 2010-03-01 Oliver Hunt <oliver@apple.com>
454 Reviewed by Maciej Stachowiak.
456 Refactor named getter function signature to be in line with indexing getter signature
457 https://bugs.webkit.org/show_bug.cgi?id=35563
459 Fix method signature and update code as appropriate
462 (UserObjectImp::userObjectGetter):
465 2010-02-09 Alexey Proskuryakov <ap@apple.com>
467 Reviewed by Geoffrey Garen.
469 https://bugs.webkit.org/show_bug.cgi?id=34490
470 WebCore::ImageEventSender::dispatchPendingEvents() crashes in certain conditions
472 * ForwardingHeaders/wtf/ValueCheck.h: Added.
474 2010-02-04 Mark Rowe <mrowe@apple.com>
476 Reviewed by Timothy Hatcher.
478 Build fix. Remove a symbol corresponding to an inline function from the linker export
479 file to prevent a weak external failure.
481 * JavaScriptGlue.xcodeproj/project.pbxproj: Accommodate rename of script.
483 2010-01-28 Oliver Hunt <oliver@apple.com>
485 Reviewed by Gavin Barraclough.
487 Simplify anonymous slot implementation
488 https://bugs.webkit.org/show_bug.cgi?id=34282
490 Update JSGlue Structure usage to pass the anonymous slot count.
493 (UserObjectImp::createStructure):
495 2010-01-12 Kent Hansen <kent.hansen@nokia.com>
497 Reviewed by Geoffrey Garen.
499 [ES5] Implement Object.getOwnPropertyNames
500 https://bugs.webkit.org/show_bug.cgi?id=32242
502 Add new argument to the reimplementation of getOwnPropertyNames().
505 (UserObjectImp::getOwnPropertyNames):
508 2010-01-07 Alexey Proskuryakov <ap@apple.com>
512 * config.h: Define JS_EXPORTCLASS for JavaScriptGlue.
514 2010-01-05 Gavin Barraclough <barraclough@apple.com>
516 Reviewed by Sam Weinig.
518 https://bugs.webkit.org/show_bug.cgi?id=33236
519 Remove m_identifierTable pointer from UString
521 Add API shims similar to those used in the JSC API to track the current identifierTable.
527 (KJSValueToCFTypeInternal):
528 (unprotectGlobalObject):
529 (JSGlueAPIEntry::JSGlueAPIEntry):
530 (JSGlueAPIEntry::~JSGlueAPIEntry):
531 (JSGlueAPICallback::JSGlueAPICallback):
532 (JSGlueAPICallback::~JSGlueAPICallback):
534 * JSValueWrapper.cpp:
535 (JSValueWrapper::JSObjectCopyPropertyNames):
536 (JSValueWrapper::JSObjectCopyProperty):
537 (JSValueWrapper::JSObjectSetProperty):
538 (JSValueWrapper::JSObjectCallFunction):
539 (JSValueWrapper::JSObjectCopyCFValue):
540 * JavaScriptGlue.cpp:
545 * JavaScriptGlue.xcodeproj/project.pbxproj:
547 (UserObjectImp::callAsFunction):
549 2010-01-04 Gavin Barraclough <barraclough@apple.com>
551 Reviewed by Sam Weinig.
553 Add a forwarding header so that StringHashFunctions.h can be found.
555 * ForwardingHeaders/wtf/StringHashFunctions.h: Added.
557 2010-01-04 Dan Bernstein <mitz@apple.com>
559 Reviewed by Ada Chan and Mark Rowe.
561 Updated copyright string
565 2009-12-21 Gavin Barraclough <barraclough@apple.com>
567 Reviewed by Darin Adler.
569 https://bugs.webkit.org/show_bug.cgi?id=32831
570 Replace UString::Rep implementation, following introduction of ropes to JSC.
572 * ForwardingHeaders/wtf/PossiblyNull.h: Added.
573 - add forwarding header.
575 2009-12-16 Mark Rowe <mrowe@apple.com>
577 Build fix. Disable debug variants of WebKit frameworks.
579 * JavaScriptGlue.xcodeproj/project.pbxproj:
581 2009-12-13 Geoffrey Garen <ggaren@apple.com>
583 Reviewed by Sam Weinig.
585 Changed GC from mark-sweep to mark-allocate.
587 * JavaScriptGlue.cpp:
588 (JSCollect): Updated for rename. Fixed a bug where JSGlue would not check
589 to avoid nested GC calls.
591 2009-12-08 Dmitry Titov <dimich@chromium.org>
593 Rubber-stamped by David Levin.
595 Revert and reopen "Add asserts to RefCounted to make sure ref/deref happens on the right thread."
596 It may have caused massive increase of reported leaks on the bots.
597 https://bugs.webkit.org/show_bug.cgi?id=31639
599 * ForwardingHeaders/wtf/ThreadVerifier.h: Removed.
601 2009-12-08 Dmitry Titov <dimich@chromium.org>
603 Reviewed by Darin Adler.
605 Add asserts to RefCounted to make sure ref/deref happens on the right thread.
606 https://bugs.webkit.org/show_bug.cgi?id=31639
608 * ForwardingHeaders/wtf/ThreadVerifier.h: Added.
610 2009-11-24 Mark Rowe <mrowe@apple.com>
612 Fix production builds where the source tree may be read-only.
614 * JavaScriptGlue.xcodeproj/project.pbxproj:
616 2009-11-08 David Levin <levin@chromium.org>
618 Reviewed by NOBODY (chromium build fix).
620 Added the use jsc define for files that use
621 this config file and DateMath.h. This should
622 be able to go away when DateMath is properly
623 split into wtf and jsc portions which is this bug:
624 https://bugs.webkit.org/show_bug.cgi?id=31246
628 2009-11-06 Geoffrey Garen <ggaren@apple.com>
630 Reviewed by Oliver Hunt.
632 https://bugs.webkit.org/show_bug.cgi?id=31197
633 Implemented a timezone cache not based on Mac OS X's notify_check API.
635 * ForwardingHeaders/wtf/CurrentTime.h: Added.
637 2009-10-27 Geoffrey Garen <ggaren@apple.com>
639 Build fix: Updated for JavaScriptCore export changes.
641 * ForwardingHeaders/wtf/DateInstanceCache.h: Added.
643 2009-10-27 Geoffrey Garen <ggaren@apple.com>
645 Reviewed by Oliver Hunt.
647 Updated for JavaScriptCore export changes.
649 * ForwardingHeaders/wtf/DateMath.h: Added.
651 2009-10-27 Dan Bernstein <mitz@apple.com>
653 Reviewed by Darin Adler.
659 2009-10-16 Oliver Hunt <oliver@apple.com>
661 Reviewed by Gavin Barraclough.
663 Make typeinfo flags default to false
664 https://bugs.webkit.org/show_bug.cgi?id=30372
666 Last part -- replace HasDefaultGetPropertyNames with OverridesGetPropertyNames
670 (UserObjectImp::createStructure):
672 2009-10-15 Oliver Hunt <oliver@apple.com>
674 Reviewed by Darin Adler.
676 Make typeinfo flags default to false
677 https://bugs.webkit.org/show_bug.cgi?id=30372
679 Part 2 -- Reverse the TypeInfo HasDefaultMark flag to OverridesMarkChildren, etc
682 (UserObjectImp::createStructure):
684 2009-10-14 Oliver Hunt <oliver@apple.com>
686 Reviewed by Geoff Garen.
688 Make typeinfo flags default to false
689 https://bugs.webkit.org/show_bug.cgi?id=30372
691 Part 1. Reverse the HasStandardGetOwnPropertySlot flag.
694 (UserObjectImp::createStructure):
696 2009-09-28 Geoffrey Garen <ggaren@apple.com>
698 Reviewed by Sam Weinig.
700 Removed virtual destructor from JSGlobalObjectData to eliminate pointer
701 fix-ups when accessing JSGlobalObject::d.
703 Replaced with an explicit destructor function pointer.
706 (JSGlueGlobalObject::destroyData):
708 (JSGlueGlobalObject::Data::Data):
710 2009-09-12 Oliver Hunt <oliver@apple.com>
712 Reviewed by Maciej Stachowiak.
714 [ES5] Implement Object.keys
715 https://bugs.webkit.org/show_bug.cgi?id=29170
717 Switch over to getOwnPropertyNames instead of getPropertyNames.
720 (UserObjectImp::getOwnPropertyNames):
723 2009-09-02 Darin Adler <darin@apple.com>
725 Reviewed by Geoff Garen.
727 * JSValueWrapper.cpp:
728 (JSValueWrapper::JSObjectMark): Removed a check of the mark
729 bit. It's OK to do more work in this case, and there is no
730 longer a public function to access the mark bit.
732 2009-08-14 Darin Adler <darin@apple.com>
734 Reviewed by Sam Weinig.
736 Rename the confusing isObject(<class>) to inherits(<class>).
737 It still works on non-objects, returning false.
740 (KJSValueToJSObject):
741 (KJSValueToCFTypeInternal):
742 Changed from isObject to inherits.
744 2009-08-13 Oliver Hunt <oliver@apple.com>
746 Reviewed by Maciej Stachowiak.
749 https://bugs.webkit.org/show_bug.cgi?id=28294
751 Continue to jump through hoops to deal with the exposed marking routines
754 * JSValueWrapper.cpp:
755 (JSValueWrapper::JSObjectMark):
757 2009-08-07 Oliver Hunt <oliver@apple.com>
759 Reviewed by Sam Weinig.
761 Stack overflow crash in JavaScript garbage collector mark pass
762 https://bugs.webkit.org/show_bug.cgi?id=12216
764 Make JSGlue interact with the new iterative mark logic.
766 * JSValueWrapper.cpp:
767 (JSValueWrapper::JSObjectMark):
768 Unfortunately JSGlue exposes recursive marking so we can only flatten
769 the recursion. We just create a local mark stack if necessary and mark
770 the given object iteratively from this point.
772 (UserObjectImp::markChildren):
775 2009-08-06 Mark Rowe <mrowe@apple.com>
777 Rubber-stamped by Sam Weinig.
779 Add explicit dependencies for our build verification scripts to ensure that they always run after linking has completed.
781 * JavaScriptGlue.xcodeproj/project.pbxproj:
783 2009-07-27 Alexey Proskuryakov <ap@webkit.org>
785 Reviewed by Darin Adler.
787 https://bugs.webkit.org/show_bug.cgi?id=27735
788 Give a helpful name to JSLock constructor argument
794 (KJSValueToCFTypeInternal):
795 (unprotectGlobalObject):
796 * JSValueWrapper.cpp:
797 (JSValueWrapper::JSObjectCopyPropertyNames):
798 (JSValueWrapper::JSObjectCopyProperty):
799 (JSValueWrapper::JSObjectSetProperty):
800 (JSValueWrapper::JSObjectCallFunction):
801 (JSValueWrapper::JSObjectCopyCFValue):
802 * JavaScriptGlue.cpp:
808 (JSUnlockInterpreter):
810 2009-07-10 Adam Roben <aroben@apple.com>
812 Sort all our Xcode projects
814 Accomplished using sort-Xcode-project-file.
816 Requested by Dave Kilzer.
818 * JavaScriptGlue.xcodeproj/project.pbxproj:
820 2009-07-08 Darin Adler <darin@apple.com>
822 Reviewed by Dan Bernstein
824 - fix <rdar://problem/6971484> REGRESSION (r30534): "Scrolling Credits"
825 effect does not scroll on iMovie 7.1.4 on Tiger
827 In <http://trac.webkit.org/changeset/30534>, the prototype of
828 JSObject::put() which UserObjectImp had been overriding changed, but
829 UserObjectImp wasn't updated, so its override was no longer getting
833 (UserObjectImp::put): Match the current prototype of JSObject::put().
834 The PutPropertySlot argument is unused.
835 * UserObjectImp.h: Ditto.
837 2009-06-19 Zoltan Horvath <hzoltan@inf.u-szeged.hu>
839 Reviewed by Darin Adler.
841 Add FastAllocBase.h to JavaScriptGlue's ForwardingHeaders/wtf, because it's needed by HashCountedSet.h on MAC.
843 * ForwardingHeaders/wtf/FastAllocBase.h: Added.
845 2009-06-02 Mark Rowe <mrowe@apple.com>
847 Reviewed by Anders Carlsson.
849 Remove workaround that was added to address <rdar://problem/5488678> as it no longer affects our Tiger builds.
851 * Configurations/Base.xcconfig:
853 2009-05-25 David Levin <levin@chromium.org>
855 Reviewed by Maciej Stachowiak and Oliver Hunt.
857 https://bugs.webkit.org/show_bug.cgi?id=25126
859 Added forwarding headers.
861 * ForwardingHeaders/wtf/CrossThreadRefCounted.h: Added.
862 * ForwardingHeaders/wtf/OwnFastMallocPtr.h: Added.
864 2009-05-23 David Kilzer <ddkilzer@apple.com>
866 Part 1 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr
868 <https://bugs.webkit.org/show_bug.cgi?id=25495>
870 Reviewed by Oliver Hunt.
872 * ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
873 * ForwardingHeaders/wtf/PassOwnPtr.h: Added.
875 2009-05-14 Mark Rowe <mrowe@apple.com>
877 Rubber-stamped by Darin Adler.
879 <rdar://problem/6681868> When building with Xcode 3.1.3 should be using gcc 4.2
881 The meaning of XCODE_VERSION_ACTUAL is more sensible in newer versions of Xcode.
882 Update our logic to select the compiler version to use the more appropriate XCODE_VERSION_MINOR
883 if the version of Xcode supports it, and fall back to XCODE_VERSION_ACTUAL if not.
885 * Configurations/Base.xcconfig:
887 2009-05-07 Oliver Hunt <oliver@apple.com>
889 Reviewed by Gavin Barraclough.
891 Add calling convention annotation
895 2009-05-01 Geoffrey Garen <ggaren@apple.com>
897 Rubber Stamped by Sam Weinig.
899 Renamed JSValuePtr => JSValue.
902 (nativeCallFunction):
904 (KJSValueToJSObject):
906 (KJSValueToCFTypeInternal):
909 * JSValueWrapper.cpp:
910 (JSValueWrapper::JSValueWrapper):
911 (JSValueWrapper::GetValue):
912 (JSValueWrapper::JSObjectCopyProperty):
913 (JSValueWrapper::JSObjectSetProperty):
914 (JSValueWrapper::JSObjectCallFunction):
917 (UserObjectImp::callAsFunction):
918 (UserObjectImp::userObjectGetter):
919 (UserObjectImp::getOwnPropertySlot):
920 (UserObjectImp::put):
921 (UserObjectImp::toPrimitive):
923 (UserObjectImp::createStructure):
925 2009-04-29 Oliver Hunt <oliver@apple.com>
927 Reviewed by Gavin Barraclough.
929 Clean up ArgList to be a trivial type
931 Start using MarkedArgumentBuffer to create argument lists for function calls
933 * JSValueWrapper.cpp:
934 (JSValueWrapper::JSObjectCallFunction):
936 2009-04-28 Geoffrey Garen <ggaren@apple.com>
938 Rubber stamped by Beth Dakin.
943 (UserObjectImp::callAsFunction):
945 2009-04-21 Geoffrey Garen <ggaren@apple.com>
947 Reviewed by Mark Rowe.
949 Tiger crash fix: Put VM tags in their own header file, and fixed up the
950 #ifdefs so they're not used on Tiger.
952 * ForwardingHeaders/wtf/VMTags.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/HashTraits.h.
954 2009-04-20 Sam Weinig <sam@webkit.org>
956 Rubber-stamped by Tim Hatcher.
958 Add licenses for xcconfig files.
960 * Configurations/Base.xcconfig:
961 * Configurations/DebugRelease.xcconfig:
962 * Configurations/JavaScriptGlue.xcconfig:
963 * Configurations/Version.xcconfig:
965 2009-03-13 Mark Rowe <mrowe@apple.com>
967 Rubber-stamped by Dan Bernstein.
969 Take advantage of the ability of recent versions of Xcode to easily switch the active
972 * Configurations/DebugRelease.xcconfig:
974 2009-02-24 Mark Rowe <mrowe@apple.com>
976 Rubber-stamped by Dan Bernstein.
978 <rdar://problem/6407844> JavaScriptGlue should use -Os rather than -O2
980 * Configurations/Base.xcconfig:
982 2009-01-28 Sam Weinig <sam@webkit.org>
984 Reviewed by Gavin Barraclough.
986 Fix for <rdar://problem/6525537>
987 Hang occurs when closing Installer window (iTunes, Aperture)
990 (getThreadGlobalObject): Use the shared JSGlobalData instance.
992 2009-01-22 Mark Rowe <mrowe@apple.com>
994 Rubber-stamped by Anders Carlsson.
996 Disable GCC_WARN_ABOUT_MISSING_PROTOTYPES temporarily.
998 Current versions of Xcode only respect it for C and Objective-C files,
999 and our code doesn't currently compile if it is applied to C++ and
1000 Objective-C++ files.
1002 * Configurations/Base.xcconfig:
1004 2009-01-19 Sam Weinig <sam@webkit.org>
1006 Rubber-stamped by Gavin Barraclough.
1008 Remove temporary operator-> from JSValuePtr.
1011 (KJSValueToJSObject):
1012 (KJSValueToCFTypeInternal):
1013 * JSValueWrapper.cpp:
1014 (JSValueWrapper::JSObjectCopyPropertyNames):
1015 (JSValueWrapper::JSObjectCopyProperty):
1016 (JSValueWrapper::JSObjectSetProperty):
1017 (JSValueWrapper::JSObjectCallFunction):
1018 (JSValueWrapper::JSObjectMark):
1019 * UserObjectImp.cpp:
1020 (UserObjectImp::getOwnPropertySlot):
1022 2009-01-14 Dan Bernstein <mitz@apple.com>
1024 Reviewed by John Sullivan.
1030 2009-01-09 David Levin <levin@chromium.org>
1032 Reviewed by Oliver Hunt.
1034 https://bugs.webkit.org/show_bug.cgi?id=23175
1036 Added forwarding header.
1038 * ForwardingHeaders/wtf/PtrAndFlags.h: Added.
1040 2009-01-05 Gavin Barraclough <baraclough@apple.com>
1042 Rubber Stamped by Oliver Hunt.
1044 Replace all uses of JSValue* with new wrapper class, JSValuePtr.
1045 See JavaScriptCore/ChangeLog for more detailed description.
1048 (nativeCallFunction):
1050 (KJSValueToJSObject):
1052 (KJSValueToCFTypeInternal):
1055 * JSValueWrapper.cpp:
1056 (JSValueWrapper::JSValueWrapper):
1057 (JSValueWrapper::GetValue):
1058 (JSValueWrapper::JSObjectCopyProperty):
1059 (JSValueWrapper::JSObjectSetProperty):
1060 (JSValueWrapper::JSObjectCallFunction):
1062 * UserObjectImp.cpp:
1063 (UserObjectImp::callAsFunction):
1064 (UserObjectImp::userObjectGetter):
1065 (UserObjectImp::getOwnPropertySlot):
1066 (UserObjectImp::put):
1067 (UserObjectImp::toPrimitive):
1069 (UserObjectImp::createStructure):
1071 2008-12-15 Mark Rowe <mrowe@apple.com>
1073 Rubber-stamped by Cameron Zwarich.
1075 <rdar://problem/6289933> Change WebKit-related projects to build with GCC 4.2 on Leopard.
1077 * Configurations/Base.xcconfig:
1078 * Configurations/DebugRelease.xcconfig:
1080 2008-12-08 David Kilzer <ddkilzer@apple.com>
1082 Bug 22555: Sort "children" sections in Xcode project files
1084 <https://bugs.webkit.org/show_bug.cgi?id=22555>
1086 Reviewed by Eric Seidel.
1088 * JavaScriptGlue.xcodeproj/project.pbxproj: Sorted.
1090 2008-11-17 Geoffrey Garen <ggaren@apple.com>
1092 Reviewed by Sam Weinig.
1094 Updated for JavaScriptCore rename.
1096 * ForwardingHeaders/runtime/CallFrame.h: Copied from JavaScriptGlue/ForwardingHeaders/runtime/ExecState.h.
1097 * ForwardingHeaders/runtime/ExecState.h: Removed.
1100 2008-11-17 Geoffrey Garen <ggaren@apple.com>
1102 Reviewed by Sam Weinig.
1104 Updated for JavaScriptCore rename.
1106 * ForwardingHeaders/interpreter: Added.
1107 * ForwardingHeaders/interpreter/CallFrame.h: Copied from ForwardingHeaders/runtime/ExecState.h.
1108 * ForwardingHeaders/runtime/ExecState.h: Removed.
1110 2008-11-15 Darin Adler <darin@apple.com>
1112 Rubber stamped by Geoff Garen.
1114 - do the long-planned StructureID -> Structure rename
1117 (JSGlueGlobalObject::JSGlueGlobalObject):
1120 (JSGlueGlobalObject::userObjectStructure):
1122 (getThreadGlobalObject):
1123 * UserObjectImp.cpp:
1124 (UserObjectImp::UserObjectImp):
1126 (UserObjectImp::createStructure):
1128 2008-11-15 Geoffrey Garen <ggaren@apple.com>
1130 Reviewed by Sam Weinig.
1132 Updated for JavaScriptCore renames.
1136 (JSRun::CheckSyntax):
1138 2008-11-05 Cameron Zwarich <zwarich@apple.com>
1142 Fix the JavaScriptGlue build. This wouldn't show up unless one was
1143 doing a clean build, because changes in JavaScriptCore don't cause
1144 anything in JavaScriptGlue to get rebuilt.
1148 * JavaScriptGlue.cpp:
1150 2008-11-04 Cameron Zwarich <zwarich@apple.com>
1152 Reviewed by Mark Rowe.
1154 Remove JavaScriptGlue forwarding headers that are no longer necessary,
1155 and correct the path of the ExecState.h forwarding header.
1157 * ForwardingHeaders/kjs: Removed.
1158 * ForwardingHeaders/kjs/CTI.h: Removed.
1159 * ForwardingHeaders/kjs/ExecState.h: Removed.
1160 * ForwardingHeaders/kjs/JSValue.h: Removed.
1161 * ForwardingHeaders/kjs/PutPropertySlot.h: Removed.
1162 * ForwardingHeaders/kjs/ustring.h: Removed.
1163 * ForwardingHeaders/runtime: Added.
1164 * ForwardingHeaders/runtime/ExecState.h: Copied from ForwardingHeaders/kjs/ExecState.h.
1167 2008-10-31 Stephanie Lewis <slewis@apple.com>
1169 Fix build by including right files.
1173 2008-10-30 Mark Rowe <mrowe@apple.com>
1175 Reviewed by Jon Homeycutt.
1177 Explicitly default to building for only the native architecture in debug and release builds.
1179 * Configurations/DebugRelease.xcconfig:
1181 2008-10-24 Darin Adler <darin@apple.com>
1183 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
1186 (nativeCallFunction):
1188 (KJSValueToJSObject):
1190 (KJSValueToCFTypeInternal):
1193 * JSValueWrapper.cpp:
1194 (JSValueWrapper::JSValueWrapper):
1195 (JSValueWrapper::GetValue):
1196 (JSValueWrapper::JSObjectCopyProperty):
1197 (JSValueWrapper::JSObjectSetProperty):
1198 (JSValueWrapper::JSObjectCallFunction):
1200 * UserObjectImp.cpp:
1201 (UserObjectImp::callAsFunction):
1202 (UserObjectImp::userObjectGetter):
1203 (UserObjectImp::getOwnPropertySlot):
1204 (UserObjectImp::put):
1205 (UserObjectImp::toPrimitive):
1207 (UserObjectImp::createStructureID):
1208 Use JSValue* instead of JSValuePtr.
1210 2008-10-23 Darin Adler <darin@apple.com>
1212 - roll out https://bugs.webkit.org/show_bug.cgi?id=21732
1214 * JSValueWrapper.cpp:
1215 (JSValueWrapper::GetValue): Added missing call to .get().
1216 * JSValueWrapper.h: ProtectedPtr<JSValue> instead of ProtectedPtr<JSValuePtr>.
1218 2008-10-22 Darin Adler <darin@apple.com>
1220 Reviewed by Sam Weinig.
1222 - fix https://bugs.webkit.org/show_bug.cgi?id=21294
1223 Bug 21294: Devirtualize getOwnPropertySlot()
1226 (JSGlueGlobalObject::JSGlueGlobalObject): Moved constructor here.
1227 Set up flags in its new location in global object data, and set up
1228 a structure for UserObjectImp too.
1229 (JSRun::JSRun): Added code to give the JSGlueGlobalObject its own unique
1230 structure, rather than using the default one from JSGlobalObject.
1232 * JSRun.h: Made JSGlueGlobalObject take a structure ID. Also moved
1233 the data into a separate data object. And added userObjectStructure,
1234 a Structure to be used by UserObjectImp.
1236 * JSUtils.cpp: Removed unused sharedGlobalData global.
1237 (JSObjectKJSValue): Pass Structure in when creating UserObjectImp.
1238 (unprotectGlobalObject): Use JSGlueGLobalObject type specifically.
1239 (initializeGlobalObjectKey): Removed code to set up unused sharedGlobalData.
1240 (getThreadGlobalObject): Added. Shared by JSObjectKJSValue and
1241 getThreadGlobalExecState. Also now passes in a structure ID when creating
1243 (getThreadGlobalExecState): Changed to call getThreadGlobalObject.
1245 * UserObjectImp.cpp:
1246 (UserObjectImp::UserObjectImp): Changed to take a structure.
1248 (UserObjectImp::createStructureID): Added. Returns a structure without
1249 HasStandardGetOwnPropertySlot since this class overrides getOwnPropertySlot.
1251 2008-10-20 Sam Weinig <sam@webkit.org>
1253 Reviewed by Cameron Zwarich.
1255 Fix for https://bugs.webkit.org/show_bug.cgi?id=21766
1256 REGRESSION: 12 JSC tests fail
1258 The JSGlobalObject constructor no longer takes a JSGlobalData
1264 (JSGlueGlobalObject::JSGlueGlobalObject):
1266 (getThreadGlobalExecState):
1268 2008-10-19 Darin Adler <darin@apple.com>
1270 Reviewed by Oliver Hunt.
1272 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
1273 improve performance by eliminating JSValue as a base class for JSCell
1275 Remove most uses of JSValue, which will be removed in a future patch.
1277 * JSValueWrapper.h: Use JSValuePtr instead of JSValue*.
1279 2008-10-18 Darin Adler <darin@apple.com>
1281 Reviewed by Oliver Hunt.
1283 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
1284 improve performance by eliminating JSValue as a base class for JSCell
1286 Tweak a little more to get closer to where we can make JSValuePtr a class.
1289 (nativeCallFunction): Call asObject.
1292 (KJSValueToJSObject): Use JSValuePtr and asObject.
1293 (JSObjectKJSValue): Ditto.
1294 (KJSValueToCFTypeInternal): Ditto.
1295 (KJSValueToCFType): Ditto.
1298 * UserObjectImp.cpp:
1299 (UserObjectImp::callAsFunction): Use JSValuePtr and asObject.
1300 (UserObjectImp::userObjectGetter): Ditto.
1301 (UserObjectImp::getOwnPropertySlot): Ditto.
1302 (UserObjectImp::put): Ditto.
1303 (UserObjectImp::toPrimitive): Ditto.
1304 * UserObjectImp.h: Ditto.
1306 2008-10-18 Darin Adler <darin@apple.com>
1308 Reviewed by Cameron Zwarich.
1310 - next step on https://bugs.webkit.org/show_bug.cgi?id=21732
1311 improve performance by eliminating JSValue as a base class for JSCell
1313 Use JSValuePtr everywhere instead of JSValue*. In the future, we'll be
1314 changing JSValuePtr to be a class, and then eventually renaming it
1315 to JSValue once that's done.
1318 * JSValueWrapper.cpp:
1319 * UserObjectImp.cpp:
1321 Replace JSValue* with JSValuePtr.
1323 2008-10-13 Maciej Stachowiak <mjs@apple.com>
1325 Rubber stamped by Mark Rowe.
1327 - use gcc 4.2 when building with Xcode 3.1 or newer on Leopard, even though this is not the default
1329 * Configurations/DebugRelease.xcconfig:
1331 2008-10-06 Maciej Stachowiak <mjs@apple.com>
1333 Not reviewed. Build fix.
1335 - revert toBoolean changes (r37333 and r37335); need to make WebCore work with these
1338 (KJSValueToCFTypeInternal):
1340 2008-10-06 Maciej Stachowiak <mjs@apple.com>
1344 - fix build; toBoolean no longer takes an ExecState
1347 (KJSValueToCFTypeInternal):
1349 2008-10-04 Mark Rowe <mrowe@apple.com>
1351 Reviewed by Tim Hatcher.
1353 Add a 'Check For Weak VTables' build phase to catch weak vtables as early as possible.
1355 * JavaScriptGlue.xcodeproj/project.pbxproj:
1357 2008-10-01 Geoffrey Garen <ggaren@apple.com>
1359 Reviewed by Darin Adler and Cameron Zwarich.
1363 (JSRun::CheckSyntax): Provide a SourceCode to the Interpreter, since
1364 other APIs are no longer supported.
1366 2008-09-29 Geoffrey Garen <ggaren@apple.com>
1370 Forwarding headers to fix the build.
1372 * ForwardingHeaders/kjs/CTI.h: Copied from ForwardingHeaders/kjs/ExecState.h.
1373 * ForwardingHeaders/kjs/ustring.h: Copied from ForwardingHeaders/kjs/ExecState.h.
1374 * ForwardingHeaders/masm: Added.
1375 * ForwardingHeaders/masm/X86Assembler.h: Added.
1376 * ForwardingHeaders/profiler: Added.
1377 * ForwardingHeaders/profiler/Profiler.h: Added.
1379 2008-09-08 Sam Weinig <sam@webkit.org>
1381 Reviewed by Maciej Stachowiak and Oliver Hunt.
1383 Add forwarding headers.
1385 * ForwardingHeaders/wtf/HashFunctions.h: Added.
1386 * ForwardingHeaders/wtf/HashTraits.h: Added.
1388 2008-09-02 Geoffrey Garen <ggaren@apple.com>
1390 Reviewed by Sam Weinig.
1392 Implemented the rest of Darin's review comments for the 09-01 inline
1395 * ForwardingHeaders/kjs/PutPropertySlot.h: Added.
1397 2008-09-01 Geoffrey Garen <ggaren@apple.com>
1399 Reviewed by Darin Adler.
1401 First cut at inline caching for access to vanilla JavaScript properties.
1403 Updated for JavaScriptCore changes. Mostly mechanical addition of StructureIDs
1404 to JavaScriptGlue classes, and PutPropertySlot& arguments to put functions.
1406 2008-08-22 Anders Carlsson <andersca@apple.com>
1408 Fix build for real this time.
1412 2008-08-22 Anders Carlsson <andersca@apple.com>
1416 * UserObjectImp.cpp:
1417 (UserObjectImp::toPrimitive):
1420 2008-08-19 Alexey Proskuryakov <ap@webkit.org>
1422 Reviewed by Geoff Garen.
1424 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
1430 (KJSValueToCFTypeInternal):
1431 (unprotectGlobalObject):
1433 * JSValueWrapper.cpp:
1434 (JSValueWrapper::JSObjectCopyPropertyNames):
1435 (JSValueWrapper::JSObjectCopyProperty):
1436 (JSValueWrapper::JSObjectSetProperty):
1437 (JSValueWrapper::JSObjectCallFunction):
1438 (JSValueWrapper::JSObjectCopyCFValue):
1439 * JavaScriptGlue.cpp:
1444 (JSLockInterpreter):
1445 (JSUnlockInterpreter):
1446 * UserObjectImp.cpp:
1447 (UserObjectImp::callAsFunction):
1449 2008-08-12 Darin Adler <darin@apple.com>
1453 - eliminate JSValue::type()
1456 (KJSValueToCFTypeInternal): Replaced uses of JSValue::type() with
1457 JSValue::is functions.
1458 * UserObjectImp.cpp:
1459 (UserObjectImp::getOwnPropertySlot): Ditto.
1460 (UserObjectImp::toPrimitive): Take PreferredPrimitiveType argument
1461 instead of JSType argument.
1462 * UserObjectImp.h: Ditto.
1464 2008-08-17 Geoffrey Garen <ggaren@apple.com>
1466 Reviewed by Cameron Zwarich.
1468 Updated project files to XCode 3.1.
1470 * JavaScriptGlue.xcodeproj/project.pbxproj:
1472 2008-08-15 Mark Rowe <mrowe@apple.com>
1474 Rubber-stamped by Geoff Garen.
1476 <rdar://problem/6139914> Please include a _debug version of JavaScriptCore framework
1478 * Configurations/Base.xcconfig: Factor out the debug-only settings so that they can shared
1479 between the Debug configuration and debug Production variant.
1480 * JavaScriptGlue.xcodeproj/project.pbxproj: Enable the debug variant.
1482 2008-07-31 Alexey Proskuryakov <ap@webkit.org>
1484 Rubber-stamped by Maciej.
1486 Eliminate JSLock (it was already disabled, removing the stub implementaion and all
1493 (KJSValueToCFTypeInternal):
1494 (unprotectGlobalObject):
1496 * JSValueWrapper.cpp:
1497 (JSValueWrapper::JSObjectCopyPropertyNames):
1498 (JSValueWrapper::JSObjectCopyProperty):
1499 (JSValueWrapper::JSObjectSetProperty):
1500 (JSValueWrapper::JSObjectCallFunction):
1501 (JSValueWrapper::JSObjectCopyCFValue):
1502 * JavaScriptGlue.cpp:
1507 (JSLockInterpreter):
1508 (JSUnlockInterpreter):
1509 * UserObjectImp.cpp:
1510 (UserObjectImp::callAsFunction):
1512 2008-07-29 Alexey Proskuryakov <ap@webkit.org>
1514 Reviewed by Geoff Garen.
1516 Implement JSContextGroup APIs to make concurrent execution possible for
1517 JavaScriptCore clients.
1522 (getThreadGlobalExecState):
1523 Changed JavaScriptGlue to use a JSGlobalData of its own, now that there is no shared
1526 2008-07-23 Alexey Proskuryakov <ap@webkit.org>
1528 Reviewed by Geoff Garen.
1530 Make JSClassRef work with any context, not just the first one it was used in.
1532 * ForwardingHeaders/wtf/HashMap.h: Added.
1534 2008-07-22 Geoffrey Garen <ggaren@apple.com>
1536 Reviewed by Oliver Hunt and Sam Weinig.
1538 Next step toward putting doubles in registers: Prepare the Register class
1539 and its clients for registers that don't contain JSValue*s.
1541 2008-07-21 Mark Rowe <mrowe@apple.com>
1543 Reviewed by Sam Weinig.
1545 <rdar://problem/6091287> Revamp the handling of CFBundleShortVersionString to be fixed at the major component of the version number.
1547 * Configurations/Version.xcconfig:
1550 2008-07-18 Geoffrey Garen <ggaren@apple.com>
1552 Reviewed by Cameron Zwarich.
1556 "CallTypeNative" => "CallTypeHost"
1557 "code" => "byteCode"
1558 "generatedCode" => "generatedByteCode"
1562 (JSUserObject::getCallData):
1564 2008-07-14 Alexey Proskuryakov <ap@webkit.org>
1566 Reviewed by Geoff Garen.
1568 Eliminate per-thread JavaScript global data instance support and make arbitrary
1569 global data/global object combinations possible.
1571 * ForwardingHeaders/wtf/ThreadSpecific.h: Added.
1575 (getThreadGlobalExecState):
1576 Adapt to the new way of asking for shared JSGlobalData.
1578 2008-07-10 Mark Rowe <mrowe@apple.com>
1580 Reviewed by Sam Weinig.
1582 Define WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST when building WebKit to ensure that no symbols end up with the weak_import attribute.
1584 * Configurations/JavaScriptGlue.xcconfig:
1586 2008-07-09 Mark Rowe <mrowe@apple.com>
1588 Reviewed by Geoff Garen.
1590 Don't warn about deprecated functions in production builds.
1592 * Configurations/Base.xcconfig:
1593 * Configurations/DebugRelease.xcconfig:
1595 2008-07-08 Alexey Proskuryakov <ap@webkit.org>
1597 Reviewed by Darin Adler.
1599 <rdar://problem/6058368> REGRESSION: Crash occurs in KJS::Machine after launching
1602 The problem was that JSUserObject::getCallData() was setting call type to native, but
1603 left callData.native.function uninitialized.
1606 (JSUserObject::getCallData): Initialize callData.native.function.
1607 (nativeCallFunction): Call UserObjectImp::callAsFunction().
1609 2008-07-04 Sam Weinig <sam@webkit.org>
1611 Rubber-stamped by Dan Bernstein.
1613 * JSObject.h: Rename the header guard as it now conflicts with the
1614 JSObject in JavaScriptCore.
1616 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
1618 Reviewed by Darin Adler.
1620 Disable JSLock for per-thread contexts.
1622 * ForwardingHeaders/wtf/Locker.h: Added.
1623 * ForwardingHeaders/wtf/Threading.h: Added.
1628 (KJSValueToCFTypeInternal):
1629 (unprotectGlobalObject):
1631 * JSValueWrapper.cpp:
1632 (JSValueWrapper::JSObjectCopyPropertyNames):
1633 (JSValueWrapper::JSObjectCopyProperty):
1634 (JSValueWrapper::JSObjectSetProperty):
1635 (JSValueWrapper::JSObjectCallFunction):
1636 (JSValueWrapper::JSObjectCopyCFValue):
1637 * JavaScriptGlue.cpp:
1642 (JSLockInterpreter):
1643 (JSUnlockInterpreter):
1644 * UserObjectImp.cpp:
1645 (UserObjectImp::callAsFunction):
1646 Pass a parameter (always true) to JSLock and JSLock::DropAllLocks to indicate that JSG
1647 clients always need implicit mutex protection.
1648 Added includes that are now needed.
1650 2008-06-26 Darin Adler <darin@apple.com>
1654 * JSUtils.cpp: Added include of <JavaScriptCore/JSString.h> since jsString
1655 will soon be changed to return a JSString*.
1656 * UserObjectImp.cpp: Ditto.
1658 2008-06-23 Darin Adler <darin@apple.com>
1662 * JSValueWrapper.cpp:
1663 (JSValueWrapper::JSObjectCallFunction): Updated to use getCallData and call instead
1664 of the old callAsFunction.
1666 2008-06-17 Alexey Proskuryakov <ap@webkit.org>
1668 Reviewed by Darin Adler.
1670 Prepare JavaScript heap for being per-thread.
1672 * JSRun.cpp: (JSRun::JSRun): Create JSGlueGlobalObject in a shared JS heap.
1674 * JSUtils.h: Made getThreadGlobalExecState available throughout JSGlue.
1677 (JSObjectKJSValue): Pass an ExecState where now required.
1678 (unprotectGlobalObject):
1679 (initializeGlobalObjectKey):
1680 (getThreadGlobalExecState):
1681 Moved these functions from JSValueWrapper.cpp, as the global exec state is now needed
1682 elsewhere. I'm not quite sure how this relates to the global object from JSRun, but
1683 since the new uses are all for Heap access, there doesn't seem to be any behavior change.
1685 * JavaScriptGlue.cpp:
1686 (JSLockInterpreter): Don't call registerThread explicitly, as JSLock will do that.
1688 * UserObjectImp.cpp: (UserObjectImp::toPrimitive): Pass ExecState* where now required.
1690 2008-06-17 Mark Rowe <mrowe@apple.com>
1692 Reviewed by Darin Adler.
1694 <rdar://problem/5775802> JavaScriptGlue should not force use of GCC 4.0.
1696 * JavaScriptGlue.xcodeproj/project.pbxproj:
1698 2008-06-16 Maciej Stachowiak <mjs@apple.com>
1702 - removed nearly unused types.h and LocalStorageEntry.h headers
1706 2008-06-16 Alexey Proskuryakov <ap@webkit.org>
1708 Reviewed by Geoff Garen.
1710 Make Identifier construction use an explicitly passed IdentifierTable.
1713 (CFStringToIdentifier):
1714 (KJSValueToCFTypeInternal):
1716 * JSValueWrapper.cpp:
1717 (JSValueWrapper::JSObjectCopyPropertyNames):
1718 (JSValueWrapper::JSObjectCopyProperty):
1719 (JSValueWrapper::JSObjectSetProperty):
1720 * UserObjectImp.cpp:
1721 (UserObjectImp::getPropertyNames):
1722 Pass ExecState or JSGlobalData everywhere.
1724 2008-06-15 Darin Adler <darin@apple.com>
1726 - rename KJS::List to KJS::ArgList
1728 * JSValueWrapper.cpp:
1729 (JSValueWrapper::JSObjectCallFunction):
1730 * UserObjectImp.cpp:
1731 (UserObjectImp::callAsFunction):
1734 2008-06-15 Darin Adler <darin@apple.com>
1736 - new names for a few key JavaScriptCore files
1738 * ForwardingHeaders/kjs/JSValue.h: Copied from JavaScriptGlue/ForwardingHeaders/kjs/value.h.
1739 * ForwardingHeaders/kjs/value.h: Removed.
1742 2008-06-03 Darin Adler <darin@apple.com>
1744 - update for JavaScriptCore changes for https://bugs.webkit.org/show_bug.cgi?id=19269
1745 speed up SunSpider by eliminating the toObject call for most get/put/delete
1747 * UserObjectImp.cpp:
1748 (UserObjectImp::userObjectGetter): Removed originalObject argument.
1749 * UserObjectImp.h: Ditto.
1751 2008-06-02 Geoffrey Garen <ggaren@apple.com>
1753 Reviewed by Alexey Proskuryakov.
1755 Removed JSObject::call, since it just called JSObject::callAsFunction.
1757 SunSpider reports no change.
1759 2008-05-28 Geoffrey Garen <ggaren@apple.com>
1761 Reviewed by Oliver Hunt.
1763 Fixed total destruction in Software Update.app.
1765 Updated JavaScriptGlue to honor squirrelfish's new getCallData mechanism for
1766 indicating that an object can be called as a function.
1768 2008-05-10 Maciej Stachowiak <mjs@apple.com>
1772 - JavaScriptGlue part of fix for: "SQUIRRELFISH: function toString broken after calling"
1773 https://bugs.webkit.org/show_bug.cgi?id=18869
1776 (JSRun::Evaluate): Use UString version of eveluate() instead of
1777 the now departed UChar*/length variant; use of the lower-level
1778 version was gratuitous in any case.
1779 (JSRun::CheckSyntax): Ditto for checkSyntax().
1781 2008-04-30 Geoffrey Garen <ggaren@apple.com>
1783 Build fix: supply missing parameter that used to be implicit.
1788 2008-03-30 Geoffrey Garen <ggaren@apple.com>
1790 Reviewed by Oliver Hunt.
1794 * ForwardingHeaders/wtf/UnusedParam.h: Copied from ForwardingHeaders/wtf/OwnPtr.h.
1796 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
1798 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
1799 SquirrelFish merging.
1804 * JSValueWrapper.cpp:
1805 (unprotectGlobalObject):
1806 (initializeGlobalObjectKey):
1807 (getThreadGlobalExecState):
1808 * JavaScriptGlue.cpp:
1810 (JSLockInterpreter):
1811 * UserObjectImp.cpp:
1812 (UserObjectImp::toPrimitive):
1814 2008-05-02 Alexey Proskuryakov <ap@webkit.org>
1816 Reviewed by Darin Adler.
1818 Make JavaScriptGlue and JavaScriptCore API functions implicitly call initializeThreading
1819 for the sake of non-WebKit clients.
1821 * JavaScriptGlue.cpp:
1824 (JSCreateJSArrayFromCFArray):
1825 (JSLockInterpreter):
1826 These are all possible JavaScriptGlue entry points.
1828 2008-05-02 Alexey Proskuryakov <ap@webkit.org>
1830 Reviewed by Geoffrey Garen.
1832 https://bugs.webkit.org/show_bug.cgi?id=18826
1833 Make JavaScript heap per-thread
1835 * JSValueWrapper.cpp:
1837 Moved getThreadGlobalExecState() to JSUtils and made it extern, as ExecState is now needed
1838 for all JS allocations.
1841 (JSObjectKJSValue): Pass ExecState to functions that now need it.
1842 (unprotectGlobalObject): Moved from JSValueWrapper.cpp.
1843 (initializeGlobalObjectKey): Ditto.
1844 (getThreadGlobalExecState): Ditto.
1846 * UserObjectImp.cpp: (UserObjectImp::toPrimitive): Pass ExecState to jsString and jsNumber.
1848 * JavaScriptGlue.cpp:
1849 (JSCollect): Use current thread's heap.
1850 (JSLockInterpreter): Removed JSLock::registerThread(), because a JS heap doesn't need to
1851 know about other threads.
1853 2008-04-25 Alexey Proskuryakov <ap@webkit.org>
1855 Reviewed by Darin Adler.
1857 Fix run-webkit-tests --threading
1858 and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661>
1859 Proxy server issue in Sunday's Nightly
1861 * UserObjectImp.cpp: Adjusted for the new member added to ClassInfo.
1863 2008-04-25 Mark Rowe <mrowe@apple.com>
1865 Reviewed by Adele Peterson.
1867 <rdar://problem/5891264> Don't install the JavaScriptGlue headers
1869 * JavaScriptGlue.xcodeproj/project.pbxproj:
1871 2008-04-25 Mark Rowe <mrowe@apple.com>
1873 Rubber-stamped by Sam Weinig.
1875 Add some content to an empty ICU header file to prevent verification errors.
1877 * icu/unicode/utf_old.h:
1879 2008-04-02 Mark Rowe <mrowe@apple.com>
1881 Reviewed by Oliver Hunt.
1883 Ensure that debug symbols are generated for x86_64 and ppc64 builds.
1885 * Configurations/Base.xcconfig:
1887 2008-03-20 Maciej Stachowiak <mjs@apple.com>
1891 * ForwardingHeaders/wtf/ListRefPtr.h: Added.
1893 2008-03-01 Mark Rowe <mrowe@apple.com>
1895 Reviewed by Tim Hatcher.
1897 Update Xcode configuration to support building debug and release from the mysterious future.
1899 * Configurations/Base.xcconfig:
1900 * Configurations/DebugRelease.xcconfig:
1902 2008-02-29 Geoffrey Garen <ggaren@apple.com>
1904 Reviewed by David Harrison.
1906 Fixed <rdar://problem/5765063> TOT REGRESSION: Software Update crash in
1907 KJS::Collector::collect() (missing JSLock)
1909 * JSValueWrapper.cpp:
1910 (unprotectGlobalObject): Added missing JSLock.
1912 2008-02-05 Mark Rowe <mrowe@apple.com>
1914 Reviewed by Oliver Hunt.
1916 Update versioning to support the mysterious future.
1918 * Configurations/Version.xcconfig: Add SYSTEM_VERSION_PREFIX_1060.
1920 2008-01-28 Eric Seidel <eric@webkit.org>
1924 Add icu headers to JSG in preparation for depending on ::UChar.
1926 * Configurations/Base.xcconfig:
1927 * ForwardingHeaders/wtf/unicode: Added.
1928 * ForwardingHeaders/wtf/unicode/Unicode.h: Added.
1929 * ForwardingHeaders/wtf/unicode/icu: Added.
1930 * ForwardingHeaders/wtf/unicode/icu/UnicodeIcu.h: Added.
1931 * icu: Copied from ../JavaScriptCore/icu.
1933 2007-12-19 Geoffrey Garen <ggaren@apple.com>
1937 * ForwardingHeaders/wtf/VectorTraits.h: Added.
1939 2007-12-10 Timothy Hatcher <timothy@apple.com>
1941 Reviewed by Mark Rowe.
1943 <rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x
1945 * Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR,
1946 so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX.
1948 2007-12-04 Geoffrey Garen <ggaren@apple.com>
1950 Reviewed by Darin Adler.
1952 Third step in refactoring JSGlobalObject: Moved data members and data
1953 member access from Interpreter to JSGlobalObject. Replaced JSInterpreter
1954 subclass with JSGlobalObject subclass.
1959 (JSRun::CheckSyntax):
1961 (JSGlueGlobalObject::JSGlueGlobalObject):
1963 (KJSValueToCFTypeInternal):
1964 * JSValueWrapper.cpp:
1965 (getThreadGlobalExecState):
1967 2007-12-02 Geoffrey Garen <ggaren@apple.com>
1969 Reviewed by Eric Seidel.
1971 Updated to match the JavaScriptCore change to move virtual methods from
1972 Interpreter to JSGlobalObject.
1976 * JSValueWrapper.cpp:
1977 (getThreadGlobalExecState):
1978 * JavaScriptGlue.cpp:
1979 (JSRunCopyGlobalObject):
1982 2007-11-30 Geoffrey Garen <ggaren@apple.com>
1984 Reviewed by Beth Dakin.
1986 Modified to follow new JSGlobalObject/Interpreter ownership rules
1991 (JSRun::GetInterpreter):
1993 (JSRun::CheckSyntax):
1995 * JSValueWrapper.cpp:
1996 (unprotectGlobalObject):
1997 (initializeGlobalObjectKey):
1998 (getThreadGlobalExecState):
2000 2007-11-29 Mark Rowe <mrowe@apple.com>
2004 Fix REGRESSION(r27885): Installer hits assertion failure in JavaScriptGlue.
2006 * JSValueWrapper.cpp:
2007 (getThreadGlobalExecState): Set the global object on the Interpreter before using it.
2009 2007-11-27 Anders Carlsson <andersca@apple.com>
2014 (KJSValueToCFTypeInternal):
2015 * JSValueWrapper.cpp:
2016 (JSValueWrapper::JSObjectCopyPropertyNames):
2018 2007-11-21 Mark Rowe <mrowe@apple.com>
2022 Fix JavaScriptGlue to build without warnings using GCC 4.2.
2024 * Configurations/Base.xcconfig:
2027 2007-11-17 Mark Rowe <mrowe@apple.com>
2029 Reviewed by Darin Adler.
2031 Fix: <rdar://problem/5607032> REGRESSION: testapi exits with assertion failure in debug build
2032 <rdar://problem/5440659> JSGlobalContextCreate throws away globalObjectClass's prototype
2033 http://bugs.webkit.org/show_bug.cgi?id=16033
2035 Update for changes in Interpreter method signatures.
2039 2007-11-13 Geoffrey Garen <ggaren@apple.com>
2041 Reviewed by Anders Carlsson.
2043 Renamed Shared to RefCounted.
2045 * ForwardingHeaders/wtf/RefCounted.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/Shared.h.
2046 * ForwardingHeaders/wtf/Shared.h: Removed.
2048 2007-11-13 Geoffrey Garen <ggaren@apple.com>
2050 Reviewed by Sam Weinig.
2052 Moved Shared.h into wtf so it could be used in more places.
2054 * ForwardingHeaders/wtf/Shared.h: Added.
2056 2007-11-08 Mark Rowe <mrowe@apple.com>
2060 * ForwardingHeaders/wtf/MathExtras.h: Copied from WebCore/ForwardingHeaders/wtf/MathExtras.h.
2062 2007-11-05 Geoffrey Garen <ggaren@apple.com>
2066 * ForwardingHeaders/kjs/value.h: Added.
2068 2007-11-03 Sam Weinig <sam@webkit.org>
2072 * UserObjectImp.cpp:
2074 2007-11-03 David D. Kilzer <ddkilzer@webkit.org>
2076 Sort files(...); sections of Xcode project files.
2078 Rubber-stamped by Darin Adler.
2080 * JavaScriptGlue.xcodeproj/project.pbxproj:
2082 2007-10-25 Eric Seidel <eric@webkit.org>
2086 Make JSG build again after JSGlobalObject change.
2090 (JSRun::GlobalObject):
2092 (JSInterpreter::JSInterpreter):
2095 2007-10-11 Mark Rowe <mrowe@apple.com>
2097 Reviewed by Tim Hatcher.
2099 Fix for <rdar://problem/5488678>. Disable debugging symbols in production builds for 10.4
2100 PowerPC to prevent a huge STABS section from being generated.
2102 * Configurations/Base.xcconfig:
2104 2007-10-04 Mark Rowe <mrowe@apple.com>
2108 Switch to default level of debugging symbols to resolve <rdar://problem/5488678>.
2109 The "full" level appears to offer no observable benefits even though the documentation
2110 suggests it be used for dead code stripping. This should also decrease link times.
2112 * Configurations/Base.xcconfig:
2114 2007-09-03 Mark Rowe <mrowe@apple.com>
2116 Reviewed by Tim Hatcher.
2118 <rdar://problem/5452164> Production build with in symbols directory has no debug info
2120 Enable debug symbol generation on all build configurations. Production builds are stripped
2121 of symbols by Xcode during deployment post-processing.
2123 * Configurations/Base.xcconfig:
2124 * JavaScriptGlue.xcodeproj/project.pbxproj:
2126 2007-08-09 Mark Rowe <mrowe@apple.com>
2130 <rdar://problem/5400709> Versioning in debug and release builds should include minor and tiny version before +
2132 * Configurations/Version.xcconfig:
2133 * JavaScriptGlue.xcodeproj/project.pbxproj: Add a shell script phase to make to dependency between
2134 Version.xcconfig and Info.plist explicit to Xcode.
2136 2007-07-16 Sam Weinig <sam@webkit.org>
2140 Turn off -Wshorten-64-to-32 warning for 64-bit builds.
2142 * Configurations/Base.xcconfig:
2144 2007-04-27 Mark Rowe <mrowe@apple.com>
2148 * JavaScriptGlue.xcodeproj/project.pbxproj: Improve dependencies in Xcode project
2149 by marking JavaScriptGlue as a dependency of testjsglue.
2151 2007-03-24 Mark Rowe <mrowe@apple.com>
2153 Reviewed by Dave Hyatt.
2155 * JavaScriptGlue.xcodeproj/project.pbxproj: Use GCC 4.0 for testjsglue.
2157 2007-03-24 Mark Rowe <mrowe@apple.com>
2159 Rubber-stamped by Darin Adler.
2161 * Configurations/JavaScriptGlue.xcconfig: Remove unnecessary INFOPLIST_PREPROCESS.
2163 2007-03-19 Andrew Wellington <proton@wiretapped.net>
2167 Really set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
2169 * JavaScriptGlue.xcodeproj/project.pbxproj:
2171 2007-03-18 Andrew Wellington <proton@wiretapped.net>
2173 Reviewed by Mark Rowe
2175 Set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
2177 * JavaScriptGlue.xcodeproj/project.pbxproj:
2179 2007-03-17 Timothy Hatcher <timothy@apple.com>
2181 Reviewed by Mark Rowe.
2183 Made Version.xcconfig smarter when building for different configurations.
2184 Now uses the 522+ OpenSource version for Debug and Release, while using the
2185 full 522.4 version for Production builds. The system prefix is also computed
2186 based on the current system, so 4522.4 on Tiger and 5522.4 on Leopard.
2188 * Configurations/JavaScriptGlue.xcconfig:
2189 * Configurations/Version.xcconfig:
2191 2007-03-15 Timothy Hatcher <timothy@apple.com>
2195 * Factored out most of our common build settings into .xcconfig files. Anything that was common in
2196 each build configuration was factored out into the shared .xcconfig file.
2197 * Adds a Version.xcconfig file to define the current framework version, to be used in other places.
2198 * Use the new $(BUNDLE_VERSION) (defined in Version.xcconfig) in the preprocessed Info.plist.
2199 * Use the versions defined in Version.xcconfig to set $(DYLIB_CURRENT_VERSION).
2201 * Configurations/Base.xcconfig: Added.
2202 * Configurations/DebugRelease.xcconfig: Added.
2203 * Configurations/JavaScriptGlue.xcconfig: Added.
2204 * Configurations/Version.xcconfig: Added.
2206 * JavaScriptGlue.xcodeproj/project.pbxproj:
2208 === Safari-5522.4 ===
2210 2007-03-12 Geoffrey Garen <ggaren@apple.com>
2212 Reviewed by Oliver Hunt.
2214 Updated in light of fix for <rdar://problem/4681051> Installer crashes
2215 in KJS::Collector::markOtherThreadConservatively(KJS::Collector::Thread*)
2216 trying to install iLife 06 using Rosetta on an Intel Machine
2218 * JavaScriptGlue.cpp:
2219 (JSLockInterpreter): Ensure backwards compatibility by calling
2220 registerThread() when explicitly taking the JSLock. (This doesn't happen
2221 automatically anymore.) I doubt this actally matters, but in JavaScriptGlue
2222 territory, that kind of thinking will get you killed.
2224 2007-03-06 Geoffrey Garen <ggaren@apple.com>
2226 Reviewed by Maciej Stachowiak.
2228 Fixed all known crashers exposed by run-webkit-tests --threaded while using
2229 a PAC file (for maximum carnage). See JavaScriptCore ChangeLog for
2233 (JSBase::Release): Lock when deleting, because we may be deleting an object
2234 (like a JSRun) that holds thread-unsafe data.
2237 (CFStringToUString): Don't lock, because our caller locks. Also, locking
2238 inside a function that returns thread-unsafe data by copy will only mask
2241 * JavaScriptGlue.cpp:
2242 (JSRunEvaluate): Added missing JSLock.
2243 (JSRunCheckSyntax): Converted to JSLock.
2244 * JavaScriptGlue.xcodeproj/project.pbxproj:
2246 2007-02-22 Geoffrey Garen <ggaren@apple.com>
2248 Reviewed by Darin Adler.
2250 Fixed <rdar://problem/4942528> Installer.app Stuck "Examining additional
2253 The problem was that JavaScriptGlue held a JSObject in a static pointer
2254 without protecting it from garbage collection.
2256 sUserObjectPrototypeImp = new UserObjectPrototypeImp();
2257 static ProtectedPtr<UserObjectPrototypeImp> protectPrototype; // valiant, brave, but useless
2259 Through an interesting comedy of errors, this object would be collected
2260 and then assigned as the prototype of another object allocated at the
2261 same address, thus becoming its own prototype. (See http://www.ziplo.com/grandpa.htm
2262 for further explanation of this phenomenon.) Hence the infinte loop in
2265 The solution is equally humorous: all of this code was completely useless --
2266 it only served to create an empty object in the prototype chain -- so
2269 * UserObjectImp.cpp:
2270 (UserObjectImp::UserObjectImp):
2273 2007-02-19 Timothy Hatcher <timothy@apple.com>
2277 <rdar://problem/4636301> Deprecate JavaScriptGlue
2279 * JavaScriptGlue.h: adds DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER to everything
2280 * JavaScriptGlue.xcodeproj/project.pbxproj: use -Wno-deprecated-declarations to keep the project building
2281 * config.h: define DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER as empty on other systems
2283 2007-02-16 Darin Adler <darin@apple.com>
2287 - fix <rdar://problem/5000216> JavaScriptGlue framework started turning all CFNumbers
2288 into signed 32bit values
2290 Circumstantial evidence seems to indicate that JavaScriptGlue was depending on a bug
2291 in CFNumber where CFNumberIsFloatType was returning true for 64-bit integer values.
2293 * JSUtils.cpp: (JSObjectKJSValue): Removed the call to CFNumberIsFloatType in the
2294 conversion of numeric values, and always use kCFNumberDoubleType, since double is
2295 the internal format of numbers in JavaScriptCore. There's no value to having a
2296 separate code path for integers. There's also no reason to check the return value
2297 from CFNumberGetValue -- if it returns false it still does the best it can to convert
2298 to a double, which is what we want.
2300 * UserObjectImp.cpp: (UserObjectImp::toString): Removed a similar code path that
2301 tried to handle integers separate from double. Instead, always use a double. For
2302 compatibility, use a format without a decimal point when CFNumberIsFloatType returns
2303 false. Also removed a bogus cast to float; the "%f" format string takes a double,
2304 not a float, so all the cast did was cut down on precision.
2306 2007-01-25 Mark Rowe <mrowe@apple.com>
2310 * Info.plist: Update copyright string.
2312 2006-12-19 Timothy Hatcher <timothy@apple.com>
2314 Reviewed by Darin Adler.
2316 <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features
2318 * JavaScriptGlue.xcodeproj/project.pbxproj:
2320 === Safari-521.26 ===
2322 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2326 Build fix: DWARF and -gfull are incompatible with symbol separation.
2328 * JavaScriptGlue.xcodeproj/project.pbxproj:
2330 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2334 http://bugs.webkit.org/show_bug.cgi?id=10394
2335 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
2337 * JavaScriptGlue.xcodeproj/project.pbxproj:
2339 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2343 http://bugs.webkit.org/show_bug.cgi?id=10384
2344 Bug 10384: Switch to DWARF for Release configuration
2346 * JavaScriptGlue.xcodeproj/project.pbxproj:
2348 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2350 Reviewed by Darin Adler.
2352 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2353 Make WebCore (and friends) compile with -Wshorten-64-to-32
2355 * Adds -Wshorten-64-to-32 flag to Xcode project.
2357 * JavaScriptGlue.xcodeproj/project.pbxproj:
2359 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
2361 Reviewed by Darin Adler.
2363 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
2364 Make WebCore compile with -Wundef
2366 * Adds -Wundef flag to Xcode project
2368 * JavaScriptGlue.xcodeproj/project.pbxproj:
2370 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
2372 Reviewed by Darin Adler.
2374 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
2375 Adopt pedantic changes from the Unity project to improve
2376 cross-compiler compatibility
2379 * Turning on gcc warning for missing newline at the end of a source file
2380 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
2382 * JavaScriptGlue.xcodeproj/project.pbxproj:
2384 === Safari-521.19 ===
2386 2006-07-19 Geoffrey Garen <ggaren@apple.com>
2388 Fixed by Darin & Maciej, reviewed by me.
2390 - Fixed <rdar://problem/4638934> Leopard 9A227: Installer crashes right
2391 after LCA and while preparing Installation
2393 Compile release/production with NDEBUG set, to ensure binary compatibility
2394 between JavaScriptGlue and JavaScriptCore. In debug builds, JavaScriptCore
2395 includes an extra debug data member in HashSet.
2397 * JavaScriptGlue.xcodeproj/project.pbxproj:
2399 === Safari-521.18 ===
2401 2006-07-15 Maciej Stachowiak <mjs@apple.com>
2403 Reviewed by Darin Adler.
2405 - switch property lists to be vector+set of Identifiers instead of list of References
2408 (KJSValueToCFTypeInternal): updated for JSC SPI changes
2409 * JSValueWrapper.cpp:
2410 (JSValueWrapper::JSObjectCopyPropertyNames): ditto
2411 * UserObjectImp.cpp:
2412 (UserObjectImp::getPropertyNames): ditto
2415 === Safari-521.17 ===
2417 2006-07-14 Geoffrey Garen <ggaren@apple.com>
2421 - Updated JSInterpreter to work with Interpreter ref-counting in JavaScriptCore.
2423 (JSInterpreter::JSInterpreter::~JSInterpreter): Now protected to catch
2426 2006-07-12 Anders Carlsson <acarlsson@apple.com>
2431 (KJSValueToCFTypeInternal):
2432 * JSValueWrapper.cpp:
2433 (JSValueWrapper::JSObjectCopyPropertyNames):
2434 * UserObjectImp.cpp:
2435 (UserObjectImp::getPropertyList):
2437 === Safari-521.15 ===
2439 2006-07-07 Geoffrey Garen <ggaren@apple.com>
2444 (KJSValueToCFTypeInternal):
2445 * JSValueWrapper.cpp:
2446 (JSValueWrapper::JSObjectCopyPropertyNames):
2448 2006-07-03 Geoffrey Garen <ggaren@apple.com>
2453 (JSRun::CheckSyntax): Updated to use new checkSyntax syntax in JSC.
2454 * JavaScriptGlue.xcodeproj/project.pbxproj:
2456 === Safari-521.14 ===
2458 2006-06-28 Timothy Hatcher <timothy@apple.com>
2460 Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
2462 * JavaScriptGlue.xcodeproj/project.pbxproj:
2464 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
2466 Reviewed by Timothy.
2468 * Info.plist: Fixed copyright to include 2003-2006.
2470 === JavaScriptGlue-521.13 ===
2472 2006-06-20 Geoffrey Garen <ggaren@apple.com>
2476 - Required for JS API: Rename propList to getPropertyList and have it
2477 take its target property list by reference so that subclasses can
2478 add properties to the list before calling through to their superclasses.
2481 (KJSValueToCFTypeInternal):
2482 * JSValueWrapper.cpp:
2483 (JSValueWrapper::JSObjectCopyPropertyNames):
2484 * UserObjectImp.cpp:
2485 (UserObjectImp::getPropertyList):
2488 2006-06-15 Timothy Hatcher <timothy@apple.com>
2490 Reviewed by Geoff and Darin.
2492 Prefer the DWARF debugging symbols format for use in Xcode 2.3.
2494 * JavaScriptGlue.xcodeproj/project.pbxproj:
2496 2006-06-12 Geoffrey Garen <ggaren@apple.com>
2498 Reviewed by TimO, Maciej.
2500 - JSGlue part of merging InterpreterImp into Interpreter.
2502 Since there's now a kjs forwarding header, I moved all forwarding
2503 headers into a "ForwardingHeaders" directory, like in WebCore.
2505 * ForwardingHeaders: Added.
2506 * ForwardingHeaders/kjs: Added.
2507 * ForwardingHeaders/kjs/ExecState.h: Added.
2508 * ForwardingHeaders/wtf: Added.
2509 * JavaScriptGlue.xcodeproj/project.pbxproj:
2512 * wtf/AlwaysInline.h: Removed.
2513 * wtf/Assertions.h: Removed.
2514 * wtf/FastMalloc.h: Removed.
2515 * wtf/Forward.h: Removed.
2516 * wtf/HashCountedSet.h: Removed.
2517 * wtf/HashSet.h: Removed.
2518 * wtf/Noncopyable.h: Removed.
2519 * wtf/OwnArrayPtr.h: Removed.
2520 * wtf/OwnPtr.h: Removed.
2521 * wtf/PassRefPtr.h: Removed.
2522 * wtf/Platform.h: Removed.
2523 * wtf/RefPtr.h: Removed.
2524 * wtf/Vector.h: Removed.
2526 === JavaScriptGlue-521.10 ===
2528 2006-05-09 Maciej Stachowiak <mjs@apple.com>
2530 Rubber stamped by Anders.
2532 - renamed kxmlcore to wtf
2539 * kxmlcore: Removed.
2540 * kxmlcore/AlwaysInline.h: Removed.
2541 * kxmlcore/Assertions.h: Removed.
2542 * kxmlcore/FastMalloc.h: Removed.
2543 * kxmlcore/Forward.h: Removed.
2544 * kxmlcore/HashCountedSet.h: Removed.
2545 * kxmlcore/HashSet.h: Removed.
2546 * kxmlcore/Noncopyable.h: Removed.
2547 * kxmlcore/OwnArrayPtr.h: Removed.
2548 * kxmlcore/OwnPtr.h: Removed.
2549 * kxmlcore/PassRefPtr.h: Removed.
2550 * kxmlcore/Platform.h: Removed.
2551 * kxmlcore/RefPtr.h: Removed.
2552 * kxmlcore/Vector.h: Removed.
2555 2006-04-11 Darin Adler <darin@apple.com>
2557 - try to fix Windows build
2559 * kxmlcore/HashForward.h: Removed.
2561 2006-04-10 Darin Adler <darin@apple.com>
2563 Rubber-stamped by John Sullivan.
2565 - added forwarding headers for the new Forward.h and HashForward.h files
2567 * kxmlcore/Forward.h: Added.
2568 * kxmlcore/HashForward.h: Added.
2570 2006-04-04 Timothy Hatcher <timothy@apple.com>
2572 Reviewed by Darin Adler.
2574 The Debug and Release frameworks are now built with install paths relative to the build products directory.
2575 This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore.
2577 * JavaScriptGlue.xcodeproj/project.pbxproj:
2579 2006-04-02 Eric Seidel <eseidel@apple.com>
2581 Reviewed by andersca.
2583 Add missing forwarding header.
2585 * kxmlcore/Vector.h: Added.
2587 2006-03-31 Geoffrey Garen <ggaren@apple.com>
2589 Reviewed by Darin Adler.
2591 - Fixed <rdar://problem/4430836> JavaScript patch crashing Quartz
2594 JSValueWrappers used to hold on to the ExecState that pertained at
2595 the time of their creation. Since ExecStates are transient, that
2596 design was totally bogus, and it would crash once the ExecState had
2599 Unfortunately, there's no clean solution to this problem, since
2600 the JSGlue API has no notion of state. The solution here is to use
2601 a shared, global ExecState for the purpose of JSGlue calls. Given
2602 the pre-existing limitations in the JSGlue API, this design
2603 shouldn't actually introduce any new limitations (see comments in
2604 JSValueWrapper.cpp).
2606 I tested with Quartz Composer and PAC files, neither of which are
2610 (KJSValueToJSObject):
2611 * JSValueWrapper.cpp:
2612 (JSValueWrapper::JSValueWrapper):
2613 (JSValueWrapper::GetValue):
2614 (getProcessGlobalExecState):
2615 (JSValueWrapper::JSObjectCopyPropertyNames):
2616 (JSValueWrapper::JSObjectCopyProperty):
2617 (JSValueWrapper::JSObjectSetProperty):
2618 (JSValueWrapper::JSObjectCallFunction):
2619 (JSValueWrapper::JSObjectCopyCFValue):
2622 Also added a test harness file. It was helpful while I was testing,
2623 and may come in handy in the future:
2625 * JavaScriptGlue.xcodeproj/project.pbxproj:
2626 testjsglue.cpp: Added.
2628 2006-03-28 Darin Adler <darin@apple.com>
2632 - added a build step that checks for init routines
2634 * JavaScriptGlue.xcodeproj/project.pbxproj: Added a custom build phase that invokes the
2635 check-for-global-initializers script.
2637 2006-03-02 Maciej Stachowiak <mjs@apple.com>
2639 Not reviewed, but I noticed these trivial extra changes were needed to avoid
2640 breaking the build with my reviewed patch for:
2642 http://bugs.webkit.org/show_bug.cgi?id=7387
2644 Add config.h, includes of it, and Platform.h forwarding header.
2650 * JSValueWrapper.cpp:
2651 * JavaScriptGlue.cpp:
2652 * UserObjectImp.cpp:
2654 * kxmlcore/Platform.h: Added.
2656 === JavaScriptGlue-521.7 ===
2658 2006-02-10 Geoffrey Garen <ggaren@apple.com>
2664 * UserObjectImp.cpp:
2665 (UserObjectImp::toPrimitive):
2668 2006-02-03 Timothy Hatcher <timothy@apple.com>
2672 Renamed configuration names to Debug, Release and Production.
2674 * JavaScriptGlue.xcodeproj/project.pbxproj:
2676 2006-02-01 Darin Adler <darin@apple.com>
2678 - added some forwarding headers to make new JavaScriptCore changes work
2680 * kxmlcore/Assertions.h: Added.
2681 * kxmlcore/Noncopyable.h: Added.
2682 * kxmlcore/OwnPtr.h: Added.
2683 * kxmlcore/OwnArrayPtr.h: Added.
2685 2006-01-16 Timothy Hatcher <timothy@apple.com>
2687 Adding the license header to all files so we can
2688 move JavaScriptGlue into the open source repository.
2691 * JSBase.cpp: license header added.
2693 * JSObject.cpp: ditto.
2694 * JSObject.h: ditto.
2697 * JSUtils.cpp: ditto.
2699 * JSValueWrapper.cpp: ditto.
2700 * JSValueWrapper.h: ditto.
2701 * JavaScriptGlue.cpp: ditto.
2702 * JavaScriptGlue.h: ditto.
2703 * UserObjectImp.cpp: ditto.
2704 * UserObjectImp.h: ditto.
2706 2005-12-21 Timothy Hatcher <timothy@apple.com>
2708 * JavaScriptGlue.xcodeproj/project.pbxproj:
2709 Set tab width to 8, indent width to 4 and uses tabs to false per file.
2711 2005-12-19 Darin Adler <darin@apple.com>
2713 Reviewed by Geoff Garen and Eric Seidel.
2715 - fix http://bugs.webkit.org/show_bug.cgi?id=4923
2716 stop using <ostream> in WebCore, eliminating the <cmath> troubles it causes
2718 * kxmlcore/AlwaysInline.h: Added.
2720 2005-12-15 Darin Adler <darin@apple.com>
2724 * JSRun.cpp: (JSRun::Evaluate): Updated for change to Interpreter::evaluate.
2726 2005-12-15 Darin Adler <darin@apple.com>
2728 Reviewed by Tim Hatcher.
2730 * JavaScriptGlue.xcodeproj/project.pbxproj: Removed some redundant build
2731 settings, turned off prebinding explicitly for our Development and
2732 Deployment builds, remove .exp file from sources. All "clean-up".
2734 === Safari-521~5 ===
2736 2005-12-13 Geoffrey Garen <ggaren@apple.com>
2738 - Fixed build after Anders's last checkin to JavaScriptCore.
2742 * UserObjectImp.cpp:
2743 (UserObjectImp::userObjectGetter): Updated to reflect new argument that
2744 getters take (unused here).
2747 2005-12-13 Maciej Stachowiak <mjs@apple.com>
2751 - added forwarding header for HashCountedSet
2753 * kxmlcore/HashCountedSet.h: Added.
2755 2005-12-10 Darin Adler <darin@apple.com>
2757 Rubber stamped by Maciej.
2759 - updated for KJS class renaming
2761 * many files and functions
2763 2005-12-10 Darin Adler <darin@apple.com>
2767 - eliminated the old Undefined(), Null(), Boolean(), Number(), and String()
2769 Code now uses jsUndefined(), jsNull(), jsBoolean(), jsNumber(), and jsString().
2773 * UserObjectImp.cpp:
2774 (UserObjectImp::callAsFunction):
2775 (UserObjectImp::toPrimitive):
2777 2005-12-05 Maciej Stachowiak <mjs@apple.com>
2779 - added new forwarding headers
2781 * kxmlcore/PassRefPtr.h: Added.
2782 * kxmlcore/RefPtr.h: Added.
2784 2005-12-05 Maciej Stachowiak <mjs@apple.com>
2786 * kxmlcore/PassRefPtr.h: Added.
2788 2005-11-26 Maciej Stachowiak <mjs@apple.com>
2790 Rubber stamped by Eric.
2792 - renamed InterpreterLock to JSLock
2795 (CFStringToUString):
2797 (KJSValueToCFTypeInternal):
2798 * JSValueWrapper.cpp:
2799 (JSValueWrapper::JSObjectCopyPropertyNames):
2800 (JSValueWrapper::JSObjectCopyProperty):
2801 (JSValueWrapper::JSObjectSetProperty):
2802 (JSValueWrapper::JSObjectCallFunction):
2803 (JSValueWrapper::JSObjectCopyCFValue):
2804 * JavaScriptGlue.cpp:
2807 (JSLockInterpreter):
2808 (JSUnlockInterpreter):
2809 * UserObjectImp.cpp:
2810 (UserObjectImp::callAsFunction):
2812 2005-11-16 Maciej Stachowiak <mjs@apple.com>
2816 Updated to use new API to drop all locks.
2818 * JavaScriptGlue.cpp:
2819 (JSLockInterpreter):
2820 (JSUnlockInterpreter):
2821 * UserObjectImp.cpp:
2822 (UserObjectImp::callAsFunction):
2824 2005-11-14 Geoffrey Garen <ggaren@apple.com>
2828 - Part of the fix for <rdar://problem/4342216> Installer crash in
2829 KJS::ValueImp::marked() when garbage collector runs inside call to
2830 ConstantValues::init()
2832 Added locking in JSRunCreate, since JSRun::JSRun constructs an object.
2834 * JavaScriptGlue.cpp:
2837 2005-11-10 Geoffrey Garen <ggaren@apple.com>
2841 - Fixed <rdar://problem/4334445> installer crashed on my
2842 dual g4 450Mhz after clicking language
2844 - Reversed backwards NULL check.
2845 - Inserted guards against NULL fJSUserObject data member.
2846 - Cleaned up some style.
2849 (KJSValueToCFTypeInternal):
2850 * UserObjectImp.cpp:
2851 (UserObjectImp::~UserObjectImp):
2852 (UserObjectImp::callAsFunction):
2853 (UserObjectImp::userObjectGetter):
2854 (UserObjectImp::getOwnPropertySlot):
2855 (UserObjectImp::put):
2856 (UserObjectImp::mark):
2858 2005-11-04 Timothy Hatcher <timothy@apple.com>
2860 Reviewed by Darin Adler.
2862 * JavaScriptGlue.xcodeproj/project.pbxproj:
2863 Fixed the FRAMEWORK_SEARCH_PATHS to look in the WebKit
2864 Frameworks for the Default config.
2866 2005-11-03 Timothy Hatcher <timothy@apple.com>
2868 Reviewed by Darin and Vicki.
2870 * JavaScriptGlue.xcodeproj/project.pbxproj:
2871 Change to use $(SYSTEM_LIBRARY_DIR) consistently and place
2872 $(NEXT_ROOT) in a few spots to make build-root work.
2874 2005-11-01 Maciej Stachowiak <mjs@apple.com>
2878 <rdar://problem/4324107> get JavaScriptGlue working with TOT JavaScriptCore again
2880 - reverted all this stuff to use ReferenceList instead of IdentifierSequencedSet
2883 (KJSValueToCFTypeInternal):
2884 * JSValueWrapper.cpp:
2885 (JSValueWrapper::JSObjectCopyPropertyNames):
2886 * UserObjectImp.cpp:
2887 (UserObjectImp::propList):
2890 2005-10-11 Timothy Hatcher <timothy@apple.com>
2892 Setup the proper Framework search path for the Default config.
2893 Prepping for a TOT submission and build by B&I.
2895 * JavaScriptGlue.xcodeproj/project.pbxproj:
2897 2005-10-10 Darin Adler <darin@apple.com>
2901 - converted tabs to spaces, NULL to 0, added some (void), got rid of __ prefixes
2902 in headers (reserved for compiler/library)
2913 * JSValueWrapper.cpp:
2915 * JavaScriptGlue.cpp:
2917 * UserObjectImp.cpp:
2920 2005-10-10 Darin Adler <darin@apple.com>
2922 * .cvsignore: Added. Ignore Makefile.in and Makefile.
2924 2005-10-07 Timothy Hatcher <timothy@apple.com>
2928 Build fix, needed to disable RTTI. Upgraded to a native target.
2930 * JavaScriptGlue.xcodeproj/project.pbxproj:
2933 2005-10-05 Maciej Stachowiak <mjs@apple.com>
2935 Reviewed by Eric and Darin.
2937 <rdar://problem/4260506> Port JavaScriptGlue to TOT JavaScriptCore
2941 (JSRun::GlobalObject):
2943 (JSInterpreter::JSInterpreter):
2945 (KJSValueToJSObject):
2947 (KJSValueToCFTypeInternal):
2950 * JSValueWrapper.cpp:
2951 (JSValueWrapper::JSValueWrapper):
2952 (JSValueWrapper::GetValue):
2953 (JSValueWrapper::JSObjectCopyPropertyNames):
2954 (JSValueWrapper::JSObjectCopyProperty):
2955 (JSValueWrapper::JSObjectSetProperty):
2956 (JSValueWrapper::JSObjectCallFunction):
2957 (JSValueWrapper::JSObjectMark):
2959 * JavaScriptGlue.cpp:
2960 (JSRunCopyGlobalObject):
2961 * JavaScriptGlue.xcodeproj/project.pbxproj:
2962 * Makefile.am: Added.
2963 * UserObjectImp.cpp:
2964 (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
2965 (UserObjectImp::UserObjectImp):
2966 (UserObjectImp::callAsFunction):
2967 (UserObjectImp::getPropertyNames):
2968 (UserObjectImp::userObjectGetter):
2969 (UserObjectImp::getOwnPropertySlot):
2970 (UserObjectImp::put):
2971 (UserObjectImp::toPrimitive):
2972 (UserObjectImp::mark):
2974 * kxmlcore/FastMalloc.h: Added.
2975 * kxmlcore/HashSet.h: Added.
2977 2005-09-14 Maciej Stachowiak <mjs@apple.com>
2981 - fixed <rdar://problem/4214783> REGRESSION: kjs_fast_malloc crash due to lack of locking on multiple threads (seen selecting volumes in the installer)
2983 Make sure to lock using the InterpreterLock class in all places that need it
2984 (including anything that uses the collector, the parser, the protect count hash table,
2985 and anything that allocates via fast_malloc).
2988 (CFStringToUString):
2990 (KJSValueToCFTypeInternal):
2992 * JSValueWrapper.cpp:
2993 (JSValueWrapper::JSObjectCopyPropertyNames):
2994 (JSValueWrapper::JSObjectCopyProperty):
2995 (JSValueWrapper::JSObjectSetProperty):
2996 (JSValueWrapper::JSObjectCallFunction):
2997 (JSValueWrapper::JSObjectCopyCFValue):
2998 * JavaScriptGlue.cpp:
3001 2005-09-27 Adele Peterson <adele@apple.com>
3005 <rdar://problem/4223297> JavaScriptGlue: Submit 64-bit compatible versions of your API and SPIs by September 15
3007 * JavaScriptGlue.h: Changed UInt32 to CFTypeID for JSTypeID
3009 2005-09-06 Geoffrey Garen <ggaren@apple.com>
3011 -upgraded project files to XCode 2.1
3013 * JavaScriptGlue.pbproj/project.pbxproj: Removed.
3014 * JavaScriptGlue.xcodeproj/.cvsignore: Added.
3015 * JavaScriptGlue.xcodeproj/project.pbxproj: Added.
3017 2005-09-01 Maciej Stachowiak <mjs@apple.com>
3019 Rubber stamped by hyatt.
3021 - initial import of JavaScriptGlue into our repository
3023 * English.lproj/InfoPlist.strings: Added.
3024 * JSBase.cpp: Added.
3029 (JSBase::RetainCount):
3030 (JSBase::GetTypeID):
3031 (JSBase::CopyDescription):
3034 * JSObject.cpp: Added.
3035 (JSUserObject::JSUserObject):
3036 (JSUserObject::~JSUserObject):
3037 (JSUserObject::CopyPropertyNames):
3038 (JSUserObject::CopyProperty):
3039 (JSUserObject::SetProperty):
3040 (JSUserObject::ImplementsCall):
3041 (JSUserObject::CallFunction):
3042 (JSUserObject::CopyCFValue):
3043 (JSUserObject::Equal):
3044 (JSUserObject::Mark):
3045 (JSUserObject::GetData):
3046 * JSObject.h: Added.
3047 (JSUserObject::DataType):
3053 (JSRun::GlobalObject):
3054 (JSRun::GetInterpreter):
3056 (JSRun::CheckSyntax):
3058 (JSInterpreter::JSInterpreter):
3059 (JSInterpreter::JSInterpreter::~JSInterpreter):
3060 (JSInterpreter::Flags):
3061 * JSUtils.cpp: Added.
3062 (CFStringToUString):
3063 (UStringToCFString):
3064 (CFStringToIdentifier):
3065 (IdentifierToCFString):
3066 (KJSValueToJSObject):
3068 (KJSValueToCFTypeInternal):
3074 * JSValueWrapper.cpp: Added.
3075 (JSValueWrapper::JSValueWrapper):
3076 (JSValueWrapper::~JSValueWrapper):
3077 (JSValueWrapper::GetValue):
3078 (JSValueWrapper::GetExecState):
3079 (JSValueWrapper::GetJSObectCallBacks):
3080 (JSValueWrapper::JSObjectDispose):
3081 (JSValueWrapper::JSObjectCopyPropertyNames):
3082 (JSValueWrapper::JSObjectCopyProperty):
3083 (JSValueWrapper::JSObjectSetProperty):
3084 (JSValueWrapper::JSObjectCallFunction):
3085 (JSValueWrapper::JSObjectCopyCFValue):
3086 (JSValueWrapper::JSObjectMark):
3087 * JSValueWrapper.h: Added.
3088 * JavaScriptGlue.cpp: Added.
3093 (JSCopyDescription):
3098 (JSObjectCreateInternal):
3099 (JSObjectCopyCFValue):
3101 (JSObjectCopyProperty):
3102 (JSObjectSetProperty):
3103 (JSObjectCallFunction):
3106 (JSRunCopyGlobalObject):
3110 (JSTypeGetCFArrayCallBacks):
3113 (JSObjectCreateWithCFType):
3114 (CFJSObjectDispose):
3115 (JSObjectCopyPropertyNames):
3116 (CFJSObjectCopyProperty):
3117 (CFJSObjectSetProperty):
3118 (CFJSObjectCopyCFValue):
3120 (CFJSObjectCopyPropertyNames):
3121 (JSCreateCFArrayFromJSArray):
3122 (JSCreateJSArrayFromCFArray):
3123 (JSLockInterpreter):
3124 (JSUnlockInterpreter):
3125 * JavaScriptGlue.exp: Added.
3126 * JavaScriptGlue.h: Added.
3127 * JavaScriptGlue.pbproj/project.pbxproj: Added.
3128 * UserObjectImp.cpp: Added.
3129 (UserObjectPrototypeImp::UserObjectPrototypeImp):
3130 (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
3131 (UserObjectImp::UserObjectImp):
3132 (UserObjectImp::~UserObjectImp):
3133 (UserObjectImp::classInfo):
3134 (UserObjectImp::implementsCall):
3135 (UserObjectImp::call):
3136 (UserObjectImp::propList):
3137 (UserObjectImp::hasProperty):
3138 (UserObjectImp::get):
3139 (UserObjectImp::put):
3140 (UserObjectImp::GetJSUserObject):
3141 (UserObjectImp::toPrimitive):
3142 (UserObjectImp::toBoolean):
3143 (UserObjectImp::toNumber):
3144 (UserObjectImp::toString):
3145 (UserObjectImp::mark):
3146 * UserObjectImp.h: Added.