blob: 7034a0e740c9345472678225bbbb39ecd9d01ed8 [file] [log] [blame]
Douglas Leung200f0402016-02-25 20:05:47 -08001%default { "helper":"artSet32StaticFromCode"}
2 /*
3 * General SPUT handler.
4 *
5 * for: sput, sput-boolean, sput-byte, sput-char, sput-short
6 */
Alexey Frunze84603bf2016-10-21 19:54:43 -07007 /* op vAA, field@BBBB */
Douglas Leung200f0402016-02-25 20:05:47 -08008 EXPORT_PC()
9 FETCH(a0, 1) # a0 <- field ref BBBB
10 GET_OPA(a3) # a3 <- AA
11 GET_VREG(a1, a3) # a1 <- fp[AA], the object pointer
12 lw a2, OFF_FP_METHOD(rFP) # a2 <- method
13 move a3, rSELF # a3 <- self
14 PREFETCH_INST(2) # load rINST
15 JAL($helper)
16 bnez v0, MterpException # bail out
17 ADVANCE(2) # advance rPC
18 GET_INST_OPCODE(t0) # extract opcode from rINST
19 GOTO_OPCODE(t0) # jump to next instruction