Jit: Make IsInCodeSpace() const

This commit is contained in:
Lioncash committed 2015-06-04 20:52:53 -04:00
1 parent 4f276ede0f
commit fe77505d4d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ public:
region_size = 0;
}
bool IsInSpace(u8 *ptr)
bool IsInSpace(u8 *ptr) const
{
return (ptr >= region) && (ptr < (region + region_size));
}
+1 -1
View File
@@ -35,7 +35,7 @@ public:
JitBaseBlockCache *GetBlockCache() { return &blocks; }
bool IsInCodeSpace(u8 *ptr) { return IsInSpace(ptr); }
bool IsInCodeSpace(u8 *ptr) const { return IsInSpace(ptr); }
bool HandleFault(uintptr_t access_address, SContext* ctx) override;