• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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 = 0x3
17.function any .#*#classTest(any a0, any a1, any a2) {
18label_1:
19label_0:
20	ldhole
21	sta v0
22	defineclasswithbuffer 0x0, .#*@0~C=#C, _2, 0x0, v0
23	ldobjbyname 0x1, prototype
24	ldundefined
25	returnundefined
26label_2:
27}
28
29slotNum = 0x0
30.function any .#*@0~C=#C(any a0, any a1, any a2) {
31label_1:
32label_0:
33	lda a2
34	return
35label_2:
36}
37
38slotNum = 0x3
39.function any .#*@0~C>#ccc(any a0, any a1, any a2) {
40label_1:
41label_0:
42	tryldglobalbyname 0x0, print
43	sta v0
44	lda.str ccc
45	sta v1
46	lda v0
47	callarg1 0x1, v1
48	ldundefined
49	returnundefined
50label_2:
51}
52
53slotNum = 0x3
54.function any .#*@0~C>#name(any a0, any a1, any a2) {
55label_1:
56label_0:
57	tryldglobalbyname 0x0, print
58	sta v0
59	lda.str name
60	sta v1
61	lda v0
62	callarg1 0x1, v1
63	ldundefined
64	returnundefined
65label_2:
66}
67
68slotNum = 0x1
69.function any .func_main_0(any a0, any a1, any a2) {
70label_1:
71label_0:
72	definefunc 0x0, .#*#classTest, 0x0
73	ldundefined
74	returnundefined
75label_2:
76}
77
78
79