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