1 /* 2 * Copyright (C) 2012 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 18 19 #ifndef _DALVIK_NCG_AOT 20 #define _DALVIK_NCG_AOT 21 int ncgAppGetEIP(); 22 int get_eip_API(); 23 int invokeInterpreter(bool fromApp); 24 int invokeNcg(bool fromApp); 25 int jumpToInterpNoChain(); 26 int jumpToInterpPunt(); 27 int jumpToExceptionThrown(int exceptionNum); 28 void callFuncPtr(int funcPtr, const char* funcName); 29 int call_helper_API(const char* helperName); 30 int conditional_jump_global_API( 31 ConditionCode cc, const char* target, 32 bool isShortTerm); 33 int unconditional_jump_global_API( 34 const char* target, bool isShortTerm); 35 int load_imm_global_data_API(const char* dataName, 36 OpndSize size, 37 int reg, bool isPhysical); 38 int load_global_data_API(const char* dataName, 39 OpndSize size, 40 int reg, bool isPhysical); 41 int load_sd_global_data_API(const char* dataName, 42 int reg, bool isPhysical); 43 int load_fp_stack_global_data_API(const char* dataName, 44 OpndSize size); 45 #endif 46 47