# Copyright (c) 2024 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.
slotNum = 0x0
.language ECMAScript
.function any .C(any a0, any a1, any a2) {
label_1:
label_0:
lda a2
return
label_2:
}
slotNum = 0x3
.language ECMAScript
.function any .ccc(any a0, any a1, any a2) {
label_1:
label_0:
tryldglobalbyname 0x0, print
sta v0
lda.str ccc
sta v1
lda v0
callarg1 0x1, v1
returnundefined
label_2:
}
slotNum = 0x3
.language ECMAScript
.function any .classTest(any a0, any a1, any a2) {
label_1:
label_0:
ldhole
sta v0
defineclasswithbuffer 0x0, .C, _1, 0x0, v0
ldobjbyname 0x1, prototype
returnundefined
label_2:
}
slotNum = 0x1
.language ECMAScript
.function any .func_main_0(any a0, any a1, any a2) {
label_1:
label_0:
definefunc 0x0, .classTest, 0x0
returnundefined
label_2:
}
slotNum = 0x3
.language ECMAScript
.function any .name(any a0, any a1, any a2) {
label_1:
label_0:
tryldglobalbyname 0x0, print
sta v0
lda.str name
sta v1
lda v0
callarg1 0x1, v1
returnundefined
label_2:
}