diff options
author | Mike Danes <onemihaid@hotmail.com> | 2017-10-15 10:08:59 +0300 |
---|---|---|
committer | Mike Danes <onemihaid@hotmail.com> | 2017-10-15 15:07:02 +0300 |
commit | 4df97f6e98426a8f5195360a05feb9fef8aaaa4a (patch) | |
tree | 63b651a16782651da187152b7f8b08c3e76f4e24 /src/jit/assertionprop.cpp | |
parent | ecb0c3d94c9a4eb619e466a6239255ca91b14f52 (diff) | |
download | coreclr-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/assertionprop.cpp')
-rw-r--r-- | src/jit/assertionprop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jit/assertionprop.cpp b/src/jit/assertionprop.cpp index ed49e841ea..a6bc3b7308 100644 --- a/src/jit/assertionprop.cpp +++ b/src/jit/assertionprop.cpp @@ -509,7 +509,7 @@ void Compiler::optAddCopies() ASSERT_TP& Compiler::GetAssertionDep(unsigned lclNum) { - ExpandArray<ASSERT_TP>& dep = *optAssertionDep; + JitExpandArray<ASSERT_TP>& dep = *optAssertionDep; if (dep[lclNum] == nullptr) { dep[lclNum] = BitVecOps::MakeEmpty(apTraits); @@ -559,7 +559,7 @@ void Compiler::optAssertionInit(bool isLocalProp) if (optAssertionDep == nullptr) { - optAssertionDep = new (this, CMK_AssertionProp) ExpandArray<ASSERT_TP>(getAllocator(), max(1, lvaCount)); + optAssertionDep = new (this, CMK_AssertionProp) JitExpandArray<ASSERT_TP>(getAllocator(), max(1, lvaCount)); } optAssertionTraitsInit(optMaxAssertionCount); |