# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. .language ECMAScript slotNum = 0x4 .function any .A(any a0, any a1, any a2) { label_1: label_0: ldlexvar 0x0, 0x0 sta v0 throw.undefinedifholewithname a ldlexvar 0x0, 0x1 sta v1 throw.undefinedifholewithname b lda v1 add2 0x0, v0 sta v0 wide.ldpatchvar 0x0 sta v1 throw.undefinedifholewithname c lda v1 add2 0x1, v0 sta v0 ldai 0x3 add2 0x2, v0 sta v0 wide.ldpatchvar 0x1 sta v1 throw.undefinedifholewithname n lda v1 add2 0x3, v0 return label_2: } slotNum = 0x1 .function any .func_main_0(any a0, any a1, any a2) { label_1: label_0: newlexenv 0x2 definefunc 0x0, .A, 0x0 ldai 0x1 sta v0 lda v0 stlexvar 0x0, 0x0 lda v0 stlexvar 0x0, 0x1 lda v0 wide.stpatchvar 0x0 ldai 0x2 wide.stpatchvar 0x1 ldundefined returnundefined label_2: }