Displaying 2 results from an estimated 2 matches for "isamethod".
2005 Oct 29
0
[LLVMdev] "Bound Methods" in LLVM Bytecode
...ith
> the arguments occurs. As far as can tell, this forces an implementation to
> create BoundMethod objects that wrap the actual method calls. The question
> is, how can I implement this efficiently, ideally using LLVM?
Okay. One simple option would be to insert code like this:
if (isamethod(functionObject))
functionObject->functionPointer(a)
else
functionObject->functionPointer()
> My idea is to add a NULL pointer as the first parameter to all function
> calls. "Normal" functions would ignore it, but methods would look at the
> first parameter to find...
2005 Oct 28
3
[LLVMdev] "Bound Methods" in LLVM Bytecode
Hello,
I have been thinking about efficient implementation of dynamically typed
languages in my spare time. Specifically, I'm working on a toy
implementation of a tiny piece of Python using LLVM as a native code
generating JIT. I've run into a bit of an issue, involving how Python
deals with method calls. I'm not sure how/if I can implement this in
LLVM. In Python, the following