1a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham%default { "isrange":"0", "routine":"NoRange" } 2a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham%verify "executed" 3a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham%verify "unknown method" 4a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham /* 5a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham * Handle an optimized "super" method call. 6a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham * 7a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham * for: [opt] invoke-super-quick, invoke-super-quick/range 8a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham */ 9a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham # op vB, {vD, vE, vF, vG, vA}, class /* CCCC */ 10a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham # op vAA, {vCCCC..v(CCCC+AA-1)}, meth /* BBBB */ 11a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham FETCH(t0, 2) # t0 <- GFED or CCCC 12a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham LOAD_rSELF_method(a2) # a2 <- current method 13a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham .if (!$isrange) 14a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham and t0, t0, 15 # t0 <- D (or stays CCCC) 15a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham .endif 16a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham FETCH(a1, 1) # a1 <- BBBB 17a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham LOAD_base_offMethod_clazz(a2, a2) # a2 <- method->clazz 18a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham EXPORT_PC() # must export for invoke 19a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham LOAD_base_offClassObject_super(a2, a2) # a2 <- method->clazz->super 20a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham GET_VREG(rOBJ, t0) # rOBJ <- "this" 21a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham LOAD_base_offClassObject_vtable(a2, a2) # a2 <- ...clazz->super->vtable 22a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham # is "this" null ? 23a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham LOAD_eas2(a0, a2, a1) # a0 <- super->vtable[BBBB] 24a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham beqz rOBJ, common_errNullObject # "this" is null, throw exception 25a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham b common_invokeMethod${routine} # (a0=method, rOBJ="this") 26a8b91c52fd8a90b784835dfe1f8898035266c4ddRaghu Gandham 27