From 61bb614526be29a99b31180c8ac8a695cd813d6c Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Fri, 3 Feb 2012 15:34:53 +0800 Subject: Implement array-length instruction. Change-Id: I722af27990fc5d179857e886d00dab11b2cd4ca8 --- src/compiler_llvm/method_compiler.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/compiler_llvm/method_compiler.h') diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h index edde6ff0a6..a1f18024cf 100644 --- a/src/compiler_llvm/method_compiler.h +++ b/src/compiler_llvm/method_compiler.h @@ -294,10 +294,15 @@ class MethodCompiler { llvm::Value* rhs, FPArithmKind arithm); + llvm::Value* EmitLoadArrayLength(llvm::Value* array); + void EmitGuard_DivZeroException(uint32_t dex_pc, llvm::Value* denominator, JType op_jty); + void EmitGuard_NullPointerException(uint32_t dex_pc, + llvm::Value* object); + RegCategory GetInferredRegCategory(uint32_t dex_pc, uint16_t reg); -- cgit v1.2.3-59-g8ed1b