Remove the THROW_VERIFICATION_ERROR op and supporting code.
Change-Id: Idc40a2c379048c7e3d74f50b2bd765a507a417ce
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc
index 9990b19..4dc3954 100644
--- a/src/compiler_llvm/method_compiler.cc
+++ b/src/compiler_llvm/method_compiler.cc
@@ -1165,10 +1165,6 @@
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 @@
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_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 @@
}
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 @@
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: