Displaying 6 results from an estimated 6 matches for "objc_registerclasspair".
2018 Feb 15
2
Is it possible to execute Objective-C code via LLVM JIT?
...r less standard and so work
> with all runtime implementations, not just the Apple one. I was using them
> for JIT’d code on macOS and FreeBSD 10 years ago.
> >
> > Which methods are you referring to? For example of class registration,
> > do you mean objc_allocateClassPair/objc_registerClassPair or something
> > else?
>
> Yes, those set of APIs. They provide an interface for building classes,
> protocols, and so on.
>
> >>> One year ago you said you could help anyone interested in working on
> >>> this. Let me check here again as a volunteer (if t...
2018 Apr 06
0
Is it possible to execute Objective-C code via LLVM JIT?
...untime classes.
2) I iterate over __objc_selrefs sections and fixup selectors. This
does fix the original crash of this thread.
3) I iterate over __objc_classlist sections and register the new
classes using objc_allocateClassPair function, register the properties
and ivars to these new classes, run objc_registerClassPair to complete
the registration. (I still have to implement the protocol
registration)
4) I iterate over __objc_classrefs and __objc_superrefs and fix up the
class pointers with the new classes created at step 2.
5) I iterate over __objc_classlist and fix up its classes with the new
classes created at...
2018 May 03
2
Is it possible to execute Objective-C code via LLVM JIT?
...iterate over __objc_selrefs sections and fixup selectors. This
> does fix the original crash of this thread.
> 3) I iterate over __objc_classlist sections and register the new
> classes using objc_allocateClassPair function, register the properties
> and ivars to these new classes, run objc_registerClassPair to complete
> the registration. (I still have to implement the protocol
> registration)
> 4) I iterate over __objc_classrefs and __objc_superrefs and fix up the
> class pointers with the new classes created at step 2.
> 5) I iterate over __objc_classlist and fix up its classes with t...
2018 Feb 14
3
Is it possible to execute Objective-C code via LLVM JIT?
...d. They are also more or less standard and so work with all runtime implementations, not just the Apple one. I was using them for JIT’d code on macOS and FreeBSD 10 years ago.
>
> Which methods are you referring to? For example of class registration,
> do you mean objc_allocateClassPair/objc_registerClassPair or something
> else?
Yes, those set of APIs. They provide an interface for building classes, protocols, and so on.
>>> One year ago you said you could help anyone interested in working on
>>> this. Let me check here again as a volunteer (if this work can ever be
>>>...
2018 Feb 13
0
Is it possible to execute Objective-C code via LLVM JIT?
...even documented. They are also more or less standard and so work with all runtime implementations, not just the Apple one. I was using them for JIT’d code on macOS and FreeBSD 10 years ago.
Which methods are you referring to? For example of class registration,
do you mean objc_allocateClassPair/objc_registerClassPair or something
else?
>> One year ago you said you could help anyone interested in working on
>> this. Let me check here again as a volunteer (if this work can ever be
>> accomplished by someone outside Apple).
>
> As I said in the earlier thread, the best way of doing this is...
2018 Feb 13
2
Is it possible to execute Objective-C code via LLVM JIT?
On 12 Feb 2018, at 22:31, Stanislav Pankevich via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Specifically I explored the latest objc4-723
> from Apple Open Source and it looks like all of the APIs that allow
> the registration of Objective-C classes, selectors, etc. are all very
> private.
The Objective-C runtime provides public APIs for doing all of this. They’re