1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406
|
2008-06-03 Darin Adler <darin@apple.com>
- update for JavaScriptCore changes for https://bugs.webkit.org/show_bug.cgi?id=19269
speed up SunSpider by eliminating the toObject call for most get/put/delete
* UserObjectImp.cpp:
(UserObjectImp::userObjectGetter): Removed originalObject argument.
* UserObjectImp.h: Ditto.
2008-06-02 Geoffrey Garen <ggaren@apple.com>
Reviewed by Alexey Proskuryakov.
Removed JSObject::call, since it just called JSObject::callAsFunction.
SunSpider reports no change.
2008-05-28 Geoffrey Garen <ggaren@apple.com>
Reviewed by Oliver Hunt.
Fixed total destruction in Software Update.app.
Updated JavaScriptGlue to honor squirrelfish's new getCallData mechanism for
indicating that an object can be called as a function.
2008-05-10 Maciej Stachowiak <mjs@apple.com>
Reviewed by Oliver.
- JavaScriptGlue part of fix for: "SQUIRRELFISH: function toString broken after calling"
https://bugs.webkit.org/show_bug.cgi?id=18869
* JSRun.cpp:
(JSRun::Evaluate): Use UString version of eveluate() instead of
the now departed UChar*/length variant; use of the lower-level
version was gratuitous in any case.
(JSRun::CheckSyntax): Ditto for checkSyntax().
2008-04-30 Geoffrey Garen <ggaren@apple.com>
Build fix: supply missing parameter that used to be implicit.
* JSRun.cpp:
(JSRun::Evaluate):
2008-03-30 Geoffrey Garen <ggaren@apple.com>
Reviewed by Oliver Hunt.
Build fix.
* ForwardingHeaders/wtf/UnusedParam.h: Copied from ForwardingHeaders/wtf/OwnPtr.h.
2008-05-12 Alexey Proskuryakov <ap@webkit.org>
Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
SquirrelFish merging.
* JSUtils.cpp:
(JSObjectKJSValue):
* JSUtils.h:
* JSValueWrapper.cpp:
(unprotectGlobalObject):
(initializeGlobalObjectKey):
(getThreadGlobalExecState):
* JavaScriptGlue.cpp:
(JSCollect):
(JSLockInterpreter):
* UserObjectImp.cpp:
(UserObjectImp::toPrimitive):
2008-05-02 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Darin.
Make JavaScriptGlue and JavaScriptCore API functions implicitly call initializeThreading
for the sake of non-WebKit clients.
* JavaScriptGlue.cpp:
(JSRunCreate):
(JSCollect):
(JSCreateJSArrayFromCFArray):
(JSLockInterpreter):
These are all possible JavaScriptGlue entry points.
2008-05-02 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Geoffrey Garen.
https://bugs.webkit.org/show_bug.cgi?id=18826
Make JavaScript heap per-thread
* JSValueWrapper.cpp:
* JSUtils.h:
Moved getThreadGlobalExecState() to JSUtils and made it extern, as ExecState is now needed
for all JS allocations.
* JSUtils.cpp:
(JSObjectKJSValue): Pass ExecState to functions that now need it.
(unprotectGlobalObject): Moved from JSValueWrapper.cpp.
(initializeGlobalObjectKey): Ditto.
(getThreadGlobalExecState): Ditto.
* UserObjectImp.cpp: (UserObjectImp::toPrimitive): Pass ExecState to jsString and jsNumber.
* JavaScriptGlue.cpp:
(JSCollect): Use current thread's heap.
(JSLockInterpreter): Removed JSLock::registerThread(), because a JS heap doesn't need to
know about other threads.
2008-04-25 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Darin.
Fix run-webkit-tests --threading
and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661>
Proxy server issue in Sunday's Nightly
* UserObjectImp.cpp: Adjusted for the new member added to ClassInfo.
2008-04-25 Mark Rowe <mrowe@apple.com>
Reviewed by Adele Peterson.
<rdar://problem/5891264> Don't install the JavaScriptGlue headers
* JavaScriptGlue.xcodeproj/project.pbxproj:
2008-04-25 Mark Rowe <mrowe@apple.com>
Rubber-stamped by Sam Weinig.
Add some content to an empty ICU header file to prevent verification errors.
* icu/unicode/utf_old.h:
2008-04-02 Mark Rowe <mrowe@apple.com>
Reviewed by Oliver Hunt.
Ensure that debug symbols are generated for x86_64 and ppc64 builds.
* Configurations/Base.xcconfig:
2008-03-20 Maciej Stachowiak <mjs@apple.com>
- fix build
* ForwardingHeaders/wtf/ListRefPtr.h: Added.
2008-03-01 Mark Rowe <mrowe@apple.com>
Reviewed by Tim Hatcher.
Update Xcode configuration to support building debug and release from the mysterious future.
* Configurations/Base.xcconfig:
* Configurations/DebugRelease.xcconfig:
2008-02-29 Geoffrey Garen <ggaren@apple.com>
Reviewed by David Harrison.
Fixed <rdar://problem/5765063> TOT REGRESSION: Software Update crash in
KJS::Collector::collect() (missing JSLock)
* JSValueWrapper.cpp:
(unprotectGlobalObject): Added missing JSLock.
2008-02-05 Mark Rowe <mrowe@apple.com>
Reviewed by Oliver Hunt.
Update versioning to support the mysterious future.
* Configurations/Version.xcconfig: Add SYSTEM_VERSION_PREFIX_1060.
2008-01-28 Eric Seidel <eric@webkit.org>
Reviewed by darin.
Add icu headers to JSG in preparation for depending on ::UChar.
* Configurations/Base.xcconfig:
* ForwardingHeaders/wtf/unicode: Added.
* ForwardingHeaders/wtf/unicode/Unicode.h: Added.
* ForwardingHeaders/wtf/unicode/icu: Added.
* ForwardingHeaders/wtf/unicode/icu/UnicodeIcu.h: Added.
* icu: Copied from ../JavaScriptCore/icu.
2007-12-19 Geoffrey Garen <ggaren@apple.com>
Build fix.
* ForwardingHeaders/wtf/VectorTraits.h: Added.
2007-12-10 Timothy Hatcher <timothy@apple.com>
Reviewed by Mark Rowe.
<rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x
* Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR,
so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX.
2007-12-04 Geoffrey Garen <ggaren@apple.com>
Reviewed by Darin Adler.
Third step in refactoring JSGlobalObject: Moved data members and data
member access from Interpreter to JSGlobalObject. Replaced JSInterpreter
subclass with JSGlobalObject subclass.
* JSRun.cpp:
(JSRun::JSRun):
(JSRun::Evaluate):
(JSRun::CheckSyntax):
* JSRun.h:
(JSGlueGlobalObject::JSGlueGlobalObject):
* JSUtils.cpp:
(KJSValueToCFTypeInternal):
* JSValueWrapper.cpp:
(getThreadGlobalExecState):
2007-12-02 Geoffrey Garen <ggaren@apple.com>
Reviewed by Eric Seidel.
Updated to match the JavaScriptCore change to move virtual methods from
Interpreter to JSGlobalObject.
* JSRun.cpp:
* JSRun.h:
* JSValueWrapper.cpp:
(getThreadGlobalExecState):
* JavaScriptGlue.cpp:
(JSRunCopyGlobalObject):
(JSRunEvaluate):
2007-11-30 Geoffrey Garen <ggaren@apple.com>
Reviewed by Beth Dakin.
Modified to follow new JSGlobalObject/Interpreter ownership rules
in JavaScriptCore.
* JSRun.cpp:
(JSRun::JSRun):
(JSRun::GetInterpreter):
(JSRun::Evaluate):
(JSRun::CheckSyntax):
* JSRun.h:
* JSValueWrapper.cpp:
(unprotectGlobalObject):
(initializeGlobalObjectKey):
(getThreadGlobalExecState):
2007-11-29 Mark Rowe <mrowe@apple.com>
Reviewed by Maciej.
Fix REGRESSION(r27885): Installer hits assertion failure in JavaScriptGlue.
* JSValueWrapper.cpp:
(getThreadGlobalExecState): Set the global object on the Interpreter before using it.
2007-11-27 Anders Carlsson <andersca@apple.com>
Build fix.
* JSUtils.cpp:
(KJSValueToCFTypeInternal):
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCopyPropertyNames):
2007-11-21 Mark Rowe <mrowe@apple.com>
Reviewed by Eric.
Fix JavaScriptGlue to build without warnings using GCC 4.2.
* Configurations/Base.xcconfig:
* JSRun.h:
2007-11-17 Mark Rowe <mrowe@apple.com>
Reviewed by Darin Adler.
Fix: <rdar://problem/5607032> REGRESSION: testapi exits with assertion failure in debug build
<rdar://problem/5440659> JSGlobalContextCreate throws away globalObjectClass's prototype
http://bugs.webkit.org/show_bug.cgi?id=16033
Update for changes in Interpreter method signatures.
* JSRun.h:
2007-11-13 Geoffrey Garen <ggaren@apple.com>
Reviewed by Anders Carlsson.
Renamed Shared to RefCounted.
* ForwardingHeaders/wtf/RefCounted.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/Shared.h.
* ForwardingHeaders/wtf/Shared.h: Removed.
2007-11-13 Geoffrey Garen <ggaren@apple.com>
Reviewed by Sam Weinig.
Moved Shared.h into wtf so it could be used in more places.
* ForwardingHeaders/wtf/Shared.h: Added.
2007-11-08 Mark Rowe <mrowe@apple.com>
Build fix.
* ForwardingHeaders/wtf/MathExtras.h: Copied from WebCore/ForwardingHeaders/wtf/MathExtras.h.
2007-11-05 Geoffrey Garen <ggaren@apple.com>
Build fix.
* ForwardingHeaders/kjs/value.h: Added.
2007-11-03 Sam Weinig <sam@webkit.org>
Build-fix.
* UserObjectImp.cpp:
2007-11-03 David D. Kilzer <ddkilzer@webkit.org>
Sort files(...); sections of Xcode project files.
Rubber-stamped by Darin.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2007-10-25 Eric Seidel <eric@webkit.org>
Reviewed by Geoff.
Make JSG build again after JSGlobalObject change.
* JSRun.cpp:
(JSRun::JSRun):
(JSRun::GlobalObject):
* JSRun.h:
(JSInterpreter::JSInterpreter):
* JSUtils.h:
2007-10-11 Mark Rowe <mrowe@apple.com>
Reviewed by Tim Hatcher.
Fix for <rdar://problem/5488678>. Disable debugging symbols in production builds for 10.4
PowerPC to prevent a huge STABS section from being generated.
* Configurations/Base.xcconfig:
2007-10-04 Mark Rowe <mrowe@apple.com>
Reviewed by Oliver.
Switch to default level of debugging symbols to resolve <rdar://problem/5488678>.
The "full" level appears to offer no observable benefits even though the documentation
suggests it be used for dead code stripping. This should also decrease link times.
* Configurations/Base.xcconfig:
2007-09-03 Mark Rowe <mrowe@apple.com>
Reviewed by Tim Hatcher.
<rdar://problem/5452164> Production build with in symbols directory has no debug info
Enable debug symbol generation on all build configurations. Production builds are stripped
of symbols by Xcode during deployment post-processing.
* Configurations/Base.xcconfig:
* JavaScriptGlue.xcodeproj/project.pbxproj:
2007-08-09 Mark Rowe <mrowe@apple.com>
Reviewed by Antti.
<rdar://problem/5400709> Versioning in debug and release builds should include minor and tiny version before +
* Configurations/Version.xcconfig:
* JavaScriptGlue.xcodeproj/project.pbxproj: Add a shell script phase to make to dependency between
Version.xcconfig and Info.plist explicit to Xcode.
2007-07-16 Sam Weinig <sam@webkit.org>
Reviewed by Oliver.
Turn off -Wshorten-64-to-32 warning for 64-bit builds.
* Configurations/Base.xcconfig:
2007-04-27 Mark Rowe <mrowe@apple.com>
Reviewed by Oliver.
* JavaScriptGlue.xcodeproj/project.pbxproj: Improve dependencies in Xcode project
by marking JavaScriptGlue as a dependency of testjsglue.
2007-03-24 Mark Rowe <mrowe@apple.com>
Reviewed by Dave Hyatt.
* JavaScriptGlue.xcodeproj/project.pbxproj: Use GCC 4.0 for testjsglue.
2007-03-24 Mark Rowe <mrowe@apple.com>
Rubber-stamped by Darin.
* Configurations/JavaScriptGlue.xcconfig: Remove unnecessary INFOPLIST_PREPROCESS.
2007-03-19 Andrew Wellington <proton@wiretapped.net>
Reviewed by Maciej.
Really set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
* JavaScriptGlue.xcodeproj/project.pbxproj:
2007-03-18 Andrew Wellington <proton@wiretapped.net>
Reviewed by Mark Rowe
Set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
* JavaScriptGlue.xcodeproj/project.pbxproj:
2007-03-17 Timothy Hatcher <timothy@apple.com>
Reviewed by Mark Rowe.
Made Version.xcconfig smarter when building for different configurations.
Now uses the 522+ OpenSource version for Debug and Release, while using the
full 522.4 version for Production builds. The system prefix is also computed
based on the current system, so 4522.4 on Tiger and 5522.4 on Leopard.
* Configurations/JavaScriptGlue.xcconfig:
* Configurations/Version.xcconfig:
2007-03-15 Timothy Hatcher <timothy@apple.com>
Reviewed by John.
* Factored out most of our common build settings into .xcconfig files. Anything that was common in
each build configuration was factored out into the shared .xcconfig file.
* Adds a Version.xcconfig file to define the current framework version, to be used in other places.
* Use the new $(BUNDLE_VERSION) (defined in Version.xcconfig) in the preprocessed Info.plist.
* Use the versions defined in Version.xcconfig to set $(DYLIB_CURRENT_VERSION).
* Configurations/Base.xcconfig: Added.
* Configurations/DebugRelease.xcconfig: Added.
* Configurations/JavaScriptGlue.xcconfig: Added.
* Configurations/Version.xcconfig: Added.
* Info.plist:
* JavaScriptGlue.xcodeproj/project.pbxproj:
=== Safari-5522.4 ===
2007-03-12 Geoffrey Garen <ggaren@apple.com>
Reviewed by Oliver Hunt.
Updated in light of fix for <rdar://problem/4681051> Installer crashes
in KJS::Collector::markOtherThreadConservatively(KJS::Collector::Thread*)
trying to install iLife 06 using Rosetta on an Intel Machine
* JavaScriptGlue.cpp:
(JSLockInterpreter): Ensure backwards compatibility by calling
registerThread() when explicitly taking the JSLock. (This doesn't happen
automatically anymore.) I doubt this actally matters, but in JavaScriptGlue
territory, that kind of thinking will get you killed.
2007-03-06 Geoffrey Garen <ggaren@apple.com>
Reviewed by Maciej Stachowiak.
Fixed all known crashers exposed by run-webkit-tests --threaded while using
a PAC file (for maximum carnage). See JavaScriptCore ChangeLog for
more details.
* JSBase.cpp:
(JSBase::Release): Lock when deleting, because we may be deleting an object
(like a JSRun) that holds thread-unsafe data.
* JSUtils.cpp:
(CFStringToUString): Don't lock, because our caller locks. Also, locking
inside a function that returns thread-unsafe data by copy will only mask
threading problems.
* JavaScriptGlue.cpp:
(JSRunEvaluate): Added missing JSLock.
(JSRunCheckSyntax): Converted to JSLock.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2007-02-22 Geoffrey Garen <ggaren@apple.com>
Reviewed by Darin Adler.
Fixed <rdar://problem/4942528> Installer.app Stuck "Examining additional
volumes..."
The problem was that JavaScriptGlue held a JSObject in a static pointer
without protecting it from garbage collection.
sUserObjectPrototypeImp = new UserObjectPrototypeImp();
static ProtectedPtr<UserObjectPrototypeImp> protectPrototype; // valiant, brave, but useless
Through an interesting comedy of errors, this object would be collected
and then assigned as the prototype of another object allocated at the
same address, thus becoming its own prototype. (See http://www.ziplo.com/grandpa.htm
for further explanation of this phenomenon.) Hence the infinte loop in
property lookup.
The solution is equally humorous: all of this code was completely useless --
it only served to create an empty object in the prototype chain -- so
I just removed it.
* UserObjectImp.cpp:
(UserObjectImp::UserObjectImp):
* UserObjectImp.h:
2007-02-19 Timothy Hatcher <timothy@apple.com>
Reviewed by Geoff.
<rdar://problem/4636301> Deprecate JavaScriptGlue
* JavaScriptGlue.h: adds DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER to everything
* JavaScriptGlue.xcodeproj/project.pbxproj: use -Wno-deprecated-declarations to keep the project building
* config.h: define DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER as empty on other systems
2007-02-16 Darin Adler <darin@apple.com>
Reviewed by Anders.
- fix <rdar://problem/5000216> JavaScriptGlue framework started turning all CFNumbers
into signed 32bit values
Circumstantial evidence seems to indicate that JavaScriptGlue was depending on a bug
in CFNumber where CFNumberIsFloatType was returning true for 64-bit integer values.
* JSUtils.cpp: (JSObjectKJSValue): Removed the call to CFNumberIsFloatType in the
conversion of numeric values, and always use kCFNumberDoubleType, since double is
the internal format of numbers in JavaScriptCore. There's no value to having a
separate code path for integers. There's also no reason to check the return value
from CFNumberGetValue -- if it returns false it still does the best it can to convert
to a double, which is what we want.
* UserObjectImp.cpp: (UserObjectImp::toString): Removed a similar code path that
tried to handle integers separate from double. Instead, always use a double. For
compatibility, use a format without a decimal point when CFNumberIsFloatType returns
false. Also removed a bogus cast to float; the "%f" format string takes a double,
not a float, so all the cast did was cut down on precision.
2007-01-25 Mark Rowe <mrowe@apple.com>
Reviewed by Maciej.
* Info.plist: Update copyright string.
2006-12-19 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
<rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features
* JavaScriptGlue.xcodeproj/project.pbxproj:
=== Safari-521.26 ===
2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
Reviewed by Tim H.
Build fix: DWARF and -gfull are incompatible with symbol separation.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
Reviewed by Tim H.
http://bugs.webkit.org/show_bug.cgi?id=10394
Bug 10394: WebKit Release and Production configurations should enable dead code stripping
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
Reviewed by Tim H.
http://bugs.webkit.org/show_bug.cgi?id=10384
Bug 10384: Switch to DWARF for Release configuration
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-08-04 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Darin.
- patch for http://bugs.webkit.org/show_bug.cgi?id=10192
Make WebCore (and friends) compile with -Wshorten-64-to-32
* Adds -Wshorten-64-to-32 flag to Xcode project.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-08-03 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Darin.
- patch for http://bugs.webkit.org/show_bug.cgi?id=10176
Make WebCore compile with -Wundef
* Adds -Wundef flag to Xcode project
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-07-29 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Darin.
- patch for http://bugs.webkit.org/show_bug.cgi?id=10080
Adopt pedantic changes from the Unity project to improve
cross-compiler compatibility
Changes include:
* Turning on gcc warning for missing newline at the end of a source file
(GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
* JavaScriptGlue.xcodeproj/project.pbxproj:
=== Safari-521.19 ===
2006-07-19 Geoffrey Garen <ggaren@apple.com>
Fixed by Darin & Maciej, reviewed by me.
- Fixed <rdar://problem/4638934> Leopard 9A227: Installer crashes right
after LCA and while preparing Installation
Compile release/production with NDEBUG set, to ensure binary compatibility
between JavaScriptGlue and JavaScriptCore. In debug builds, JavaScriptCore
includes an extra debug data member in HashSet.
* JavaScriptGlue.xcodeproj/project.pbxproj:
=== Safari-521.18 ===
2006-07-15 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.
- switch property lists to be vector+set of Identifiers instead of list of References
* JSUtils.cpp:
(KJSValueToCFTypeInternal): updated for JSC SPI changes
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCopyPropertyNames): ditto
* UserObjectImp.cpp:
(UserObjectImp::getPropertyNames): ditto
* UserObjectImp.h:
=== Safari-521.17 ===
2006-07-14 Geoffrey Garen <ggaren@apple.com>
Reviewed by Maciej.
- Updated JSInterpreter to work with Interpreter ref-counting in JavaScriptCore.
(JSInterpreter::JSInterpreter::~JSInterpreter): Now protected to catch
manual delete.
2006-07-12 Anders Carlsson <acarlsson@apple.com>
Build fix
* JSUtils.cpp:
(KJSValueToCFTypeInternal):
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCopyPropertyNames):
* UserObjectImp.cpp:
(UserObjectImp::getPropertyList):
=== Safari-521.15 ===
2006-07-07 Geoffrey Garen <ggaren@apple.com>
- build fix
* JSUtils.cpp:
(KJSValueToCFTypeInternal):
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCopyPropertyNames):
2006-07-03 Geoffrey Garen <ggaren@apple.com>
Reviewed by Maciej.
* JSRun.cpp:
(JSRun::CheckSyntax): Updated to use new checkSyntax syntax in JSC.
* JavaScriptGlue.xcodeproj/project.pbxproj:
=== Safari-521.14 ===
2006-06-28 Timothy Hatcher <timothy@apple.com>
Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-06-24 David Kilzer <ddkilzer@kilzer.net>
Reviewed by Timothy.
* Info.plist: Fixed copyright to include 2003-2006.
=== JavaScriptGlue-521.13 ===
2006-06-20 Geoffrey Garen <ggaren@apple.com>
Reviewed by Anders.
- Required for JS API: Rename propList to getPropertyList and have it
take its target property list by reference so that subclasses can
add properties to the list before calling through to their superclasses.
* JSUtils.cpp:
(KJSValueToCFTypeInternal):
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCopyPropertyNames):
* UserObjectImp.cpp:
(UserObjectImp::getPropertyList):
* UserObjectImp.h:
2006-06-15 Timothy Hatcher <timothy@apple.com>
Reviewed by Geoff and Darin.
Prefer the DWARF debugging symbols format for use in Xcode 2.3.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-06-12 Geoffrey Garen <ggaren@apple.com>
Reviewed by TimO, Maciej.
- JSGlue part of merging InterpreterImp into Interpreter.
Since there's now a kjs forwarding header, I moved all forwarding
headers into a "ForwardingHeaders" directory, like in WebCore.
* ForwardingHeaders: Added.
* ForwardingHeaders/kjs: Added.
* ForwardingHeaders/kjs/ExecState.h: Added.
* ForwardingHeaders/wtf: Added.
* JavaScriptGlue.xcodeproj/project.pbxproj:
* config.h:
* wtf: Removed.
* wtf/AlwaysInline.h: Removed.
* wtf/Assertions.h: Removed.
* wtf/FastMalloc.h: Removed.
* wtf/Forward.h: Removed.
* wtf/HashCountedSet.h: Removed.
* wtf/HashSet.h: Removed.
* wtf/Noncopyable.h: Removed.
* wtf/OwnArrayPtr.h: Removed.
* wtf/OwnPtr.h: Removed.
* wtf/PassRefPtr.h: Removed.
* wtf/Platform.h: Removed.
* wtf/RefPtr.h: Removed.
* wtf/Vector.h: Removed.
=== JavaScriptGlue-521.10 ===
2006-05-09 Maciej Stachowiak <mjs@apple.com>
Rubber stamped by Anders.
- renamed kxmlcore to wtf
kxmlcore --> wtf
KXMLCore --> WTF
KXC --> WTF
* config.h:
* kxmlcore: Removed.
* kxmlcore/AlwaysInline.h: Removed.
* kxmlcore/Assertions.h: Removed.
* kxmlcore/FastMalloc.h: Removed.
* kxmlcore/Forward.h: Removed.
* kxmlcore/HashCountedSet.h: Removed.
* kxmlcore/HashSet.h: Removed.
* kxmlcore/Noncopyable.h: Removed.
* kxmlcore/OwnArrayPtr.h: Removed.
* kxmlcore/OwnPtr.h: Removed.
* kxmlcore/PassRefPtr.h: Removed.
* kxmlcore/Platform.h: Removed.
* kxmlcore/RefPtr.h: Removed.
* kxmlcore/Vector.h: Removed.
* wtf: Added.
2006-04-11 Darin Adler <darin@apple.com>
- try to fix Windows build
* kxmlcore/HashForward.h: Removed.
2006-04-10 Darin Adler <darin@apple.com>
Rubber-stamped by John Sullivan.
- added forwarding headers for the new Forward.h and HashForward.h files
* kxmlcore/Forward.h: Added.
* kxmlcore/HashForward.h: Added.
2006-04-04 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
The Debug and Release frameworks are now built with install paths relative to the build products directory.
This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-04-02 Eric Seidel <eseidel@apple.com>
Reviewed by andersca.
Add missing forwarding header.
* kxmlcore/Vector.h: Added.
2006-03-31 Geoffrey Garen <ggaren@apple.com>
Reviewed by Darin.
- Fixed <rdar://problem/4430836> JavaScript patch crashing Quartz
Composer
JSValueWrappers used to hold on to the ExecState that pertained at
the time of their creation. Since ExecStates are transient, that
design was totally bogus, and it would crash once the ExecState had
been deallocated.
Unfortunately, there's no clean solution to this problem, since
the JSGlue API has no notion of state. The solution here is to use
a shared, global ExecState for the purpose of JSGlue calls. Given
the pre-existing limitations in the JSGlue API, this design
shouldn't actually introduce any new limitations (see comments in
JSValueWrapper.cpp).
I tested with Quartz Composer and PAC files, neither of which are
layout-testable.
* JSUtils.cpp:
(KJSValueToJSObject):
* JSValueWrapper.cpp:
(JSValueWrapper::JSValueWrapper):
(JSValueWrapper::GetValue):
(getProcessGlobalExecState):
(JSValueWrapper::JSObjectCopyPropertyNames):
(JSValueWrapper::JSObjectCopyProperty):
(JSValueWrapper::JSObjectSetProperty):
(JSValueWrapper::JSObjectCallFunction):
(JSValueWrapper::JSObjectCopyCFValue):
* JSValueWrapper.h:
Also added a test harness file. It was helpful while I was testing,
and may come in handy in the future:
* JavaScriptGlue.xcodeproj/project.pbxproj:
testjsglue.cpp: Added.
2006-03-28 Darin Adler <darin@apple.com>
Reviewed by Geoff.
- added a build step that checks for init routines
* JavaScriptGlue.xcodeproj/project.pbxproj: Added a custom build phase that invokes the
check-for-global-initializers script.
2006-03-02 Maciej Stachowiak <mjs@apple.com>
Not reviewed, but I noticed these trivial extra changes were needed to avoid
breaking the build with my reviewed patch for:
http://bugs.webkit.org/show_bug.cgi?id=7387
Add config.h, includes of it, and Platform.h forwarding header.
* JSBase.cpp:
* JSObject.cpp:
* JSRun.cpp:
* JSUtils.cpp:
* JSValueWrapper.cpp:
* JavaScriptGlue.cpp:
* UserObjectImp.cpp:
* config.h: Added.
* kxmlcore/Platform.h: Added.
=== JavaScriptGlue-521.7 ===
2006-02-10 Geoffrey Garen <ggaren@apple.com>
Reviewed by eric.
- Fixed build.
* UserObjectImp.cpp:
(UserObjectImp::toPrimitive):
* UserObjectImp.h:
2006-02-03 Timothy Hatcher <timothy@apple.com>
Reviewed by Justin.
Renamed configuration names to Debug, Release and Production.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2006-02-01 Darin Adler <darin@apple.com>
- added some forwarding headers to make new JavaScriptCore changes work
* kxmlcore/Assertions.h: Added.
* kxmlcore/Noncopyable.h: Added.
* kxmlcore/OwnPtr.h: Added.
* kxmlcore/OwnArrayPtr.h: Added.
2006-01-16 Timothy Hatcher <timothy@apple.com>
Adding the license header to all files so we can
move JavaScriptGlue into the open source repository.
* LICENSE: Added.
* JSBase.cpp: license header added.
* JSBase.h: ditto.
* JSObject.cpp: ditto.
* JSObject.h: ditto.
* JSRun.cpp: ditto.
* JSRun.h: ditto.
* JSUtils.cpp: ditto.
* JSUtils.h: ditto.
* JSValueWrapper.cpp: ditto.
* JSValueWrapper.h: ditto.
* JavaScriptGlue.cpp: ditto.
* JavaScriptGlue.h: ditto.
* UserObjectImp.cpp: ditto.
* UserObjectImp.h: ditto.
2005-12-21 Timothy Hatcher <timothy@apple.com>
* JavaScriptGlue.xcodeproj/project.pbxproj:
Set tab width to 8, indent width to 4 and uses tabs to false per file.
2005-12-19 Darin Adler <darin@apple.com>
Reviewed by Geoff Garen and Eric Seidel.
- fix http://bugs.webkit.org/show_bug.cgi?id=4923
stop using <ostream> in WebCore, eliminating the <cmath> troubles it causes
* kxmlcore/AlwaysInline.h: Added.
2005-12-15 Darin Adler <darin@apple.com>
Reviewed by Maciej.
* JSRun.cpp: (JSRun::Evaluate): Updated for change to Interpreter::evaluate.
2005-12-15 Darin Adler <darin@apple.com>
Reviewed by Tim Hatcher.
* JavaScriptGlue.xcodeproj/project.pbxproj: Removed some redundant build
settings, turned off prebinding explicitly for our Development and
Deployment builds, remove .exp file from sources. All "clean-up".
=== Safari-521~5 ===
2005-12-13 Geoffrey Garen <ggaren@apple.com>
- Fixed build after Anders's last checkin to JavaScriptCore.
Reviewed by darin.
* UserObjectImp.cpp:
(UserObjectImp::userObjectGetter): Updated to reflect new argument that
getters take (unused here).
* UserObjectImp.h:
2005-12-13 Maciej Stachowiak <mjs@apple.com>
Reviewed by Eric.
- added forwarding header for HashCountedSet
* kxmlcore/HashCountedSet.h: Added.
2005-12-10 Darin Adler <darin@apple.com>
Rubber stamped by Maciej.
- updated for KJS class renaming
* many files and functions
2005-12-10 Darin Adler <darin@apple.com>
Reviewed by Maciej.
- eliminated the old Undefined(), Null(), Boolean(), Number(), and String()
Code now uses jsUndefined(), jsNull(), jsBoolean(), jsNumber(), and jsString().
* JSUtils.cpp:
(JSObjectKJSValue):
* UserObjectImp.cpp:
(UserObjectImp::callAsFunction):
(UserObjectImp::toPrimitive):
2005-12-05 Maciej Stachowiak <mjs@apple.com>
- added new forwarding headers
* kxmlcore/PassRefPtr.h: Added.
* kxmlcore/RefPtr.h: Added.
2005-12-05 Maciej Stachowiak <mjs@apple.com>
* kxmlcore/PassRefPtr.h: Added.
2005-11-26 Maciej Stachowiak <mjs@apple.com>
Rubber stamped by Eric.
- renamed InterpreterLock to JSLock
* JSUtils.cpp:
(CFStringToUString):
(JSObjectKJSValue):
(KJSValueToCFTypeInternal):
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCopyPropertyNames):
(JSValueWrapper::JSObjectCopyProperty):
(JSValueWrapper::JSObjectSetProperty):
(JSValueWrapper::JSObjectCallFunction):
(JSValueWrapper::JSObjectCopyCFValue):
* JavaScriptGlue.cpp:
(JSRunCreate):
(JSCollect):
(JSLockInterpreter):
(JSUnlockInterpreter):
* UserObjectImp.cpp:
(UserObjectImp::callAsFunction):
2005-11-16 Maciej Stachowiak <mjs@apple.com>
Reviewed by Geoff.
Updated to use new API to drop all locks.
* JavaScriptGlue.cpp:
(JSLockInterpreter):
(JSUnlockInterpreter):
* UserObjectImp.cpp:
(UserObjectImp::callAsFunction):
2005-11-14 Geoffrey Garen <ggaren@apple.com>
Reviewed by mjs.
- Part of the fix for <rdar://problem/4342216> Installer crash in
KJS::ValueImp::marked() when garbage collector runs inside call to
ConstantValues::init()
Added locking in JSRunCreate, since JSRun::JSRun constructs an object.
* JavaScriptGlue.cpp:
(JSRunCreate):
2005-11-10 Geoffrey Garen <ggaren@apple.com>
Reviewed by Maciej.
- Fixed <rdar://problem/4334445> installer crashed on my
dual g4 450Mhz after clicking language
- Reversed backwards NULL check.
- Inserted guards against NULL fJSUserObject data member.
- Cleaned up some style.
* JSUtils.cpp:
(KJSValueToCFTypeInternal):
* UserObjectImp.cpp:
(UserObjectImp::~UserObjectImp):
(UserObjectImp::callAsFunction):
(UserObjectImp::userObjectGetter):
(UserObjectImp::getOwnPropertySlot):
(UserObjectImp::put):
(UserObjectImp::mark):
2005-11-04 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
* JavaScriptGlue.xcodeproj/project.pbxproj:
Fixed the FRAMEWORK_SEARCH_PATHS to look in the WebKit
Frameworks for the Default config.
2005-11-03 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin and Vicki.
* JavaScriptGlue.xcodeproj/project.pbxproj:
Change to use $(SYSTEM_LIBRARY_DIR) consistently and place
$(NEXT_ROOT) in a few spots to make build-root work.
2005-11-01 Maciej Stachowiak <mjs@apple.com>
Reviewed by: Eric.
<rdar://problem/4324107> get JavaScriptGlue working with TOT JavaScriptCore again
- reverted all this stuff to use ReferenceList instead of IdentifierSequencedSet
* JSUtils.cpp:
(KJSValueToCFTypeInternal):
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCopyPropertyNames):
* UserObjectImp.cpp:
(UserObjectImp::propList):
* UserObjectImp.h:
2005-10-11 Timothy Hatcher <timothy@apple.com>
Setup the proper Framework search path for the Default config.
Prepping for a TOT submission and build by B&I.
* JavaScriptGlue.xcodeproj/project.pbxproj:
2005-10-10 Darin Adler <darin@apple.com>
Reviewed by Eric.
- converted tabs to spaces, NULL to 0, added some (void), got rid of __ prefixes
in headers (reserved for compiler/library)
* Info.plist:
* JSBase.cpp:
* JSBase.h:
* JSObject.cpp:
* JSObject.h:
* JSRun.cpp:
* JSRun.h:
* JSUtils.cpp:
* JSUtils.h:
* JSValueWrapper.cpp:
* JSValueWrapper.h:
* JavaScriptGlue.cpp:
* JavaScriptGlue.h:
* UserObjectImp.cpp:
* UserObjectImp.h:
2005-10-10 Darin Adler <darin@apple.com>
* .cvsignore: Added. Ignore Makefile.in and Makefile.
2005-10-07 Timothy Hatcher <timothy@apple.com>
Reviewed by Maciej.
Build fix, needed to disable RTTI. Upgraded to a native target.
* JavaScriptGlue.xcodeproj/project.pbxproj:
* Info.plist
2005-10-05 Maciej Stachowiak <mjs@apple.com>
Reviewed by Eric and Darin.
<rdar://problem/4260506> Port JavaScriptGlue to TOT JavaScriptCore
* JSRun.cpp:
(JSRun::JSRun):
(JSRun::GlobalObject):
* JSRun.h:
(JSInterpreter::JSInterpreter):
* JSUtils.cpp:
(KJSValueToJSObject):
(JSObjectKJSValue):
(KJSValueToCFTypeInternal):
(KJSValueToCFType):
* JSUtils.h:
* JSValueWrapper.cpp:
(JSValueWrapper::JSValueWrapper):
(JSValueWrapper::GetValue):
(JSValueWrapper::JSObjectCopyPropertyNames):
(JSValueWrapper::JSObjectCopyProperty):
(JSValueWrapper::JSObjectSetProperty):
(JSValueWrapper::JSObjectCallFunction):
(JSValueWrapper::JSObjectMark):
* JSValueWrapper.h:
* JavaScriptGlue.cpp:
(JSRunCopyGlobalObject):
* JavaScriptGlue.xcodeproj/project.pbxproj:
* Makefile.am: Added.
* UserObjectImp.cpp:
(UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
(UserObjectImp::UserObjectImp):
(UserObjectImp::callAsFunction):
(UserObjectImp::getPropertyNames):
(UserObjectImp::userObjectGetter):
(UserObjectImp::getOwnPropertySlot):
(UserObjectImp::put):
(UserObjectImp::toPrimitive):
(UserObjectImp::mark):
* UserObjectImp.h:
* kxmlcore/FastMalloc.h: Added.
* kxmlcore/HashSet.h: Added.
2005-09-14 Maciej Stachowiak <mjs@apple.com>
Reviewed by Geoff.
- fixed <rdar://problem/4214783> REGRESSION: kjs_fast_malloc crash due to lack of locking on multiple threads (seen selecting volumes in the installer)
Make sure to lock using the InterpreterLock class in all places that need it
(including anything that uses the collector, the parser, the protect count hash table,
and anything that allocates via fast_malloc).
* JSUtils.cpp:
(CFStringToUString):
(JSObjectKJSValue):
(KJSValueToCFTypeInternal):
* JSUtils.h:
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCopyPropertyNames):
(JSValueWrapper::JSObjectCopyProperty):
(JSValueWrapper::JSObjectSetProperty):
(JSValueWrapper::JSObjectCallFunction):
(JSValueWrapper::JSObjectCopyCFValue):
* JavaScriptGlue.cpp:
(JSCollect):
2005-09-27 Adele Peterson <adele@apple.com>
Reviewed by Maciej.
<rdar://problem/4223297> JavaScriptGlue: Submit 64-bit compatible versions of your API and SPIs by September 15
* JavaScriptGlue.h: Changed UInt32 to CFTypeID for JSTypeID
2005-09-06 Geoffrey Garen <ggaren@apple.com>
-upgraded project files to XCode 2.1
* JavaScriptGlue.pbproj/project.pbxproj: Removed.
* JavaScriptGlue.xcodeproj/.cvsignore: Added.
* JavaScriptGlue.xcodeproj/project.pbxproj: Added.
2005-09-01 Maciej Stachowiak <mjs@apple.com>
Rubber stamped by hyatt.
- initial import of JavaScriptGlue into our repository
* English.lproj/InfoPlist.strings: Added.
* JSBase.cpp: Added.
(JSBase::JSBase):
(JSBase::~JSBase):
(JSBase::Retain):
(JSBase::Release):
(JSBase::RetainCount):
(JSBase::GetTypeID):
(JSBase::CopyDescription):
(JSBase::Equal):
* JSBase.h: Added.
* JSObject.cpp: Added.
(JSUserObject::JSUserObject):
(JSUserObject::~JSUserObject):
(JSUserObject::CopyPropertyNames):
(JSUserObject::CopyProperty):
(JSUserObject::SetProperty):
(JSUserObject::ImplementsCall):
(JSUserObject::CallFunction):
(JSUserObject::CopyCFValue):
(JSUserObject::Equal):
(JSUserObject::Mark):
(JSUserObject::GetData):
* JSObject.h: Added.
(JSUserObject::DataType):
* JSRun.cpp: Added.
(JSRun::JSRun):
(JSRun::~JSRun):
(JSRun::Flags):
(JSRun::GetSource):
(JSRun::GlobalObject):
(JSRun::GetInterpreter):
(JSRun::Evaluate):
(JSRun::CheckSyntax):
* JSRun.h: Added.
(JSInterpreter::JSInterpreter):
(JSInterpreter::JSInterpreter::~JSInterpreter):
(JSInterpreter::Flags):
* JSUtils.cpp: Added.
(CFStringToUString):
(UStringToCFString):
(CFStringToIdentifier):
(IdentifierToCFString):
(KJSValueToJSObject):
(JSObjectKJSValue):
(KJSValueToCFTypeInternal):
(KJSValueToCFType):
(GetCFNull):
* JSUtils.h: Added.
(RetainCFType):
(ReleaseCFType):
* JSValueWrapper.cpp: Added.
(JSValueWrapper::JSValueWrapper):
(JSValueWrapper::~JSValueWrapper):
(JSValueWrapper::GetValue):
(JSValueWrapper::GetExecState):
(JSValueWrapper::GetJSObectCallBacks):
(JSValueWrapper::JSObjectDispose):
(JSValueWrapper::JSObjectCopyPropertyNames):
(JSValueWrapper::JSObjectCopyProperty):
(JSValueWrapper::JSObjectSetProperty):
(JSValueWrapper::JSObjectCallFunction):
(JSValueWrapper::JSObjectCopyCFValue):
(JSValueWrapper::JSObjectMark):
* JSValueWrapper.h: Added.
* JavaScriptGlue.cpp: Added.
(JSSetCFNull):
(JSGetCFNull):
(JSRetain):
(JSRelease):
(JSCopyDescription):
(JSEqual):
(JSGetTypeID):
(JSGetRetainCount):
(JSObjectCreate):
(JSObjectCreateInternal):
(JSObjectCopyCFValue):
(JSObjectGetData):
(JSObjectCopyProperty):
(JSObjectSetProperty):
(JSObjectCallFunction):
(JSRunCreate):
(JSRunCopySource):
(JSRunCopyGlobalObject):
(JSRunEvaluate):
(JSRunCheckSyntax):
(JSCollect):
(JSTypeGetCFArrayCallBacks):
(JSCFRetain):
(JSCFRelease):
(JSObjectCreateWithCFType):
(CFJSObjectDispose):
(JSObjectCopyPropertyNames):
(CFJSObjectCopyProperty):
(CFJSObjectSetProperty):
(CFJSObjectCopyCFValue):
(CFJSObjectEqual):
(CFJSObjectCopyPropertyNames):
(JSCreateCFArrayFromJSArray):
(JSCreateJSArrayFromCFArray):
(JSLockInterpreter):
(JSUnlockInterpreter):
* JavaScriptGlue.exp: Added.
* JavaScriptGlue.h: Added.
* JavaScriptGlue.pbproj/project.pbxproj: Added.
* UserObjectImp.cpp: Added.
(UserObjectPrototypeImp::UserObjectPrototypeImp):
(UserObjectPrototypeImp::GlobalUserObjectPrototypeImp):
(UserObjectImp::UserObjectImp):
(UserObjectImp::~UserObjectImp):
(UserObjectImp::classInfo):
(UserObjectImp::implementsCall):
(UserObjectImp::call):
(UserObjectImp::propList):
(UserObjectImp::hasProperty):
(UserObjectImp::get):
(UserObjectImp::put):
(UserObjectImp::GetJSUserObject):
(UserObjectImp::toPrimitive):
(UserObjectImp::toBoolean):
(UserObjectImp::toNumber):
(UserObjectImp::toString):
(UserObjectImp::mark):
* UserObjectImp.h: Added.
|