/*
 * Copyright (C) 2016 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#if defined(DEFINE_INCLUDE_DEPENDENCIES)
#include "mirror/dex_cache.h"   // art::mirror::DexCache, StringDexCachePair
#endif

DEFINE_EXPR(STRING_DEX_CACHE_ELEMENT_SIZE_SHIFT,       int32_t,
    art::WhichPowerOf2(sizeof(art::mirror::StringDexCachePair)))
DEFINE_EXPR(STRING_DEX_CACHE_SIZE_MINUS_ONE,           int32_t,
    art::mirror::DexCache::kDexCacheStringCacheSize - 1)
DEFINE_EXPR(STRING_DEX_CACHE_HASH_BITS,                int32_t,
    art::LeastSignificantBit(art::mirror::DexCache::kDexCacheStringCacheSize))
DEFINE_EXPR(STRING_DEX_CACHE_ELEMENT_SIZE,             int32_t,
    sizeof(art::mirror::StringDexCachePair))
DEFINE_EXPR(METHOD_DEX_CACHE_SIZE_MINUS_ONE,           int32_t,
    art::mirror::DexCache::kDexCacheMethodCacheSize - 1)
DEFINE_EXPR(METHOD_DEX_CACHE_HASH_BITS,                int32_t,
    art::LeastSignificantBit(art::mirror::DexCache::kDexCacheMethodCacheSize))
