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 = 0x0 173af6ab5fSopenharmony_ci.function any .C(any a0, any a1, any a2) { 183af6ab5fSopenharmony_cilabel_1: 193af6ab5fSopenharmony_cilabel_0: 203af6ab5fSopenharmony_ci lda a2 213af6ab5fSopenharmony_ci return 223af6ab5fSopenharmony_cilabel_2: 233af6ab5fSopenharmony_ci} 243af6ab5fSopenharmony_ci 253af6ab5fSopenharmony_cislotNum = 0x3 263af6ab5fSopenharmony_ci.function any .ccc(any a0, any a1, any a2) { 273af6ab5fSopenharmony_cilabel_1: 283af6ab5fSopenharmony_cilabel_0: 293af6ab5fSopenharmony_ci tryldglobalbyname 0x0, print 303af6ab5fSopenharmony_ci sta v0 313af6ab5fSopenharmony_ci lda.str ccc 323af6ab5fSopenharmony_ci sta v1 333af6ab5fSopenharmony_ci lda v0 343af6ab5fSopenharmony_ci callarg1 0x1, v1 353af6ab5fSopenharmony_ci ldundefined 363af6ab5fSopenharmony_ci returnundefined 373af6ab5fSopenharmony_cilabel_2: 383af6ab5fSopenharmony_ci} 393af6ab5fSopenharmony_ci 403af6ab5fSopenharmony_cislotNum = 0x3 413af6ab5fSopenharmony_ci.function any .classTest(any a0, any a1, any a2) { 423af6ab5fSopenharmony_cilabel_1: 433af6ab5fSopenharmony_cilabel_0: 443af6ab5fSopenharmony_ci ldhole 453af6ab5fSopenharmony_ci sta v0 463af6ab5fSopenharmony_ci defineclasswithbuffer 0x0, .C, _1, 0x0, v0 473af6ab5fSopenharmony_ci ldobjbyname 0x1, prototype 483af6ab5fSopenharmony_ci ldundefined 493af6ab5fSopenharmony_ci returnundefined 503af6ab5fSopenharmony_cilabel_2: 513af6ab5fSopenharmony_ci} 523af6ab5fSopenharmony_ci 533af6ab5fSopenharmony_cislotNum = 0x1 543af6ab5fSopenharmony_ci.function any .func_main_0(any a0, any a1, any a2) { 553af6ab5fSopenharmony_cilabel_1: 563af6ab5fSopenharmony_cilabel_0: 573af6ab5fSopenharmony_ci definefunc 0x0, .classTest, 0x0 583af6ab5fSopenharmony_ci ldundefined 593af6ab5fSopenharmony_ci returnundefined 603af6ab5fSopenharmony_cilabel_2: 613af6ab5fSopenharmony_ci} 623af6ab5fSopenharmony_ci 633af6ab5fSopenharmony_cislotNum = 0x3 643af6ab5fSopenharmony_ci.function any .name(any a0, any a1, any a2) { 653af6ab5fSopenharmony_cilabel_1: 663af6ab5fSopenharmony_cilabel_0: 673af6ab5fSopenharmony_ci tryldglobalbyname 0x0, print 683af6ab5fSopenharmony_ci sta v0 693af6ab5fSopenharmony_ci lda.str name 703af6ab5fSopenharmony_ci sta v1 713af6ab5fSopenharmony_ci lda v0 723af6ab5fSopenharmony_ci callarg1 0x1, v1 733af6ab5fSopenharmony_ci ldundefined 743af6ab5fSopenharmony_ci returnundefined 753af6ab5fSopenharmony_cilabel_2: 763af6ab5fSopenharmony_ci} 773af6ab5fSopenharmony_ci 783af6ab5fSopenharmony_ci 79