Comment: | runtime: Specify m68k registers for most functions |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2d8aa8b1e652cc87796e9ca2cd8860a2 |
User & Date: | js on 2018-04-29 19:26:23 |
Other Links: | manifest | tags |
2018-04-29
| ||
20:27 | runtime: Add glue functions for Amiga library check-in: 4c72b5544f user: js tags: trunk | |
19:26 | runtime: Specify m68k registers for most functions check-in: 2d8aa8b1e6 user: js tags: trunk | |
18:41 | Build Amiga library on AmigaOS 3 check-in: d739fadf58 user: js tags: trunk | |
Modified src/runtime/Makefile from [2422525d6a] to [bedf1cf816].
︙ | |||
43 44 45 46 47 48 49 | 43 44 45 46 47 48 49 50 51 52 | - + | --clib protos.h \ --inline $@ CPPFLAGS += -I. -I.. -I../.. \ -DOF_COMPILING_OBJFW_RT \ -DOBJFW_RT_LIB_MAJOR=${OBJFW_RT_LIB_MAJOR} \ -DOBJFW_RT_LIB_MINOR=${OBJFW_RT_LIB_MINOR} |
Modified src/runtime/ObjFW_RT.fd from [50739d3a7f] to [d70fc3dd9b].
︙ | |||
17 18 19 20 21 22 23 | 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 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | objc_sync_exit_inline()(sysv,r12base) objc_getProperty_inline()(sysv,r12base) objc_setProperty_inline()(sysv,r12base) objc_getPropertyStruct_inline()(sysv,r12base) objc_setPropertyStruct_inline()(sysv,r12base) objc_enumerationMutation_inline()(sysv,r12base) * Functions declared in ObjFW_RT.h |
Modified src/runtime/ObjFW_RT.h from [2b0b102111] to [ab282aaff9].
︙ | |||
59 60 61 62 63 64 65 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - + | #define NO false #if defined(__amigaos__) && !defined(__MORPHOS__) && !defined(__amigaos4__) # define OBJC_M68K_REG(reg) __asm__(reg) #else # define OBJC_M68K_REG(reg) #endif |
︙ | |||
217 218 219 220 221 222 223 | 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 | - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + - - + + | long count; Protocol *__unsafe_unretained _Nonnull list[1]; }; #ifdef __cplusplus extern "C" { #endif |
︙ |
Modified src/runtime/amiga-library.m from [d7ad72af48] to [27909fb1e5].
︙ | |||
120 121 122 123 124 125 126 | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | - + | static BPTR lib_null(void) { return 0; } static void |
︙ |
Modified src/runtime/arc.m from [50f4a977be] to [13e9a659c3].
︙ | |||
265 266 267 268 269 270 271 | 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | - + | #ifdef OF_HAVE_THREADS if (!of_spinlock_unlock(&spinlock)) OBJC_ERROR("Failed to unlock spinlock!") #endif } void |
︙ |
Modified src/runtime/class.m from [8659e5eda9] to [8d78186ef9].
︙ | |||
415 416 417 418 419 420 421 | 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 | - + + + | cls->info |= OBJC_CLASS_INFO_LOADED; } process_load_queue(); } Class |
︙ | |||
449 450 451 452 453 454 455 | 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 | - + | metaclass->instance_size = (superclass != Nil ? superclass->isa->instance_size : 0) + (long)extra_bytes; return cls; } void |
︙ | |||
526 527 528 529 530 531 532 | 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 | - + + | Class objc_get_class(const char *name) { return objc_getRequiredClass(name); } unsigned int |
︙ | |||
566 567 568 569 570 571 572 | 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 | - + | objc_global_mutex_unlock(); return j; } Class * |
︙ | |||
590 591 592 593 594 595 596 | 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 | - + - + - + - + - + + | objc_global_mutex_unlock(); return ret; } bool |
︙ | |||
650 651 652 653 654 655 656 | 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | - + + | return NULL; dummy.isa = cls; return objc_msg_lookup((id)&dummy, sel); } IMP |
︙ | |||
717 718 719 720 721 722 723 | 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 | - + + | cls->methodlist = ml; objc_update_dtable(cls); } const char * |
︙ | |||
741 742 743 744 745 746 747 | 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 | - + + - + + | if (cls->superclass != Nil) return class_getMethodTypeEncoding(cls->superclass, sel); return NULL; } bool |
︙ | |||
781 782 783 784 785 786 787 | 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 | - + - + - + | objc_global_mutex_unlock(); return oldimp; } Class |
︙ |
Modified src/runtime/exception.m from [5d641d7c4e] to [f8288a7f27].
︙ | |||
755 756 757 758 759 760 761 | 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 | - + + | uncaught_exception_handler != NULL) uncaught_exception_handler(object); OBJC_ERROR("_Unwind_RaiseException() returned!") } objc_uncaught_exception_handler |
︙ |
Modified src/runtime/lookup.m from [107b957fe8] to [61e54bb565].
︙ | |||
113 114 115 116 117 118 119 | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | - + + - + + | objc_method_not_found_stret(id obj, SEL sel) { return common_method_not_found(obj, sel, objc_msg_lookup_stret, forward_handler_stret); } void |
︙ |
Modified src/runtime/misc.m from [c235fc1cd0] to [938c4e7c92].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 | - + + | if (enumeration_mutation_handler != NULL) enumeration_mutation_handler(obj); else OBJC_ERROR("Object was mutated during enumeration!"); } void |
Modified src/runtime/private.h from [376e4a974e] to [3320990765].
︙ | |||
130 131 132 133 134 135 136 | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | - + | } *_Nonnull buckets[256]; #else IMP _Nullable buckets[256]; #endif } *_Nonnull buckets[256]; }; |
︙ |
Modified src/runtime/protocol.m from [373c118537] to [17dd02bdde].
︙ | |||
22 23 24 25 26 27 28 | 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 | - + - + + - + + - + + | #import "ObjFW_RT.h" #import "private.h" @implementation Protocol @end const char * |
︙ |
Modified src/runtime/selector.m from [c1a16c1dcc] to [7ee8175e8f].
︙ | |||
65 66 67 68 69 70 71 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - + | rsel->uid = selectors_cnt++; objc_hashtable_set(selectors, name, rsel); objc_sparsearray_set(selector_names, (uint32_t)rsel->uid, (void *)name); } SEL |
︙ | |||
112 113 114 115 116 117 118 | 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 | - + - + | return; for (sel = symtab->sel_refs; sel->name != NULL; sel++) objc_register_selector(sel); } const char * |
︙ |