| 1 | // |
|---|---|
| 2 | // Copyright (c) Microsoft. All rights reserved. |
| 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 4 | // |
| 5 | |
| 6 | #include "standardpch.h" |
| 7 | #include "runtimedetails.h" |
| 8 | #include "spmiutil.h" |
| 9 | #include "jithost.h" |
| 10 | |
| 11 | JitHost* g_ourJitHost; |
| 12 | |
| 13 | JitHost::JitHost(ICorJitHost* wrappedHost) : wrappedHost(wrappedHost) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | void* JitHost::allocateMemory(size_t size) |
| 18 | { |
| 19 | return wrappedHost->allocateMemory(size); |
| 20 | } |
| 21 | |
| 22 | void JitHost::freeMemory(void* block) |
| 23 | { |
| 24 | return wrappedHost->freeMemory(block); |
| 25 | } |
| 26 | |
| 27 | int JitHost::getIntConfigValue(const wchar_t* key, int defaultValue) |
| 28 | { |
| 29 | return wrappedHost->getIntConfigValue(key, defaultValue); |
| 30 | } |
| 31 | |
| 32 | const wchar_t* JitHost::getStringConfigValue(const wchar_t* key) |
| 33 | { |
| 34 | return wrappedHost->getStringConfigValue(key); |
| 35 | } |
| 36 | |
| 37 | void JitHost::freeStringConfigValue(const wchar_t* value) |
| 38 | { |
| 39 | wrappedHost->freeStringConfigValue(value); |
| 40 | } |
| 41 |