1 2011-04-19 Renata Hodovan <reni (a] webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Move the alignment related macros in Vector.h to new Alignment.h. 6 https://bugs.webkit.org/show_bug.cgi?id=56000 7 8 Adding the new file to the forwarding headers of JavaScriptGlue. 9 10 * ForwardingHeaders/wtf/Alignment.h: Added. 11 12 2011-04-15 Oliver Hunt <oliver (a] apple.com> 13 14 GC allocate Structure 15 https://bugs.webkit.org/show_bug.cgi?id=58483 16 17 Rolling r83894 r83827 r83810 r83809 r83808 back in with 18 a workaround for the gcc bug seen by the gtk bots 19 20 * JSRun.cpp: 21 (JSGlueGlobalObject::JSGlueGlobalObject): 22 * JSRun.h: 23 * JSUtils.cpp: 24 (JSObjectKJSValue): 25 * UserObjectImp.cpp: 26 (UserObjectImp::UserObjectImp): 27 * UserObjectImp.h: 28 (UserObjectImp::createStructure): 29 30 2011-04-08 Geoffrey Garen <ggaren (a] apple.com> 31 32 Reviewed by Oliver Hunt. 33 34 A few heap-related renames and file moves. 35 36 WeakGCPtr<T> => Weak<T> 37 Global<T> => Strong<T> 38 collector/ => heap/ 39 collector/* => heap/* 40 runtime/WeakGCPtr.h => heap/Weak.h 41 42 (Eventually, even more files should move into the heap directory. Like 43 Heap.h and Heap.cpp, for example.) 44 45 * JSRun.h: 46 * JSValueWrapper.h: 47 48 2011-04-07 Geoffrey Garen <ggaren (a] apple.com> 49 50 Reviewed by Maciej Stachowiak. 51 52 Some Handle<T> cleanup 53 https://bugs.webkit.org/show_bug.cgi?id=58109 54 55 * JSRun.h: 56 * JSValueWrapper.h: #include a file that was missing before, but was 57 harmlessly so until now. 58 59 2011-03-30 Timur Iskhodzhanov <timurrrr (a] google.com> 60 61 Reviewed by Alexey Proskuryakov. 62 63 Add some dynamic annotations to JavaScriptCore/wtf 64 https://bugs.webkit.org/show_bug.cgi?id=53747 65 66 By using these annotations we can improve the precision of finding 67 WebKit errors using dynamic analysis tools like ThreadSanitizer and Valgrind. 68 These annotations don't affect the compiled binaries unless USE(DYNAMIC_ANNOTATIONS) is "1". 69 70 These files don't add new functionality, so don't need extra tests. 71 72 * ForwardingHeaders/wtf/DynamicAnnotations.h: Added. 73 74 2011-03-25 Oliver Hunt <oliver (a] apple.com> 75 76 Reviewed by Geoffrey Garen. 77 78 instanceof Array test fails when using iframes 79 https://bugs.webkit.org/show_bug.cgi?id=17250 80 81 Up date for new toObject api 82 83 * UserObjectImp.cpp: 84 (UserObjectImp::toPrimitive): 85 (UserObjectImp::toBoolean): 86 (UserObjectImp::toNumber): 87 (UserObjectImp::toString): 88 89 2011-03-26 Adam Barth <abarth (a] webkit.org> 90 91 Remove the JavaScriptGlue GYP build. We're not going to use GYP for 92 JavaScriptGlue because JavaScriptGlue is used only by one port. 93 94 * gyp: Removed. 95 * gyp/JavaScriptGlue.gyp: Removed. 96 * gyp/JavaScriptGlue.gypi: Removed. 97 * gyp/remove-headers-if-needed.sh: Removed. 98 * gyp/run-if-exists.sh: Removed. 99 * gyp/update-info-plist.sh: Removed. 100 101 2011-03-22 Eric Seidel <eric (a] webkit.org> 102 103 Reviewed by Adam Barth. 104 105 Make it possible to build JavaScriptCore and WebCore gyp builds outside of Source 106 https://bugs.webkit.org/show_bug.cgi?id=56867 107 108 This should make it possible to build the gyp-generated JavaScriptGlue.xcodeproj 109 from a JavaScriptGlue directory outside of Source. 110 111 * gyp/JavaScriptGlue.gyp: 112 * gyp/run-if-exists.sh: Added. 113 * gyp/update-info-plist.sh: Added. 114 115 2011-03-22 Adam Barth <abarth (a] webkit.org> 116 117 Reviewed by Eric Seidel. 118 119 Production configuration in GYP isn't set up correctly 120 https://bugs.webkit.org/show_bug.cgi?id=56786 121 122 Update JavaScriptGlue.gyp with information mined from 123 JavaScriptGlue.xcodeproj. 124 125 * gyp/JavaScriptGlue.gyp: 126 * gyp/JavaScriptGlue.gypi: 127 128 2011-03-21 Adam Barth <abarth (a] webkit.org> 129 130 Reviewed by Eric Seidel. 131 132 GYP build should not have include paths that point within the source tree 133 https://bugs.webkit.org/show_bug.cgi?id=56788 134 135 Turns out we don't need these include paths anymore now that we have 136 header maps working properly. 137 138 * gyp/JavaScriptGlue.gyp: 139 140 2011-03-20 Bill Budge <bbudge (a] chromium.org> 141 142 Reviewed by Adam Barth. 143 144 Rename ThreadSafeShared to ThreadSafeRefCounted 145 https://bugs.webkit.org/show_bug.cgi?id=56714 146 147 No new tests. Exposes no new functionality. 148 149 * ForwardingHeaders/wtf/ThreadSafeRefCounted.h: Copied from ForwardingHeaders/wtf/ThreadSafeShared.h. 150 * ForwardingHeaders/wtf/ThreadSafeShared.h: Removed. 151 * gyp/JavaScriptGlue.gypi: 152 153 2011-03-17 Jeff Miller <jeffm (a] apple.com> 154 155 Use a consistent set of file patterns in the svn:ignore property for all .xcodeproj directories, specifically: 156 157 *.mode* 158 *.pbxuser 159 *.perspective* 160 project.xcworkspace 161 xcuserdata 162 163 * JavaScriptGlue.xcodeproj: Modified property svn:ignore. 164 165 2011-03-15 Oliver Hunt <oliver (a] apple.com> 166 167 Reviewed by Geoffrey Garen. 168 169 Make Structure creation require a JSGlobalData 170 https://bugs.webkit.org/show_bug.cgi?id=56438 171 172 Mechanical change to make all structure creation pass a JSGlobalData&. 173 174 * JSRun.cpp: 175 (JSGlueGlobalObject::JSGlueGlobalObject): 176 (JSRun::JSRun): 177 * JSRun.h: 178 * JSUtils.cpp: 179 (getThreadGlobalObject): 180 * UserObjectImp.h: 181 (UserObjectImp::createStructure): 182 183 2011-03-15 Kevin Ollivier <kevino (a] theolliviers.com> 184 185 Reviewed by Darin Adler. 186 187 Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export 188 info into the headers rather than in export symbol definition files, but disable it on 189 all platforms initially so we can deal with port build issues one port at a time. 190 191 https://bugs.webkit.org/show_bug.cgi?id=27551 192 193 * config.h: 194 195 2011-03-10 Geoffrey Garen <ggaren (a] apple.com> 196 197 Reviewed by Oliver Hunt. 198 199 Rolled back in 80277 and 80280 with event handler layout test failures fixed. 200 https://bugs.webkit.org/show_bug.cgi?id=55653 201 202 The failures were caused by a last minute typo: assigning to currentEvent 203 instead of m_currentEvent. 204 205 * JSRun.cpp: 206 * JSRun.h: 207 208 2011-03-04 Adam Barth <abarth (a] webkit.org> 209 210 Reviewed by Dimitri Glazkov. 211 212 Use target_defaults to reduce boilerplate in GYP build system 213 https://bugs.webkit.org/show_bug.cgi?id=55790 214 215 Instead of setting up the configuration in each target, just defer to 216 target_defaults. Also, removed a define that was redundant with the 217 xcconfig. 218 219 * gyp/JavaScriptGlue.gyp: 220 221 2011-03-03 Geoffrey Garen <ggaren (a] apple.com> 222 223 Rolled out 80277 and 80280 because they caused event handler layout test 224 failures. 225 226 * JSRun.cpp: 227 * JSRun.h: 228 229 2011-03-01 Adam Barth <abarth (a] webkit.org> 230 231 Reviewed by Dimitri Glazkov. 232 233 Add pre- and post-build actions for JavaScriptCore GYP build 234 https://bugs.webkit.org/show_bug.cgi?id=55507 235 236 Remove the portion of this file that was split out into common.gypi. 237 238 * gyp/JavaScriptGlue.gyp: 239 240 2011-02-28 Gavin Barraclough <barraclough (a] apple.com> 241 242 Reviewed by Sam Weinig & Darin Adler. 243 244 Bug 55423 - Clean up property tables in Structure 245 246 Encapsulate, reduce duplication of table search code, 247 and reduce the size of the tables (remove the index, 248 just maintain the tables in the correct order). 249 250 Shows a 0.5% - 1% progression on sunspider. 251 252 * ForwardingHeaders/wtf/HashTable.h: Added. 253 254 2011-02-28 Adam Barth <abarth (a] webkit.org> 255 256 Reviewed by Dimitri Glazkov. 257 258 Teach JavaScriptGlue gyp build about DEPTH 259 https://bugs.webkit.org/show_bug.cgi?id=55421 260 261 After this path, we should set DEPTH to the Source directory, which is 262 a common point for all the frameworks that make up WebKit. These 263 changes to the GYP teach JavaScriptGlue how to find various files based 264 on DEPTH rather than based on the location of the xcodeproj file. 265 266 * gyp/JavaScriptGlue.gyp: 267 * gyp/remove-headers-if-needed.sh: Removed. 268 * gyp/run-if-exists.sh: Removed. 269 * gyp/update-info-plist.sh: Removed. 270 271 2011-02-28 Adam Barth <abarth (a] webkit.org> 272 273 Reviewed by Dimitri Glazkov. 274 275 Use more xcconfig files in JavaScriptGlue gyp build 276 https://bugs.webkit.org/show_bug.cgi?id=55395 277 278 Technically this patch breaks the build because the generated project 279 can't find the Info.plist file or the list of exported symbols. I'll 280 fix that in a follow-up patch. 281 282 * gyp/JavaScriptGlue.gyp: 283 284 2011-02-28 Dimitri Glazkov <dglazkov (a] chromium.org> 285 286 Reviewed by Adam Barth. 287 288 Add necessary build steps to JavaScriptGlue GYP project. 289 https://bugs.webkit.org/show_bug.cgi?id=55196 290 291 * gyp/JavaScriptGlue.gyp: Added pre- and post- build steps. 292 * gyp/JavaScriptGlue.gypi: Added Info.plist. 293 * gyp/remove-headers-if-needed.sh: Added. 294 * gyp/run-if-exists.sh: Added. 295 * gyp/update-info-plist.sh: Added. 296 297 2011-02-23 Geoffrey Garen <ggaren (a] apple.com> 298 299 Reviewed by Darin Adler. 300 301 Rolled back in r79367 with SnowLeopard Release bot crash fixed. 302 https://bugs.webkit.org/show_bug.cgi?id=54999 303 304 2011-02-22 Adam Barth <abarth (a] webkit.org> 305 306 Reviewed by Eric Seidel. 307 308 Add a GYP project for JavaScriptGlue 309 https://bugs.webkit.org/show_bug.cgi?id=55019 310 311 This is really just a proof-of-concept. The Xcode project file it 312 produces is able to build JavaScriptGlue, but it's not 100% correct. 313 Also, the GYP declarations aren't properly structured to allow for 314 multiple projects or ports. That should get better as we add 315 proof-of-concepts for other projects and ports. 316 317 This build system is not used currently. 318 319 * gyp: Added. 320 * gyp/JavaScriptGlue.gyp: Added. 321 * gyp/JavaScriptGlue.gypi: Added. 322 323 2011-02-22 Sheriff Bot <webkit.review.bot (a] gmail.com> 324 325 Unreviewed, rolling out r79367. 326 http://trac.webkit.org/changeset/79367 327 https://bugs.webkit.org/show_bug.cgi?id=55012 328 329 all layout tests are crashing on Snow Leopard (Requested by 330 rniwa on #webkit). 331 332 * ForwardingHeaders/wtf/DoublyLinkedList.h: Removed. 333 334 2011-02-22 Geoffrey Garen <ggaren (a] apple.com> 335 336 Reviewed by Oliver Hunt. 337 338 Manage MarkedBlocks in a linked list instead of a vector, so arbitrary removal is O(1) 339 https://bugs.webkit.org/show_bug.cgi?id=54999 340 341 New WTF header. 342 343 * ForwardingHeaders/wtf/DoublyLinkedList.h: Copied from ForwardingHeaders/wtf/FixedArray.h. 344 345 2011-02-18 Gavin Barraclough <barraclough (a] apple.com> 346 347 Reviewed by Sam Weinig. 348 349 Bug 54786 - Devirtualize JSCell::classInfo() 350 351 Instead of making a virtual function call, add a pointer to the ClassInfo 352 onto Structure. 353 354 This removes a virtual function call, and paves the way towards removing all 355 the createStructure methods, and StructureFlags/AnonymousSlotCount properties 356 (these should be able to move onto ClassInfo). 357 358 Calls to Structure::create must now pass a pointer to the ClassInfo for the 359 structure. All objects now have a ClassInfo pointer, non-object cell types 360 still do not. 361 362 Changes are most mechanical, involving three steps: 363 * Remove virtual classInfo() methods. 364 * Add &s_info parameter to calls to Structure::create. 365 * Rename ClassInfo static members on classes from 'info' to 's_info', 366 for consistency. 367 368 * JSUtils.cpp: 369 (KJSValueToJSObject): 370 (KJSValueToCFTypeInternal): 371 * UserObjectImp.cpp: 372 * UserObjectImp.h: 373 (UserObjectImp::createStructure): 374 375 2011-02-15 Gavin Barraclough <barraclough (a] apple.com> 376 377 Reviewed by Geoff Garen. 378 379 Bug 54524 - Allow JSObject to fully utilize cell's capacity for inline storage. 380 381 Currently JSObject is both directly instantiated for regular JS objects, and 382 derived to implement subtypes. A consequence of this is that we need to ensure 383 that sufficient space from the cell is left unused and available for any data 384 members that will be introduced by subclasses of JSObject. By restructuring 385 the internal storage array out of JSObject we can increase the size in the 386 internal storage for regular objects. 387 388 Add classes JSFinalObject and JSNonFinalObject. JSNonFinalObject retains as 389 much additional capacity as is currently available to allow for data members 390 in subclasses. JSFinalObject utilizes all available space for internal storage, 391 and only allows construction through JSFinalObject::create(). 392 393 * UserObjectImp.cpp: 394 * UserObjectImp.h: 395 Update JSObject -> JSNonFinalObject. 396 397 2011-02-14 Oliver Hunt <oliver (a] apple.com> 398 399 Reviewed by Gavin Barraclough and Geoff Garen. 400 401 Refactor handles and weak pointers to become nicer and more automatic 402 https://bugs.webkit.org/show_bug.cgi?id=54415 403 404 Update to use new Global<> type 405 406 * JSRun.cpp: 407 (JSRun::JSRun): 408 (JSRun::GlobalObject): 409 * JSRun.h: 410 * JSValueWrapper.cpp: 411 (JSValueWrapper::JSValueWrapper): 412 * JSValueWrapper.h: 413 414 2011-02-13 Cameron Zwarich <zwarich (a] apple.com> 415 416 Reviewed by Dan Bernstein. 417 418 Bug 53760 - JSC fails to build with TOT Clang 419 https://bugs.webkit.org/show_bug.cgi?id=53760 420 421 Fix -Woverloaded-virtual warnings. 422 423 * UserObjectImp.cpp: 424 (UserObjectImp::toPrimitive): Use PreferredPrimitiveType instead of JSType to 425 match the base class. 426 * UserObjectImp.h: 427 428 2011-02-06 Ryosuke Niwa <rniwa (a] webkit.org> 429 430 Reviewed by Darin Adler. 431 432 OwnArraryPtr.h uses deleteOwnedPtr but doesnt include OwnPtrCommon.h 433 https://bugs.webkit.org/show_bug.cgi?id=52867 434 435 * ForwardingHeaders/wtf/OwnArrayPtrCommon.h: Removed. 436 437 2011-01-31 Oliver Hunt <oliver (a] apple.com> 438 439 Convert markstack to a slot visitor API 440 https://bugs.webkit.org/show_bug.cgi?id=53219 441 442 rolling r77098, r77099, r77100, r77109, and 443 r77111 back in, along with a few more Qt fix attempts. 444 445 * JSValueWrapper.cpp: 446 (JSValueWrapper::JSObjectMark): 447 448 2011-01-30 Csaba Osztrogonc <ossy (a] webkit.org> 449 450 Unreviewed, rolling out r77098, r77099, r77100, r77109, and 451 r77111. 452 http://trac.webkit.org/changeset/77098 453 http://trac.webkit.org/changeset/77099 454 http://trac.webkit.org/changeset/77100 455 http://trac.webkit.org/changeset/77109 456 http://trac.webkit.org/changeset/77111 457 https://bugs.webkit.org/show_bug.cgi?id=53219 458 459 Qt build is broken 460 461 * JSValueWrapper.cpp: 462 (JSValueWrapper::JSObjectMark): 463 464 2011-01-30 Oliver Hunt <oliver (a] apple.com> 465 466 Convert markstack to a slot visitor API 467 https://bugs.webkit.org/show_bug.cgi?id=53219 468 469 rolling r77006 and r77020 back in. 470 471 * JSValueWrapper.cpp: 472 (JSValueWrapper::JSObjectMark): 473 474 2011-01-28 Sheriff Bot <webkit.review.bot (a] gmail.com> 475 476 Unreviewed, rolling out r77006 and r77020. 477 http://trac.webkit.org/changeset/77006 478 http://trac.webkit.org/changeset/77020 479 https://bugs.webkit.org/show_bug.cgi?id=53360 480 481 "Broke Windows tests" (Requested by rniwa on #webkit). 482 483 * JSValueWrapper.cpp: 484 (JSValueWrapper::JSObjectMark): 485 486 2011-01-27 Oliver Hunt <oliver (a] apple.com> 487 488 Reviewed by Geoffrey Garen. 489 490 Convert markstack to a slot visitor API 491 https://bugs.webkit.org/show_bug.cgi?id=53219 492 493 There's no reason to recurse here, the value we 494 were marking was protected. 495 496 * JSValueWrapper.cpp: 497 (JSValueWrapper::JSObjectMark): 498 499 2011-01-23 Mark Rowe <mrowe (a] apple.com> 500 501 Follow-up to r76477. 502 503 Fix the scripts that detect problematic code such as static initializers 504 and destructors, weak vtables, inappropriate files in the framework wrappers, 505 and public headers including private headers. These had all been broken 506 since the projects were moved in to the Source directory as the paths to the 507 scripts were not updated at that time. 508 509 * JavaScriptGlue.xcodeproj/project.pbxproj: 510 511 2011-01-17 Dan Bernstein <mitz (a] apple.com> 512 513 Rubber-stamped by Mark Rowe. 514 515 Update xcodeproj svn:ignore to include xcuserdata. 516 517 * JavaScriptGlue.xcodeproj: Modified property svn:ignore. 518 519 2011-01-10 Geoffrey Garen <ggaren (a] apple.com> 520 521 Reviewed by Oliver Hunt. 522 523 Moved Collector.* => Heap.*, since the file contains a class named "Heap". 524 525 * JSUtils.h: 526 527 2011-01-02 Dan Bernstein <mitz (a] apple.com> 528 529 Rubber-stamped by Simon Fraser. 530 531 <rdar://problem/8812159> Update copyright strings 532 533 * Info.plist: 534 535 2010-12-22 Dan Bernstein <mitz (a] apple.com> 536 537 Rubber-stamped by Mark Rowe. 538 539 Changed WebKitTools to Tools in script build phases. 540 541 * JavaScriptGlue.xcodeproj/project.pbxproj: 542 543 2010-12-21 Geoffrey Garen <ggaren (a] apple.com> 544 545 Reviewed by Gavin Barraclough & Oliver Hunt. 546 547 Added PageAllocationAligned, a cross-platform abstraction for memory allocations with arbitrary alignment requirements 548 https://bugs.webkit.org/show_bug.cgi?id=51359 549 550 * ForwardingHeaders/wtf/PageAllocationAligned.h: Added. 551 552 2010-12-21 Daniel Bates <dbates (a] rim.com> 553 554 Reviewed by Eric Seidel and Darin Adler. 555 556 Deallocate GregorianDateTime.timeZone (if allocated) when copying so that we don't leak memory. 557 https://bugs.webkit.org/show_bug.cgi?id=51367 558 559 Add forwarding header for PassOwnArrayPtr.h. 560 561 * ForwardingHeaders/wtf/PassOwnArrayPtr.h: Added. 562 563 2010-12-18 Gavin Barraclough <barraclough (a] apple.com> 564 565 Reviewed by Oliver Hunt. 566 567 Bug 26276 - Need a mechanism to determine stack extent 568 569 Add forwarding header for StackBounds.h. 570 571 * ForwardingHeaders/wtf/StackBounds.h: Added. 572 573 2010-12-20 Geoffrey Garen <ggaren (a] apple.com> 574 575 Reviewed by Sam Weinig. 576 577 Factored common page set management into a new PageBlock base class 578 https://bugs.webkit.org/show_bug.cgi?id=51285 579 580 * ForwardingHeaders/wtf/PageBlock.h: Added. 581 582 2010-12-01 Geoffrey Garen <ggaren (a] apple.com> 583 584 Build fix: Added a forwarding header. 585 586 * ForwardingHeaders/wtf/OSAllocator.h: Added. 587 588 2010-10-25 Oliver Hunt <oliver (a] apple.com> 589 590 Reviewed by Gavin Barraclough. 591 592 Remove exec and globalData arguments from jsNumber 593 https://bugs.webkit.org/show_bug.cgi?id=48270 594 595 Don't pass exec to jsNumber 596 597 * JSUtils.cpp: 598 (JSObjectKJSValue): 599 * UserObjectImp.cpp: 600 (UserObjectImp::toPrimitive): 601 602 2010-10-25 Sheriff Bot <webkit.review.bot (a] gmail.com> 603 604 Unreviewed, rolling out r70451. 605 http://trac.webkit.org/changeset/70451 606 https://bugs.webkit.org/show_bug.cgi?id=48249 607 608 Broke set-unloaded-frame-location.html under Qt (Requested by 609 caseq on #webkit). 610 611 * ForwardingHeaders/wtf/text/TextPosition.h: Removed. 612 613 2010-10-16 Patrick Gansterer <paroga (a] webkit.org> 614 615 Reviewed by Adam Barth. 616 617 Rename StringHasherFunctions.h to StringHasher.h 618 https://bugs.webkit.org/show_bug.cgi?id=47200 619 620 * ForwardingHeaders/wtf/StringHashFunctions.h: Removed. 621 * ForwardingHeaders/wtf/StringHasher.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/StringHashFunctions.h. 622 623 2010-09-09 Michael Saboff <msaboff (a] apple.com> 624 625 Reviewed by Gavin Barraclough. 626 627 Added ListHashSet.h as an exported header in support of RegExp tracing. 628 https://bugs.webkit.org/show_bug.cgi?id=45401 629 630 * ForwardingHeaders/wtf/ListHashSet.h: Added. 631 632 2010-09-07 Anders Carlsson <andersca (a] apple.com> 633 634 Reviewed by Darin Adler. 635 636 <rdar://problem/8381749> -Wcast-align warning emitted when building with clang 637 638 Remove the -Wcast-align-warning since it isn't really useful, and clang is more aggressive about warning than gcc. 639 640 * Configurations/Base.xcconfig: 641 642 2010-08-26 Sam Weinig <sam (a] webkit.org> 643 644 Reviewed by Darin Adler. 645 646 Add PassOwnArrayPtr 647 https://bugs.webkit.org/show_bug.cgi?id=44627 648 649 Add new forwarding header. 650 651 * ForwardingHeaders/wtf/OwnArrayPtrCommon.h: Added. 652 653 2010-08-23 Gavin Barraclough <barraclough (a] apple.com> 654 655 Reviewed by Oliver Hunt. 656 657 https://bugs.webkit.org/show_bug.cgi?id=44487 658 659 * ForwardingHeaders/wtf/text/WTFString.h: Added. 660 661 2010-08-24 Oliver Hunt <oliver (a] apple.com> 662 663 Reviewed by Geoff Garen. 664 665 Don't seed the JS random number generator from time() 666 https://bugs.webkit.org/show_bug.cgi?id=41868 667 <rdar://problem/8171025> 668 669 Add forwarding header for RandomNumber in JavaScriptGlue 670 671 * ForwardingHeaders/wtf/RandomNumber.h: Added. 672 673 2010-08-11 Gavin Barraclough <barraclough (a] apple.com> 674 675 Rubber stamps by Darin Adler & Sam Weinig. 676 677 Bug 43867 - Some UString cleanup 678 679 Change JSC::UString data(), size(), and from(), to characters(), length(), and number() to match WTF::String. 680 Move string concatenation methods to a new header to simplify down UString.h. Remove is8Bit(). 681 682 * JSUtils.cpp: 683 (UStringToCFString): 684 (KJSValueToCFTypeInternal): 685 * JavaScriptGlue.xcodeproj/project.pbxproj: 686 687 2010-08-04 Gavin Barraclough <barraclough (a] apple.com> 688 689 Reviewed by Sam Weinig. 690 691 Bug 43515 - Fix small design issues with PageAllocation, split out PageReservation. 692 (add forwarding headers) 693 694 * ForwardingHeaders/wtf/Bitmap.h: Added. 695 * ForwardingHeaders/wtf/PageReservation.h: Added. 696 697 2010-08-04 Sheriff Bot <webkit.review.bot (a] gmail.com> 698 699 Unreviewed, rolling out r64655. 700 http://trac.webkit.org/changeset/64655 701 https://bugs.webkit.org/show_bug.cgi?id=43496 702 703 JavaScriptCore references patch seems to have caused 704 regressions in QT and GTK builds (Requested by nlawrence on 705 #webkit). 706 707 * JSValueWrapper.cpp: 708 (JSValueWrapper::JSObjectMark): 709 710 2010-08-04 Nathan Lawrence <nlawrence (a] apple.com> 711 712 Reviewed by Darin Adler. 713 714 Removed unneeded marking. We need to remove this marking in order to have 715 MarkStack::append take references for updating movable objects. 716 717 https://bugs.webkit.org/show_bug.cgi?id=41177 718 719 * JSValueWrapper.cpp: 720 (JSValueWrapper::JSObjectMark): 721 722 2010-08-03 Gavin Barraclough <barraclough (a] apple.com> 723 724 Build fix following r64624. 725 726 * ForwardingHeaders/wtf/BitMap.h: Added. 727 728 2010-07-27 Gavin Barraclough <barraclough (a] apple.com> 729 730 Reviewed by Oliver Hunt. 731 732 Bug 42621 - Add a bump allocator for the YARR interpreter 733 734 The regex engine requires lifo allocation, however currently uses the general purpose 735 malloc/free memory allocation. A simple bump pointer allocator should provide a lower 736 overhead allocation solution. 737 738 * ForwardingHeaders/wtf/BumpPointerAllocator.h: Added. 739 740 2010-07-26 Gavin Barraclough <barraclough (a] apple.com> 741 742 Reviewed by Oliver Hunt. 743 744 Bug 43009 - Abstract out page allocation from executable allocators 745 746 * ForwardingHeaders/wtf/PageAllocation.h: Added. 747 748 2010-07-01 Oliver Hunt <oliver (a] apple.com> 749 750 Reviewed by Maciej Stachowiak. 751 752 Add a FixedArray template to encapsulate fixed length arrays 753 https://bugs.webkit.org/show_bug.cgi?id=41506 754 755 Add forwarding header. 756 757 * ForwardingHeaders/wtf/FixedArray.h: Added. 758 759 2010-06-02 Gavin Barraclough <barraclough (a] apple.com> 760 761 Reviewed by Oliver Hunt. 762 763 Bug 40094 - The return type of NativeFunction should be EncodedJSValue 764 On Windows & Linux, using JSVALUE32_64, EncodedJSValue is returned in registers, but JSValue is not. 765 766 * JSObject.cpp: 767 (nativeCallFunction): 768 769 2010-05-28 Geoffrey Garen <ggaren (a] apple.com> 770 771 Reviewed by Sam Weinig, Gavin Barraclough, Oliver Hunt. 772 773 Simplified the host calling convention. 774 775 PART ONE: Functional code changes. 776 777 [ None in JavaScriptGlue ] 778 779 PART TWO: Global search and replace. 780 781 In the areas below, I used global search-and-replace to change 782 (ExecState*, JSObject*, JSValue, const ArgList&) => (ExecState*) 783 args.size() => exec->argumentCount() 784 args.at(i) => exec->argument(i) 785 786 * JSObject.cpp: 787 (nativeCallFunction): 788 * UserObjectImp.cpp: 789 (UserObjectImp::callAsFunction): 790 * UserObjectImp.h: 791 792 2010-04-23 Sam Weinig <sam (a] webkit.org> 793 794 Reviewed by David Levin. 795 796 Fix for https://bugs.webkit.org/show_bug.cgi?id=38060 797 Split up Threading.h 798 799 Add necessary forwarding headers. 800 801 * ForwardingHeaders/wtf/Atomics.h: Added. 802 * ForwardingHeaders/wtf/ThreadSafeShared.h: Added. 803 * ForwardingHeaders/wtf/ThreadingPrimitives.h: Added. 804 805 2010-04-22 Sam Weinig <sam (a] webkit.org> 806 807 Reviewed by Anders Carlsson. 808 809 Fix for https://bugs.webkit.org/show_bug.cgi?id=38022 810 Move isMainThread predicate function to MainThread.h 811 812 Added forwarding header for MainThread.h 813 814 * ForwardingHeaders/wtf/MainThread.h: Added. 815 816 2010-04-22 Gavin Barraclough <barraclough (a] apple.com> 817 818 Rubber stamped by Sam Weinig 819 820 Do not get the globaldata for the APIShim via the 821 global object; global object construction creates identifiers 822 which results in the ASSERTs checking the thread data's 823 identifierTable has been set failing. 824 825 * JSUtils.cpp: 826 (unprotectGlobalObject): 827 (getThreadGlobalData): 828 (getThreadGlobalObject): 829 (JSGlueAPIEntry::JSGlueAPIEntry): 830 (JSGlueAPICallback::~JSGlueAPICallback): 831 832 2010-04-21 Geoffrey Garen <ggaren (a] apple.com> 833 834 Reviewed by Sam Weinig. 835 836 <rdar://problem/7879485> Leopard: Crash after opening Software Update dialog 837 838 * JSUtils.cpp: 839 (unprotectGlobalObject): Use the version of JSGlueAPIEntry that doesn't 840 call pthread_getspecific, since it's not safe to call pthread_getspecific 841 from a thread-specific data destructor. (<rdar://problem/7889842> 842 pthread_getspecific returns 0 when called from thread-specific data 843 destructor function) 844 845 (getThreadGlobalObject): Make sure to set the currentIdentifierTable 846 when first constructing our JSGlobalObject, since JSGlueAPIEntry has not 847 yet had an opportunity to do so. 848 849 (JSGlueAPIEntry::JSGlueAPIEntry): 850 * JSUtils.h: New version of JSGlueAPIEntry that doesn't call 851 pthread_getspecific. 852 853 2010-04-21 Gavin Barraclough <barraclough (a] apple.com> 854 855 Reviewed by NOBODY (build fix). 856 Errk! tree on fire, add fwd! 857 858 * ForwardingHeaders/wtf/text/StringHash.h: Added. 859 860 2010-04-20 Gavin Barraclough <barraclough (a] apple.com> 861 862 Reviewed by Oliver Hunt, Darin Adler. 863 864 Bug 37906 - Remove JSC::UStringImpl; unify with StringImpl. 865 Add forwarding header. 866 867 * ForwardingHeaders/wtf/ASCIICType.h: Added. 868 * ForwardingHeaders/wtf/text/StringImpl.h: Added. 869 870 2010-04-20 Gavin Barraclough <barraclough (a] apple.com> 871 872 Reviewed by Oliver Hunt. 873 874 Bug 37895 - Share common code from UStringImplBase with StringImpl 875 Add forwarding header. 876 877 * ForwardingHeaders/wtf/text/StringImplBase.h: Added. 878 879 2010-04-20 Gavin Barraclough <barraclough (a] apple.com> 880 881 Rubber stamped by Maciej Stachowiak (relanding r57829). 882 Added missing JS_EXPORTDATA 883 884 * ForwardingHeaders/wtf/WTFThreadData.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/WTFThreadData.h. 885 * JSUtils.cpp: 886 (JSGlueAPIEntry::JSGlueAPIEntry): 887 (JSGlueAPIEntry::~JSGlueAPIEntry): 888 (JSGlueAPICallback::JSGlueAPICallback): 889 (JSGlueAPICallback::~JSGlueAPICallback): 890 891 2010-04-19 Gavin Barraclough <barraclough (a] apple.com> 892 893 Reviewed by NOBODY (rolling out r57829). 894 This broke windows. 895 896 * ForwardingHeaders/wtf/WTFThreadData.h: Removed. 897 * JSUtils.cpp: 898 (JSGlueAPIEntry::JSGlueAPIEntry): 899 (JSGlueAPIEntry::~JSGlueAPIEntry): 900 (JSGlueAPICallback::JSGlueAPICallback): 901 (JSGlueAPICallback::~JSGlueAPICallback): 902 903 2010-04-16 Gavin Barraclough <barraclough (a] apple.com> 904 905 Reviewed by Sam Weinig. 906 907 https://bugs.webkit.org/show_bug.cgi?id=37745 908 Move string uniquing tables to (new) WTFThreadData class. 909 910 Remove AtomicString's dependency on ThreadGlobalData so that we can move 911 WebCore's string classes up to WTF. 912 913 * ForwardingHeaders/wtf/WTFThreadData.h: Added. 914 * JSUtils.cpp: Update 915 (JSGlueAPIEntry::JSGlueAPIEntry): 916 (JSGlueAPIEntry::~JSGlueAPIEntry): 917 (JSGlueAPICallback::JSGlueAPICallback): 918 (JSGlueAPICallback::~JSGlueAPICallback): 919 920 2010-03-31 Gavin Barraclough <barraclough (a] apple.com> 921 922 Reviewed by Geoff Garen. 923 924 Bug 36871 - Remove JSC::CString 925 Use WTF::CString instead (which until recently was WebCore::CString). 926 927 * ForwardingHeaders/wtf/text: Added. 928 * ForwardingHeaders/wtf/text/CString.h: Added. 929 930 2010-03-11 Mark Rowe <mrowe (a] apple.com> 931 932 Reviewed by David Kilzer. 933 934 <rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version 935 936 Default to using the appropriate SDK if the target Mac OS X version is not the current Mac OS X version. 937 938 * Configurations/Base.xcconfig: 939 940 2010-03-11 Mark Rowe <mrowe (a] apple.com> 941 942 Reviewed by Tim Hatcher. 943 944 <rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version 945 946 Introduce TARGET_MAC_OS_X_VERSION_MAJOR to represent the Mac OS X version that is being targeted. It defaults to the 947 current Mac OS X version unless otherwise specified. 948 949 Key off TARGET_MAC_OS_X_VERSION_MAJOR where we'd previously been keying off MAC_OS_X_VERSION_MAJOR. 950 951 Explicitly map from the target Mac OS X version to the preferred compiler since Xcode's default compiler choice 952 may not be usable when targetting a different Mac OS X version. 953 954 Key off TARGET_GCC_VERSION rather than MAC_OS_X_VERSION_MAJOR in locations where we'd previously been keying off 955 MAC_OS_X_VERSION_MAJOR but the decision is really related to the compiler version being used. 956 957 * Configurations/Base.xcconfig: 958 * Configurations/DebugRelease.xcconfig: 959 * Configurations/Version.xcconfig: 960 * JavaScriptGlue.xcodeproj/project.pbxproj: 961 962 2010-03-01 Oliver Hunt <oliver (a] apple.com> 963 964 Reviewed by Maciej Stachowiak. 965 966 Refactor named getter function signature to be in line with indexing getter signature 967 https://bugs.webkit.org/show_bug.cgi?id=35563 968 969 Fix method signature and update code as appropriate 970 971 * UserObjectImp.cpp: 972 (UserObjectImp::userObjectGetter): 973 * UserObjectImp.h: 974 975 2010-02-09 Alexey Proskuryakov <ap (a] apple.com> 976 977 Reviewed by Geoffrey Garen. 978 979 https://bugs.webkit.org/show_bug.cgi?id=34490 980 WebCore::ImageEventSender::dispatchPendingEvents() crashes in certain conditions 981 982 * ForwardingHeaders/wtf/ValueCheck.h: Added. 983 984 2010-02-04 Mark Rowe <mrowe (a] apple.com> 985 986 Reviewed by Timothy Hatcher. 987 988 Build fix. Remove a symbol corresponding to an inline function from the linker export 989 file to prevent a weak external failure. 990 991 * JavaScriptGlue.xcodeproj/project.pbxproj: Accommodate rename of script. 992 993 2010-01-28 Oliver Hunt <oliver (a] apple.com> 994 995 Reviewed by Gavin Barraclough. 996 997 Simplify anonymous slot implementation 998 https://bugs.webkit.org/show_bug.cgi?id=34282 999 1000 Update JSGlue Structure usage to pass the anonymous slot count. 1001 1002 * UserObjectImp.h: 1003 (UserObjectImp::createStructure): 1004 1005 2010-01-12 Kent Hansen <kent.hansen (a] nokia.com> 1006 1007 Reviewed by Geoffrey Garen. 1008 1009 [ES5] Implement Object.getOwnPropertyNames 1010 https://bugs.webkit.org/show_bug.cgi?id=32242 1011 1012 Add new argument to the reimplementation of getOwnPropertyNames(). 1013 1014 * UserObjectImp.cpp: 1015 (UserObjectImp::getOwnPropertyNames): 1016 * UserObjectImp.h: 1017 1018 2010-01-07 Alexey Proskuryakov <ap (a] apple.com> 1019 1020 Mac build fix. 1021 1022 * config.h: Define JS_EXPORTCLASS for JavaScriptGlue. 1023 1024 2010-01-05 Gavin Barraclough <barraclough (a] apple.com> 1025 1026 Reviewed by Sam Weinig. 1027 1028 https://bugs.webkit.org/show_bug.cgi?id=33236 1029 Remove m_identifierTable pointer from UString 1030 1031 Add API shims similar to those used in the JSC API to track the current identifierTable. 1032 1033 * JSBase.cpp: 1034 (JSBase::Release): 1035 * JSUtils.cpp: 1036 (JSObjectKJSValue): 1037 (KJSValueToCFTypeInternal): 1038 (unprotectGlobalObject): 1039 (JSGlueAPIEntry::JSGlueAPIEntry): 1040 (JSGlueAPIEntry::~JSGlueAPIEntry): 1041 (JSGlueAPICallback::JSGlueAPICallback): 1042 (JSGlueAPICallback::~JSGlueAPICallback): 1043 * JSUtils.h: 1044 * JSValueWrapper.cpp: 1045 (JSValueWrapper::JSObjectCopyPropertyNames): 1046 (JSValueWrapper::JSObjectCopyProperty): 1047 (JSValueWrapper::JSObjectSetProperty): 1048 (JSValueWrapper::JSObjectCallFunction): 1049 (JSValueWrapper::JSObjectCopyCFValue): 1050 * JavaScriptGlue.cpp: 1051 (JSRunCreate): 1052 (JSRunEvaluate): 1053 (JSRunCheckSyntax): 1054 (JSCollect): 1055 * JavaScriptGlue.xcodeproj/project.pbxproj: 1056 * UserObjectImp.cpp: 1057 (UserObjectImp::callAsFunction): 1058 1059 2010-01-04 Gavin Barraclough <barraclough (a] apple.com> 1060 1061 Reviewed by Sam Weinig. 1062 1063 Add a forwarding header so that StringHashFunctions.h can be found. 1064 1065 * ForwardingHeaders/wtf/StringHashFunctions.h: Added. 1066 1067 2010-01-04 Dan Bernstein <mitz (a] apple.com> 1068 1069 Reviewed by Ada Chan and Mark Rowe. 1070 1071 Updated copyright string 1072 1073 * Info.plist: 1074 1075 2009-12-21 Gavin Barraclough <barraclough (a] apple.com> 1076 1077 Reviewed by Darin Adler. 1078 1079 https://bugs.webkit.org/show_bug.cgi?id=32831 1080 Replace UString::Rep implementation, following introduction of ropes to JSC. 1081 1082 * ForwardingHeaders/wtf/PossiblyNull.h: Added. 1083 - add forwarding header. 1084 1085 2009-12-16 Mark Rowe <mrowe (a] apple.com> 1086 1087 Build fix. Disable debug variants of WebKit frameworks. 1088 1089 * JavaScriptGlue.xcodeproj/project.pbxproj: 1090 1091 2009-12-13 Geoffrey Garen <ggaren (a] apple.com> 1092 1093 Reviewed by Sam Weinig. 1094 1095 Changed GC from mark-sweep to mark-allocate. 1096 1097 * JavaScriptGlue.cpp: 1098 (JSCollect): Updated for rename. Fixed a bug where JSGlue would not check 1099 to avoid nested GC calls. 1100 1101 2009-12-08 Dmitry Titov <dimich (a] chromium.org> 1102 1103 Rubber-stamped by David Levin. 1104 1105 Revert and reopen "Add asserts to RefCounted to make sure ref/deref happens on the right thread." 1106 It may have caused massive increase of reported leaks on the bots. 1107 https://bugs.webkit.org/show_bug.cgi?id=31639 1108 1109 * ForwardingHeaders/wtf/ThreadVerifier.h: Removed. 1110 1111 2009-12-08 Dmitry Titov <dimich (a] chromium.org> 1112 1113 Reviewed by Darin Adler. 1114 1115 Add asserts to RefCounted to make sure ref/deref happens on the right thread. 1116 https://bugs.webkit.org/show_bug.cgi?id=31639 1117 1118 * ForwardingHeaders/wtf/ThreadVerifier.h: Added. 1119 1120 2009-11-24 Mark Rowe <mrowe (a] apple.com> 1121 1122 Fix production builds where the source tree may be read-only. 1123 1124 * JavaScriptGlue.xcodeproj/project.pbxproj: 1125 1126 2009-11-08 David Levin <levin (a] chromium.org> 1127 1128 Reviewed by NOBODY (chromium build fix). 1129 1130 Added the use jsc define for files that use 1131 this config file and DateMath.h. This should 1132 be able to go away when DateMath is properly 1133 split into wtf and jsc portions which is this bug: 1134 https://bugs.webkit.org/show_bug.cgi?id=31246 1135 1136 * config.h: 1137 1138 2009-11-06 Geoffrey Garen <ggaren (a] apple.com> 1139 1140 Reviewed by Oliver Hunt. 1141 1142 https://bugs.webkit.org/show_bug.cgi?id=31197 1143 Implemented a timezone cache not based on Mac OS X's notify_check API. 1144 1145 * ForwardingHeaders/wtf/CurrentTime.h: Added. 1146 1147 2009-10-27 Geoffrey Garen <ggaren (a] apple.com> 1148 1149 Build fix: Updated for JavaScriptCore export changes. 1150 1151 * ForwardingHeaders/wtf/DateInstanceCache.h: Added. 1152 1153 2009-10-27 Geoffrey Garen <ggaren (a] apple.com> 1154 1155 Reviewed by Oliver Hunt. 1156 1157 Updated for JavaScriptCore export changes. 1158 1159 * ForwardingHeaders/wtf/DateMath.h: Added. 1160 1161 2009-10-27 Dan Bernstein <mitz (a] apple.com> 1162 1163 Reviewed by Darin Adler. 1164 1165 Updated license 1166 1167 * LICENSE: 1168 1169 2009-10-16 Oliver Hunt <oliver (a] apple.com> 1170 1171 Reviewed by Gavin Barraclough. 1172 1173 Make typeinfo flags default to false 1174 https://bugs.webkit.org/show_bug.cgi?id=30372 1175 1176 Last part -- replace HasDefaultGetPropertyNames with OverridesGetPropertyNames 1177 flag. 1178 1179 * UserObjectImp.h: 1180 (UserObjectImp::createStructure): 1181 1182 2009-10-15 Oliver Hunt <oliver (a] apple.com> 1183 1184 Reviewed by Darin Adler. 1185 1186 Make typeinfo flags default to false 1187 https://bugs.webkit.org/show_bug.cgi?id=30372 1188 1189 Part 2 -- Reverse the TypeInfo HasDefaultMark flag to OverridesMarkChildren, etc 1190 1191 * UserObjectImp.h: 1192 (UserObjectImp::createStructure): 1193 1194 2009-10-14 Oliver Hunt <oliver (a] apple.com> 1195 1196 Reviewed by Geoff Garen. 1197 1198 Make typeinfo flags default to false 1199 https://bugs.webkit.org/show_bug.cgi?id=30372 1200 1201 Part 1. Reverse the HasStandardGetOwnPropertySlot flag. 1202 1203 * UserObjectImp.h: 1204 (UserObjectImp::createStructure): 1205 1206 2009-09-28 Geoffrey Garen <ggaren (a] apple.com> 1207 1208 Reviewed by Sam Weinig. 1209 1210 Removed virtual destructor from JSGlobalObjectData to eliminate pointer 1211 fix-ups when accessing JSGlobalObject::d. 1212 1213 Replaced with an explicit destructor function pointer. 1214 1215 * JSRun.cpp: 1216 (JSGlueGlobalObject::destroyData): 1217 * JSRun.h: 1218 (JSGlueGlobalObject::Data::Data): 1219 1220 2009-09-12 Oliver Hunt <oliver (a] apple.com> 1221 1222 Reviewed by Maciej Stachowiak. 1223 1224 [ES5] Implement Object.keys 1225 https://bugs.webkit.org/show_bug.cgi?id=29170 1226 1227 Switch over to getOwnPropertyNames instead of getPropertyNames. 1228 1229 * UserObjectImp.cpp: 1230 (UserObjectImp::getOwnPropertyNames): 1231 * UserObjectImp.h: 1232 1233 2009-09-02 Darin Adler <darin (a] apple.com> 1234 1235 Reviewed by Geoff Garen. 1236 1237 * JSValueWrapper.cpp: 1238 (JSValueWrapper::JSObjectMark): Removed a check of the mark 1239 bit. It's OK to do more work in this case, and there is no 1240 longer a public function to access the mark bit. 1241 1242 2009-08-14 Darin Adler <darin (a] apple.com> 1243 1244 Reviewed by Sam Weinig. 1245 1246 Rename the confusing isObject(<class>) to inherits(<class>). 1247 It still works on non-objects, returning false. 1248 1249 * JSUtils.cpp: 1250 (KJSValueToJSObject): 1251 (KJSValueToCFTypeInternal): 1252 Changed from isObject to inherits. 1253 1254 2009-08-13 Oliver Hunt <oliver (a] apple.com> 1255 1256 Reviewed by Maciej Stachowiak. 1257 1258 Devirtualise marking 1259 https://bugs.webkit.org/show_bug.cgi?id=28294 1260 1261 Continue to jump through hoops to deal with the exposed marking routines 1262 in JavaScriptGlue. 1263 1264 * JSValueWrapper.cpp: 1265 (JSValueWrapper::JSObjectMark): 1266 1267 2009-08-07 Oliver Hunt <oliver (a] apple.com> 1268 1269 Reviewed by Sam Weinig. 1270 1271 Stack overflow crash in JavaScript garbage collector mark pass 1272 https://bugs.webkit.org/show_bug.cgi?id=12216 1273 1274 Make JSGlue interact with the new iterative mark logic. 1275 1276 * JSValueWrapper.cpp: 1277 (JSValueWrapper::JSObjectMark): 1278 Unfortunately JSGlue exposes recursive marking so we can only flatten 1279 the recursion. We just create a local mark stack if necessary and mark 1280 the given object iteratively from this point. 1281 * UserObjectImp.cpp: 1282 (UserObjectImp::markChildren): 1283 * UserObjectImp.h: 1284 1285 2009-08-06 Mark Rowe <mrowe (a] apple.com> 1286 1287 Rubber-stamped by Sam Weinig. 1288 1289 Add explicit dependencies for our build verification scripts to ensure that they always run after linking has completed. 1290 1291 * JavaScriptGlue.xcodeproj/project.pbxproj: 1292 1293 2009-07-27 Alexey Proskuryakov <ap (a] webkit.org> 1294 1295 Reviewed by Darin Adler. 1296 1297 https://bugs.webkit.org/show_bug.cgi?id=27735 1298 Give a helpful name to JSLock constructor argument 1299 1300 * JSBase.cpp: 1301 (JSBase::Release): 1302 * JSUtils.cpp: 1303 (JSObjectKJSValue): 1304 (KJSValueToCFTypeInternal): 1305 (unprotectGlobalObject): 1306 * JSValueWrapper.cpp: 1307 (JSValueWrapper::JSObjectCopyPropertyNames): 1308 (JSValueWrapper::JSObjectCopyProperty): 1309 (JSValueWrapper::JSObjectSetProperty): 1310 (JSValueWrapper::JSObjectCallFunction): 1311 (JSValueWrapper::JSObjectCopyCFValue): 1312 * JavaScriptGlue.cpp: 1313 (JSRunCreate): 1314 (JSRunEvaluate): 1315 (JSRunCheckSyntax): 1316 (JSCollect): 1317 (JSLockInterpreter): 1318 (JSUnlockInterpreter): 1319 1320 2009-07-10 Adam Roben <aroben (a] apple.com> 1321 1322 Sort all our Xcode projects 1323 1324 Accomplished using sort-Xcode-project-file. 1325 1326 Requested by Dave Kilzer. 1327 1328 * JavaScriptGlue.xcodeproj/project.pbxproj: 1329 1330 2009-07-08 Darin Adler <darin (a] apple.com> 1331 1332 Reviewed by Dan Bernstein 1333 1334 - fix <rdar://problem/6971484> REGRESSION (r30534): "Scrolling Credits" 1335 effect does not scroll on iMovie 7.1.4 on Tiger 1336 1337 In <http://trac.webkit.org/changeset/30534>, the prototype of 1338 JSObject::put() which UserObjectImp had been overriding changed, but 1339 UserObjectImp wasn't updated, so its override was no longer getting 1340 called after that. 1341 1342 * UserObjectImp.cpp: 1343 (UserObjectImp::put): Match the current prototype of JSObject::put(). 1344 The PutPropertySlot argument is unused. 1345 * UserObjectImp.h: Ditto. 1346 1347 2009-06-19 Zoltan Horvath <hzoltan (a] inf.u-szeged.hu> 1348 1349 Reviewed by Darin Adler. 1350 1351 Add FastAllocBase.h to JavaScriptGlue's ForwardingHeaders/wtf, because it's needed by HashCountedSet.h on MAC. 1352 1353 * ForwardingHeaders/wtf/FastAllocBase.h: Added. 1354 1355 2009-06-02 Mark Rowe <mrowe (a] apple.com> 1356 1357 Reviewed by Anders Carlsson. 1358 1359 Remove workaround that was added to address <rdar://problem/5488678> as it no longer affects our Tiger builds. 1360 1361 * Configurations/Base.xcconfig: 1362 1363 2009-05-25 David Levin <levin (a] chromium.org> 1364 1365 Reviewed by Maciej Stachowiak and Oliver Hunt. 1366 1367 https://bugs.webkit.org/show_bug.cgi?id=25126 1368 1369 Added forwarding headers. 1370 1371 * ForwardingHeaders/wtf/CrossThreadRefCounted.h: Added. 1372 * ForwardingHeaders/wtf/OwnFastMallocPtr.h: Added. 1373 1374 2009-05-23 David Kilzer <ddkilzer (a] apple.com> 1375 1376 Part 1 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr 1377 1378 <https://bugs.webkit.org/show_bug.cgi?id=25495> 1379 1380 Reviewed by Oliver Hunt. 1381 1382 * ForwardingHeaders/wtf/OwnPtrCommon.h: Added. 1383 * ForwardingHeaders/wtf/PassOwnPtr.h: Added. 1384 1385 2009-05-14 Mark Rowe <mrowe (a] apple.com> 1386 1387 Rubber-stamped by Darin Adler. 1388 1389 <rdar://problem/6681868> When building with Xcode 3.1.3 should be using gcc 4.2 1390 1391 The meaning of XCODE_VERSION_ACTUAL is more sensible in newer versions of Xcode. 1392 Update our logic to select the compiler version to use the more appropriate XCODE_VERSION_MINOR 1393 if the version of Xcode supports it, and fall back to XCODE_VERSION_ACTUAL if not. 1394 1395 * Configurations/Base.xcconfig: 1396 1397 2009-05-07 Oliver Hunt <oliver (a] apple.com> 1398 1399 Reviewed by Gavin Barraclough. 1400 1401 Add calling convention annotation 1402 1403 * JSObject.cpp: 1404 1405 2009-05-01 Geoffrey Garen <ggaren (a] apple.com> 1406 1407 Rubber Stamped by Sam Weinig. 1408 1409 Renamed JSValuePtr => JSValue. 1410 1411 * JSObject.cpp: 1412 (nativeCallFunction): 1413 * JSUtils.cpp: 1414 (KJSValueToJSObject): 1415 (JSObjectKJSValue): 1416 (KJSValueToCFTypeInternal): 1417 (KJSValueToCFType): 1418 * JSUtils.h: 1419 * JSValueWrapper.cpp: 1420 (JSValueWrapper::JSValueWrapper): 1421 (JSValueWrapper::GetValue): 1422 (JSValueWrapper::JSObjectCopyProperty): 1423 (JSValueWrapper::JSObjectSetProperty): 1424 (JSValueWrapper::JSObjectCallFunction): 1425 * JSValueWrapper.h: 1426 * UserObjectImp.cpp: 1427 (UserObjectImp::callAsFunction): 1428 (UserObjectImp::userObjectGetter): 1429 (UserObjectImp::getOwnPropertySlot): 1430 (UserObjectImp::put): 1431 (UserObjectImp::toPrimitive): 1432 * UserObjectImp.h: 1433 (UserObjectImp::createStructure): 1434 1435 2009-04-29 Oliver Hunt <oliver (a] apple.com> 1436 1437 Reviewed by Gavin Barraclough. 1438 1439 Clean up ArgList to be a trivial type 1440 1441 Start using MarkedArgumentBuffer to create argument lists for function calls 1442 1443 * JSValueWrapper.cpp: 1444 (JSValueWrapper::JSObjectCallFunction): 1445 1446 2009-04-28 Geoffrey Garen <ggaren (a] apple.com> 1447 1448 Rubber stamped by Beth Dakin. 1449 1450 Missed one. 1451 1452 * UserObjectImp.cpp: 1453 (UserObjectImp::callAsFunction): 1454 1455 2009-04-21 Geoffrey Garen <ggaren (a] apple.com> 1456 1457 Reviewed by Mark Rowe. 1458 1459 Tiger crash fix: Put VM tags in their own header file, and fixed up the 1460 #ifdefs so they're not used on Tiger. 1461 1462 * ForwardingHeaders/wtf/VMTags.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/HashTraits.h. 1463 1464 2009-04-20 Sam Weinig <sam (a] webkit.org> 1465 1466 Rubber-stamped by Tim Hatcher. 1467 1468 Add licenses for xcconfig files. 1469 1470 * Configurations/Base.xcconfig: 1471 * Configurations/DebugRelease.xcconfig: 1472 * Configurations/JavaScriptGlue.xcconfig: 1473 * Configurations/Version.xcconfig: 1474 1475 2009-03-13 Mark Rowe <mrowe (a] apple.com> 1476 1477 Rubber-stamped by Dan Bernstein. 1478 1479 Take advantage of the ability of recent versions of Xcode to easily switch the active 1480 architecture. 1481 1482 * Configurations/DebugRelease.xcconfig: 1483 1484 2009-02-24 Mark Rowe <mrowe (a] apple.com> 1485 1486 Rubber-stamped by Dan Bernstein. 1487 1488 <rdar://problem/6407844> JavaScriptGlue should use -Os rather than -O2 1489 1490 * Configurations/Base.xcconfig: 1491 1492 2009-01-28 Sam Weinig <sam (a] webkit.org> 1493 1494 Reviewed by Gavin Barraclough. 1495 1496 Fix for <rdar://problem/6525537> 1497 Hang occurs when closing Installer window (iTunes, Aperture) 1498 1499 * JSUtils.cpp: 1500 (getThreadGlobalObject): Use the shared JSGlobalData instance. 1501 1502 2009-01-22 Mark Rowe <mrowe (a] apple.com> 1503 1504 Rubber-stamped by Anders Carlsson. 1505 1506 Disable GCC_WARN_ABOUT_MISSING_PROTOTYPES temporarily. 1507 1508 Current versions of Xcode only respect it for C and Objective-C files, 1509 and our code doesn't currently compile if it is applied to C++ and 1510 Objective-C++ files. 1511 1512 * Configurations/Base.xcconfig: 1513 1514 2009-01-19 Sam Weinig <sam (a] webkit.org> 1515 1516 Rubber-stamped by Gavin Barraclough. 1517 1518 Remove temporary operator-> from JSValuePtr. 1519 1520 * JSUtils.cpp: 1521 (KJSValueToJSObject): 1522 (KJSValueToCFTypeInternal): 1523 * JSValueWrapper.cpp: 1524 (JSValueWrapper::JSObjectCopyPropertyNames): 1525 (JSValueWrapper::JSObjectCopyProperty): 1526 (JSValueWrapper::JSObjectSetProperty): 1527 (JSValueWrapper::JSObjectCallFunction): 1528 (JSValueWrapper::JSObjectMark): 1529 * UserObjectImp.cpp: 1530 (UserObjectImp::getOwnPropertySlot): 1531 1532 2009-01-14 Dan Bernstein <mitz (a] apple.com> 1533 1534 Reviewed by John Sullivan. 1535 1536 - update copyright 1537 1538 * Info.plist: 1539 1540 2009-01-09 David Levin <levin (a] chromium.org> 1541 1542 Reviewed by Oliver Hunt. 1543 1544 https://bugs.webkit.org/show_bug.cgi?id=23175 1545 1546 Added forwarding header. 1547 1548 * ForwardingHeaders/wtf/PtrAndFlags.h: Added. 1549 1550 2009-01-05 Gavin Barraclough <baraclough (a] apple.com> 1551 1552 Rubber Stamped by Oliver Hunt. 1553 1554 Replace all uses of JSValue* with new wrapper class, JSValuePtr. 1555 See JavaScriptCore/ChangeLog for more detailed description. 1556 1557 * JSObject.cpp: 1558 (nativeCallFunction): 1559 * JSUtils.cpp: 1560 (KJSValueToJSObject): 1561 (JSObjectKJSValue): 1562 (KJSValueToCFTypeInternal): 1563 (KJSValueToCFType): 1564 * JSUtils.h: 1565 * JSValueWrapper.cpp: 1566 (JSValueWrapper::JSValueWrapper): 1567 (JSValueWrapper::GetValue): 1568 (JSValueWrapper::JSObjectCopyProperty): 1569 (JSValueWrapper::JSObjectSetProperty): 1570 (JSValueWrapper::JSObjectCallFunction): 1571 * JSValueWrapper.h: 1572 * UserObjectImp.cpp: 1573 (UserObjectImp::callAsFunction): 1574 (UserObjectImp::userObjectGetter): 1575 (UserObjectImp::getOwnPropertySlot): 1576 (UserObjectImp::put): 1577 (UserObjectImp::toPrimitive): 1578 * UserObjectImp.h: 1579 (UserObjectImp::createStructure): 1580 1581 2008-12-15 Mark Rowe <mrowe (a] apple.com> 1582 1583 Rubber-stamped by Cameron Zwarich. 1584 1585 <rdar://problem/6289933> Change WebKit-related projects to build with GCC 4.2 on Leopard. 1586 1587 * Configurations/Base.xcconfig: 1588 * Configurations/DebugRelease.xcconfig: 1589 1590 2008-12-08 David Kilzer <ddkilzer (a] apple.com> 1591 1592 Bug 22555: Sort "children" sections in Xcode project files 1593 1594 <https://bugs.webkit.org/show_bug.cgi?id=22555> 1595 1596 Reviewed by Eric Seidel. 1597 1598 * JavaScriptGlue.xcodeproj/project.pbxproj: Sorted. 1599 1600 2008-11-17 Geoffrey Garen <ggaren (a] apple.com> 1601 1602 Reviewed by Sam Weinig. 1603 1604 Updated for JavaScriptCore rename. 1605 1606 * ForwardingHeaders/runtime/CallFrame.h: Copied from JavaScriptGlue/ForwardingHeaders/runtime/ExecState.h. 1607 * ForwardingHeaders/runtime/ExecState.h: Removed. 1608 * config.h: 1609 1610 2008-11-17 Geoffrey Garen <ggaren (a] apple.com> 1611 1612 Reviewed by Sam Weinig. 1613 1614 Updated for JavaScriptCore rename. 1615 1616 * ForwardingHeaders/interpreter: Added. 1617 * ForwardingHeaders/interpreter/CallFrame.h: Copied from ForwardingHeaders/runtime/ExecState.h. 1618 * ForwardingHeaders/runtime/ExecState.h: Removed. 1619 1620 2008-11-15 Darin Adler <darin (a] apple.com> 1621 1622 Rubber stamped by Geoff Garen. 1623 1624 - do the long-planned StructureID -> Structure rename 1625 1626 * JSRun.cpp: 1627 (JSGlueGlobalObject::JSGlueGlobalObject): 1628 (JSRun::JSRun): 1629 * JSRun.h: 1630 (JSGlueGlobalObject::userObjectStructure): 1631 * JSUtils.cpp: 1632 (getThreadGlobalObject): 1633 * UserObjectImp.cpp: 1634 (UserObjectImp::UserObjectImp): 1635 * UserObjectImp.h: 1636 (UserObjectImp::createStructure): 1637 1638 2008-11-15 Geoffrey Garen <ggaren (a] apple.com> 1639 1640 Reviewed by Sam Weinig. 1641 1642 Updated for JavaScriptCore renames. 1643 1644 * JSRun.cpp: 1645 (JSRun::Evaluate): 1646 (JSRun::CheckSyntax): 1647 1648 2008-11-05 Cameron Zwarich <zwarich (a] apple.com> 1649 1650 Not reviewed. 1651 1652 Fix the JavaScriptGlue build. This wouldn't show up unless one was 1653 doing a clean build, because changes in JavaScriptCore don't cause 1654 anything in JavaScriptGlue to get rebuilt. 1655 1656 * JSRun.cpp: 1657 * JSUtils.h: 1658 * JavaScriptGlue.cpp: 1659 1660 2008-11-04 Cameron Zwarich <zwarich (a] apple.com> 1661 1662 Reviewed by Mark Rowe. 1663 1664 Remove JavaScriptGlue forwarding headers that are no longer necessary, 1665 and correct the path of the ExecState.h forwarding header. 1666 1667 * ForwardingHeaders/kjs: Removed. 1668 * ForwardingHeaders/kjs/CTI.h: Removed. 1669 * ForwardingHeaders/kjs/ExecState.h: Removed. 1670 * ForwardingHeaders/kjs/JSValue.h: Removed. 1671 * ForwardingHeaders/kjs/PutPropertySlot.h: Removed. 1672 * ForwardingHeaders/kjs/ustring.h: Removed. 1673 * ForwardingHeaders/runtime: Added. 1674 * ForwardingHeaders/runtime/ExecState.h: Copied from ForwardingHeaders/kjs/ExecState.h. 1675 * config.h: 1676 1677 2008-10-31 Stephanie Lewis <slewis (a] apple.com> 1678 1679 Fix build by including right files. 1680 1681 * JSRun.cpp: 1682 1683 2008-10-30 Mark Rowe <mrowe (a] apple.com> 1684 1685 Reviewed by Jon Homeycutt. 1686 1687 Explicitly default to building for only the native architecture in debug and release builds. 1688 1689 * Configurations/DebugRelease.xcconfig: 1690 1691 2008-10-24 Darin Adler <darin (a] apple.com> 1692 1693 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732 1694 1695 * JSObject.cpp: 1696 (nativeCallFunction): 1697 * JSUtils.cpp: 1698 (KJSValueToJSObject): 1699 (JSObjectKJSValue): 1700 (KJSValueToCFTypeInternal): 1701 (KJSValueToCFType): 1702 * JSUtils.h: 1703 * JSValueWrapper.cpp: 1704 (JSValueWrapper::JSValueWrapper): 1705 (JSValueWrapper::GetValue): 1706 (JSValueWrapper::JSObjectCopyProperty): 1707 (JSValueWrapper::JSObjectSetProperty): 1708 (JSValueWrapper::JSObjectCallFunction): 1709 * JSValueWrapper.h: 1710 * UserObjectImp.cpp: 1711 (UserObjectImp::callAsFunction): 1712 (UserObjectImp::userObjectGetter): 1713 (UserObjectImp::getOwnPropertySlot): 1714 (UserObjectImp::put): 1715 (UserObjectImp::toPrimitive): 1716 * UserObjectImp.h: 1717 (UserObjectImp::createStructureID): 1718 Use JSValue* instead of JSValuePtr. 1719 1720 2008-10-23 Darin Adler <darin (a] apple.com> 1721 1722 - roll out https://bugs.webkit.org/show_bug.cgi?id=21732 1723 1724 * JSValueWrapper.cpp: 1725 (JSValueWrapper::GetValue): Added missing call to .get(). 1726 * JSValueWrapper.h: ProtectedPtr<JSValue> instead of ProtectedPtr<JSValuePtr>. 1727 1728 2008-10-22 Darin Adler <darin (a] apple.com> 1729 1730 Reviewed by Sam Weinig. 1731 1732 - fix https://bugs.webkit.org/show_bug.cgi?id=21294 1733 Bug 21294: Devirtualize getOwnPropertySlot() 1734 1735 * JSRun.cpp: 1736 (JSGlueGlobalObject::JSGlueGlobalObject): Moved constructor here. 1737 Set up flags in its new location in global object data, and set up 1738 a structure for UserObjectImp too. 1739 (JSRun::JSRun): Added code to give the JSGlueGlobalObject its own unique 1740 structure, rather than using the default one from JSGlobalObject. 1741 1742 * JSRun.h: Made JSGlueGlobalObject take a structure ID. Also moved 1743 the data into a separate data object. And added userObjectStructure, 1744 a Structure to be used by UserObjectImp. 1745 1746 * JSUtils.cpp: Removed unused sharedGlobalData global. 1747 (JSObjectKJSValue): Pass Structure in when creating UserObjectImp. 1748 (unprotectGlobalObject): Use JSGlueGLobalObject type specifically. 1749 (initializeGlobalObjectKey): Removed code to set up unused sharedGlobalData. 1750 (getThreadGlobalObject): Added. Shared by JSObjectKJSValue and 1751 getThreadGlobalExecState. Also now passes in a structure ID when creating 1752 the global object. 1753 (getThreadGlobalExecState): Changed to call getThreadGlobalObject. 1754 1755 * UserObjectImp.cpp: 1756 (UserObjectImp::UserObjectImp): Changed to take a structure. 1757 * UserObjectImp.h: 1758 (UserObjectImp::createStructureID): Added. Returns a structure without 1759 HasStandardGetOwnPropertySlot since this class overrides getOwnPropertySlot. 1760 1761 2008-10-20 Sam Weinig <sam (a] webkit.org> 1762 1763 Reviewed by Cameron Zwarich. 1764 1765 Fix for https://bugs.webkit.org/show_bug.cgi?id=21766 1766 REGRESSION: 12 JSC tests fail 1767 1768 The JSGlobalObject constructor no longer takes a JSGlobalData 1769 as an argument. 1770 1771 * JSRun.cpp: 1772 (JSRun::JSRun): 1773 * JSRun.h: 1774 (JSGlueGlobalObject::JSGlueGlobalObject): 1775 * JSUtils.cpp: 1776 (getThreadGlobalExecState): 1777 1778 2008-10-19 Darin Adler <darin (a] apple.com> 1779 1780 Reviewed by Oliver Hunt. 1781 1782 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732 1783 improve performance by eliminating JSValue as a base class for JSCell 1784 1785 Remove most uses of JSValue, which will be removed in a future patch. 1786 1787 * JSValueWrapper.h: Use JSValuePtr instead of JSValue*. 1788 1789 2008-10-18 Darin Adler <darin (a] apple.com> 1790 1791 Reviewed by Oliver Hunt. 1792 1793 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732 1794 improve performance by eliminating JSValue as a base class for JSCell 1795 1796 Tweak a little more to get closer to where we can make JSValuePtr a class. 1797 1798 * JSObject.cpp: 1799 (nativeCallFunction): Call asObject. 1800 1801 * JSUtils.cpp: 1802 (KJSValueToJSObject): Use JSValuePtr and asObject. 1803 (JSObjectKJSValue): Ditto. 1804 (KJSValueToCFTypeInternal): Ditto. 1805 (KJSValueToCFType): Ditto. 1806 * JSUtils.h: Ditto. 1807 1808 * UserObjectImp.cpp: 1809 (UserObjectImp::callAsFunction): Use JSValuePtr and asObject. 1810 (UserObjectImp::userObjectGetter): Ditto. 1811 (UserObjectImp::getOwnPropertySlot): Ditto. 1812 (UserObjectImp::put): Ditto. 1813 (UserObjectImp::toPrimitive): Ditto. 1814 * UserObjectImp.h: Ditto. 1815 1816 2008-10-18 Darin Adler <darin (a] apple.com> 1817 1818 Reviewed by Cameron Zwarich. 1819 1820 - next step on https://bugs.webkit.org/show_bug.cgi?id=21732 1821 improve performance by eliminating JSValue as a base class for JSCell 1822 1823 Use JSValuePtr everywhere instead of JSValue*. In the future, we'll be 1824 changing JSValuePtr to be a class, and then eventually renaming it 1825 to JSValue once that's done. 1826 1827 * JSObject.cpp: 1828 * JSValueWrapper.cpp: 1829 * UserObjectImp.cpp: 1830 * UserObjectImp.h: 1831 Replace JSValue* with JSValuePtr. 1832 1833 2008-10-13 Maciej Stachowiak <mjs (a] apple.com> 1834 1835 Rubber stamped by Mark Rowe. 1836 1837 - use gcc 4.2 when building with Xcode 3.1 or newer on Leopard, even though this is not the default 1838 1839 * Configurations/DebugRelease.xcconfig: 1840 1841 2008-10-06 Maciej Stachowiak <mjs (a] apple.com> 1842 1843 Not reviewed. Build fix. 1844 1845 - revert toBoolean changes (r37333 and r37335); need to make WebCore work with these 1846 1847 * JSUtils.cpp: 1848 (KJSValueToCFTypeInternal): 1849 1850 2008-10-06 Maciej Stachowiak <mjs (a] apple.com> 1851 1852 Not reviewed. 1853 1854 - fix build; toBoolean no longer takes an ExecState 1855 1856 * JSUtils.cpp: 1857 (KJSValueToCFTypeInternal): 1858 1859 2008-10-04 Mark Rowe <mrowe (a] apple.com> 1860 1861 Reviewed by Tim Hatcher. 1862 1863 Add a 'Check For Weak VTables' build phase to catch weak vtables as early as possible. 1864 1865 * JavaScriptGlue.xcodeproj/project.pbxproj: 1866 1867 2008-10-01 Geoffrey Garen <ggaren (a] apple.com> 1868 1869 Reviewed by Darin Adler and Cameron Zwarich. 1870 1871 * JSRun.cpp: 1872 (JSRun::Evaluate): 1873 (JSRun::CheckSyntax): Provide a SourceCode to the Interpreter, since 1874 other APIs are no longer supported. 1875 1876 2008-09-29 Geoffrey Garen <ggaren (a] apple.com> 1877 1878 Not reviewed. 1879 1880 Forwarding headers to fix the build. 1881 1882 * ForwardingHeaders/kjs/CTI.h: Copied from ForwardingHeaders/kjs/ExecState.h. 1883 * ForwardingHeaders/kjs/ustring.h: Copied from ForwardingHeaders/kjs/ExecState.h. 1884 * ForwardingHeaders/masm: Added. 1885 * ForwardingHeaders/masm/X86Assembler.h: Added. 1886 * ForwardingHeaders/profiler: Added. 1887 * ForwardingHeaders/profiler/Profiler.h: Added. 1888 1889 2008-09-08 Sam Weinig <sam (a] webkit.org> 1890 1891 Reviewed by Maciej Stachowiak and Oliver Hunt. 1892 1893 Add forwarding headers. 1894 1895 * ForwardingHeaders/wtf/HashFunctions.h: Added. 1896 * ForwardingHeaders/wtf/HashTraits.h: Added. 1897 1898 2008-09-02 Geoffrey Garen <ggaren (a] apple.com> 1899 1900 Reviewed by Sam Weinig. 1901 1902 Implemented the rest of Darin's review comments for the 09-01 inline 1903 caching patch. 1904 1905 * ForwardingHeaders/kjs/PutPropertySlot.h: Added. 1906 1907 2008-09-01 Geoffrey Garen <ggaren (a] apple.com> 1908 1909 Reviewed by Darin Adler. 1910 1911 First cut at inline caching for access to vanilla JavaScript properties. 1912 1913 Updated for JavaScriptCore changes. Mostly mechanical addition of StructureIDs 1914 to JavaScriptGlue classes, and PutPropertySlot& arguments to put functions. 1915 1916 2008-08-22 Anders Carlsson <andersca (a] apple.com> 1917 1918 Fix build for real this time. 1919 1920 * UserObjectImp.h: 1921 1922 2008-08-22 Anders Carlsson <andersca (a] apple.com> 1923 1924 Fix build. 1925 1926 * UserObjectImp.cpp: 1927 (UserObjectImp::toPrimitive): 1928 * UserObjectImp.h: 1929 1930 2008-08-19 Alexey Proskuryakov <ap (a] webkit.org> 1931 1932 Reviewed by Geoff Garen. 1933 1934 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it. 1935 1936 * JSBase.cpp: 1937 (JSBase::Release): 1938 * JSUtils.cpp: 1939 (JSObjectKJSValue): 1940 (KJSValueToCFTypeInternal): 1941 (unprotectGlobalObject): 1942 * JSUtils.h: 1943 * JSValueWrapper.cpp: 1944 (JSValueWrapper::JSObjectCopyPropertyNames): 1945 (JSValueWrapper::JSObjectCopyProperty): 1946 (JSValueWrapper::JSObjectSetProperty): 1947 (JSValueWrapper::JSObjectCallFunction): 1948 (JSValueWrapper::JSObjectCopyCFValue): 1949 * JavaScriptGlue.cpp: 1950 (JSRunCreate): 1951 (JSRunEvaluate): 1952 (JSRunCheckSyntax): 1953 (JSCollect): 1954 (JSLockInterpreter): 1955 (JSUnlockInterpreter): 1956 * UserObjectImp.cpp: 1957 (UserObjectImp::callAsFunction): 1958 1959 2008-08-12 Darin Adler <darin (a] apple.com> 1960 1961 Reviewed by Geoff. 1962 1963 - eliminate JSValue::type() 1964 1965 * JSUtils.cpp: 1966 (KJSValueToCFTypeInternal): Replaced uses of JSValue::type() with 1967 JSValue::is functions. 1968 * UserObjectImp.cpp: 1969 (UserObjectImp::getOwnPropertySlot): Ditto. 1970 (UserObjectImp::toPrimitive): Take PreferredPrimitiveType argument 1971 instead of JSType argument. 1972 * UserObjectImp.h: Ditto. 1973 1974 2008-08-17 Geoffrey Garen <ggaren (a] apple.com> 1975 1976 Reviewed by Cameron Zwarich. 1977 1978 Updated project files to XCode 3.1. 1979 1980 * JavaScriptGlue.xcodeproj/project.pbxproj: 1981 1982 2008-08-15 Mark Rowe <mrowe (a] apple.com> 1983 1984 Rubber-stamped by Geoff Garen. 1985 1986 <rdar://problem/6139914> Please include a _debug version of JavaScriptCore framework 1987 1988 * Configurations/Base.xcconfig: Factor out the debug-only settings so that they can shared 1989 between the Debug configuration and debug Production variant. 1990 * JavaScriptGlue.xcodeproj/project.pbxproj: Enable the debug variant. 1991 1992 2008-07-31 Alexey Proskuryakov <ap (a] webkit.org> 1993 1994 Rubber-stamped by Maciej. 1995 1996 Eliminate JSLock (it was already disabled, removing the stub implementaion and all 1997 call sites now). 1998 1999 * JSBase.cpp: 2000 (JSBase::Release): 2001 * JSUtils.cpp: 2002 (JSObjectKJSValue): 2003 (KJSValueToCFTypeInternal): 2004 (unprotectGlobalObject): 2005 * JSUtils.h: 2006 * JSValueWrapper.cpp: 2007 (JSValueWrapper::JSObjectCopyPropertyNames): 2008 (JSValueWrapper::JSObjectCopyProperty): 2009 (JSValueWrapper::JSObjectSetProperty): 2010 (JSValueWrapper::JSObjectCallFunction): 2011 (JSValueWrapper::JSObjectCopyCFValue): 2012 * JavaScriptGlue.cpp: 2013 (JSRunCreate): 2014 (JSRunEvaluate): 2015 (JSRunCheckSyntax): 2016 (JSCollect): 2017 (JSLockInterpreter): 2018 (JSUnlockInterpreter): 2019 * UserObjectImp.cpp: 2020 (UserObjectImp::callAsFunction): 2021 2022 2008-07-29 Alexey Proskuryakov <ap (a] webkit.org> 2023 2024 Reviewed by Geoff Garen. 2025 2026 Implement JSContextGroup APIs to make concurrent execution possible for 2027 JavaScriptCore clients. 2028 2029 * JSRun.cpp: 2030 (JSRun::JSRun): 2031 * JSUtils.cpp: 2032 (getThreadGlobalExecState): 2033 Changed JavaScriptGlue to use a JSGlobalData of its own, now that there is no shared 2034 instance. 2035 2036 2008-07-23 Alexey Proskuryakov <ap (a] webkit.org> 2037 2038 Reviewed by Geoff Garen. 2039 2040 Make JSClassRef work with any context, not just the first one it was used in. 2041 2042 * ForwardingHeaders/wtf/HashMap.h: Added. 2043 2044 2008-07-22 Geoffrey Garen <ggaren (a] apple.com> 2045 2046 Reviewed by Oliver Hunt and Sam Weinig. 2047 2048 Next step toward putting doubles in registers: Prepare the Register class 2049 and its clients for registers that don't contain JSValue*s. 2050 2051 2008-07-21 Mark Rowe <mrowe (a] apple.com> 2052 2053 Reviewed by Sam Weinig. 2054 2055 <rdar://problem/6091287> Revamp the handling of CFBundleShortVersionString to be fixed at the major component of the version number. 2056 2057 * Configurations/Version.xcconfig: 2058 * Info.plist: 2059 2060 2008-07-18 Geoffrey Garen <ggaren (a] apple.com> 2061 2062 Reviewed by Cameron Zwarich. 2063 2064 Three renames: 2065 2066 "CallTypeNative" => "CallTypeHost" 2067 "code" => "byteCode" 2068 "generatedCode" => "generatedByteCode" 2069 2070 * ChangeLog: 2071 * JSObject.cpp: 2072 (JSUserObject::getCallData): 2073 2074 2008-07-14 Alexey Proskuryakov <ap (a] webkit.org> 2075 2076 Reviewed by Geoff Garen. 2077 2078 Eliminate per-thread JavaScript global data instance support and make arbitrary 2079 global data/global object combinations possible. 2080 2081 * ForwardingHeaders/wtf/ThreadSpecific.h: Added. 2082 * JSRun.cpp: 2083 (JSRun::JSRun): 2084 * JSUtils.cpp: 2085 (getThreadGlobalExecState): 2086 Adapt to the new way of asking for shared JSGlobalData. 2087 2088 2008-07-10 Mark Rowe <mrowe (a] apple.com> 2089 2090 Reviewed by Sam Weinig. 2091 2092 Define WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST when building WebKit to ensure that no symbols end up with the weak_import attribute. 2093 2094 * Configurations/JavaScriptGlue.xcconfig: 2095 2096 2008-07-09 Mark Rowe <mrowe (a] apple.com> 2097 2098 Reviewed by Geoff Garen. 2099 2100 Don't warn about deprecated functions in production builds. 2101 2102 * Configurations/Base.xcconfig: 2103 * Configurations/DebugRelease.xcconfig: 2104 2105 2008-07-08 Alexey Proskuryakov <ap (a] webkit.org> 2106 2107 Reviewed by Darin Adler. 2108 2109 <rdar://problem/6058368> REGRESSION: Crash occurs in KJS::Machine after launching 2110 Apple Installer 2111 2112 The problem was that JSUserObject::getCallData() was setting call type to native, but 2113 left callData.native.function uninitialized. 2114 2115 * JSObject.cpp: 2116 (JSUserObject::getCallData): Initialize callData.native.function. 2117 (nativeCallFunction): Call UserObjectImp::callAsFunction(). 2118 2119 2008-07-04 Sam Weinig <sam (a] webkit.org> 2120 2121 Rubber-stamped by Dan Bernstein. 2122 2123 * JSObject.h: Rename the header guard as it now conflicts with the 2124 JSObject in JavaScriptCore. 2125 2126 2008-07-01 Alexey Proskuryakov <ap (a] webkit.org> 2127 2128 Reviewed by Darin Adler. 2129 2130 Disable JSLock for per-thread contexts. 2131 2132 * ForwardingHeaders/wtf/Locker.h: Added. 2133 * ForwardingHeaders/wtf/Threading.h: Added. 2134 * JSBase.cpp: 2135 (JSBase::Release): 2136 * JSUtils.cpp: 2137 (JSObjectKJSValue): 2138 (KJSValueToCFTypeInternal): 2139 (unprotectGlobalObject): 2140 * JSUtils.h: 2141 * JSValueWrapper.cpp: 2142 (JSValueWrapper::JSObjectCopyPropertyNames): 2143 (JSValueWrapper::JSObjectCopyProperty): 2144 (JSValueWrapper::JSObjectSetProperty): 2145 (JSValueWrapper::JSObjectCallFunction): 2146 (JSValueWrapper::JSObjectCopyCFValue): 2147 * JavaScriptGlue.cpp: 2148 (JSRunCreate): 2149 (JSRunEvaluate): 2150 (JSRunCheckSyntax): 2151 (JSCollect): 2152 (JSLockInterpreter): 2153 (JSUnlockInterpreter): 2154 * UserObjectImp.cpp: 2155 (UserObjectImp::callAsFunction): 2156 Pass a parameter (always true) to JSLock and JSLock::DropAllLocks to indicate that JSG 2157 clients always need implicit mutex protection. 2158 Added includes that are now needed. 2159 2160 2008-06-26 Darin Adler <darin (a] apple.com> 2161 2162 Reviewed by Geoff. 2163 2164 * JSUtils.cpp: Added include of <JavaScriptCore/JSString.h> since jsString 2165 will soon be changed to return a JSString*. 2166 * UserObjectImp.cpp: Ditto. 2167 2168 2008-06-23 Darin Adler <darin (a] apple.com> 2169 2170 Reviewed by Geoff. 2171 2172 * JSValueWrapper.cpp: 2173 (JSValueWrapper::JSObjectCallFunction): Updated to use getCallData and call instead 2174 of the old callAsFunction. 2175 2176 2008-06-17 Alexey Proskuryakov <ap (a] webkit.org> 2177 2178 Reviewed by Darin Adler. 2179 2180 Prepare JavaScript heap for being per-thread. 2181 2182 * JSRun.cpp: (JSRun::JSRun): Create JSGlueGlobalObject in a shared JS heap. 2183 2184 * JSUtils.h: Made getThreadGlobalExecState available throughout JSGlue. 2185 2186 * JSUtils.cpp: 2187 (JSObjectKJSValue): Pass an ExecState where now required. 2188 (unprotectGlobalObject): 2189 (initializeGlobalObjectKey): 2190 (getThreadGlobalExecState): 2191 Moved these functions from JSValueWrapper.cpp, as the global exec state is now needed 2192 elsewhere. I'm not quite sure how this relates to the global object from JSRun, but 2193 since the new uses are all for Heap access, there doesn't seem to be any behavior change. 2194 2195 * JavaScriptGlue.cpp: 2196 (JSLockInterpreter): Don't call registerThread explicitly, as JSLock will do that. 2197 2198 * UserObjectImp.cpp: (UserObjectImp::toPrimitive): Pass ExecState* where now required. 2199 2200 2008-06-17 Mark Rowe <mrowe (a] apple.com> 2201 2202 Reviewed by Darin Adler. 2203 2204 <rdar://problem/5775802> JavaScriptGlue should not force use of GCC 4.0. 2205 2206 * JavaScriptGlue.xcodeproj/project.pbxproj: 2207 2208 2008-06-16 Maciej Stachowiak <mjs (a] apple.com> 2209 2210 Reviewed by Alexey. 2211 2212 - removed nearly unused types.h and LocalStorageEntry.h headers 2213 2214 * JSUtils.h: 2215 2216 2008-06-16 Alexey Proskuryakov <ap (a] webkit.org> 2217 2218 Reviewed by Geoff Garen. 2219 2220 Make Identifier construction use an explicitly passed IdentifierTable. 2221 2222 * JSUtils.cpp: 2223 (CFStringToIdentifier): 2224 (KJSValueToCFTypeInternal): 2225 * JSUtils.h: 2226 * JSValueWrapper.cpp: 2227 (JSValueWrapper::JSObjectCopyPropertyNames): 2228 (JSValueWrapper::JSObjectCopyProperty): 2229 (JSValueWrapper::JSObjectSetProperty): 2230 * UserObjectImp.cpp: 2231 (UserObjectImp::getPropertyNames): 2232 Pass ExecState or JSGlobalData everywhere. 2233 2234 2008-06-15 Darin Adler <darin (a] apple.com> 2235 2236 - rename KJS::List to KJS::ArgList 2237 2238 * JSValueWrapper.cpp: 2239 (JSValueWrapper::JSObjectCallFunction): 2240 * UserObjectImp.cpp: 2241 (UserObjectImp::callAsFunction): 2242 * UserObjectImp.h: 2243 2244 2008-06-15 Darin Adler <darin (a] apple.com> 2245 2246 - new names for a few key JavaScriptCore files 2247 2248 * ForwardingHeaders/kjs/JSValue.h: Copied from JavaScriptGlue/ForwardingHeaders/kjs/value.h. 2249 * ForwardingHeaders/kjs/value.h: Removed. 2250 * JSUtils.h: 2251 2252 2008-06-03 Darin Adler <darin (a] apple.com> 2253 2254 - update for JavaScriptCore changes for https://bugs.webkit.org/show_bug.cgi?id=19269 2255 speed up SunSpider by eliminating the toObject call for most get/put/delete 2256 2257 * UserObjectImp.cpp: 2258 (UserObjectImp::userObjectGetter): Removed originalObject argument. 2259 * UserObjectImp.h: Ditto. 2260 2261 2008-06-02 Geoffrey Garen <ggaren (a] apple.com> 2262 2263 Reviewed by Alexey Proskuryakov. 2264 2265 Removed JSObject::call, since it just called JSObject::callAsFunction. 2266 2267 SunSpider reports no change. 2268 2269 2008-05-28 Geoffrey Garen <ggaren (a] apple.com> 2270 2271 Reviewed by Oliver Hunt. 2272 2273 Fixed total destruction in Software Update.app. 2274 2275 Updated JavaScriptGlue to honor squirrelfish's new getCallData mechanism for 2276 indicating that an object can be called as a function. 2277 2278 2008-05-10 Maciej Stachowiak <mjs (a] apple.com> 2279 2280 Reviewed by Oliver. 2281 2282 - JavaScriptGlue part of fix for: "SQUIRRELFISH: function toString broken after calling" 2283 https://bugs.webkit.org/show_bug.cgi?id=18869 2284 2285 * JSRun.cpp: 2286 (JSRun::Evaluate): Use UString version of eveluate() instead of 2287 the now departed UChar*/length variant; use of the lower-level 2288 version was gratuitous in any case. 2289 (JSRun::CheckSyntax): Ditto for checkSyntax(). 2290 2291 2008-04-30 Geoffrey Garen <ggaren (a] apple.com> 2292 2293 Build fix: supply missing parameter that used to be implicit. 2294 2295 * JSRun.cpp: 2296 (JSRun::Evaluate): 2297 2298 2008-03-30 Geoffrey Garen <ggaren (a] apple.com> 2299 2300 Reviewed by Oliver Hunt. 2301 2302 Build fix. 2303 2304 * ForwardingHeaders/wtf/UnusedParam.h: Copied from ForwardingHeaders/wtf/OwnPtr.h. 2305 2306 2008-05-12 Alexey Proskuryakov <ap (a] webkit.org> 2307 2308 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify 2309 SquirrelFish merging. 2310 2311 * JSUtils.cpp: 2312 (JSObjectKJSValue): 2313 * JSUtils.h: 2314 * JSValueWrapper.cpp: 2315 (unprotectGlobalObject): 2316 (initializeGlobalObjectKey): 2317 (getThreadGlobalExecState): 2318 * JavaScriptGlue.cpp: 2319 (JSCollect): 2320 (JSLockInterpreter): 2321 * UserObjectImp.cpp: 2322 (UserObjectImp::toPrimitive): 2323 2324 2008-05-02 Alexey Proskuryakov <ap (a] webkit.org> 2325 2326 Reviewed by Darin Adler. 2327 2328 Make JavaScriptGlue and JavaScriptCore API functions implicitly call initializeThreading 2329 for the sake of non-WebKit clients. 2330 2331 * JavaScriptGlue.cpp: 2332 (JSRunCreate): 2333 (JSCollect): 2334 (JSCreateJSArrayFromCFArray): 2335 (JSLockInterpreter): 2336 These are all possible JavaScriptGlue entry points. 2337 2338 2008-05-02 Alexey Proskuryakov <ap (a] webkit.org> 2339 2340 Reviewed by Geoffrey Garen. 2341 2342 https://bugs.webkit.org/show_bug.cgi?id=18826 2343 Make JavaScript heap per-thread 2344 2345 * JSValueWrapper.cpp: 2346 * JSUtils.h: 2347 Moved getThreadGlobalExecState() to JSUtils and made it extern, as ExecState is now needed 2348 for all JS allocations. 2349 2350 * JSUtils.cpp: 2351 (JSObjectKJSValue): Pass ExecState to functions that now need it. 2352 (unprotectGlobalObject): Moved from JSValueWrapper.cpp. 2353 (initializeGlobalObjectKey): Ditto. 2354 (getThreadGlobalExecState): Ditto. 2355 2356 * UserObjectImp.cpp: (UserObjectImp::toPrimitive): Pass ExecState to jsString and jsNumber. 2357 2358 * JavaScriptGlue.cpp: 2359 (JSCollect): Use current thread's heap. 2360 (JSLockInterpreter): Removed JSLock::registerThread(), because a JS heap doesn't need to 2361 know about other threads. 2362 2363 2008-04-25 Alexey Proskuryakov <ap (a] webkit.org> 2364 2365 Reviewed by Darin Adler. 2366 2367 Fix run-webkit-tests --threading 2368 and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661> 2369 Proxy server issue in Sunday's Nightly 2370 2371 * UserObjectImp.cpp: Adjusted for the new member added to ClassInfo. 2372 2373 2008-04-25 Mark Rowe <mrowe (a] apple.com> 2374 2375 Reviewed by Adele Peterson. 2376 2377 <rdar://problem/5891264> Don't install the JavaScriptGlue headers 2378 2379 * JavaScriptGlue.xcodeproj/project.pbxproj: 2380 2381 2008-04-25 Mark Rowe <mrowe (a] apple.com> 2382 2383 Rubber-stamped by Sam Weinig. 2384 2385 Add some content to an empty ICU header file to prevent verification errors. 2386 2387 * icu/unicode/utf_old.h: 2388 2389 2008-04-02 Mark Rowe <mrowe (a] apple.com> 2390 2391 Reviewed by Oliver Hunt. 2392 2393 Ensure that debug symbols are generated for x86_64 and ppc64 builds. 2394 2395 * Configurations/Base.xcconfig: 2396 2397 2008-03-20 Maciej Stachowiak <mjs (a] apple.com> 2398 2399 - fix build 2400 2401 * ForwardingHeaders/wtf/ListRefPtr.h: Added. 2402 2403 2008-03-01 Mark Rowe <mrowe (a] apple.com> 2404 2405 Reviewed by Tim Hatcher. 2406 2407 Update Xcode configuration to support building debug and release from the mysterious future. 2408 2409 * Configurations/Base.xcconfig: 2410 * Configurations/DebugRelease.xcconfig: 2411 2412 2008-02-29 Geoffrey Garen <ggaren (a] apple.com> 2413 2414 Reviewed by David Harrison. 2415 2416 Fixed <rdar://problem/5765063> TOT REGRESSION: Software Update crash in 2417 KJS::Collector::collect() (missing JSLock) 2418 2419 * JSValueWrapper.cpp: 2420 (unprotectGlobalObject): Added missing JSLock. 2421 2422 2008-02-05 Mark Rowe <mrowe (a] apple.com> 2423 2424 Reviewed by Oliver Hunt. 2425 2426 Update versioning to support the mysterious future. 2427 2428 * Configurations/Version.xcconfig: Add SYSTEM_VERSION_PREFIX_1060. 2429 2430 2008-01-28 Eric Seidel <eric (a] webkit.org> 2431 2432 Reviewed by darin. 2433 2434 Add icu headers to JSG in preparation for depending on ::UChar. 2435 2436 * Configurations/Base.xcconfig: 2437 * ForwardingHeaders/wtf/unicode: Added. 2438 * ForwardingHeaders/wtf/unicode/Unicode.h: Added. 2439 * ForwardingHeaders/wtf/unicode/icu: Added. 2440 * ForwardingHeaders/wtf/unicode/icu/UnicodeIcu.h: Added. 2441 * icu: Copied from ../JavaScriptCore/icu. 2442 2443 2007-12-19 Geoffrey Garen <ggaren (a] apple.com> 2444 2445 Build fix. 2446 2447 * ForwardingHeaders/wtf/VectorTraits.h: Added. 2448 2449 2007-12-10 Timothy Hatcher <timothy (a] apple.com> 2450 2451 Reviewed by Mark Rowe. 2452 2453 <rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x 2454 2455 * Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR, 2456 so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX. 2457 2458 2007-12-04 Geoffrey Garen <ggaren (a] apple.com> 2459 2460 Reviewed by Darin Adler. 2461 2462 Third step in refactoring JSGlobalObject: Moved data members and data 2463 member access from Interpreter to JSGlobalObject. Replaced JSInterpreter 2464 subclass with JSGlobalObject subclass. 2465 2466 * JSRun.cpp: 2467 (JSRun::JSRun): 2468 (JSRun::Evaluate): 2469 (JSRun::CheckSyntax): 2470 * JSRun.h: 2471 (JSGlueGlobalObject::JSGlueGlobalObject): 2472 * JSUtils.cpp: 2473 (KJSValueToCFTypeInternal): 2474 * JSValueWrapper.cpp: 2475 (getThreadGlobalExecState): 2476 2477 2007-12-02 Geoffrey Garen <ggaren (a] apple.com> 2478 2479 Reviewed by Eric Seidel. 2480 2481 Updated to match the JavaScriptCore change to move virtual methods from 2482 Interpreter to JSGlobalObject. 2483 2484 * JSRun.cpp: 2485 * JSRun.h: 2486 * JSValueWrapper.cpp: 2487 (getThreadGlobalExecState): 2488 * JavaScriptGlue.cpp: 2489 (JSRunCopyGlobalObject): 2490 (JSRunEvaluate): 2491 2492 2007-11-30 Geoffrey Garen <ggaren (a] apple.com> 2493 2494 Reviewed by Beth Dakin. 2495 2496 Modified to follow new JSGlobalObject/Interpreter ownership rules 2497 in JavaScriptCore. 2498 2499 * JSRun.cpp: 2500 (JSRun::JSRun): 2501 (JSRun::GetInterpreter): 2502 (JSRun::Evaluate): 2503 (JSRun::CheckSyntax): 2504 * JSRun.h: 2505 * JSValueWrapper.cpp: 2506 (unprotectGlobalObject): 2507 (initializeGlobalObjectKey): 2508 (getThreadGlobalExecState): 2509 2510 2007-11-29 Mark Rowe <mrowe (a] apple.com> 2511 2512 Reviewed by Maciej. 2513 2514 Fix REGRESSION(r27885): Installer hits assertion failure in JavaScriptGlue. 2515 2516 * JSValueWrapper.cpp: 2517 (getThreadGlobalExecState): Set the global object on the Interpreter before using it. 2518 2519 2007-11-27 Anders Carlsson <andersca (a] apple.com> 2520 2521 Build fix. 2522 2523 * JSUtils.cpp: 2524 (KJSValueToCFTypeInternal): 2525 * JSValueWrapper.cpp: 2526 (JSValueWrapper::JSObjectCopyPropertyNames): 2527 2528 2007-11-21 Mark Rowe <mrowe (a] apple.com> 2529 2530 Reviewed by Eric. 2531 2532 Fix JavaScriptGlue to build without warnings using GCC 4.2. 2533 2534 * Configurations/Base.xcconfig: 2535 * JSRun.h: 2536 2537 2007-11-17 Mark Rowe <mrowe (a] apple.com> 2538 2539 Reviewed by Darin Adler. 2540 2541 Fix: <rdar://problem/5607032> REGRESSION: testapi exits with assertion failure in debug build 2542 <rdar://problem/5440659> JSGlobalContextCreate throws away globalObjectClass's prototype 2543 http://bugs.webkit.org/show_bug.cgi?id=16033 2544 2545 Update for changes in Interpreter method signatures. 2546 2547 * JSRun.h: 2548 2549 2007-11-13 Geoffrey Garen <ggaren (a] apple.com> 2550 2551 Reviewed by Anders Carlsson. 2552 2553 Renamed Shared to RefCounted. 2554 2555 * ForwardingHeaders/wtf/RefCounted.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/Shared.h. 2556 * ForwardingHeaders/wtf/Shared.h: Removed. 2557 2558 2007-11-13 Geoffrey Garen <ggaren (a] apple.com> 2559 2560 Reviewed by Sam Weinig. 2561 2562 Moved Shared.h into wtf so it could be used in more places. 2563 2564 * ForwardingHeaders/wtf/Shared.h: Added. 2565 2566 2007-11-08 Mark Rowe <mrowe (a] apple.com> 2567 2568 Build fix. 2569 2570 * ForwardingHeaders/wtf/MathExtras.h: Copied from WebCore/ForwardingHeaders/wtf/MathExtras.h. 2571 2572 2007-11-05 Geoffrey Garen <ggaren (a] apple.com> 2573 2574 Build fix. 2575 2576 * ForwardingHeaders/kjs/value.h: Added. 2577 2578 2007-11-03 Sam Weinig <sam (a] webkit.org> 2579 2580 Build-fix. 2581 2582 * UserObjectImp.cpp: 2583 2584 2007-11-03 David D. Kilzer <ddkilzer (a] webkit.org> 2585 2586 Sort files(...); sections of Xcode project files. 2587 2588 Rubber-stamped by Darin Adler. 2589 2590 * JavaScriptGlue.xcodeproj/project.pbxproj: 2591 2592 2007-10-25 Eric Seidel <eric (a] webkit.org> 2593 2594 Reviewed by Geoff. 2595 2596 Make JSG build again after JSGlobalObject change. 2597 2598 * JSRun.cpp: 2599 (JSRun::JSRun): 2600 (JSRun::GlobalObject): 2601 * JSRun.h: 2602 (JSInterpreter::JSInterpreter): 2603 * JSUtils.h: 2604 2605 2007-10-11 Mark Rowe <mrowe (a] apple.com> 2606 2607 Reviewed by Tim Hatcher. 2608 2609 Fix for <rdar://problem/5488678>. Disable debugging symbols in production builds for 10.4 2610 PowerPC to prevent a huge STABS section from being generated. 2611 2612 * Configurations/Base.xcconfig: 2613 2614 2007-10-04 Mark Rowe <mrowe (a] apple.com> 2615 2616 Reviewed by Oliver. 2617 2618 Switch to default level of debugging symbols to resolve <rdar://problem/5488678>. 2619 The "full" level appears to offer no observable benefits even though the documentation 2620 suggests it be used for dead code stripping. This should also decrease link times. 2621 2622 * Configurations/Base.xcconfig: 2623 2624 2007-09-03 Mark Rowe <mrowe (a] apple.com> 2625 2626 Reviewed by Tim Hatcher. 2627 2628 <rdar://problem/5452164> Production build with in symbols directory has no debug info 2629 2630 Enable debug symbol generation on all build configurations. Production builds are stripped 2631 of symbols by Xcode during deployment post-processing. 2632 2633 * Configurations/Base.xcconfig: 2634 * JavaScriptGlue.xcodeproj/project.pbxproj: 2635 2636 2007-08-09 Mark Rowe <mrowe (a] apple.com> 2637 2638 Reviewed by Antti. 2639 2640 <rdar://problem/5400709> Versioning in debug and release builds should include minor and tiny version before + 2641 2642 * Configurations/Version.xcconfig: 2643 * JavaScriptGlue.xcodeproj/project.pbxproj: Add a shell script phase to make to dependency between 2644 Version.xcconfig and Info.plist explicit to Xcode. 2645 2646 2007-07-16 Sam Weinig <sam (a] webkit.org> 2647 2648 Reviewed by Oliver. 2649 2650 Turn off -Wshorten-64-to-32 warning for 64-bit builds. 2651 2652 * Configurations/Base.xcconfig: 2653 2654 2007-04-27 Mark Rowe <mrowe (a] apple.com> 2655 2656 Reviewed by Oliver. 2657 2658 * JavaScriptGlue.xcodeproj/project.pbxproj: Improve dependencies in Xcode project 2659 by marking JavaScriptGlue as a dependency of testjsglue. 2660 2661 2007-03-24 Mark Rowe <mrowe (a] apple.com> 2662 2663 Reviewed by Dave Hyatt. 2664 2665 * JavaScriptGlue.xcodeproj/project.pbxproj: Use GCC 4.0 for testjsglue. 2666 2667 2007-03-24 Mark Rowe <mrowe (a] apple.com> 2668 2669 Rubber-stamped by Darin Adler. 2670 2671 * Configurations/JavaScriptGlue.xcconfig: Remove unnecessary INFOPLIST_PREPROCESS. 2672 2673 2007-03-19 Andrew Wellington <proton (a] wiretapped.net> 2674 2675 Reviewed by Maciej. 2676 2677 Really set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html) 2678 2679 * JavaScriptGlue.xcodeproj/project.pbxproj: 2680 2681 2007-03-18 Andrew Wellington <proton (a] wiretapped.net> 2682 2683 Reviewed by Mark Rowe 2684 2685 Set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html) 2686 2687 * JavaScriptGlue.xcodeproj/project.pbxproj: 2688 2689 2007-03-17 Timothy Hatcher <timothy (a] apple.com> 2690 2691 Reviewed by Mark Rowe. 2692 2693 Made Version.xcconfig smarter when building for different configurations. 2694 Now uses the 522+ OpenSource version for Debug and Release, while using the 2695 full 522.4 version for Production builds. The system prefix is also computed 2696 based on the current system, so 4522.4 on Tiger and 5522.4 on Leopard. 2697 2698 * Configurations/JavaScriptGlue.xcconfig: 2699 * Configurations/Version.xcconfig: 2700 2701 2007-03-15 Timothy Hatcher <timothy (a] apple.com> 2702 2703 Reviewed by John. 2704 2705 * Factored out most of our common build settings into .xcconfig files. Anything that was common in 2706 each build configuration was factored out into the shared .xcconfig file. 2707 * Adds a Version.xcconfig file to define the current framework version, to be used in other places. 2708 * Use the new $(BUNDLE_VERSION) (defined in Version.xcconfig) in the preprocessed Info.plist. 2709 * Use the versions defined in Version.xcconfig to set $(DYLIB_CURRENT_VERSION). 2710 2711 * Configurations/Base.xcconfig: Added. 2712 * Configurations/DebugRelease.xcconfig: Added. 2713 * Configurations/JavaScriptGlue.xcconfig: Added. 2714 * Configurations/Version.xcconfig: Added. 2715 * Info.plist: 2716 * JavaScriptGlue.xcodeproj/project.pbxproj: 2717 2718 === Safari-5522.4 === 2719 2720 2007-03-12 Geoffrey Garen <ggaren (a] apple.com> 2721 2722 Reviewed by Oliver Hunt. 2723 2724 Updated in light of fix for <rdar://problem/4681051> Installer crashes 2725 in KJS::Collector::markOtherThreadConservatively(KJS::Collector::Thread*) 2726 trying to install iLife 06 using Rosetta on an Intel Machine 2727 2728 * JavaScriptGlue.cpp: 2729 (JSLockInterpreter): Ensure backwards compatibility by calling 2730 registerThread() when explicitly taking the JSLock. (This doesn't happen 2731 automatically anymore.) I doubt this actally matters, but in JavaScriptGlue 2732 territory, that kind of thinking will get you killed. 2733 2734 2007-03-06 Geoffrey Garen <ggaren (a] apple.com> 2735 2736 Reviewed by Maciej Stachowiak. 2737 2738 Fixed all known crashers exposed by run-webkit-tests --threaded while using 2739 a PAC file (for maximum carnage). See JavaScriptCore ChangeLog for 2740 more details. 2741 2742 * JSBase.cpp: 2743 (JSBase::Release): Lock when deleting, because we may be deleting an object 2744 (like a JSRun) that holds thread-unsafe data. 2745 2746 * JSUtils.cpp: 2747 (CFStringToUString): Don't lock, because our caller locks. Also, locking 2748 inside a function that returns thread-unsafe data by copy will only mask 2749 threading problems. 2750 2751 * JavaScriptGlue.cpp: 2752 (JSRunEvaluate): Added missing JSLock. 2753 (JSRunCheckSyntax): Converted to JSLock. 2754 * JavaScriptGlue.xcodeproj/project.pbxproj: 2755 2756 2007-02-22 Geoffrey Garen <ggaren (a] apple.com> 2757 2758 Reviewed by Darin Adler. 2759 2760 Fixed <rdar://problem/4942528> Installer.app Stuck "Examining additional 2761 volumes..." 2762 2763 The problem was that JavaScriptGlue held a JSObject in a static pointer 2764 without protecting it from garbage collection. 2765 2766 sUserObjectPrototypeImp = new UserObjectPrototypeImp(); 2767 static ProtectedPtr<UserObjectPrototypeImp> protectPrototype; // valiant, brave, but useless 2768 2769 Through an interesting comedy of errors, this object would be collected 2770 and then assigned as the prototype of another object allocated at the 2771 same address, thus becoming its own prototype. (See http://www.ziplo.com/grandpa.htm 2772 for further explanation of this phenomenon.) Hence the infinte loop in 2773 property lookup. 2774 2775 The solution is equally humorous: all of this code was completely useless -- 2776 it only served to create an empty object in the prototype chain -- so 2777 I just removed it. 2778 2779 * UserObjectImp.cpp: 2780 (UserObjectImp::UserObjectImp): 2781 * UserObjectImp.h: 2782 2783 2007-02-19 Timothy Hatcher <timothy (a] apple.com> 2784 2785 Reviewed by Geoff. 2786 2787 <rdar://problem/4636301> Deprecate JavaScriptGlue 2788 2789 * JavaScriptGlue.h: adds DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER to everything 2790 * JavaScriptGlue.xcodeproj/project.pbxproj: use -Wno-deprecated-declarations to keep the project building 2791 * config.h: define DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER as empty on other systems 2792 2793 2007-02-16 Darin Adler <darin (a] apple.com> 2794 2795 Reviewed by Anders. 2796 2797 - fix <rdar://problem/5000216> JavaScriptGlue framework started turning all CFNumbers 2798 into signed 32bit values 2799 2800 Circumstantial evidence seems to indicate that JavaScriptGlue was depending on a bug 2801 in CFNumber where CFNumberIsFloatType was returning true for 64-bit integer values. 2802 2803 * JSUtils.cpp: (JSObjectKJSValue): Removed the call to CFNumberIsFloatType in the 2804 conversion of numeric values, and always use kCFNumberDoubleType, since double is 2805 the internal format of numbers in JavaScriptCore. There's no value to having a 2806 separate code path for integers. There's also no reason to check the return value 2807 from CFNumberGetValue -- if it returns false it still does the best it can to convert 2808 to a double, which is what we want. 2809 2810 * UserObjectImp.cpp: (UserObjectImp::toString): Removed a similar code path that 2811 tried to handle integers separate from double. Instead, always use a double. For 2812 compatibility, use a format without a decimal point when CFNumberIsFloatType returns 2813 false. Also removed a bogus cast to float; the "%f" format string takes a double, 2814 not a float, so all the cast did was cut down on precision. 2815 2816 2007-01-25 Mark Rowe <mrowe (a] apple.com> 2817 2818 Reviewed by Maciej. 2819 2820 * Info.plist: Update copyright string. 2821 2822 2006-12-19 Timothy Hatcher <timothy (a] apple.com> 2823 2824 Reviewed by Darin Adler. 2825 2826 <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features 2827 2828 * JavaScriptGlue.xcodeproj/project.pbxproj: 2829 2830 === Safari-521.26 === 2831 2832 2006-08-15 Mark Rowe <opendarwin.org (a] bdash.net.nz> 2833 2834 Reviewed by Tim H. 2835 2836 Build fix: DWARF and -gfull are incompatible with symbol separation. 2837 2838 * JavaScriptGlue.xcodeproj/project.pbxproj: 2839 2840 2006-08-15 Mark Rowe <opendarwin.org (a] bdash.net.nz> 2841 2842 Reviewed by Tim H. 2843 2844 http://bugs.webkit.org/show_bug.cgi?id=10394 2845 Bug 10394: WebKit Release and Production configurations should enable dead code stripping 2846 2847 * JavaScriptGlue.xcodeproj/project.pbxproj: 2848 2849 2006-08-15 Mark Rowe <opendarwin.org (a] bdash.net.nz> 2850 2851 Reviewed by Tim H. 2852 2853 http://bugs.webkit.org/show_bug.cgi?id=10384 2854 Bug 10384: Switch to DWARF for Release configuration 2855 2856 * JavaScriptGlue.xcodeproj/project.pbxproj: 2857 2858 2006-08-04 Sam Weinig <sam.weinig (a] gmail.com> 2859 2860 Reviewed by Darin Adler. 2861 2862 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192 2863 Make WebCore (and friends) compile with -Wshorten-64-to-32 2864 2865 * Adds -Wshorten-64-to-32 flag to Xcode project. 2866 2867 * JavaScriptGlue.xcodeproj/project.pbxproj: 2868 2869 2006-08-03 Sam Weinig <sam.weinig (a] gmail.com> 2870 2871 Reviewed by Darin Adler. 2872 2873 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176 2874 Make WebCore compile with -Wundef 2875 2876 * Adds -Wundef flag to Xcode project 2877 2878 * JavaScriptGlue.xcodeproj/project.pbxproj: 2879 2880 2006-07-29 Sam Weinig <sam.weinig (a] gmail.com> 2881 2882 Reviewed by Darin Adler. 2883 2884 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080 2885 Adopt pedantic changes from the Unity project to improve 2886 cross-compiler compatibility 2887 2888 Changes include: 2889 * Turning on gcc warning for missing newline at the end of a source file 2890 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc). 2891 2892 * JavaScriptGlue.xcodeproj/project.pbxproj: 2893 2894 === Safari-521.19 === 2895 2896 2006-07-19 Geoffrey Garen <ggaren (a] apple.com> 2897 2898 Fixed by Darin & Maciej, reviewed by me. 2899 2900 - Fixed <rdar://problem/4638934> Leopard 9A227: Installer crashes right 2901 after LCA and while preparing Installation 2902 2903 Compile release/production with NDEBUG set, to ensure binary compatibility 2904 between JavaScriptGlue and JavaScriptCore. In debug builds, JavaScriptCore 2905 includes an extra debug data member in HashSet. 2906 2907 * JavaScriptGlue.xcodeproj/project.pbxproj: 2908 2909 === Safari-521.18 === 2910 2911 2006-07-15 Maciej Stachowiak <mjs (a] apple.com> 2912 2913 Reviewed by Darin Adler. 2914 2915 - switch property lists to be vector+set of Identifiers instead of list of References 2916 2917 * JSUtils.cpp: 2918 (KJSValueToCFTypeInternal): updated for JSC SPI changes 2919 * JSValueWrapper.cpp: 2920 (JSValueWrapper::JSObjectCopyPropertyNames): ditto 2921 * UserObjectImp.cpp: 2922 (UserObjectImp::getPropertyNames): ditto 2923 * UserObjectImp.h: 2924 2925 === Safari-521.17 === 2926 2927 2006-07-14 Geoffrey Garen <ggaren (a] apple.com> 2928 2929 Reviewed by Maciej. 2930 2931 - Updated JSInterpreter to work with Interpreter ref-counting in JavaScriptCore. 2932 2933 (JSInterpreter::JSInterpreter::~JSInterpreter): Now protected to catch 2934 manual delete. 2935 2936 2006-07-12 Anders Carlsson <acarlsson (a] apple.com> 2937 2938 Build fix 2939 2940 * JSUtils.cpp: 2941 (KJSValueToCFTypeInternal): 2942 * JSValueWrapper.cpp: 2943 (JSValueWrapper::JSObjectCopyPropertyNames): 2944 * UserObjectImp.cpp: 2945 (UserObjectImp::getPropertyList): 2946 2947 === Safari-521.15 === 2948 2949 2006-07-07 Geoffrey Garen <ggaren (a] apple.com> 2950 2951 - build fix 2952 2953 * JSUtils.cpp: 2954 (KJSValueToCFTypeInternal): 2955 * JSValueWrapper.cpp: 2956 (JSValueWrapper::JSObjectCopyPropertyNames): 2957 2958 2006-07-03 Geoffrey Garen <ggaren (a] apple.com> 2959 2960 Reviewed by Maciej. 2961 2962 * JSRun.cpp: 2963 (JSRun::CheckSyntax): Updated to use new checkSyntax syntax in JSC. 2964 * JavaScriptGlue.xcodeproj/project.pbxproj: 2965 2966 === Safari-521.14 === 2967 2968 2006-06-28 Timothy Hatcher <timothy (a] apple.com> 2969 2970 Prefer the Stabs debugging symbols format until DWARF bugs are fixed. 2971 2972 * JavaScriptGlue.xcodeproj/project.pbxproj: 2973 2974 2006-06-24 David Kilzer <ddkilzer (a] kilzer.net> 2975 2976 Reviewed by Timothy. 2977 2978 * Info.plist: Fixed copyright to include 2003-2006. 2979 2980 === JavaScriptGlue-521.13 === 2981 2982 2006-06-20 Geoffrey Garen <ggaren (a] apple.com> 2983 2984 Reviewed by Anders. 2985 2986 - Required for JS API: Rename propList to getPropertyList and have it 2987 take its target property list by reference so that subclasses can 2988 add properties to the list before calling through to their superclasses. 2989 2990 * JSUtils.cpp: 2991 (KJSValueToCFTypeInternal): 2992 * JSValueWrapper.cpp: 2993 (JSValueWrapper::JSObjectCopyPropertyNames): 2994 * UserObjectImp.cpp: 2995 (UserObjectImp::getPropertyList): 2996 * UserObjectImp.h: 2997 2998 2006-06-15 Timothy Hatcher <timothy (a] apple.com> 2999 3000 Reviewed by Geoff and Darin. 3001 3002 Prefer the DWARF debugging symbols format for use in Xcode 2.3. 3003 3004 * JavaScriptGlue.xcodeproj/project.pbxproj: 3005 3006 2006-06-12 Geoffrey Garen <ggaren (a] apple.com> 3007 3008 Reviewed by TimO, Maciej. 3009 3010 - JSGlue part of merging InterpreterImp into Interpreter. 3011 3012 Since there's now a kjs forwarding header, I moved all forwarding 3013 headers into a "ForwardingHeaders" directory, like in WebCore. 3014 3015 * ForwardingHeaders: Added. 3016 * ForwardingHeaders/kjs: Added. 3017 * ForwardingHeaders/kjs/ExecState.h: Added. 3018 * ForwardingHeaders/wtf: Added. 3019 * JavaScriptGlue.xcodeproj/project.pbxproj: 3020 * config.h: 3021 * wtf: Removed. 3022 * wtf/AlwaysInline.h: Removed. 3023 * wtf/Assertions.h: Removed. 3024 * wtf/FastMalloc.h: Removed. 3025 * wtf/Forward.h: Removed. 3026 * wtf/HashCountedSet.h: Removed. 3027 * wtf/HashSet.h: Removed. 3028 * wtf/Noncopyable.h: Removed. 3029 * wtf/OwnArrayPtr.h: Removed. 3030 * wtf/OwnPtr.h: Removed. 3031 * wtf/PassRefPtr.h: Removed. 3032 * wtf/Platform.h: Removed. 3033 * wtf/RefPtr.h: Removed. 3034 * wtf/Vector.h: Removed. 3035 3036 === JavaScriptGlue-521.10 === 3037 3038 2006-05-09 Maciej Stachowiak <mjs (a] apple.com> 3039 3040 Rubber stamped by Anders. 3041 3042 - renamed kxmlcore to wtf 3043 3044 kxmlcore --> wtf 3045 KXMLCore --> WTF 3046 KXC --> WTF 3047 3048 * config.h: 3049 * kxmlcore: Removed. 3050 * kxmlcore/AlwaysInline.h: Removed. 3051 * kxmlcore/Assertions.h: Removed. 3052 * kxmlcore/FastMalloc.h: Removed. 3053 * kxmlcore/Forward.h: Removed. 3054 * kxmlcore/HashCountedSet.h: Removed. 3055 * kxmlcore/HashSet.h: Removed. 3056 * kxmlcore/Noncopyable.h: Removed. 3057 * kxmlcore/OwnArrayPtr.h: Removed. 3058 * kxmlcore/OwnPtr.h: Removed. 3059 * kxmlcore/PassRefPtr.h: Removed. 3060 * kxmlcore/Platform.h: Removed. 3061 * kxmlcore/RefPtr.h: Removed. 3062 * kxmlcore/Vector.h: Removed. 3063 * wtf: Added. 3064 3065 2006-04-11 Darin Adler <darin (a] apple.com> 3066 3067 - try to fix Windows build 3068 3069 * kxmlcore/HashForward.h: Removed. 3070 3071 2006-04-10 Darin Adler <darin (a] apple.com> 3072 3073 Rubber-stamped by John Sullivan. 3074 3075 - added forwarding headers for the new Forward.h and HashForward.h files 3076 3077 * kxmlcore/Forward.h: Added. 3078 * kxmlcore/HashForward.h: Added. 3079 3080 2006-04-04 Timothy Hatcher <timothy (a] apple.com> 3081 3082 Reviewed by Darin Adler. 3083 3084 The Debug and Release frameworks are now built with install paths relative to the build products directory. 3085 This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore. 3086 3087 * JavaScriptGlue.xcodeproj/project.pbxproj: 3088 3089 2006-04-02 Eric Seidel <eseidel (a] apple.com> 3090 3091 Reviewed by andersca. 3092 3093 Add missing forwarding header. 3094 3095 * kxmlcore/Vector.h: Added. 3096 3097 2006-03-31 Geoffrey Garen <ggaren (a] apple.com> 3098 3099 Reviewed by Darin Adler. 3100 3101 - Fixed <rdar://problem/4430836> JavaScript patch crashing Quartz 3102 Composer 3103 3104 JSValueWrappers used to hold on to the ExecState that pertained at 3105 the time of their creation. Since ExecStates are transient, that 3106 design was totally bogus, and it would crash once the ExecState had 3107 been deallocated. 3108 3109 Unfortunately, there's no clean solution to this problem, since 3110 the JSGlue API has no notion of state. The solution here is to use 3111 a shared, global ExecState for the purpose of JSGlue calls. Given 3112 the pre-existing limitations in the JSGlue API, this design 3113 shouldn't actually introduce any new limitations (see comments in 3114 JSValueWrapper.cpp). 3115 3116 I tested with Quartz Composer and PAC files, neither of which are 3117 layout-testable. 3118 3119 * JSUtils.cpp: 3120 (KJSValueToJSObject): 3121 * JSValueWrapper.cpp: 3122 (JSValueWrapper::JSValueWrapper): 3123 (JSValueWrapper::GetValue): 3124 (getProcessGlobalExecState): 3125 (JSValueWrapper::JSObjectCopyPropertyNames): 3126 (JSValueWrapper::JSObjectCopyProperty): 3127 (JSValueWrapper::JSObjectSetProperty): 3128 (JSValueWrapper::JSObjectCallFunction): 3129 (JSValueWrapper::JSObjectCopyCFValue): 3130 * JSValueWrapper.h: 3131 3132 Also added a test harness file. It was helpful while I was testing, 3133 and may come in handy in the future: 3134 3135 * JavaScriptGlue.xcodeproj/project.pbxproj: 3136 testjsglue.cpp: Added. 3137 3138 2006-03-28 Darin Adler <darin (a] apple.com> 3139 3140 Reviewed by Geoff. 3141 3142 - added a build step that checks for init routines 3143 3144 * JavaScriptGlue.xcodeproj/project.pbxproj: Added a custom build phase that invokes the 3145 check-for-global-initializers script. 3146 3147 2006-03-02 Maciej Stachowiak <mjs (a] apple.com> 3148 3149 Not reviewed, but I noticed these trivial extra changes were needed to avoid 3150 breaking the build with my reviewed patch for: 3151 3152 http://bugs.webkit.org/show_bug.cgi?id=7387 3153 3154 Add config.h, includes of it, and Platform.h forwarding header. 3155 3156 * JSBase.cpp: 3157 * JSObject.cpp: 3158 * JSRun.cpp: 3159 * JSUtils.cpp: 3160 * JSValueWrapper.cpp: 3161 * JavaScriptGlue.cpp: 3162 * UserObjectImp.cpp: 3163 * config.h: Added. 3164 * kxmlcore/Platform.h: Added. 3165 3166 === JavaScriptGlue-521.7 === 3167 3168 2006-02-10 Geoffrey Garen <ggaren (a] apple.com> 3169 3170 Reviewed by eric. 3171 3172 - Fixed build. 3173 3174 * UserObjectImp.cpp: 3175 (UserObjectImp::toPrimitive): 3176 * UserObjectImp.h: 3177 3178 2006-02-03 Timothy Hatcher <timothy (a] apple.com> 3179 3180 Reviewed by Justin. 3181 3182 Renamed configuration names to Debug, Release and Production. 3183 3184 * JavaScriptGlue.xcodeproj/project.pbxproj: 3185 3186 2006-02-01 Darin Adler <darin (a] apple.com> 3187 3188 - added some forwarding headers to make new JavaScriptCore changes work 3189 3190 * kxmlcore/Assertions.h: Added. 3191 * kxmlcore/Noncopyable.h: Added. 3192 * kxmlcore/OwnPtr.h: Added. 3193 * kxmlcore/OwnArrayPtr.h: Added. 3194 3195 2006-01-16 Timothy Hatcher <timothy (a] apple.com> 3196 3197 Adding the license header to all files so we can 3198 move JavaScriptGlue into the open source repository. 3199 3200 * LICENSE: Added. 3201 * JSBase.cpp: license header added. 3202 * JSBase.h: ditto. 3203 * JSObject.cpp: ditto. 3204 * JSObject.h: ditto. 3205 * JSRun.cpp: ditto. 3206 * JSRun.h: ditto. 3207 * JSUtils.cpp: ditto. 3208 * JSUtils.h: ditto. 3209 * JSValueWrapper.cpp: ditto. 3210 * JSValueWrapper.h: ditto. 3211 * JavaScriptGlue.cpp: ditto. 3212 * JavaScriptGlue.h: ditto. 3213 * UserObjectImp.cpp: ditto. 3214 * UserObjectImp.h: ditto. 3215 3216 2005-12-21 Timothy Hatcher <timothy (a] apple.com> 3217 3218 * JavaScriptGlue.xcodeproj/project.pbxproj: 3219 Set tab width to 8, indent width to 4 and uses tabs to false per file. 3220 3221 2005-12-19 Darin Adler <darin (a] apple.com> 3222 3223 Reviewed by Geoff Garen and Eric Seidel. 3224 3225 - fix http://bugs.webkit.org/show_bug.cgi?id=4923 3226 stop using <ostream> in WebCore, eliminating the <cmath> troubles it causes 3227 3228 * kxmlcore/AlwaysInline.h: Added. 3229 3230 2005-12-15 Darin Adler <darin (a] apple.com> 3231 3232 Reviewed by Maciej. 3233 3234 * JSRun.cpp: (JSRun::Evaluate): Updated for change to Interpreter::evaluate. 3235 3236 2005-12-15 Darin Adler <darin (a] apple.com> 3237 3238 Reviewed by Tim Hatcher. 3239 3240 * JavaScriptGlue.xcodeproj/project.pbxproj: Removed some redundant build 3241 settings, turned off prebinding explicitly for our Development and 3242 Deployment builds, remove .exp file from sources. All "clean-up". 3243 3244 === Safari-521~5 === 3245 3246 2005-12-13 Geoffrey Garen <ggaren (a] apple.com> 3247 3248 - Fixed build after Anders's last checkin to JavaScriptCore. 3249 3250 Reviewed by darin. 3251 3252 * UserObjectImp.cpp: 3253 (UserObjectImp::userObjectGetter): Updated to reflect new argument that 3254 getters take (unused here). 3255 * UserObjectImp.h: 3256 3257 2005-12-13 Maciej Stachowiak <mjs (a] apple.com> 3258 3259 Reviewed by Eric. 3260 3261 - added forwarding header for HashCountedSet 3262 3263 * kxmlcore/HashCountedSet.h: Added. 3264 3265 2005-12-10 Darin Adler <darin (a] apple.com> 3266 3267 Rubber stamped by Maciej. 3268 3269 - updated for KJS class renaming 3270 3271 * many files and functions 3272 3273 2005-12-10 Darin Adler <darin (a] apple.com> 3274 3275 Reviewed by Maciej. 3276 3277 - eliminated the old Undefined(), Null(), Boolean(), Number(), and String() 3278 3279 Code now uses jsUndefined(), jsNull(), jsBoolean(), jsNumber(), and jsString(). 3280 3281 * JSUtils.cpp: 3282 (JSObjectKJSValue): 3283 * UserObjectImp.cpp: 3284 (UserObjectImp::callAsFunction): 3285 (UserObjectImp::toPrimitive): 3286 3287 2005-12-05 Maciej Stachowiak <mjs (a] apple.com> 3288 3289 - added new forwarding headers 3290 3291 * kxmlcore/PassRefPtr.h: Added. 3292 * kxmlcore/RefPtr.h: Added. 3293 3294 2005-12-05 Maciej Stachowiak <mjs (a] apple.com> 3295 3296 * kxmlcore/PassRefPtr.h: Added. 3297 3298 2005-11-26 Maciej Stachowiak <mjs (a] apple.com> 3299 3300 Rubber stamped by Eric. 3301 3302 - renamed InterpreterLock to JSLock 3303 3304 * JSUtils.cpp: 3305 (CFStringToUString): 3306 (JSObjectKJSValue): 3307 (KJSValueToCFTypeInternal): 3308 * JSValueWrapper.cpp: 3309 (JSValueWrapper::JSObjectCopyPropertyNames): 3310 (JSValueWrapper::JSObjectCopyProperty): 3311 (JSValueWrapper::JSObjectSetProperty): 3312 (JSValueWrapper::JSObjectCallFunction): 3313 (JSValueWrapper::JSObjectCopyCFValue): 3314 * JavaScriptGlue.cpp: 3315 (JSRunCreate): 3316 (JSCollect): 3317 (JSLockInterpreter): 3318 (JSUnlockInterpreter): 3319 * UserObjectImp.cpp: 3320 (UserObjectImp::callAsFunction): 3321 3322 2005-11-16 Maciej Stachowiak <mjs (a] apple.com> 3323 3324 Reviewed by Geoff. 3325 3326 Updated to use new API to drop all locks. 3327 3328 * JavaScriptGlue.cpp: 3329 (JSLockInterpreter): 3330 (JSUnlockInterpreter): 3331 * UserObjectImp.cpp: 3332 (UserObjectImp::callAsFunction): 3333 3334 2005-11-14 Geoffrey Garen <ggaren (a] apple.com> 3335 3336 Reviewed by mjs. 3337 3338 - Part of the fix for <rdar://problem/4342216> Installer crash in 3339 KJS::ValueImp::marked() when garbage collector runs inside call to 3340 ConstantValues::init() 3341 3342 Added locking in JSRunCreate, since JSRun::JSRun constructs an object. 3343 3344 * JavaScriptGlue.cpp: 3345 (JSRunCreate): 3346 3347 2005-11-10 Geoffrey Garen <ggaren (a] apple.com> 3348 3349 Reviewed by Maciej. 3350 3351 - Fixed <rdar://problem/4334445> installer crashed on my 3352 dual g4 450Mhz after clicking language 3353 3354 - Reversed backwards NULL check. 3355 - Inserted guards against NULL fJSUserObject data member. 3356 - Cleaned up some style. 3357 3358 * JSUtils.cpp: 3359 (KJSValueToCFTypeInternal): 3360 * UserObjectImp.cpp: 3361 (UserObjectImp::~UserObjectImp): 3362 (UserObjectImp::callAsFunction): 3363 (UserObjectImp::userObjectGetter): 3364 (UserObjectImp::getOwnPropertySlot): 3365 (UserObjectImp::put): 3366 (UserObjectImp::mark): 3367 3368 2005-11-04 Timothy Hatcher <timothy (a] apple.com> 3369 3370 Reviewed by Darin Adler. 3371 3372 * JavaScriptGlue.xcodeproj/project.pbxproj: 3373 Fixed the FRAMEWORK_SEARCH_PATHS to look in the WebKit 3374 Frameworks for the Default config. 3375 3376 2005-11-03 Timothy Hatcher <timothy (a] apple.com> 3377 3378 Reviewed by Darin and Vicki. 3379 3380 * JavaScriptGlue.xcodeproj/project.pbxproj: 3381 Change to use $(SYSTEM_LIBRARY_DIR) consistently and place 3382 $(NEXT_ROOT) in a few spots to make build-root work. 3383 3384 2005-11-01 Maciej Stachowiak <mjs (a] apple.com> 3385 3386 Reviewed by: Eric. 3387 3388 <rdar://problem/4324107> get JavaScriptGlue working with TOT JavaScriptCore again 3389 3390 - reverted all this stuff to use ReferenceList instead of IdentifierSequencedSet 3391 3392 * JSUtils.cpp: 3393 (KJSValueToCFTypeInternal): 3394 * JSValueWrapper.cpp: 3395 (JSValueWrapper::JSObjectCopyPropertyNames): 3396 * UserObjectImp.cpp: 3397 (UserObjectImp::propList): 3398 * UserObjectImp.h: 3399 3400 2005-10-11 Timothy Hatcher <timothy (a] apple.com> 3401 3402 Setup the proper Framework search path for the Default config. 3403 Prepping for a TOT submission and build by B&I. 3404 3405 * JavaScriptGlue.xcodeproj/project.pbxproj: 3406 3407 2005-10-10 Darin Adler <darin (a] apple.com> 3408 3409 Reviewed by Eric. 3410 3411 - converted tabs to spaces, NULL to 0, added some (void), got rid of __ prefixes 3412 in headers (reserved for compiler/library) 3413 3414 * Info.plist: 3415 * JSBase.cpp: 3416 * JSBase.h: 3417 * JSObject.cpp: 3418 * JSObject.h: 3419 * JSRun.cpp: 3420 * JSRun.h: 3421 * JSUtils.cpp: 3422 * JSUtils.h: 3423 * JSValueWrapper.cpp: 3424 * JSValueWrapper.h: 3425 * JavaScriptGlue.cpp: 3426 * JavaScriptGlue.h: 3427 * UserObjectImp.cpp: 3428 * UserObjectImp.h: 3429 3430 2005-10-10 Darin Adler <darin (a] apple.com> 3431 3432 * .cvsignore: Added. Ignore Makefile.in and Makefile. 3433 3434 2005-10-07 Timothy Hatcher <timothy (a] apple.com> 3435 3436 Reviewed by Maciej. 3437 3438 Build fix, needed to disable RTTI. Upgraded to a native target. 3439 3440 * JavaScriptGlue.xcodeproj/project.pbxproj: 3441 * Info.plist 3442 3443 2005-10-05 Maciej Stachowiak <mjs (a] apple.com> 3444 3445 Reviewed by Eric and Darin. 3446 3447 <rdar://problem/4260506> Port JavaScriptGlue to TOT JavaScriptCore 3448 3449 * JSRun.cpp: 3450 (JSRun::JSRun): 3451 (JSRun::GlobalObject): 3452 * JSRun.h: 3453 (JSInterpreter::JSInterpreter): 3454 * JSUtils.cpp: 3455 (KJSValueToJSObject): 3456 (JSObjectKJSValue): 3457 (KJSValueToCFTypeInternal): 3458 (KJSValueToCFType): 3459 * JSUtils.h: 3460 * JSValueWrapper.cpp: 3461 (JSValueWrapper::JSValueWrapper): 3462 (JSValueWrapper::GetValue): 3463 (JSValueWrapper::JSObjectCopyPropertyNames): 3464 (JSValueWrapper::JSObjectCopyProperty): 3465 (JSValueWrapper::JSObjectSetProperty): 3466 (JSValueWrapper::JSObjectCallFunction): 3467 (JSValueWrapper::JSObjectMark): 3468 * JSValueWrapper.h: 3469 * JavaScriptGlue.cpp: 3470 (JSRunCopyGlobalObject): 3471 * JavaScriptGlue.xcodeproj/project.pbxproj: 3472 * Makefile.am: Added. 3473 * UserObjectImp.cpp: 3474 (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp): 3475 (UserObjectImp::UserObjectImp): 3476 (UserObjectImp::callAsFunction): 3477 (UserObjectImp::getPropertyNames): 3478 (UserObjectImp::userObjectGetter): 3479 (UserObjectImp::getOwnPropertySlot): 3480 (UserObjectImp::put): 3481 (UserObjectImp::toPrimitive): 3482 (UserObjectImp::mark): 3483 * UserObjectImp.h: 3484 * kxmlcore/FastMalloc.h: Added. 3485 * kxmlcore/HashSet.h: Added. 3486 3487 2005-09-14 Maciej Stachowiak <mjs (a] apple.com> 3488 3489 Reviewed by Geoff. 3490 3491 - fixed <rdar://problem/4214783> REGRESSION: kjs_fast_malloc crash due to lack of locking on multiple threads (seen selecting volumes in the installer) 3492 3493 Make sure to lock using the InterpreterLock class in all places that need it 3494 (including anything that uses the collector, the parser, the protect count hash table, 3495 and anything that allocates via fast_malloc). 3496 3497 * JSUtils.cpp: 3498 (CFStringToUString): 3499 (JSObjectKJSValue): 3500 (KJSValueToCFTypeInternal): 3501 * JSUtils.h: 3502 * JSValueWrapper.cpp: 3503 (JSValueWrapper::JSObjectCopyPropertyNames): 3504 (JSValueWrapper::JSObjectCopyProperty): 3505 (JSValueWrapper::JSObjectSetProperty): 3506 (JSValueWrapper::JSObjectCallFunction): 3507 (JSValueWrapper::JSObjectCopyCFValue): 3508 * JavaScriptGlue.cpp: 3509 (JSCollect): 3510 3511 2005-09-27 Adele Peterson <adele (a] apple.com> 3512 3513 Reviewed by Maciej. 3514 3515 <rdar://problem/4223297> JavaScriptGlue: Submit 64-bit compatible versions of your API and SPIs by September 15 3516 3517 * JavaScriptGlue.h: Changed UInt32 to CFTypeID for JSTypeID 3518 3519 2005-09-06 Geoffrey Garen <ggaren (a] apple.com> 3520 3521 -upgraded project files to XCode 2.1 3522 3523 * JavaScriptGlue.pbproj/project.pbxproj: Removed. 3524 * JavaScriptGlue.xcodeproj/.cvsignore: Added. 3525 * JavaScriptGlue.xcodeproj/project.pbxproj: Added. 3526 3527 2005-09-01 Maciej Stachowiak <mjs (a] apple.com> 3528 3529 Rubber stamped by hyatt. 3530 3531 - initial import of JavaScriptGlue into our repository 3532 3533 * English.lproj/InfoPlist.strings: Added. 3534 * JSBase.cpp: Added. 3535 (JSBase::JSBase): 3536 (JSBase::~JSBase): 3537 (JSBase::Retain): 3538 (JSBase::Release): 3539 (JSBase::RetainCount): 3540 (JSBase::GetTypeID): 3541 (JSBase::CopyDescription): 3542 (JSBase::Equal): 3543 * JSBase.h: Added. 3544 * JSObject.cpp: Added. 3545 (JSUserObject::JSUserObject): 3546 (JSUserObject::~JSUserObject): 3547 (JSUserObject::CopyPropertyNames): 3548 (JSUserObject::CopyProperty): 3549 (JSUserObject::SetProperty): 3550 (JSUserObject::ImplementsCall): 3551 (JSUserObject::CallFunction): 3552 (JSUserObject::CopyCFValue): 3553 (JSUserObject::Equal): 3554 (JSUserObject::Mark): 3555 (JSUserObject::GetData): 3556 * JSObject.h: Added. 3557 (JSUserObject::DataType): 3558 * JSRun.cpp: Added. 3559 (JSRun::JSRun): 3560 (JSRun::~JSRun): 3561 (JSRun::Flags): 3562 (JSRun::GetSource): 3563 (JSRun::GlobalObject): 3564 (JSRun::GetInterpreter): 3565 (JSRun::Evaluate): 3566 (JSRun::CheckSyntax): 3567 * JSRun.h: Added. 3568 (JSInterpreter::JSInterpreter): 3569 (JSInterpreter::JSInterpreter::~JSInterpreter): 3570 (JSInterpreter::Flags): 3571 * JSUtils.cpp: Added. 3572 (CFStringToUString): 3573 (UStringToCFString): 3574 (CFStringToIdentifier): 3575 (IdentifierToCFString): 3576 (KJSValueToJSObject): 3577 (JSObjectKJSValue): 3578 (KJSValueToCFTypeInternal): 3579 (KJSValueToCFType): 3580 (GetCFNull): 3581 * JSUtils.h: Added. 3582 (RetainCFType): 3583 (ReleaseCFType): 3584 * JSValueWrapper.cpp: Added. 3585 (JSValueWrapper::JSValueWrapper): 3586 (JSValueWrapper::~JSValueWrapper): 3587 (JSValueWrapper::GetValue): 3588 (JSValueWrapper::GetExecState): 3589 (JSValueWrapper::GetJSObectCallBacks): 3590 (JSValueWrapper::JSObjectDispose): 3591 (JSValueWrapper::JSObjectCopyPropertyNames): 3592 (JSValueWrapper::JSObjectCopyProperty): 3593 (JSValueWrapper::JSObjectSetProperty): 3594 (JSValueWrapper::JSObjectCallFunction): 3595 (JSValueWrapper::JSObjectCopyCFValue): 3596 (JSValueWrapper::JSObjectMark): 3597 * JSValueWrapper.h: Added. 3598 * JavaScriptGlue.cpp: Added. 3599 (JSSetCFNull): 3600 (JSGetCFNull): 3601 (JSRetain): 3602 (JSRelease): 3603 (JSCopyDescription): 3604 (JSEqual): 3605 (JSGetTypeID): 3606 (JSGetRetainCount): 3607 (JSObjectCreate): 3608 (JSObjectCreateInternal): 3609 (JSObjectCopyCFValue): 3610 (JSObjectGetData): 3611 (JSObjectCopyProperty): 3612 (JSObjectSetProperty): 3613 (JSObjectCallFunction): 3614 (JSRunCreate): 3615 (JSRunCopySource): 3616 (JSRunCopyGlobalObject): 3617 (JSRunEvaluate): 3618 (JSRunCheckSyntax): 3619 (JSCollect): 3620 (JSTypeGetCFArrayCallBacks): 3621 (JSCFRetain): 3622 (JSCFRelease): 3623 (JSObjectCreateWithCFType): 3624 (CFJSObjectDispose): 3625 (JSObjectCopyPropertyNames): 3626 (CFJSObjectCopyProperty): 3627 (CFJSObjectSetProperty): 3628 (CFJSObjectCopyCFValue): 3629 (CFJSObjectEqual): 3630 (CFJSObjectCopyPropertyNames): 3631 (JSCreateCFArrayFromJSArray): 3632 (JSCreateJSArrayFromCFArray): 3633 (JSLockInterpreter): 3634 (JSUnlockInterpreter): 3635 * JavaScriptGlue.exp: Added. 3636 * JavaScriptGlue.h: Added. 3637 * JavaScriptGlue.pbproj/project.pbxproj: Added. 3638 * UserObjectImp.cpp: Added. 3639 (UserObjectPrototypeImp::UserObjectPrototypeImp): 3640 (UserObjectPrototypeImp::GlobalUserObjectPrototypeImp): 3641 (UserObjectImp::UserObjectImp): 3642 (UserObjectImp::~UserObjectImp): 3643 (UserObjectImp::classInfo): 3644 (UserObjectImp::implementsCall): 3645 (UserObjectImp::call): 3646 (UserObjectImp::propList): 3647 (UserObjectImp::hasProperty): 3648 (UserObjectImp::get): 3649 (UserObjectImp::put): 3650 (UserObjectImp::GetJSUserObject): 3651 (UserObjectImp::toPrimitive): 3652 (UserObjectImp::toBoolean): 3653 (UserObjectImp::toNumber): 3654 (UserObjectImp::toString): 3655 (UserObjectImp::mark): 3656 * UserObjectImp.h: Added. 3657 3658