1    /*
2     * Synchronize on an object.
3     */
4    /* monitor-enter vAA */
5    .extern artLockObjectFromCode
6    EXPORT_PC
7    srl     a2, rINST, 8                # a2 <- AA
8    GET_VREG_U a0, a2                   # a0 <- vAA (object)
9    move    a1, rSELF                   # a1 <- self
10    jal     artLockObjectFromCode
11    bnezc   v0, MterpException
12    FETCH_ADVANCE_INST 1
13    GET_INST_OPCODE v0                  # extract opcode from rINST
14    GOTO_OPCODE v0                      # jump to next instruction
15