2 * Copyright (C) 2008 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * Utility functions related to "dexopt".
19 #ifndef _LIBDEX_OPTINVOCATION
20 #define _LIBDEX_OPTINVOCATION
31 * Utility routines, used by the VM.
33 char* dexOptGenerateCacheFileName(const char* fileName,
34 const char* subFileName);
35 int dexOptCreateEmptyHeader(int fd);
37 /* some flags that get passed through to "dexopt" command */
38 #define DEXOPT_OPT_ENABLED (1)
39 #define DEXOPT_OPT_ALL (1 << 1)
40 #define DEXOPT_VERIFY_ENABLED (1 << 2)
41 #define DEXOPT_VERIFY_ALL (1 << 3)
42 #define DEXOPT_IS_BOOTSTRAP (1 << 4)
43 #define DEXOPT_GEN_REGISTER_MAP (1 << 5)
50 #endif /*_LIBDEX_OPTINVOCATION*/