• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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  */
16 
17 #ifndef ART_RUNTIME_ASM_SUPPORT_H_
18 #define ART_RUNTIME_ASM_SUPPORT_H_
19 
20 // Value loaded into rSUSPEND for quick. When this value is counted down to zero we do a suspend
21 // check.
22 #define SUSPEND_CHECK_INTERVAL (1000)
23 
24 // Offsets within java.lang.String.
25 #define STRING_VALUE_OFFSET 8
26 #define STRING_COUNT_OFFSET 12
27 #define STRING_OFFSET_OFFSET 20
28 #define STRING_DATA_OFFSET 12
29 
30 // Offset of field Method::entry_point_from_compiled_code_
31 #define METHOD_CODE_OFFSET 40
32 
33 #endif  // ART_RUNTIME_ASM_SUPPORT_H_
34