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