1/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#if ASM_DEFINE_INCLUDE_DEPENDENCIES
18#include "lock_word.h"
19#endif
20
21ASM_DEFINE(LOCK_WORD_GC_STATE_MASK_SHIFTED,
22           art::LockWord::kGCStateMaskShifted)
23ASM_DEFINE(LOCK_WORD_GC_STATE_MASK_SHIFTED_TOGGLED,
24           art::LockWord::kGCStateMaskShiftedToggled)
25ASM_DEFINE(LOCK_WORD_GC_STATE_SHIFT,
26           art::LockWord::kGCStateShift)
27ASM_DEFINE(LOCK_WORD_GC_STATE_SIZE,
28           art::LockWord::kGCStateSize)
29ASM_DEFINE(LOCK_WORD_MARK_BIT_MASK_SHIFTED,
30           art::LockWord::kMarkBitStateMaskShifted)
31ASM_DEFINE(LOCK_WORD_MARK_BIT_SHIFT,
32           art::LockWord::kMarkBitStateShift)
33ASM_DEFINE(LOCK_WORD_READ_BARRIER_STATE_MASK,
34           art::LockWord::kReadBarrierStateMaskShifted)
35ASM_DEFINE(LOCK_WORD_READ_BARRIER_STATE_MASK_TOGGLED,
36           art::LockWord::kReadBarrierStateMaskShiftedToggled)
37ASM_DEFINE(LOCK_WORD_READ_BARRIER_STATE_SHIFT,
38           art::LockWord::kReadBarrierStateShift)
39ASM_DEFINE(LOCK_WORD_STATE_FORWARDING_ADDRESS,
40           art::LockWord::kStateForwardingAddress)
41ASM_DEFINE(LOCK_WORD_STATE_FORWARDING_ADDRESS_OVERFLOW,
42           art::LockWord::kStateForwardingAddressOverflow)
43ASM_DEFINE(LOCK_WORD_STATE_FORWARDING_ADDRESS_SHIFT,
44           art::LockWord::kForwardingAddressShift)
45ASM_DEFINE(LOCK_WORD_STATE_MASK_SHIFTED,
46           art::LockWord::kStateMaskShifted)
47ASM_DEFINE(LOCK_WORD_STATE_SHIFT,
48           art::LockWord::kStateShift)
49ASM_DEFINE(LOCK_WORD_THIN_LOCK_COUNT_MASK_SHIFTED,
50           art::LockWord::kThinLockCountMaskShifted)
51ASM_DEFINE(LOCK_WORD_THIN_LOCK_COUNT_ONE,
52           art::LockWord::kThinLockCountOne)
53ASM_DEFINE(LOCK_WORD_THIN_LOCK_COUNT_SHIFT,
54           art::LockWord::kThinLockCountShift)
55ASM_DEFINE(LOCK_WORD_THIN_LOCK_COUNT_SIZE,
56           art::LockWord::kThinLockCountSize)
57ASM_DEFINE(LOCK_WORD_THIN_LOCK_OWNER_MASK_SHIFTED,
58           art::LockWord::kThinLockOwnerMaskShifted)
59