1.language ECMAScript 2 3slotNum = 0x23 4.function any .#*#foo(any a0, any a1, any a2) { 5label_16: 6label_5: 7 ldai 0x1 8 sta v0 9 ldlexvar 0x0, 0x0 10 throw.undefinedifholewithname lexVar 11 lda v0 12 stlexvar 0x0, 0x0 13 ldlexvar 0x0, 0x0 14 sta v1 15 throw.undefinedifholewithname lexVar 16 lda v0 17 greater 0x9, v1 18 jeqz label_7 19label_8: 20 tryldglobalbyname 0xa, print 21 sta v1 22 lda.str good1 23 sta v2 24 lda v1 25 callarg1 0xb, v2 26 jmp label_9 27label_7: 28 tryldglobalbyname 0xd, print 29 sta v1 30 lda.str good2 31 sta v2 32 lda v1 33 callarg1 0xe, v2 34label_9: 35 ldlocalmodulevar 0x0 36 throw.undefinedifholewithname moduleVar 37 lda v0 38 stmodulevar 0x0 39 ldlocalmodulevar 0x0 40 sta v1 41 throw.undefinedifholewithname moduleVar 42 lda v0 43 greater 0x10, v1 44 jeqz label_10 45label_11: 46 tryldglobalbyname 0x11, print 47 sta v1 48 lda.str good3 49 sta v2 50 lda v1 51 callarg1 0x12, v2 52 jmp label_12 53label_10: 54 tryldglobalbyname 0x14, print 55 sta v1 56 lda.str good4 57 sta v2 58 lda v1 59 callarg1 0x15, v2 60label_12: 61 createobjectwithbuffer 0x17, _2 62 sta v1 63 lda v0 64 definepropertybyname 0x18, fa, v1 65 lda v1 66 ldobjbyname 0x1a, fa 67 sta v1 68 lda v0 69 greater 0x1c, v1 70 jeqz label_13 71label_14: 72 tryldglobalbyname 0x1d, print 73 sta v0 74 lda.str good5 75 sta v1 76 lda v0 77 callarg1 0x1e, v1 78 jmp label_15 79label_13: 80 tryldglobalbyname 0x20, print 81 sta v0 82 lda.str good6 83 sta v1 84 lda v0 85 callarg1 0x21, v1 86label_15: 87 ldundefined 88 returnundefined 89label_17: 90} 91 92slotNum = 0x3 93.function any .func_main_0(any a0, any a1, any a2) { 94label_1: 95label_0: 96 newlexenv 0x1 97 definefunc 0x0, .#*#foo, 0x0 98 sta v0 99 ldai 0x1 100 sta v1 101 lda v1 102 stmodulevar 0x0 103 lda v1 104 stlexvar 0x0, 0x0 105 lda v0 106 callarg0 0x1 107 ldundefined 108 returnundefined 109label_2: 110} 111 112 113