diff options
| author | 2012-04-29 01:30:27 -0700 | |
|---|---|---|
| committer | 2012-05-03 17:38:41 -0700 | |
| commit | 5e5a804e7be57876df789c88dc0503879f969f39 (patch) | |
| tree | 08e0973ba2d442605a9ef6f27ca0088005f1f015 /src/compiler_llvm/jni_compiler.cc | |
| parent | 9948913c01c761493472ccb60ab19be336ac4af4 (diff) | |
Remove unnecessary exception check.
Change-Id: Iba16ed9439253dfe635cf216a77a567c8ed32e1d
Diffstat (limited to 'src/compiler_llvm/jni_compiler.cc')
| -rw-r--r-- | src/compiler_llvm/jni_compiler.cc | 26 |
1 files changed, 0 insertions, 26 deletions
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 |