summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.h
diff options
context:
space:
mode:
author TDYa127 <tdy@google.com> 2012-04-02 06:40:40 -0700
committer Shih-wei Liao <sliao@google.com> 2012-04-02 13:57:10 -0700
commitf8641ce5def8efe641dbc6f9590098764ebcf470 (patch)
tree71404a418fa8ff8fc1df627ea2bd1b5f22fa6277 /src/compiler_llvm/method_compiler.h
parent2d62a0e4ae6b528648c585aa804569aaefc4c517 (diff)
Fix the division overflow.
Passing IntMath test. Change-Id: I807858515a802f2efaa4802460e5f507eb944772
Diffstat (limited to 'src/compiler_llvm/method_compiler.h')
-rw-r--r--src/compiler_llvm/method_compiler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h
index 7e5604605a..6f24799af5 100644
--- a/src/compiler_llvm/method_compiler.h
+++ b/src/compiler_llvm/method_compiler.h
@@ -284,6 +284,12 @@ class MethodCompiler {
IntArithmKind arithm,
JType op_jty);
+ llvm::Value* EmitIntDivRemResultComputation(uint32_t dex_pc,
+ llvm::Value* dividend,
+ llvm::Value* divisor,
+ IntArithmKind arithm,
+ JType op_jty);
+
llvm::Value* EmitIntShiftArithmResultComputation(uint32_t dex_pc,
llvm::Value* lhs,
llvm::Value* rhs,