• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16function Test() {
17  const v2 = new Float32Array(8);
18  const v5 = new Int8Array(1024);
19  const v8 = new Uint32Array(42);
20  let v9 = 1;
21  let v13 = 0;
22  do {
23    let v14;
24    try { v14 = v2.forEach(1024, v2); } catch (e) {}
25    v8.b = Uint32Array;
26    let v16 = 90009230923;
27    const v17 = v16--;
28    ++v9;
29    v14--;
30    const v20 = 42 << v14;
31    new Float32Array(v13);
32    v20 > 8;
33    function f23(a24, a25, a26) {
34      try {
35        const t0 = 42;
36      } catch (e) {}
37      return a26;
38    }
39    f23(1024, v17, 2147483648)
40    v13++;
41  } while (v13 < 9)
42  v5[2530] = v2;
43}
44
45Test();
46ArkTools.jitCompileAsync(Test);
47print(ArkTools.waitJitCompileFinish(Test));
48Test();
49