Refactor Utilcode's IAllocators.
authorPat Gavlin <pagavlin@microsoft.com>
Thu, 3 Mar 2016 19:51:59 +0000 (11:51 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Thu, 3 Mar 2016 19:51:59 +0000 (11:51 -0800)
commite2df0fdbfaa688de075f020a1bf59e30fffe9fb9
tree5611fcf0839efa44e52bff4d18a58eed852329b4
parenta70b732323b8be45a80fcd1488d60c7baa9ab0a3
Refactor Utilcode's IAllocators.

- `DefaultAllocator` has been replaced with `HostAllocator` in RyuJIT, which
  uses the JIT hosting interface to allocate and free memory.
- The definition of `DefaultAllocator` has been moved into its own file, as it
  remains in use by the interpreter and the binder.
- `ProcessHeapAllocator` has been moved into JIT32, as that was its only
  remaining user.
- `AllowZeroAllocator`'s static field has been changed to an instance field
  to avoid the need to define storage for the static field in Utilcode.

[tfs-changeset: 1581242]
12 files changed:
src/inc/iallocator.h
src/inc/simplerhash.inl
src/jit/CMakeLists.txt
src/jit/compiler.cpp
src/jit/ee_il_dll.cpp
src/jit/ee_il_dll.hpp
src/jit/emit.cpp
src/jit/hostallocator.cpp [new file with mode: 0644]
src/jit/hostallocator.h [new file with mode: 0644]
src/jit/jit.settings.targets
src/utilcode/iallocator.cpp
src/vm/interpreter.cpp