1 /* Copyright (C) 2009 The Android Open Source Project
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
17 * File: OP_THROW_VERIFICATION_ERROR.S
21 * For: throw-verification-error
23 * Description: Throws an exception for an error discovered during verification.
24 * The exception is indicated by AA with details provided by BBBB.
26 * Format: AA|op BBBB (21c)
28 * Syntax: op vAA, ref@BBBB
31 movl rGLUE, %edx # %edx<- pMterpGlue
32 movl offGlue_method(%edx), %ecx # %ecx<- glue->method
33 EXPORT_PC # in case an exception is thrown
34 FETCH 1, %eax # %eax<- BBBB
35 movl %eax, -4(%esp) # push parameter BBBB; ref
36 movl rINST, -8(%esp) # push parameter AA
37 movl %ecx, -12(%esp) # push parameter glue->method
39 call dvmThrowVerificationError # call: (const Method* method, int kind, int ref)
40 jmp common_exceptionThrown # failed; handle exception