mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Update the stub and callback code to handle lazy compilation. The stub
is re-written by the callback to branch directly to the compiled code in future invocations. Added back in range-based memory permission functions for the updating of the stub on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -79,6 +79,14 @@ namespace sys {
|
||||
/// to mark a block of code as RW since the protections are on page
|
||||
/// boundaries, and the JIT internal allocations are not page aligned.
|
||||
static bool setWritable (MemoryBlock &M, std::string *ErrMsg = 0);
|
||||
|
||||
/// setRangeExecutable - Mark the page containing a range of addresses
|
||||
/// as executable.
|
||||
static bool setRangeExecutable(const void *Addr, size_t Size);
|
||||
|
||||
/// setRangeWritable - Mark the page containing a range of addresses
|
||||
/// as writable.
|
||||
static bool setRangeWritable(const void *Addr, size_t Size);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user