blob: d2eaf8e153c082dfb4eb1a8e70a2893b64045f76 [file] [log] [blame]
Elliott Hughes2faa5f12012-01-30 14:42:07 -08001/*
2 * Copyright (C) 2011 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 */
Ian Rogers9651f422011-09-19 20:26:07 -070016
Brian Carlstromfc0e3212013-07-17 14:40:12 -070017#ifndef ART_RUNTIME_ASM_SUPPORT_H_
18#define ART_RUNTIME_ASM_SUPPORT_H_
Ian Rogers9651f422011-09-19 20:26:07 -070019
Ian Rogers4b07f172013-02-07 08:29:42 -080020// Value loaded into rSUSPEND for quick. When this value is counted down to zero we do a suspend
21// check.
Ian Rogers4a510d82011-10-09 14:30:24 -070022#define SUSPEND_CHECK_INTERVAL (1000)
23
Ian Rogersd9c4fc92013-10-01 19:45:43 -070024// Offsets within java.lang.Object.
25#define LOCK_WORD_OFFSET 4
26
Ian Rogers4b07f172013-02-07 08:29:42 -080027// Offsets within java.lang.String.
buzbeefc9e6fa2012-03-23 15:14:29 -070028#define STRING_VALUE_OFFSET 8
29#define STRING_COUNT_OFFSET 12
30#define STRING_OFFSET_OFFSET 20
31#define STRING_DATA_OFFSET 12
32
Jeff Haoaa4a7932013-05-13 11:28:27 -070033// Offset of field Method::entry_point_from_compiled_code_
34#define METHOD_CODE_OFFSET 40
Jeff Hao5d917302013-02-27 17:57:33 -080035
Brian Carlstromfc0e3212013-07-17 14:40:12 -070036#endif // ART_RUNTIME_ASM_SUPPORT_H_