From 5e5a804e7be57876df789c88dc0503879f969f39 Mon Sep 17 00:00:00 2001 From: TDYa127 Date: Sun, 29 Apr 2012 01:30:27 -0700 Subject: Remove unnecessary exception check. Change-Id: Iba16ed9439253dfe635cf216a77a567c8ed32e1d --- src/compiler_llvm/jni_compiler.cc | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/compiler_llvm/jni_compiler.cc') diff --git a/src/compiler_llvm/jni_compiler.cc b/src/compiler_llvm/jni_compiler.cc index 5a8cc46dbd..801a692afb 100644 --- a/src/compiler_llvm/jni_compiler.cc +++ b/src/compiler_llvm/jni_compiler.cc @@ -197,32 +197,6 @@ CompiledMethod* JniCompiler::Compile() { irb_.CreateCall2(irb_.GetRuntime(LockObject), this_object_or_class_object, thread_object_addr); - - // Check exception pending - llvm::Value* exception_pending = irb_.CreateCall(irb_.GetRuntime(IsExceptionPending)); - - // Create two basic block for branch - llvm::BasicBlock* block_cont = llvm::BasicBlock::Create(*context_, "B.cont", func_); - llvm::BasicBlock* block_exception_ = llvm::BasicBlock::Create(*context_, "B.exception", func_); - - // Branch by exception_pending - irb_.CreateCondBr(exception_pending, block_exception_, block_cont); - - - // If exception pending - irb_.SetInsertPoint(block_exception_); - // TODO: Set thread state? - // Pop the shadow frame - irb_.CreateCall(irb_.GetRuntime(PopShadowFrame)); - // Unwind - if (return_shorty != 'V') { - irb_.CreateRet(irb_.getJZero(return_shorty)); - } else { - irb_.CreateRetVoid(); - } - - // If no exception pending - irb_.SetInsertPoint(block_cont); } // saved_local_ref_cookie = env->local_ref_cookie -- cgit v1.2.3-59-g8ed1b