Quick question: is there a way to redefine a function?
I'm JITing up my interpreter and i'd like to be able to redefine existing functions.
Is there a way to drop or shadow one function without dropping entire JIT engine?
And while I'm asking, am I right that in case compilation aborts early i need to clear context before trying to compile again?
I've found an answer: it's JITModule.prepare_for_function_redefine
Ivan Chinenov has marked this topic as resolved.
Ivan Chinenov said:
And while I'm asking, am I right that in case compilation aborts early i need to clear context before trying to compile again?
If you are refering to cranelift_codegen::context::Context
, then yes.
Last updated: Nov 22 2024 at 16:03 UTC