13af6ab5fSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 23af6ab5fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 33af6ab5fSopenharmony_ci# you may not use this file except in compliance with the License. 43af6ab5fSopenharmony_ci# You may obtain a copy of the License at 53af6ab5fSopenharmony_ci# 63af6ab5fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 73af6ab5fSopenharmony_ci# 83af6ab5fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 93af6ab5fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 103af6ab5fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 113af6ab5fSopenharmony_ci# See the License for the specific language governing permissions and 123af6ab5fSopenharmony_ci# limitations under the License. 133af6ab5fSopenharmony_ci 143af6ab5fSopenharmony_ci.language ECMAScript 153af6ab5fSopenharmony_ci 163af6ab5fSopenharmony_cislotNum = 0x3 173af6ab5fSopenharmony_ci.function any .#*#classTest(any a0, any a1, any a2) { 183af6ab5fSopenharmony_cilabel_1: 193af6ab5fSopenharmony_cilabel_0: 203af6ab5fSopenharmony_ci ldhole 213af6ab5fSopenharmony_ci sta v0 223af6ab5fSopenharmony_ci defineclasswithbuffer 0x0, .#*@0~C=#C, _2, 0x0, v0 233af6ab5fSopenharmony_ci ldobjbyname 0x1, prototype 243af6ab5fSopenharmony_ci ldundefined 253af6ab5fSopenharmony_ci returnundefined 263af6ab5fSopenharmony_cilabel_2: 273af6ab5fSopenharmony_ci} 283af6ab5fSopenharmony_ci 293af6ab5fSopenharmony_cislotNum = 0x0 303af6ab5fSopenharmony_ci.function any .#*@0~C=#C(any a0, any a1, any a2) { 313af6ab5fSopenharmony_cilabel_1: 323af6ab5fSopenharmony_cilabel_0: 333af6ab5fSopenharmony_ci lda a2 343af6ab5fSopenharmony_ci return 353af6ab5fSopenharmony_cilabel_2: 363af6ab5fSopenharmony_ci} 373af6ab5fSopenharmony_ci 383af6ab5fSopenharmony_cislotNum = 0x3 393af6ab5fSopenharmony_ci.function any .#*@0~C>#ccc(any a0, any a1, any a2) { 403af6ab5fSopenharmony_cilabel_1: 413af6ab5fSopenharmony_cilabel_0: 423af6ab5fSopenharmony_ci tryldglobalbyname 0x0, print 433af6ab5fSopenharmony_ci sta v0 443af6ab5fSopenharmony_ci lda.str ccc 453af6ab5fSopenharmony_ci sta v1 463af6ab5fSopenharmony_ci lda v0 473af6ab5fSopenharmony_ci callarg1 0x1, v1 483af6ab5fSopenharmony_ci ldundefined 493af6ab5fSopenharmony_ci returnundefined 503af6ab5fSopenharmony_cilabel_2: 513af6ab5fSopenharmony_ci} 523af6ab5fSopenharmony_ci 533af6ab5fSopenharmony_cislotNum = 0x3 543af6ab5fSopenharmony_ci.function any .#*@0~C>#name(any a0, any a1, any a2) { 553af6ab5fSopenharmony_cilabel_1: 563af6ab5fSopenharmony_cilabel_0: 573af6ab5fSopenharmony_ci tryldglobalbyname 0x0, print 583af6ab5fSopenharmony_ci sta v0 593af6ab5fSopenharmony_ci lda.str name 603af6ab5fSopenharmony_ci sta v1 613af6ab5fSopenharmony_ci lda v0 623af6ab5fSopenharmony_ci callarg1 0x1, v1 633af6ab5fSopenharmony_ci ldundefined 643af6ab5fSopenharmony_ci returnundefined 653af6ab5fSopenharmony_cilabel_2: 663af6ab5fSopenharmony_ci} 673af6ab5fSopenharmony_ci 683af6ab5fSopenharmony_cislotNum = 0x1 693af6ab5fSopenharmony_ci.function any .func_main_0(any a0, any a1, any a2) { 703af6ab5fSopenharmony_cilabel_1: 713af6ab5fSopenharmony_cilabel_0: 723af6ab5fSopenharmony_ci definefunc 0x0, .#*#classTest, 0x0 733af6ab5fSopenharmony_ci ldundefined 743af6ab5fSopenharmony_ci returnundefined 753af6ab5fSopenharmony_cilabel_2: 763af6ab5fSopenharmony_ci} 773af6ab5fSopenharmony_ci 783af6ab5fSopenharmony_ci 79