summaryrefslogtreecommitdiff
path: root/src/jit/disasm.h
diff options
context:
space:
mode:
authorMike Danes <onemihaid@hotmail.com>2017-10-15 10:08:59 +0300
committerMike Danes <onemihaid@hotmail.com>2017-10-15 15:07:02 +0300
commit4df97f6e98426a8f5195360a05feb9fef8aaaa4a (patch)
tree63b651a16782651da187152b7f8b08c3e76f4e24 /src/jit/disasm.h
parentecb0c3d94c9a4eb619e466a6239255ca91b14f52 (diff)
downloadcoreclr-4df97f6e98426a8f5195360a05feb9fef8aaaa4a.tar.gz
coreclr-4df97f6e98426a8f5195360a05feb9fef8aaaa4a.tar.bz2
coreclr-4df97f6e98426a8f5195360a05feb9fef8aaaa4a.zip
Copy ExpandArray and SimplerHashTable to JIT's sources
These need to be modified to work directly with JIT's allocator(s) instead of going through IAllocator. It may also be useful to adjust these to account for the fact that the JIT never releases memory. Besides, the JIT is the primary user of these classes - only ExpandArray(Stack) isn't used anywhere else and SimplerHashTable's only other user is the gcinfo library. Renamed headers and classes to avoid potential conflicts with the old ones. Also made the JIT's hash table behavior the default to avoid the need to specify it in hash table instantiations.
Diffstat (limited to 'src/jit/disasm.h')
-rw-r--r--src/jit/disasm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jit/disasm.h b/src/jit/disasm.h
index 972243e4dc..e3981c1d6e 100644
--- a/src/jit/disasm.h
+++ b/src/jit/disasm.h
@@ -68,9 +68,8 @@ struct SizeTKeyFuncs : SmallPrimitiveKeyFuncs<T>
};
#endif // _HOST_64BIT_
-typedef SimplerHashTable<size_t, SizeTKeyFuncs<size_t>, CORINFO_METHOD_HANDLE, JitSimplerHashBehavior>
- AddrToMethodHandleMap;
-typedef SimplerHashTable<size_t, SizeTKeyFuncs<size_t>, size_t, JitSimplerHashBehavior> AddrToAddrMap;
+typedef JitHashTable<size_t, SizeTKeyFuncs<size_t>, CORINFO_METHOD_HANDLE> AddrToMethodHandleMap;
+typedef JitHashTable<size_t, SizeTKeyFuncs<size_t>, size_t> AddrToAddrMap;
class Compiler;