1All Dependency Files: 2program_file: bytecodehar-abcinput.abc 3record_name: &bytecodehar/bytecodehar-dynamic-import& 4program_file: bytecodehar-abcinput.abc 5record_name: &bytecodehar/bytecodehar-static-import& 6program_file: hap-file-exec.ts 7record_name: &myapp/hap-file-exec& 8program_file: importfile1.ts 9record_name: bundle&lib/importfile1&2.0.0 10program_file: importfile2.ts 11record_name: &@ohos/lib/importfile2&2.0.0 12program_file: importfile3.ts 13record_name: &lib2/importfile3& 14program_file: importfile4.ts 15record_name: &@ohos/lib2/importfile4& 16 17slotNum = 0x0 18.language ECMAScript 19.function any &bytecodehar/bytecodehar-dynamic-import&.#*#testNonConst(any a0, any a1, any a2) { 20 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 21 dynamicimport 22 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 23 dynamicimport 24 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 25 dynamicimport 26 returnundefined 27} 28 29slotNum = 0x0 30.language ECMAScript 31.function any &bytecodehar/bytecodehar-dynamic-import&.#*#testNonOhmurl(any a0, any a1, any a2) { 32 lda.str aaa 33 dynamicimport 34 returnundefined 35} 36 37slotNum = 0x0 38.language ECMAScript 39.function any &bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWithAt(any a0, any a1, any a2) { 40 lda.str @normalized:N&module&&@ohos/lib/importfile2&2.0.0 41 dynamicimport 42 lda.str @normalized:N&module&&@ohos/lib/importfile2&2.0.0 43 dynamicimport 44 lda.str @normalized:N&&&@ohos/lib/importfile2&2.0.0 45 dynamicimport 46 lda.str @normalized:N&&&@ohos/lib/importfile2&2.0.0 47 dynamicimport 48 lda.str @normalized:N&&&@ohos/lib2/importfile4& 49 dynamicimport 50 returnundefined 51} 52 53slotNum = 0x0 54.language ECMAScript 55.function any &bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWoAt(any a0, any a1, any a2) { 56 lda.str @normalized:N&module&bundle&lib/importfile1&2.0.0 57 dynamicimport 58 lda.str @normalized:N&module&bundle&lib/importfile1&2.0.0 59 dynamicimport 60 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 61 dynamicimport 62 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 63 dynamicimport 64 lda.str @normalized:N&&&lib2/importfile3& 65 dynamicimport 66 returnundefined 67} 68 69slotNum = 0x0 70.language ECMAScript 71.function any &bytecodehar/bytecodehar-dynamic-import&.#~A=#A(any a0, any a1, any a2) { 72 lda a2 73 return 74} 75 76slotNum = 0x7 77.language ECMAScript 78.function any &bytecodehar/bytecodehar-dynamic-import&.func_main_0(any a0, any a1, any a2) { 79 definefunc 0x0, &bytecodehar/bytecodehar-dynamic-import&.#*#testNonConst, 0x0 80 definefunc 0x1, &bytecodehar/bytecodehar-dynamic-import&.#*#testNonOhmurl, 0x0 81 definefunc 0x2, &bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWithAt, 0x0 82 definefunc 0x3, &bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWoAt, 0x0 83 lda.str test 84 stmodulevar 0x1 85 ldhole 86 sta v0 87 defineclasswithbuffer 0x4, &bytecodehar/bytecodehar-dynamic-import&.#~A=#A, &bytecodehar/bytecodehar-dynamic-import&_2498, 0x0, v0 88 ldobjbyname 0x5, prototype 89 returnundefined 90} 91 92 93======> literal array buffer <====== 94------------------------------------ 95slot &bytecodehar/bytecodehar-dynamic-import&_2450 96------------------------------------ 97slot &bytecodehar/bytecodehar-dynamic-import&_2454 98{ 99 index: 0 100 tag: 2 101 val: 0 102}, 103{ 104 index: 1 105 tag: 2 106 val: 0 107}, 108{ 109 index: 2 110 tag: 2 111 val: 0 112}, 113{ 114 index: 3 115 tag: 2 116 val: 2 117}, 118{ 119 index: 4 120 tag: 5 121 val: Anno1 122}, 123{ 124 index: 5 125 tag: 5 126 val: Anno1 127}, 128{ 129 index: 6 130 tag: 5 131 val: test 132}, 133{ 134 index: 7 135 tag: 5 136 val: test 137}, 138{ 139 index: 8 140 tag: 2 141 val: 0 142}, 143{ 144 index: 9 145 tag: 2 146 val: 0 147}, 148------------------------------------ 149slot &bytecodehar/bytecodehar-dynamic-import&_2498 150{ 151 index: 0 152 tag: 0 153 val: 2 154}, 155{ 156 index: 1 157 tag: 2 158 val: 0 159}, 160======> strings <====== 161"&bytecodehar/bytecodehar-dynamic-import&.#*#testNonConst"; "&bytecodehar/bytecodehar-dynamic-import&.#*#testNonOhmurl"; "&bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWithAt"; "&bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWoAt"; "&bytecodehar/bytecodehar-dynamic-import&.#~A=#A"; "@normalized:N&&&@ohos/lib/importfile2&2.0.0"; "@normalized:N&&&@ohos/lib2/importfile4&"; "@normalized:N&&&lib2/importfile3&"; "@normalized:N&&bundle&lib/importfile1&2.0.0"; "@normalized:N&module&&@ohos/lib/importfile2&2.0.0"; "@normalized:N&module&bundle&lib/importfile1&2.0.0"; "aaa"; "prototype"; "test"; 162 163======> literal array buffer <====== 164======> strings <====== 165 166slotNum = 0x18 167.language ECMAScript 168.function any &bytecodehar/bytecodehar-static-import&.#*#foo(any a0, any a1, any a2) { 169 tryldglobalbyname 0x0, print 170 sta v0 171 createemptyarray 0x1 172 sta v1 173 ldlexvar 0x0, 0x0 174 sta v2 175 throw.undefinedifholewithname a 176 lda v2 177 stownbyindex 0x2, v1, 0x0 178 ldlexvar 0x0, 0x1 179 sta v2 180 throw.undefinedifholewithname b 181 lda v2 182 stownbyindex 0x4, v1, 0x1 183 ldlexvar 0x0, 0x2 184 sta v2 185 throw.undefinedifholewithname c 186 lda v2 187 stownbyindex 0x6, v1, 0x2 188 ldlexvar 0x0, 0x3 189 sta v2 190 throw.undefinedifholewithname d 191 lda v2 192 stownbyindex 0x8, v1, 0x3 193 ldlexvar 0x0, 0x4 194 sta v2 195 throw.undefinedifholewithname e 196 lda v2 197 stownbyindex 0xa, v1, 0x4 198 ldlexvar 0x0, 0x5 199 sta v2 200 throw.undefinedifholewithname f 201 lda v2 202 stownbyindex 0xc, v1, 0x5 203 ldlexvar 0x0, 0x6 204 sta v2 205 throw.undefinedifholewithname g 206 lda v2 207 stownbyindex 0xe, v1, 0x6 208 ldlexvar 0x0, 0x7 209 sta v2 210 throw.undefinedifholewithname h 211 lda v2 212 stownbyindex 0x10, v1, 0x7 213 ldlexvar 0x0, 0x8 214 sta v2 215 throw.undefinedifholewithname i 216 lda v2 217 stownbyindex 0x12, v1, 0x8 218 ldlexvar 0x0, 0x9 219 sta v2 220 throw.undefinedifholewithname j 221 lda v2 222 stownbyindex 0x14, v1, 0x9 223 lda v0 224 callarg1 0x16, v1 225 returnundefined 226} 227 228slotNum = 0x0 229.language ECMAScript 230.function any &bytecodehar/bytecodehar-static-import&.#~A=#A(any a0, any a1, any a2) { 231 lda a2 232 return 233} 234 235slotNum = 0x4 236.language ECMAScript 237.function any &bytecodehar/bytecodehar-static-import&.func_main_0(any a0, any a1, any a2) { 238 newlexenv 0xa 239 definefunc 0x0, &bytecodehar/bytecodehar-static-import&.#*#foo, 0x0 240 getmodulenamespace 0x0 241 stlexvar 0x0, 0x0 242 getmodulenamespace 0x1 243 stlexvar 0x0, 0x1 244 getmodulenamespace 0x2 245 stlexvar 0x0, 0x2 246 getmodulenamespace 0x3 247 stlexvar 0x0, 0x3 248 getmodulenamespace 0x4 249 stlexvar 0x0, 0x4 250 getmodulenamespace 0x5 251 stlexvar 0x0, 0x5 252 getmodulenamespace 0x6 253 stlexvar 0x0, 0x6 254 getmodulenamespace 0x7 255 stlexvar 0x0, 0x7 256 getmodulenamespace 0x8 257 stlexvar 0x0, 0x8 258 getmodulenamespace 0x9 259 stlexvar 0x0, 0x9 260 ldhole 261 sta v0 262 defineclasswithbuffer 0x1, &bytecodehar/bytecodehar-static-import&.#~A=#A, &bytecodehar/bytecodehar-static-import&_2647, 0x0, v0 263 ldobjbyname 0x2, prototype 264 returnundefined 265} 266 267 268======> literal array buffer <====== 269------------------------------------ 270slot &bytecodehar/bytecodehar-static-import&_2507 271------------------------------------ 272slot &bytecodehar/bytecodehar-static-import&_2511 273{ 274 index: 0 275 tag: 2 276 val: 10 277}, 278{ 279 index: 1 280 tag: 5 281 val: @normalized:N&module&bundle&lib/importfile1&2.0.0 282}, 283{ 284 index: 2 285 tag: 5 286 val: @normalized:N&module&bundle&lib/importfile1&2.0.0 287}, 288{ 289 index: 3 290 tag: 5 291 val: @normalized:N&&bundle&lib/importfile1&2.0.0 292}, 293{ 294 index: 4 295 tag: 5 296 val: @normalized:N&&bundle&lib/importfile1&2.0.0 297}, 298{ 299 index: 5 300 tag: 5 301 val: @normalized:N&&&lib2/importfile3& 302}, 303{ 304 index: 6 305 tag: 5 306 val: @normalized:N&module&&@ohos/lib/importfile2&2.0.0 307}, 308{ 309 index: 7 310 tag: 5 311 val: @normalized:N&module&&@ohos/lib/importfile2&2.0.0 312}, 313{ 314 index: 8 315 tag: 5 316 val: @normalized:N&&&@ohos/lib/importfile2&2.0.0 317}, 318{ 319 index: 9 320 tag: 5 321 val: @normalized:N&&&@ohos/lib/importfile2&2.0.0 322}, 323{ 324 index: 10 325 tag: 5 326 val: @normalized:N&&&@ohos/lib2/importfile4& 327}, 328{ 329 index: 11 330 tag: 2 331 val: 0 332}, 333{ 334 index: 12 335 tag: 2 336 val: 10 337}, 338{ 339 index: 13 340 tag: 5 341 val: a 342}, 343{ 344 index: 14 345 tag: 9 346 val: 0 347}, 348{ 349 index: 15 350 tag: 5 351 val: b 352}, 353{ 354 index: 16 355 tag: 9 356 val: 1 357}, 358{ 359 index: 17 360 tag: 5 361 val: c 362}, 363{ 364 index: 18 365 tag: 9 366 val: 2 367}, 368{ 369 index: 19 370 tag: 5 371 val: d 372}, 373{ 374 index: 20 375 tag: 9 376 val: 3 377}, 378{ 379 index: 21 380 tag: 5 381 val: e 382}, 383{ 384 index: 22 385 tag: 9 386 val: 4 387}, 388{ 389 index: 23 390 tag: 5 391 val: f 392}, 393{ 394 index: 24 395 tag: 9 396 val: 5 397}, 398{ 399 index: 25 400 tag: 5 401 val: g 402}, 403{ 404 index: 26 405 tag: 9 406 val: 6 407}, 408{ 409 index: 27 410 tag: 5 411 val: h 412}, 413{ 414 index: 28 415 tag: 9 416 val: 7 417}, 418{ 419 index: 29 420 tag: 5 421 val: i 422}, 423{ 424 index: 30 425 tag: 9 426 val: 8 427}, 428{ 429 index: 31 430 tag: 5 431 val: j 432}, 433{ 434 index: 32 435 tag: 9 436 val: 9 437}, 438{ 439 index: 33 440 tag: 2 441 val: 1 442}, 443{ 444 index: 34 445 tag: 5 446 val: Anno2 447}, 448{ 449 index: 35 450 tag: 5 451 val: Anno2 452}, 453{ 454 index: 36 455 tag: 2 456 val: 0 457}, 458{ 459 index: 37 460 tag: 2 461 val: 0 462}, 463------------------------------------ 464slot &bytecodehar/bytecodehar-static-import&_2647 465{ 466 index: 0 467 tag: 0 468 val: 2 469}, 470{ 471 index: 1 472 tag: 2 473 val: 0 474}, 475======> strings <====== 476"&bytecodehar/bytecodehar-static-import&.#*#foo"; "&bytecodehar/bytecodehar-static-import&.#~A=#A"; "a"; "b"; "c"; "d"; "e"; "f"; "g"; "h"; "i"; "j"; "print"; "prototype"; 477 478======> literal array buffer <====== 479======> strings <====== 480 481 482======> literal array buffer <====== 483======> strings <====== 484 485 486======> literal array buffer <====== 487======> strings <====== 488 489 490======> literal array buffer <====== 491======> strings <====== 492 493slotNum = 0x0 494.language ECMAScript 495.function any &myapp/hap-file-exec&.#~A=#A(any a0, any a1, any a2) { 496label_1: 497label_0: 498 lda a2 499 return 500label_2: 501} 502 503slotNum = 0xd 504.language ECMAScript 505.function any &myapp/hap-file-exec&.func_main_0(any a0, any a1, any a2) { 506label_1: 507label_0: 508 getmodulenamespace 0x0 509 sta v0 510 getmodulenamespace 0x1 511 sta v1 512 tryldglobalbyname 0x0, print 513 sta v2 514 lda v0 515 ldobjbyname 0x1, test 516 sta v0 517 lda v2 518 callarg1 0x3, v0 519 tryldglobalbyname 0x5, print 520 sta v0 521 lda v1 522 ldobjbyname 0x6, test 523 sta v1 524 lda v0 525 callarg1 0x8, v1 526 ldhole 527 sta v0 528 defineclasswithbuffer 0xa, &myapp/hap-file-exec&.#~A=#A, &myapp/hap-file-exec&_2, 0x0, v0 529 ldobjbyname 0xb, prototype 530 returnundefined 531label_2: 532} 533 534 535======> literal array buffer <====== 536------------------------------------ 537slot &myapp/hap-file-exec&_0 538------------------------------------ 539slot &myapp/hap-file-exec&_1 540{ 541 index: 0 542 tag: 2 543 val: 2 544}, 545{ 546 index: 1 547 tag: 5 548 val: @normalized:N&&&bytecodehar/bytecodehar-dynamic-import& 549}, 550{ 551 index: 2 552 tag: 5 553 val: @normalized:N&&&bytecodehar/bytecodehar-static-import& 554}, 555{ 556 index: 3 557 tag: 2 558 val: 0 559}, 560{ 561 index: 4 562 tag: 2 563 val: 2 564}, 565{ 566 index: 5 567 tag: 5 568 val: bytecodeharDynamicImport 569}, 570{ 571 index: 6 572 tag: 9 573 val: 0 574}, 575{ 576 index: 7 577 tag: 5 578 val: bytecodeharStaticImport 579}, 580{ 581 index: 8 582 tag: 9 583 val: 1 584}, 585{ 586 index: 9 587 tag: 2 588 val: 0 589}, 590{ 591 index: 10 592 tag: 2 593 val: 0 594}, 595{ 596 index: 11 597 tag: 2 598 val: 0 599}, 600------------------------------------ 601slot &myapp/hap-file-exec&_2 602{ 603 index: 0 604 tag: 0 605 val: 2 606}, 607{ 608 index: 1 609 tag: 2 610 val: 0 611}, 612======> strings <====== 613"&myapp/hap-file-exec&.#~A=#A"; "print"; "prototype"; "test"; 614slotNum = 0x0 615.language ECMAScript 616.function any bundle&lib/importfile1&2.0.0.func_main_0(any a0, any a1, any a2) { 617label_1: 618label_0: 619 ldtrue 620 stmodulevar 0x0 621 returnundefined 622label_2: 623} 624 625 626======> literal array buffer <====== 627------------------------------------ 628slot bundle&lib/importfile1&2.0.0_0 629------------------------------------ 630slot bundle&lib/importfile1&2.0.0_1 631{ 632 index: 0 633 tag: 2 634 val: 0 635}, 636{ 637 index: 1 638 tag: 2 639 val: 0 640}, 641{ 642 index: 2 643 tag: 2 644 val: 0 645}, 646{ 647 index: 3 648 tag: 2 649 val: 1 650}, 651{ 652 index: 4 653 tag: 5 654 val: test1 655}, 656{ 657 index: 5 658 tag: 5 659 val: test1 660}, 661{ 662 index: 6 663 tag: 2 664 val: 0 665}, 666{ 667 index: 7 668 tag: 2 669 val: 0 670}, 671======> strings <====== 672 673slotNum = 0x0 674.language ECMAScript 675.function any &@ohos/lib/importfile2&2.0.0.func_main_0(any a0, any a1, any a2) { 676label_1: 677label_0: 678 ldtrue 679 stmodulevar 0x0 680 returnundefined 681label_2: 682} 683 684 685======> literal array buffer <====== 686------------------------------------ 687slot &@ohos/lib/importfile2&2.0.0_0 688------------------------------------ 689slot &@ohos/lib/importfile2&2.0.0_1 690{ 691 index: 0 692 tag: 2 693 val: 0 694}, 695{ 696 index: 1 697 tag: 2 698 val: 0 699}, 700{ 701 index: 2 702 tag: 2 703 val: 0 704}, 705{ 706 index: 3 707 tag: 2 708 val: 1 709}, 710{ 711 index: 4 712 tag: 5 713 val: test2 714}, 715{ 716 index: 5 717 tag: 5 718 val: test2 719}, 720{ 721 index: 6 722 tag: 2 723 val: 0 724}, 725{ 726 index: 7 727 tag: 2 728 val: 0 729}, 730======> strings <====== 731 732slotNum = 0x0 733.language ECMAScript 734.function any &lib2/importfile3&.func_main_0(any a0, any a1, any a2) { 735label_1: 736label_0: 737 ldtrue 738 stmodulevar 0x0 739 returnundefined 740label_2: 741} 742 743 744======> literal array buffer <====== 745------------------------------------ 746slot &lib2/importfile3&_0 747------------------------------------ 748slot &lib2/importfile3&_1 749{ 750 index: 0 751 tag: 2 752 val: 0 753}, 754{ 755 index: 1 756 tag: 2 757 val: 0 758}, 759{ 760 index: 2 761 tag: 2 762 val: 0 763}, 764{ 765 index: 3 766 tag: 2 767 val: 1 768}, 769{ 770 index: 4 771 tag: 5 772 val: test3 773}, 774{ 775 index: 5 776 tag: 5 777 val: test3 778}, 779{ 780 index: 6 781 tag: 2 782 val: 0 783}, 784{ 785 index: 7 786 tag: 2 787 val: 0 788}, 789======> strings <====== 790 791slotNum = 0x0 792.language ECMAScript 793.function any &@ohos/lib2/importfile4&.func_main_0(any a0, any a1, any a2) { 794label_1: 795label_0: 796 ldtrue 797 stmodulevar 0x0 798 returnundefined 799label_2: 800} 801 802 803======> literal array buffer <====== 804------------------------------------ 805slot &@ohos/lib2/importfile4&_0 806------------------------------------ 807slot &@ohos/lib2/importfile4&_1 808{ 809 index: 0 810 tag: 2 811 val: 0 812}, 813{ 814 index: 1 815 tag: 2 816 val: 0 817}, 818{ 819 index: 2 820 tag: 2 821 val: 0 822}, 823{ 824 index: 3 825 tag: 2 826 val: 1 827}, 828{ 829 index: 4 830 tag: 5 831 val: test4 832}, 833{ 834 index: 5 835 tag: 5 836 val: test4 837}, 838{ 839 index: 6 840 tag: 2 841 val: 0 842}, 843{ 844 index: 7 845 tag: 2 846 val: 0 847}, 848======> strings <====== 849 850slotNum = 0x0 851.language ECMAScript 852.function any &bytecodehar/bytecodehar-dynamic-import&.#*#testNonConst(any a0, any a1, any a2) { 853 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 854 dynamicimport 855 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 856 dynamicimport 857 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 858 dynamicimport 859 returnundefined 860} 861 862slotNum = 0x0 863.language ECMAScript 864.function any &bytecodehar/bytecodehar-dynamic-import&.#*#testNonOhmurl(any a0, any a1, any a2) { 865 lda.str aaa 866 dynamicimport 867 returnundefined 868} 869 870slotNum = 0x0 871.language ECMAScript 872.function any &bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWithAt(any a0, any a1, any a2) { 873 lda.str @normalized:N&module&&@ohos/lib/importfile2&2.0.0 874 dynamicimport 875 lda.str @normalized:N&module&&@ohos/lib/importfile2&2.0.0 876 dynamicimport 877 lda.str @normalized:N&&&@ohos/lib/importfile2&2.0.0 878 dynamicimport 879 lda.str @normalized:N&&&@ohos/lib/importfile2&2.0.0 880 dynamicimport 881 lda.str @normalized:N&&&@ohos/lib2/importfile4& 882 dynamicimport 883 returnundefined 884} 885 886slotNum = 0x0 887.language ECMAScript 888.function any &bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWoAt(any a0, any a1, any a2) { 889 lda.str @normalized:N&module&bundle&lib/importfile1&2.0.0 890 dynamicimport 891 lda.str @normalized:N&module&bundle&lib/importfile1&2.0.0 892 dynamicimport 893 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 894 dynamicimport 895 lda.str @normalized:N&&bundle&lib/importfile1&2.0.0 896 dynamicimport 897 lda.str @normalized:N&&&lib2/importfile3& 898 dynamicimport 899 returnundefined 900} 901 902slotNum = 0x0 903.language ECMAScript 904.function any &bytecodehar/bytecodehar-dynamic-import&.#~A=#A(any a0, any a1, any a2) { 905 lda a2 906 return 907} 908 909slotNum = 0x7 910.language ECMAScript 911.function any &bytecodehar/bytecodehar-dynamic-import&.func_main_0(any a0, any a1, any a2) { 912 definefunc 0x0, &bytecodehar/bytecodehar-dynamic-import&.#*#testNonConst, 0x0 913 definefunc 0x1, &bytecodehar/bytecodehar-dynamic-import&.#*#testNonOhmurl, 0x0 914 definefunc 0x2, &bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWithAt, 0x0 915 definefunc 0x3, &bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWoAt, 0x0 916 lda.str test 917 stmodulevar 0x1 918 ldhole 919 sta v0 920 defineclasswithbuffer 0x4, &bytecodehar/bytecodehar-dynamic-import&.#~A=#A, &bytecodehar/bytecodehar-dynamic-import&_2498, 0x0, v0 921 ldobjbyname 0x5, prototype 922 returnundefined 923} 924 925 926======> literal array buffer <====== 927------------------------------------ 928slot &bytecodehar/bytecodehar-dynamic-import&_2450 929------------------------------------ 930slot &bytecodehar/bytecodehar-dynamic-import&_2454 931{ 932 index: 0 933 tag: 2 934 val: 0 935}, 936{ 937 index: 1 938 tag: 2 939 val: 0 940}, 941{ 942 index: 2 943 tag: 2 944 val: 0 945}, 946{ 947 index: 3 948 tag: 2 949 val: 2 950}, 951{ 952 index: 4 953 tag: 5 954 val: Anno1 955}, 956{ 957 index: 5 958 tag: 5 959 val: Anno1 960}, 961{ 962 index: 6 963 tag: 5 964 val: test 965}, 966{ 967 index: 7 968 tag: 5 969 val: test 970}, 971{ 972 index: 8 973 tag: 2 974 val: 0 975}, 976{ 977 index: 9 978 tag: 2 979 val: 0 980}, 981------------------------------------ 982slot &bytecodehar/bytecodehar-dynamic-import&_2498 983{ 984 index: 0 985 tag: 0 986 val: 2 987}, 988{ 989 index: 1 990 tag: 2 991 val: 0 992}, 993======> strings <====== 994"&bytecodehar/bytecodehar-dynamic-import&.#*#testNonConst"; "&bytecodehar/bytecodehar-dynamic-import&.#*#testNonOhmurl"; "&bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWithAt"; "&bytecodehar/bytecodehar-dynamic-import&.#*#testReplacementWoAt"; "&bytecodehar/bytecodehar-dynamic-import&.#~A=#A"; "@normalized:N&&&@ohos/lib/importfile2&2.0.0"; "@normalized:N&&&@ohos/lib2/importfile4&"; "@normalized:N&&&lib2/importfile3&"; "@normalized:N&&bundle&lib/importfile1&2.0.0"; "@normalized:N&module&&@ohos/lib/importfile2&2.0.0"; "@normalized:N&module&bundle&lib/importfile1&2.0.0"; "aaa"; "prototype"; "test"; 995 996======> literal array buffer <====== 997======> strings <====== 998 999slotNum = 0x18 1000.language ECMAScript 1001.function any &bytecodehar/bytecodehar-static-import&.#*#foo(any a0, any a1, any a2) { 1002 tryldglobalbyname 0x0, print 1003 sta v0 1004 createemptyarray 0x1 1005 sta v1 1006 ldlexvar 0x0, 0x0 1007 sta v2 1008 throw.undefinedifholewithname a 1009 lda v2 1010 stownbyindex 0x2, v1, 0x0 1011 ldlexvar 0x0, 0x1 1012 sta v2 1013 throw.undefinedifholewithname b 1014 lda v2 1015 stownbyindex 0x4, v1, 0x1 1016 ldlexvar 0x0, 0x2 1017 sta v2 1018 throw.undefinedifholewithname c 1019 lda v2 1020 stownbyindex 0x6, v1, 0x2 1021 ldlexvar 0x0, 0x3 1022 sta v2 1023 throw.undefinedifholewithname d 1024 lda v2 1025 stownbyindex 0x8, v1, 0x3 1026 ldlexvar 0x0, 0x4 1027 sta v2 1028 throw.undefinedifholewithname e 1029 lda v2 1030 stownbyindex 0xa, v1, 0x4 1031 ldlexvar 0x0, 0x5 1032 sta v2 1033 throw.undefinedifholewithname f 1034 lda v2 1035 stownbyindex 0xc, v1, 0x5 1036 ldlexvar 0x0, 0x6 1037 sta v2 1038 throw.undefinedifholewithname g 1039 lda v2 1040 stownbyindex 0xe, v1, 0x6 1041 ldlexvar 0x0, 0x7 1042 sta v2 1043 throw.undefinedifholewithname h 1044 lda v2 1045 stownbyindex 0x10, v1, 0x7 1046 ldlexvar 0x0, 0x8 1047 sta v2 1048 throw.undefinedifholewithname i 1049 lda v2 1050 stownbyindex 0x12, v1, 0x8 1051 ldlexvar 0x0, 0x9 1052 sta v2 1053 throw.undefinedifholewithname j 1054 lda v2 1055 stownbyindex 0x14, v1, 0x9 1056 lda v0 1057 callarg1 0x16, v1 1058 returnundefined 1059} 1060 1061slotNum = 0x0 1062.language ECMAScript 1063.function any &bytecodehar/bytecodehar-static-import&.#~A=#A(any a0, any a1, any a2) { 1064 lda a2 1065 return 1066} 1067 1068slotNum = 0x4 1069.language ECMAScript 1070.function any &bytecodehar/bytecodehar-static-import&.func_main_0(any a0, any a1, any a2) { 1071 newlexenv 0xa 1072 definefunc 0x0, &bytecodehar/bytecodehar-static-import&.#*#foo, 0x0 1073 getmodulenamespace 0x0 1074 stlexvar 0x0, 0x0 1075 getmodulenamespace 0x1 1076 stlexvar 0x0, 0x1 1077 getmodulenamespace 0x2 1078 stlexvar 0x0, 0x2 1079 getmodulenamespace 0x3 1080 stlexvar 0x0, 0x3 1081 getmodulenamespace 0x4 1082 stlexvar 0x0, 0x4 1083 getmodulenamespace 0x5 1084 stlexvar 0x0, 0x5 1085 getmodulenamespace 0x6 1086 stlexvar 0x0, 0x6 1087 getmodulenamespace 0x7 1088 stlexvar 0x0, 0x7 1089 getmodulenamespace 0x8 1090 stlexvar 0x0, 0x8 1091 getmodulenamespace 0x9 1092 stlexvar 0x0, 0x9 1093 ldhole 1094 sta v0 1095 defineclasswithbuffer 0x1, &bytecodehar/bytecodehar-static-import&.#~A=#A, &bytecodehar/bytecodehar-static-import&_2647, 0x0, v0 1096 ldobjbyname 0x2, prototype 1097 returnundefined 1098} 1099 1100 1101======> literal array buffer <====== 1102------------------------------------ 1103slot &bytecodehar/bytecodehar-static-import&_2507 1104------------------------------------ 1105slot &bytecodehar/bytecodehar-static-import&_2511 1106{ 1107 index: 0 1108 tag: 2 1109 val: 10 1110}, 1111{ 1112 index: 1 1113 tag: 5 1114 val: @normalized:N&module&bundle&lib/importfile1&2.0.0 1115}, 1116{ 1117 index: 2 1118 tag: 5 1119 val: @normalized:N&module&bundle&lib/importfile1&2.0.0 1120}, 1121{ 1122 index: 3 1123 tag: 5 1124 val: @normalized:N&&bundle&lib/importfile1&2.0.0 1125}, 1126{ 1127 index: 4 1128 tag: 5 1129 val: @normalized:N&&bundle&lib/importfile1&2.0.0 1130}, 1131{ 1132 index: 5 1133 tag: 5 1134 val: @normalized:N&&&lib2/importfile3& 1135}, 1136{ 1137 index: 6 1138 tag: 5 1139 val: @normalized:N&module&&@ohos/lib/importfile2&2.0.0 1140}, 1141{ 1142 index: 7 1143 tag: 5 1144 val: @normalized:N&module&&@ohos/lib/importfile2&2.0.0 1145}, 1146{ 1147 index: 8 1148 tag: 5 1149 val: @normalized:N&&&@ohos/lib/importfile2&2.0.0 1150}, 1151{ 1152 index: 9 1153 tag: 5 1154 val: @normalized:N&&&@ohos/lib/importfile2&2.0.0 1155}, 1156{ 1157 index: 10 1158 tag: 5 1159 val: @normalized:N&&&@ohos/lib2/importfile4& 1160}, 1161{ 1162 index: 11 1163 tag: 2 1164 val: 0 1165}, 1166{ 1167 index: 12 1168 tag: 2 1169 val: 10 1170}, 1171{ 1172 index: 13 1173 tag: 5 1174 val: a 1175}, 1176{ 1177 index: 14 1178 tag: 9 1179 val: 0 1180}, 1181{ 1182 index: 15 1183 tag: 5 1184 val: b 1185}, 1186{ 1187 index: 16 1188 tag: 9 1189 val: 1 1190}, 1191{ 1192 index: 17 1193 tag: 5 1194 val: c 1195}, 1196{ 1197 index: 18 1198 tag: 9 1199 val: 2 1200}, 1201{ 1202 index: 19 1203 tag: 5 1204 val: d 1205}, 1206{ 1207 index: 20 1208 tag: 9 1209 val: 3 1210}, 1211{ 1212 index: 21 1213 tag: 5 1214 val: e 1215}, 1216{ 1217 index: 22 1218 tag: 9 1219 val: 4 1220}, 1221{ 1222 index: 23 1223 tag: 5 1224 val: f 1225}, 1226{ 1227 index: 24 1228 tag: 9 1229 val: 5 1230}, 1231{ 1232 index: 25 1233 tag: 5 1234 val: g 1235}, 1236{ 1237 index: 26 1238 tag: 9 1239 val: 6 1240}, 1241{ 1242 index: 27 1243 tag: 5 1244 val: h 1245}, 1246{ 1247 index: 28 1248 tag: 9 1249 val: 7 1250}, 1251{ 1252 index: 29 1253 tag: 5 1254 val: i 1255}, 1256{ 1257 index: 30 1258 tag: 9 1259 val: 8 1260}, 1261{ 1262 index: 31 1263 tag: 5 1264 val: j 1265}, 1266{ 1267 index: 32 1268 tag: 9 1269 val: 9 1270}, 1271{ 1272 index: 33 1273 tag: 2 1274 val: 1 1275}, 1276{ 1277 index: 34 1278 tag: 5 1279 val: Anno2 1280}, 1281{ 1282 index: 35 1283 tag: 5 1284 val: Anno2 1285}, 1286{ 1287 index: 36 1288 tag: 2 1289 val: 0 1290}, 1291{ 1292 index: 37 1293 tag: 2 1294 val: 0 1295}, 1296------------------------------------ 1297slot &bytecodehar/bytecodehar-static-import&_2647 1298{ 1299 index: 0 1300 tag: 0 1301 val: 2 1302}, 1303{ 1304 index: 1 1305 tag: 2 1306 val: 0 1307}, 1308======> strings <====== 1309"&bytecodehar/bytecodehar-static-import&.#*#foo"; "&bytecodehar/bytecodehar-static-import&.#~A=#A"; "a"; "b"; "c"; "d"; "e"; "f"; "g"; "h"; "i"; "j"; "print"; "prototype"; 1310 1311======> literal array buffer <====== 1312======> strings <====== 1313 1314slotNum = 0x0 1315.language ECMAScript 1316.function any &myapp/hap-file-exec&.#~A=#A(any a0, any a1, any a2) { 1317label_1: 1318label_0: 1319 lda a2 1320 return 1321label_2: 1322} 1323 1324slotNum = 0xd 1325.language ECMAScript 1326.function any &myapp/hap-file-exec&.func_main_0(any a0, any a1, any a2) { 1327label_1: 1328label_0: 1329 getmodulenamespace 0x0 1330 sta v0 1331 getmodulenamespace 0x1 1332 sta v1 1333 tryldglobalbyname 0x0, print 1334 sta v2 1335 lda v0 1336 ldobjbyname 0x1, test 1337 sta v0 1338 lda v2 1339 callarg1 0x3, v0 1340 tryldglobalbyname 0x5, print 1341 sta v0 1342 lda v1 1343 ldobjbyname 0x6, test 1344 sta v1 1345 lda v0 1346 callarg1 0x8, v1 1347 ldhole 1348 sta v0 1349 defineclasswithbuffer 0xa, &myapp/hap-file-exec&.#~A=#A, &myapp/hap-file-exec&_2, 0x0, v0 1350 ldobjbyname 0xb, prototype 1351 returnundefined 1352label_2: 1353} 1354 1355 1356======> literal array buffer <====== 1357------------------------------------ 1358slot &myapp/hap-file-exec&_0 1359------------------------------------ 1360slot &myapp/hap-file-exec&_1 1361{ 1362 index: 0 1363 tag: 2 1364 val: 2 1365}, 1366{ 1367 index: 1 1368 tag: 5 1369 val: @normalized:N&&&bytecodehar/bytecodehar-dynamic-import& 1370}, 1371{ 1372 index: 2 1373 tag: 5 1374 val: @normalized:N&&&bytecodehar/bytecodehar-static-import& 1375}, 1376{ 1377 index: 3 1378 tag: 2 1379 val: 0 1380}, 1381{ 1382 index: 4 1383 tag: 2 1384 val: 2 1385}, 1386{ 1387 index: 5 1388 tag: 5 1389 val: bytecodeharDynamicImport 1390}, 1391{ 1392 index: 6 1393 tag: 9 1394 val: 0 1395}, 1396{ 1397 index: 7 1398 tag: 5 1399 val: bytecodeharStaticImport 1400}, 1401{ 1402 index: 8 1403 tag: 9 1404 val: 1 1405}, 1406{ 1407 index: 9 1408 tag: 2 1409 val: 0 1410}, 1411{ 1412 index: 10 1413 tag: 2 1414 val: 0 1415}, 1416{ 1417 index: 11 1418 tag: 2 1419 val: 0 1420}, 1421------------------------------------ 1422slot &myapp/hap-file-exec&_2 1423{ 1424 index: 0 1425 tag: 0 1426 val: 2 1427}, 1428{ 1429 index: 1 1430 tag: 2 1431 val: 0 1432}, 1433======> strings <====== 1434"&myapp/hap-file-exec&.#~A=#A"; "print"; "prototype"; "test"; 1435slotNum = 0x0 1436.language ECMAScript 1437.function any bundle&lib/importfile1&2.0.0.func_main_0(any a0, any a1, any a2) { 1438label_1: 1439label_0: 1440 ldtrue 1441 stmodulevar 0x0 1442 returnundefined 1443label_2: 1444} 1445 1446 1447======> literal array buffer <====== 1448------------------------------------ 1449slot bundle&lib/importfile1&2.0.0_0 1450------------------------------------ 1451slot bundle&lib/importfile1&2.0.0_1 1452{ 1453 index: 0 1454 tag: 2 1455 val: 0 1456}, 1457{ 1458 index: 1 1459 tag: 2 1460 val: 0 1461}, 1462{ 1463 index: 2 1464 tag: 2 1465 val: 0 1466}, 1467{ 1468 index: 3 1469 tag: 2 1470 val: 1 1471}, 1472{ 1473 index: 4 1474 tag: 5 1475 val: test1 1476}, 1477{ 1478 index: 5 1479 tag: 5 1480 val: test1 1481}, 1482{ 1483 index: 6 1484 tag: 2 1485 val: 0 1486}, 1487{ 1488 index: 7 1489 tag: 2 1490 val: 0 1491}, 1492======> strings <====== 1493 1494slotNum = 0x0 1495.language ECMAScript 1496.function any &@ohos/lib/importfile2&2.0.0.func_main_0(any a0, any a1, any a2) { 1497label_1: 1498label_0: 1499 ldtrue 1500 stmodulevar 0x0 1501 returnundefined 1502label_2: 1503} 1504 1505 1506======> literal array buffer <====== 1507------------------------------------ 1508slot &@ohos/lib/importfile2&2.0.0_0 1509------------------------------------ 1510slot &@ohos/lib/importfile2&2.0.0_1 1511{ 1512 index: 0 1513 tag: 2 1514 val: 0 1515}, 1516{ 1517 index: 1 1518 tag: 2 1519 val: 0 1520}, 1521{ 1522 index: 2 1523 tag: 2 1524 val: 0 1525}, 1526{ 1527 index: 3 1528 tag: 2 1529 val: 1 1530}, 1531{ 1532 index: 4 1533 tag: 5 1534 val: test2 1535}, 1536{ 1537 index: 5 1538 tag: 5 1539 val: test2 1540}, 1541{ 1542 index: 6 1543 tag: 2 1544 val: 0 1545}, 1546{ 1547 index: 7 1548 tag: 2 1549 val: 0 1550}, 1551======> strings <====== 1552 1553slotNum = 0x0 1554.language ECMAScript 1555.function any &lib2/importfile3&.func_main_0(any a0, any a1, any a2) { 1556label_1: 1557label_0: 1558 ldtrue 1559 stmodulevar 0x0 1560 returnundefined 1561label_2: 1562} 1563 1564 1565======> literal array buffer <====== 1566------------------------------------ 1567slot &lib2/importfile3&_0 1568------------------------------------ 1569slot &lib2/importfile3&_1 1570{ 1571 index: 0 1572 tag: 2 1573 val: 0 1574}, 1575{ 1576 index: 1 1577 tag: 2 1578 val: 0 1579}, 1580{ 1581 index: 2 1582 tag: 2 1583 val: 0 1584}, 1585{ 1586 index: 3 1587 tag: 2 1588 val: 1 1589}, 1590{ 1591 index: 4 1592 tag: 5 1593 val: test3 1594}, 1595{ 1596 index: 5 1597 tag: 5 1598 val: test3 1599}, 1600{ 1601 index: 6 1602 tag: 2 1603 val: 0 1604}, 1605{ 1606 index: 7 1607 tag: 2 1608 val: 0 1609}, 1610======> strings <====== 1611 1612slotNum = 0x0 1613.language ECMAScript 1614.function any &@ohos/lib2/importfile4&.func_main_0(any a0, any a1, any a2) { 1615label_1: 1616label_0: 1617 ldtrue 1618 stmodulevar 0x0 1619 returnundefined 1620label_2: 1621} 1622 1623 1624======> literal array buffer <====== 1625------------------------------------ 1626slot &@ohos/lib2/importfile4&_0 1627------------------------------------ 1628slot &@ohos/lib2/importfile4&_1 1629{ 1630 index: 0 1631 tag: 2 1632 val: 0 1633}, 1634{ 1635 index: 1 1636 tag: 2 1637 val: 0 1638}, 1639{ 1640 index: 2 1641 tag: 2 1642 val: 0 1643}, 1644{ 1645 index: 3 1646 tag: 2 1647 val: 1 1648}, 1649{ 1650 index: 4 1651 tag: 5 1652 val: test4 1653}, 1654{ 1655 index: 5 1656 tag: 5 1657 val: test4 1658}, 1659{ 1660 index: 6 1661 tag: 2 1662 val: 0 1663}, 1664{ 1665 index: 7 1666 tag: 2 1667 val: 0 1668}, 1669======> strings <====== 1670 1671