diff options
author | Dong-Yuan Chen <dong-yuan.chen@intel.com> | 2012-07-03 13:13:07 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-07-20 12:27:18 -0700 |
commit | 0c2dc522d0e120f346cf0a40c8cf0c93346131c2 (patch) | |
tree | f7ca4c8e3ca1150b7e8c5f4b68c60972641dc77f /vm/compiler/codegen/x86/CalloutHelper.h | |
parent | abede656a1f2330e3d31281fb208be7c04e8eb56 (diff) | |
download | android_dalvik-0c2dc522d0e120f346cf0a40c8cf0c93346131c2.tar.gz android_dalvik-0c2dc522d0e120f346cf0a40c8cf0c93346131c2.tar.bz2 android_dalvik-0c2dc522d0e120f346cf0a40c8cf0c93346131c2.zip |
[X86] X86 trace JIT compiler support
This patch provides a fully functional x86 trace JIT compiler for Dalvik
VM. It is built on top of the existing x86 fast interpreter
with bug fixes and needed extension to support trace JIT interface. The
x86 trace JIT code generator was developed independent of the existing
template-based code generator and thus does not share exactly the same
infrastructure. Included in this patch are:
* Deprecated and removed the x86-atom fast interpreter that is no
longer functional since ICS.
* Augmented x86 fast interpreter to provide interfaces for x86 trace JIT
compiler.
* Added x86 trace JIT code generator with full JDWP debugging support.
* Method JIT and self-verification mode are not supported.
The x86 code generator uses the x86 instruction encoder/decoder library
from the Apache Harmony project. Additional wrapper extension and bug
fixes were added to support the x86 trace JIT code generator. The x86
instruction encoder/decoder is embedded inside the x86 code generator
under the libenc subdirectory.
Change-Id: I241113681963a16c13a3562390813cbaaa6eedf0
Signed-off-by: Dong-Yuan Chen <dong-yuan.chen@intel.com>
Signed-off-by: Yixin Shou <yixin.shou@intel.com>
Signed-off-by: Johnnie Birch <johnnie.l.birch.jr@intel.com>
Signed-off-by: Udayan <udayan.banerji@intel.com>
Signed-off-by: Sushma Kyasaralli Thimmappa <sushma.kyasaralli.thimmappa@intel.com>
Signed-off-by: Bijoy Jose <bijoy.a.jose@intel.com>
Signed-off-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com>
Signed-off-by: Tim Hartley <timothy.d.hartley@intel.com>
Diffstat (limited to 'vm/compiler/codegen/x86/CalloutHelper.h')
-rw-r--r-- | vm/compiler/codegen/x86/CalloutHelper.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/vm/compiler/codegen/x86/CalloutHelper.h b/vm/compiler/codegen/x86/CalloutHelper.h deleted file mode 100644 index 3490f04a9..000000000 --- a/vm/compiler/codegen/x86/CalloutHelper.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2010 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H_ -#define DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H_ - -#include "Dalvik.h" - -/* - * Declare/comment prototypes of all native callout functions invoked by the - * JIT'ed code here and use the LOAD_FUNC_ADDR macro to load the address into - * a register. In this way we have a centralized place to find out all native - * helper functions and we can grep for LOAD_FUNC_ADDR to find out all the - * callsites. - */ - -/* Load a statically compiled function address as a constant */ -#define LOAD_FUNC_ADDR(cUnit, reg, addr) loadConstant(cUnit, reg, addr) - -/* Originally declared in Sync.h */ -bool dvmUnlockObject(struct Thread* self, struct Object* obj); //OP_MONITOR_EXIT - -/* Originally declared in oo/TypeCheck.h */ -bool dvmCanPutArrayElement(const ClassObject* elemClass, // OP_APUT_OBJECT - const ClassObject* arrayClass); -int dvmInstanceofNonTrivial(const ClassObject* instance, // OP_CHECK_CAST && - const ClassObject* clazz); // OP_INSTANCE_OF - -/* Originally declared in oo/Array.h */ -ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass, // OP_NEW_ARRAY - size_t length, int allocFlags); - -/* Originally declared in interp/InterpDefs.h */ -bool dvmInterpHandleFillArrayData(ArrayObject* arrayObject,// OP_FILL_ARRAY_DATA - const u2* arrayData); - -/* Originally declared in alloc/Alloc.h */ -Object* dvmAllocObject(ClassObject* clazz, int flags); // OP_NEW_INSTANCE - -/* - * Functions declared in gDvmInlineOpsTable[] are used for - * OP_EXECUTE_INLINE & OP_EXECUTE_INLINE_RANGE. - */ -extern "C" double sqrt(double x); // INLINE_MATH_SQRT - -#endif // DALVIK_VM_COMPILER_CODEGEN_X86_CALLOUT_HELPER_H_ |