summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.h
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-02-03 15:34:53 +0800
committer Shih-wei Liao <sliao@google.com> 2012-02-16 23:15:29 -0800
commit61bb614526be29a99b31180c8ac8a695cd813d6c (patch)
tree5455f296095bafa06c0ddcf0604642f196c56597 /src/compiler_llvm/method_compiler.h
parent5b07ea25a064995d0acbb142a768baf356ba5fdf (diff)
Implement array-length instruction.
Change-Id: I722af27990fc5d179857e886d00dab11b2cd4ca8
Diffstat (limited to 'src/compiler_llvm/method_compiler.h')
-rw-r--r--src/compiler_llvm/method_compiler.h5
1 files changed, 5 insertions, 0 deletions
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);