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