1# Copyright (c) 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14.language ECMAScript 15 16slotNum = 0x4 17.function any .#*#A(any a0, any a1, any a2) { 18label_1: 19label_0: 20 ldlexvar 0x0, 0x0 21 sta v0 22 throw.undefinedifholewithname a 23 ldlexvar 0x0, 0x1 24 sta v1 25 throw.undefinedifholewithname b 26 lda v1 27 add2 0x0, v0 28 sta v0 29 wide.ldpatchvar 0x0 30 sta v1 31 throw.undefinedifholewithname c 32 lda v1 33 add2 0x1, v0 34 sta v0 35 ldai 0x3 36 add2 0x2, v0 37 sta v0 38 wide.ldpatchvar 0x1 39 sta v1 40 throw.undefinedifholewithname n 41 lda v1 42 add2 0x3, v0 43 return 44label_2: 45} 46 47slotNum = 0x1 48.function any .func_main_0(any a0, any a1, any a2) { 49label_1: 50label_0: 51 newlexenv 0x2 52 definefunc 0x0, .#*#A, 0x0 53 ldai 0x1 54 sta v0 55 lda v0 56 stlexvar 0x0, 0x0 57 lda v0 58 stlexvar 0x0, 0x1 59 lda v0 60 wide.stpatchvar 0x0 61 ldai 0x2 62 wide.stpatchvar 0x1 63 ldundefined 64 returnundefined 65label_2: 66} 67 68 69