1!/************************************************************** 2! * 3! * Licensed to the Apache Software Foundation (ASF) under one 4! * or more contributor license agreements. See the NOTICE file 5! * distributed with this work for additional information 6! * regarding copyright ownership. The ASF licenses this file 7! * to you under the Apache License, Version 2.0 (the 8! * "License"); you may not use this file except in compliance 9! * with the License. You may obtain a copy of the License at 10! * 11! * http://www.apache.org/licenses/LICENSE-2.0 12! * 13! * Unless required by applicable law or agreed to in writing, 14! * software distributed under the License is distributed on an 15! * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16! * KIND, either express or implied. See the License for the 17! * specific language governing permissions and limitations 18! * under the License. 19! * 20! *************************************************************/ 21 22 23 24.global vtableCall 25 26.global vtableSlotCall 27.align 8 28vtableSlotCall: 29 ! save %sp, -176, %sp already done in code snippet 30 stx %i0, [%fp + 2047 + 128] 31 stx %i1, [%fp + 2047 + 136] 32 stx %i2, [%fp + 2047 + 144] 33 stx %i3, [%fp + 2047 + 152] 34 stx %i4, [%fp + 2047 + 160] 35 stx %i5, [%fp + 2047 + 168] 36 ! %o0: functionIndex, stored by code snippet 37 ! %o1: vtableOffset, stored by code snippet 38 call vtableCall 39 add %fp, 2047 + 128, %o2 40 ldx [%fp + 2047 + 128], %i0 41 ldx [%fp + 2047 + 136], %i1 42 ldx [%fp + 2047 + 144], %i2 43 ldx [%fp + 2047 + 152], %i3 44 ret 45 restore 46.size vtableSlotCall, . - vtableSlotCall 47.type vtableSlotCall, #function 48