summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.cc
diff options
context:
space:
mode:
author jeffhao <jeffhao@google.com> 2012-08-30 16:17:40 -0700
committer jeffhao <jeffhao@google.com> 2012-08-31 10:49:06 -0700
commit9a4f003f9a6da8e4c6ee279bd2a13aac37648183 (patch)
treece78afe7c842c8ff99d52c0a09bfe758d67d037f /src/compiler_llvm/method_compiler.cc
parentcfb21d92796087963c092b69110a2e7ff7a03a55 (diff)
Remove the THROW_VERIFICATION_ERROR op and supporting code.
Change-Id: Idc40a2c379048c7e3d74f50b2bd765a507a417ce
Diffstat (limited to 'src/compiler_llvm/method_compiler.cc')
-rw-r--r--src/compiler_llvm/method_compiler.cc28
1 files changed, 2 insertions, 26 deletions
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc
index 9990b19098..4dc3954ccb 100644
--- a/src/compiler_llvm/method_compiler.cc
+++ b/src/compiler_llvm/method_compiler.cc
@@ -1165,10 +1165,6 @@ void MethodCompiler::EmitInstruction(uint32_t dex_pc,
EmitInsn_IntShiftArithmImmediate(ARGS, kIntArithm_UShr);
break;
- case Instruction::THROW_VERIFICATION_ERROR:
- EmitInsn_ThrowVerificationError(ARGS);
- break;
-
case Instruction::UNUSED_3E:
case Instruction::UNUSED_3F:
case Instruction::UNUSED_40:
@@ -1188,6 +1184,7 @@ void MethodCompiler::EmitInstruction(uint32_t dex_pc,
case Instruction::UNUSED_EA:
case Instruction::UNUSED_EB:
case Instruction::UNUSED_EC:
+ case Instruction::UNUSED_ED:
case Instruction::UNUSED_EE:
case Instruction::UNUSED_EF:
case Instruction::UNUSED_F0:
@@ -1294,24 +1291,6 @@ void MethodCompiler::EmitInsn_ThrowException(uint32_t dex_pc,
}
-void MethodCompiler::EmitInsn_ThrowVerificationError(uint32_t dex_pc,
- const Instruction* insn) {
-
- DecodedInstruction dec_insn(insn);
-
- EmitUpdateDexPC(dex_pc);
-
- llvm::Value* method_object_addr = EmitLoadMethodObjectAddr();
- llvm::Value* kind_value = irb_.getInt32(dec_insn.vA);
- llvm::Value* ref_value = irb_.getInt32(dec_insn.vB);
-
- irb_.CreateCall3(irb_.GetRuntime(ThrowVerificationError),
- method_object_addr, kind_value, ref_value);
-
- EmitBranchExceptionLandingPad(dex_pc);
-}
-
-
void MethodCompiler::EmitInsn_ReturnVoid(uint32_t dex_pc,
const Instruction* insn) {
// Pop the shadow frame
@@ -4552,10 +4531,6 @@ void MethodCompiler::ComputeMethodInfo() {
}
break;
- case Instruction::THROW_VERIFICATION_ERROR:
- may_throw_exception = true;
- break;
-
case Instruction::UNUSED_3E:
case Instruction::UNUSED_3F:
case Instruction::UNUSED_40:
@@ -4575,6 +4550,7 @@ void MethodCompiler::ComputeMethodInfo() {
case Instruction::UNUSED_EA:
case Instruction::UNUSED_EB:
case Instruction::UNUSED_EC:
+ case Instruction::UNUSED_ED:
case Instruction::UNUSED_EE:
case Instruction::UNUSED_EF:
case Instruction::UNUSED_F0: