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