diff options
| author | 2012-05-11 13:23:50 -0700 | |
|---|---|---|
| committer | 2012-05-12 00:57:37 -0700 | |
| commit | 2f701e5a4a4bc371064a3168552948e7b3b43c7f (patch) | |
| tree | a94cdceb230d0a1c8af9943cfd4b43d8c3466571 /src/compiler_llvm/method_compiler.cc | |
| parent | ac7b5bb79899865b2375d14bc3af2079ec2eb28d (diff) | |
Remove unnecessary UpdateDexPC.
These functions won't throw exception, so we have no need to update dex
pc.
Change-Id: Ib4e5aa85367f49b0cc87ce941acc7361fe489cf0
Diffstat (limited to 'src/compiler_llvm/method_compiler.cc')
| -rw-r--r-- | src/compiler_llvm/method_compiler.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc index 6b6192f509..1cc6a30a3d 100644 --- a/src/compiler_llvm/method_compiler.cc +++ b/src/compiler_llvm/method_compiler.cc @@ -1537,8 +1537,6 @@ void MethodCompiler::EmitInsn_MonitorEnter(uint32_t dex_pc, // TODO: Slow path always. May not need NullPointerException check. EmitGuard_NullPointerException(dex_pc, object_addr); - EmitUpdateDexPC(dex_pc); - llvm::Value* thread_object_addr = irb_.CreateCall(irb_.GetRuntime(GetCurrentThread)); irb_.CreateCall2(irb_.GetRuntime(LockObject), object_addr, thread_object_addr); @@ -3664,8 +3662,6 @@ void MethodCompiler::EmitGuard_GarbageCollectionSuspend(uint32_t dex_pc) { llvm::Value* thread_object_addr = irb_.CreateCall(irb_.GetRuntime(GetCurrentThread)); - EmitUpdateDexPC(dex_pc); - irb_.CreateCall(runtime_func, thread_object_addr); } |