Compiler.deploy.js 420 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673
  1. smalltalk.addPackage('Compiler', {});
  2. smalltalk.addClass('ChunkParser', smalltalk.Object, ['stream'], 'Compiler');
  3. smalltalk.addClass('Compiler', smalltalk.Object, ['currentClass', 'source', 'unknownVariables', 'codeGeneratorClass'], 'Compiler');
  4. smalltalk.addClass('CompilerError', smalltalk.Error, [], 'Compiler');
  5. smalltalk.addClass('ParseError', smalltalk.CompilerError, [], 'Compiler');
  6. smalltalk.addClass('SemanticError', smalltalk.CompilerError, [], 'Compiler');
  7. smalltalk.addClass('InliningError', smalltalk.SemanticError, [], 'Compiler');
  8. smalltalk.addClass('InvalidAssignmentError', smalltalk.SemanticError, ['variableName'], 'Compiler');
  9. smalltalk.addClass('ShadowingVariableError', smalltalk.SemanticError, ['variableName'], 'Compiler');
  10. smalltalk.addClass('UnknownVariableError', smalltalk.SemanticError, ['variableName'], 'Compiler');
  11. smalltalk.addClass('DoIt', smalltalk.Object, [], 'Compiler');
  12. smalltalk.addClass('Exporter', smalltalk.Object, [], 'Compiler');
  13. smalltalk.addClass('ChunkExporter', smalltalk.Exporter, [], 'Compiler');
  14. smalltalk.addClass('StrippedExporter', smalltalk.Exporter, [], 'Compiler');
  15. smalltalk.addClass('IRInstruction', smalltalk.Object, ['parent', 'instructions'], 'Compiler');
  16. smalltalk.addClass('IRAssignment', smalltalk.IRInstruction, [], 'Compiler');
  17. smalltalk.addClass('IRInlinedAssignment', smalltalk.IRAssignment, [], 'Compiler');
  18. smalltalk.addClass('IRDynamicArray', smalltalk.IRInstruction, [], 'Compiler');
  19. smalltalk.addClass('IRDynamicDictionary', smalltalk.IRInstruction, [], 'Compiler');
  20. smalltalk.addClass('IRScopedInstruction', smalltalk.IRInstruction, ['scope'], 'Compiler');
  21. smalltalk.addClass('IRClosure', smalltalk.IRScopedInstruction, ['arguments'], 'Compiler');
  22. smalltalk.addClass('IRInlinedClosure', smalltalk.IRClosure, [], 'Compiler');
  23. smalltalk.addClass('IRMethod', smalltalk.IRScopedInstruction, ['theClass', 'source', 'selector', 'classReferences', 'messageSends', 'superSends', 'arguments', 'internalVariables'], 'Compiler');
  24. smalltalk.addClass('IRReturn', smalltalk.IRScopedInstruction, [], 'Compiler');
  25. smalltalk.addClass('IRBlockReturn', smalltalk.IRReturn, [], 'Compiler');
  26. smalltalk.addClass('IRInlinedReturn', smalltalk.IRReturn, [], 'Compiler');
  27. smalltalk.addClass('IRInlinedNonLocalReturn', smalltalk.IRInlinedReturn, [], 'Compiler');
  28. smalltalk.addClass('IRNonLocalReturn', smalltalk.IRReturn, [], 'Compiler');
  29. smalltalk.addClass('IRTempDeclaration', smalltalk.IRScopedInstruction, ['name'], 'Compiler');
  30. smalltalk.addClass('IRSend', smalltalk.IRInstruction, ['selector', 'classSend', 'index'], 'Compiler');
  31. smalltalk.addClass('IRInlinedSend', smalltalk.IRSend, [], 'Compiler');
  32. smalltalk.addClass('IRInlinedIfFalse', smalltalk.IRInlinedSend, [], 'Compiler');
  33. smalltalk.addClass('IRInlinedIfNilIfNotNil', smalltalk.IRInlinedSend, [], 'Compiler');
  34. smalltalk.addClass('IRInlinedIfTrue', smalltalk.IRInlinedSend, [], 'Compiler');
  35. smalltalk.addClass('IRInlinedIfTrueIfFalse', smalltalk.IRInlinedSend, [], 'Compiler');
  36. smalltalk.addClass('IRSequence', smalltalk.IRInstruction, [], 'Compiler');
  37. smalltalk.addClass('IRBlockSequence', smalltalk.IRSequence, [], 'Compiler');
  38. smalltalk.addClass('IRInlinedSequence', smalltalk.IRBlockSequence, [], 'Compiler');
  39. smalltalk.addClass('IRValue', smalltalk.IRInstruction, ['value'], 'Compiler');
  40. smalltalk.addClass('IRVariable', smalltalk.IRInstruction, ['variable'], 'Compiler');
  41. smalltalk.addClass('IRVerbatim', smalltalk.IRInstruction, ['source'], 'Compiler');
  42. smalltalk.addClass('IRSendInliner', smalltalk.Object, ['send', 'translator'], 'Compiler');
  43. smalltalk.addClass('IRAssignmentInliner', smalltalk.IRSendInliner, ['assignment'], 'Compiler');
  44. smalltalk.addClass('IRNonLocalReturnInliner', smalltalk.IRSendInliner, [], 'Compiler');
  45. smalltalk.addClass('IRReturnInliner', smalltalk.IRSendInliner, [], 'Compiler');
  46. smalltalk.addClass('IRVisitor', smalltalk.Object, [], 'Compiler');
  47. smalltalk.addClass('IRInliner', smalltalk.IRVisitor, [], 'Compiler');
  48. smalltalk.addClass('IRJSTranslator', smalltalk.IRVisitor, ['stream'], 'Compiler');
  49. smalltalk.addClass('IRInliningJSTranslator', smalltalk.IRJSTranslator, [], 'Compiler');
  50. smalltalk.addClass('Importer', smalltalk.Object, [], 'Compiler');
  51. smalltalk.addClass('JSStream', smalltalk.Object, ['stream'], 'Compiler');
  52. smalltalk.addClass('LexicalScope', smalltalk.Object, ['node', 'instruction', 'temps', 'args', 'outerScope'], 'Compiler');
  53. smalltalk.addClass('MethodLexicalScope', smalltalk.LexicalScope, ['iVars', 'pseudoVars', 'unknownVariables', 'localReturn', 'nonLocalReturns'], 'Compiler');
  54. smalltalk.addClass('Node', smalltalk.Object, ['position', 'nodes', 'shouldBeInlined', 'shouldBeAliased'], 'Compiler');
  55. smalltalk.addClass('AssignmentNode', smalltalk.Node, ['left', 'right'], 'Compiler');
  56. smalltalk.addClass('BlockNode', smalltalk.Node, ['parameters', 'scope'], 'Compiler');
  57. smalltalk.addMethod(
  58. "_inlined",
  59. smalltalk.method({
  60. selector: "inlined",
  61. fn: function () {
  62. var self=this;
  63. return (($receiver = self['@inlined']) == nil || $receiver == undefined) ? (function(){return false;})() : $receiver;
  64. return self;}
  65. }),
  66. smalltalk.BlockNode);
  67. smalltalk.addMethod(
  68. "_inlined_",
  69. smalltalk.method({
  70. selector: "inlined:",
  71. fn: function (aBoolean) {
  72. var self=this;
  73. (self['@inlined']=aBoolean);
  74. return self;}
  75. }),
  76. smalltalk.BlockNode);
  77. smalltalk.addClass('CascadeNode', smalltalk.Node, ['receiver'], 'Compiler');
  78. smalltalk.addClass('DynamicArrayNode', smalltalk.Node, [], 'Compiler');
  79. smalltalk.addClass('DynamicDictionaryNode', smalltalk.Node, [], 'Compiler');
  80. smalltalk.addClass('JSStatementNode', smalltalk.Node, ['source'], 'Compiler');
  81. smalltalk.addClass('MethodNode', smalltalk.Node, ['selector', 'arguments', 'source', 'scope', 'classReferences', 'messageSends', 'superSends'], 'Compiler');
  82. smalltalk.addClass('ReturnNode', smalltalk.Node, ['scope'], 'Compiler');
  83. smalltalk.addClass('SendNode', smalltalk.Node, ['selector', 'arguments', 'receiver', 'superSend', 'index'], 'Compiler');
  84. smalltalk.addClass('SequenceNode', smalltalk.Node, ['temps', 'scope'], 'Compiler');
  85. smalltalk.addClass('BlockSequenceNode', smalltalk.SequenceNode, [], 'Compiler');
  86. smalltalk.addClass('ValueNode', smalltalk.Node, ['value'], 'Compiler');
  87. smalltalk.addClass('VariableNode', smalltalk.ValueNode, ['assigned', 'binding'], 'Compiler');
  88. smalltalk.addClass('ClassReferenceNode', smalltalk.VariableNode, [], 'Compiler');
  89. smalltalk.addClass('VerbatimNode', smalltalk.Node, ['value'], 'Compiler');
  90. smalltalk.addMethod(
  91. "_accept_",
  92. smalltalk.method({
  93. selector: "accept:",
  94. fn: function (aVisitor) {
  95. var self=this;
  96. smalltalk.send(aVisitor, "_visitVerbatimNode_", [self]);
  97. return self;}
  98. }),
  99. smalltalk.VerbatimNode);
  100. smalltalk.addMethod(
  101. "_value",
  102. smalltalk.method({
  103. selector: "value",
  104. fn: function () {
  105. var self=this;
  106. return self['@value'];
  107. return self;}
  108. }),
  109. smalltalk.VerbatimNode);
  110. smalltalk.addMethod(
  111. "_value_",
  112. smalltalk.method({
  113. selector: "value:",
  114. fn: function (anObject) {
  115. var self=this;
  116. (self['@value']=anObject);
  117. return self;}
  118. }),
  119. smalltalk.VerbatimNode);
  120. smalltalk.addClass('NodeVisitor', smalltalk.Object, [], 'Compiler');
  121. smalltalk.addMethod(
  122. "_visitVerbatimNode_",
  123. smalltalk.method({
  124. selector: "visitVerbatimNode:",
  125. fn: function (aNode) {
  126. var self=this;
  127. smalltalk.send(self, "_visitNode_", [aNode]);
  128. return self;}
  129. }),
  130. smalltalk.NodeVisitor);
  131. smalltalk.addClass('AIContext', smalltalk.NodeVisitor, ['outerContext', 'pc', 'locals', 'receiver', 'selector'], 'Compiler');
  132. smalltalk.addClass('ASTInterpreter', smalltalk.NodeVisitor, ['currentNode', 'context', 'shouldReturn'], 'Compiler');
  133. smalltalk.addClass('AbstractCodeGenerator', smalltalk.NodeVisitor, ['currentClass', 'source'], 'Compiler');
  134. smalltalk.addClass('CodeGenerator', smalltalk.AbstractCodeGenerator, [], 'Compiler');
  135. smalltalk.addClass('InliningCodeGenerator', smalltalk.CodeGenerator, [], 'Compiler');
  136. smalltalk.addClass('FunCodeGenerator', smalltalk.AbstractCodeGenerator, ['stream', 'nestedBlocks', 'earlyReturn', 'currentSelector', 'unknownVariables', 'tempVariables', 'messageSends', 'referencedClasses', 'classReferenced', 'argVariables'], 'Compiler');
  137. smalltalk.addMethod(
  138. "_argVariables",
  139. smalltalk.method({
  140. selector: "argVariables",
  141. fn: function () {
  142. var self=this;
  143. return smalltalk.send(self['@argVariables'], "_copy", []);
  144. return self;}
  145. }),
  146. smalltalk.FunCodeGenerator);
  147. smalltalk.addMethod(
  148. "_checkClass_for_",
  149. smalltalk.method({
  150. selector: "checkClass:for:",
  151. fn: function (aClassName, receiver) {
  152. var self=this;
  153. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("((($receiver = ", "__comma", [receiver]), "__comma", [").klass === smalltalk."]), "__comma", [aClassName]), "__comma", [") ? "])]);
  154. return self;}
  155. }),
  156. smalltalk.FunCodeGenerator);
  157. smalltalk.addMethod(
  158. "_compileNode_",
  159. smalltalk.method({
  160. selector: "compileNode:",
  161. fn: function (aNode) {
  162. var self=this;
  163. (self['@stream']=smalltalk.send("", "_writeStream", []));
  164. smalltalk.send(self, "_visit_", [aNode]);
  165. return smalltalk.send(self['@stream'], "_contents", []);
  166. return self;}
  167. }),
  168. smalltalk.FunCodeGenerator);
  169. smalltalk.addMethod(
  170. "_initialize",
  171. smalltalk.method({
  172. selector: "initialize",
  173. fn: function () {
  174. var self=this;
  175. smalltalk.send(self, "_initialize", [], smalltalk.FunCodeGenerator.superclass || nil);
  176. (self['@stream']=smalltalk.send("", "_writeStream", []));
  177. (self['@unknownVariables']=[]);
  178. (self['@tempVariables']=[]);
  179. (self['@argVariables']=[]);
  180. (self['@messageSends']=[]);
  181. (self['@classReferenced']=[]);
  182. return self;}
  183. }),
  184. smalltalk.FunCodeGenerator);
  185. smalltalk.addMethod(
  186. "_inline_receiver_argumentNodes_",
  187. smalltalk.method({
  188. selector: "inline:receiver:argumentNodes:",
  189. fn: function (aSelector, receiver, aCollection) {
  190. var self=this;
  191. var inlined=nil;
  192. (inlined=false);
  193. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["(! $receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil)"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["(! $receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil)"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["(! $receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil)"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["(! $receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil)"]);return (inlined=true);})]));})]));
  194. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["($receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil)"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["($receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil)"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["($receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil)"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["($receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil)"]);return (inlined=true);})]));})]));
  195. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifTrue:ifFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["($receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["())"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["($receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["())"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["($receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["())"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["($receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["())"]);return (inlined=true);})]));})]));
  196. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifFalse:ifTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["(! $receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["())"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["(! $receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["())"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["(! $receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["())"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["(! $receiver ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["())"]);return (inlined=true);})]));})]));
  197. ((($receiver = smalltalk.send(aSelector, "__eq", ["<"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver <"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver <"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
  198. ((($receiver = smalltalk.send(aSelector, "__eq", ["<="])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver <="]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver <="]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
  199. ((($receiver = smalltalk.send(aSelector, "__eq", [">"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver >"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver >"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
  200. ((($receiver = smalltalk.send(aSelector, "__eq", [">="])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver >="]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver >="]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
  201. ((($receiver = smalltalk.send(aSelector, "__eq", ["+"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver +"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver +"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
  202. ((($receiver = smalltalk.send(aSelector, "__eq", ["-"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver -"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver -"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
  203. ((($receiver = smalltalk.send(aSelector, "__eq", ["*"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver *"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver *"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
  204. ((($receiver = smalltalk.send(aSelector, "__eq", ["/"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver /"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", ["$receiver /"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
  205. return inlined;
  206. return self;}
  207. }),
  208. smalltalk.FunCodeGenerator);
  209. smalltalk.addMethod(
  210. "_inlineLiteral_receiverNode_argumentNodes_",
  211. smalltalk.method({
  212. selector: "inlineLiteral:receiverNode:argumentNodes:",
  213. fn: function (aSelector, anObject, aCollection) {
  214. var self=this;
  215. var inlined=nil;
  216. (inlined=false);
  217. ((($receiver = smalltalk.send(aSelector, "__eq", ["whileTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while("]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()}})()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while("]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()}})()"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while("]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()}})()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while("]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()}})()"]);return (inlined=true);})]));})]));
  218. ((($receiver = smalltalk.send(aSelector, "__eq", ["whileFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while(!"]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()}})()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while(!"]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()}})()"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while(!"]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()}})()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while(!"]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {"]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()}})()"]);return (inlined=true);})]));})]));
  219. ((($receiver = smalltalk.send(aSelector, "__eq", ["whileTrue"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while("]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {}})()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while("]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {}})()"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while("]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {}})()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while("]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {}})()"]);return (inlined=true);})]));})]));
  220. ((($receiver = smalltalk.send(aSelector, "__eq", ["whileFalse"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while(!"]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {}})()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while(!"]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {}})()"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while(!"]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {}})()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){while(!"]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()) {}})()"]);return (inlined=true);})]));})]));
  221. ((($receiver = smalltalk.send(aSelector, "__eq", ["+"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" + "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" + "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" + "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" + "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
  222. ((($receiver = smalltalk.send(aSelector, "__eq", ["-"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" - "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" - "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" - "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" - "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
  223. ((($receiver = smalltalk.send(aSelector, "__eq", ["*"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" * "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" * "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" * "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" * "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
  224. ((($receiver = smalltalk.send(aSelector, "__eq", ["/"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" / "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" / "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" / "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" / "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
  225. ((($receiver = smalltalk.send(aSelector, "__eq", ["<"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" < "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" < "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" < "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" < "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
  226. ((($receiver = smalltalk.send(aSelector, "__eq", ["<="])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" <= "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" <= "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" <= "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" <= "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
  227. ((($receiver = smalltalk.send(aSelector, "__eq", [">"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" > "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" > "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" > "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" > "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
  228. ((($receiver = smalltalk.send(aSelector, "__eq", [">="])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" >= "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" >= "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" >= "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [" >= "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
  229. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : $receiver"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : $receiver"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : $receiver"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : $receiver"]);return (inlined=true);})]));})]));
  230. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifNotNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") != nil && $receiver != undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") != nil && $receiver != undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") != nil && $receiver != undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") != nil && $receiver != undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : nil"]);return (inlined=true);})]));})]));
  231. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifNil:ifNotNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()"]);return (inlined=true);})]));})]));
  232. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifNotNil:ifNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()"]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()"]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["(($receiver = "]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [") == nil || $receiver == undefined) ? "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["() : "]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", ["()"]);return (inlined=true);})]));})]));
  233. return inlined;
  234. return self;}
  235. }),
  236. smalltalk.FunCodeGenerator);
  237. smalltalk.addMethod(
  238. "_isNode_ofClass_",
  239. smalltalk.method({
  240. selector: "isNode:ofClass:",
  241. fn: function (aNode, aClass) {
  242. var self=this;
  243. return smalltalk.send(smalltalk.send(aNode, "_isValueNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_value", []), "_class", []), "__eq", [aClass]), "_or_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["self"]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_currentClass", []), "__eq", [aClass]);})]);})]);})]);
  244. return self;}
  245. }),
  246. smalltalk.FunCodeGenerator);
  247. smalltalk.addMethod(
  248. "_knownVariables",
  249. smalltalk.method({
  250. selector: "knownVariables",
  251. fn: function () {
  252. var self=this;
  253. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_tempVariables", [])]);smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_argVariables", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_pseudoVariables", []));
  254. return self;}
  255. }),
  256. smalltalk.FunCodeGenerator);
  257. smalltalk.addMethod(
  258. "_performOptimizations",
  259. smalltalk.method({
  260. selector: "performOptimizations",
  261. fn: function () {
  262. var self=this;
  263. return smalltalk.send(smalltalk.send(self, "_class", []), "_performOptimizations", []);
  264. return self;}
  265. }),
  266. smalltalk.FunCodeGenerator);
  267. smalltalk.addMethod(
  268. "_send_to_arguments_superSend_",
  269. smalltalk.method({
  270. selector: "send:to:arguments:superSend:",
  271. fn: function (aSelector, aReceiver, aCollection, aBoolean) {
  272. var self=this;
  273. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(str){var tmp=nil;
  274. (tmp=self['@stream']);smalltalk.send(str, "_nextPutAll_", ["smalltalk.send("]);smalltalk.send(str, "_nextPutAll_", [aReceiver]);smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(", \x22", "__comma", [smalltalk.send(aSelector, "_asSelector", [])]), "__comma", ["\x22, ["])]);(self['@stream']=str);smalltalk.send(aCollection, "_do_separatedBy_", [(function(each){return smalltalk.send(self, "_visit_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [", "]);})]);(self['@stream']=tmp);smalltalk.send(str, "_nextPutAll_", ["]"]);((($receiver = aBoolean).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(", smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(self, "_currentClass", [])])]), "__comma", [".superclass || nil"])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(", smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(self, "_currentClass", [])])]), "__comma", [".superclass || nil"])]);})]));return smalltalk.send(str, "_nextPutAll_", [")"]);})]);
  275. return self;}
  276. }),
  277. smalltalk.FunCodeGenerator);
  278. smalltalk.addMethod(
  279. "_tempVariables",
  280. smalltalk.method({
  281. selector: "tempVariables",
  282. fn: function () {
  283. var self=this;
  284. return smalltalk.send(self['@tempVariables'], "_copy", []);
  285. return self;}
  286. }),
  287. smalltalk.FunCodeGenerator);
  288. smalltalk.addMethod(
  289. "_unknownVariables",
  290. smalltalk.method({
  291. selector: "unknownVariables",
  292. fn: function () {
  293. var self=this;
  294. return smalltalk.send(self['@unknownVariables'], "_copy", []);
  295. return self;}
  296. }),
  297. smalltalk.FunCodeGenerator);
  298. smalltalk.addMethod(
  299. "_visit_",
  300. smalltalk.method({
  301. selector: "visit:",
  302. fn: function (aNode) {
  303. var self=this;
  304. smalltalk.send(aNode, "_accept_", [self]);
  305. return self;}
  306. }),
  307. smalltalk.FunCodeGenerator);
  308. smalltalk.addMethod(
  309. "_visitAssignmentNode_",
  310. smalltalk.method({
  311. selector: "visitAssignmentNode:",
  312. fn: function (aNode) {
  313. var self=this;
  314. smalltalk.send(self['@stream'], "_nextPutAll_", ["("]);
  315. smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_left", [])]);
  316. smalltalk.send(self['@stream'], "_nextPutAll_", ["="]);
  317. smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_right", [])]);
  318. smalltalk.send(self['@stream'], "_nextPutAll_", [")"]);
  319. return self;}
  320. }),
  321. smalltalk.FunCodeGenerator);
  322. smalltalk.addMethod(
  323. "_visitBlockNode_",
  324. smalltalk.method({
  325. selector: "visitBlockNode:",
  326. fn: function (aNode) {
  327. var self=this;
  328. smalltalk.send(self['@stream'], "_nextPutAll_", ["(function("]);
  329. smalltalk.send(smalltalk.send(aNode, "_parameters", []), "_do_separatedBy_", [(function(each){smalltalk.send(self['@tempVariables'], "_add_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [", "]);})]);
  330. smalltalk.send(self['@stream'], "_nextPutAll_", ["){"]);
  331. smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){return smalltalk.send(self, "_visit_", [each]);})]);
  332. smalltalk.send(self['@stream'], "_nextPutAll_", ["})"]);
  333. return self;}
  334. }),
  335. smalltalk.FunCodeGenerator);
  336. smalltalk.addMethod(
  337. "_visitBlockSequenceNode_",
  338. smalltalk.method({
  339. selector: "visitBlockSequenceNode:",
  340. fn: function (aNode) {
  341. var self=this;
  342. var index=nil;
  343. (self['@nestedBlocks']=((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
  344. ((($receiver = smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return nil;"]);})() : (function(){smalltalk.send(smalltalk.send(aNode, "_temps", []), "_do_", [(function(each){var temp=nil;
  345. (temp=smalltalk.send(self, "_safeVariableNameFor_", [each]));smalltalk.send(self['@tempVariables'], "_add_", [temp]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("var ", "__comma", [temp]), "__comma", ["=nil;"])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);})]);(index=(0));return smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){(index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));((($receiver = smalltalk.send(index, "__eq", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})]));smalltalk.send(self, "_visit_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [";"]);})]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return nil;"]);}), (function(){smalltalk.send(smalltalk.send(aNode, "_temps", []), "_do_", [(function(each){var temp=nil;
  346. (temp=smalltalk.send(self, "_safeVariableNameFor_", [each]));smalltalk.send(self['@tempVariables'], "_add_", [temp]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("var ", "__comma", [temp]), "__comma", ["=nil;"])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);})]);(index=(0));return smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){(index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));((($receiver = smalltalk.send(index, "__eq", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})]));smalltalk.send(self, "_visit_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [";"]);})]);})]));
  347. (self['@nestedBlocks']=((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])));
  348. return self;}
  349. }),
  350. smalltalk.FunCodeGenerator);
  351. smalltalk.addMethod(
  352. "_visitCascadeNode_",
  353. smalltalk.method({
  354. selector: "visitCascadeNode:",
  355. fn: function (aNode) {
  356. var self=this;
  357. var index=nil;
  358. (index=(0));
  359. ((($receiver = smalltalk.send(self['@tempVariables'], "_includes_", ["$rec"])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@tempVariables'], "_add_", ["$rec"]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@tempVariables'], "_add_", ["$rec"]);})]));
  360. smalltalk.send(self['@stream'], "_nextPutAll_", ["(function($rec){"]);
  361. smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){(index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));((($receiver = smalltalk.send(index, "__eq", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})]));smalltalk.send(each, "_receiver_", [smalltalk.send(smalltalk.send((smalltalk.VariableNode || VariableNode), "_new", []), "_value_", ["$rec"])]);smalltalk.send(self, "_visit_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [";"]);})]);
  362. smalltalk.send(self['@stream'], "_nextPutAll_", ["})("]);
  363. smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_receiver", [])]);
  364. smalltalk.send(self['@stream'], "_nextPutAll_", [")"]);
  365. return self;}
  366. }),
  367. smalltalk.FunCodeGenerator);
  368. smalltalk.addMethod(
  369. "_visitClassReferenceNode_",
  370. smalltalk.method({
  371. selector: "visitClassReferenceNode:",
  372. fn: function (aNode) {
  373. var self=this;
  374. ((($receiver = smalltalk.send(self['@referencedClasses'], "_includes_", [smalltalk.send(aNode, "_value", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@referencedClasses'], "_add_", [smalltalk.send(aNode, "_value", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@referencedClasses'], "_add_", [smalltalk.send(aNode, "_value", [])]);})]));
  375. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(smalltalk.", "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", [" || "]), "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", [")"])]);
  376. return self;}
  377. }),
  378. smalltalk.FunCodeGenerator);
  379. smalltalk.addMethod(
  380. "_visitDynamicArrayNode_",
  381. smalltalk.method({
  382. selector: "visitDynamicArrayNode:",
  383. fn: function (aNode) {
  384. var self=this;
  385. smalltalk.send(self['@stream'], "_nextPutAll_", ["["]);
  386. smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_separatedBy_", [(function(each){return smalltalk.send(self, "_visit_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [","]);})]);
  387. smalltalk.send(self['@stream'], "_nextPutAll_", ["]"]);
  388. return self;}
  389. }),
  390. smalltalk.FunCodeGenerator);
  391. smalltalk.addMethod(
  392. "_visitDynamicDictionaryNode_",
  393. smalltalk.method({
  394. selector: "visitDynamicDictionaryNode:",
  395. fn: function (aNode) {
  396. var self=this;
  397. smalltalk.send(self['@stream'], "_nextPutAll_", ["smalltalk.HashedCollection._fromPairs_(["]);
  398. smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_separatedBy_", [(function(each){return smalltalk.send(self, "_visit_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [","]);})]);
  399. smalltalk.send(self['@stream'], "_nextPutAll_", ["])"]);
  400. return self;}
  401. }),
  402. smalltalk.FunCodeGenerator);
  403. smalltalk.addMethod(
  404. "_visitFailure_",
  405. smalltalk.method({
  406. selector: "visitFailure:",
  407. fn: function (aFailure) {
  408. var self=this;
  409. smalltalk.send(self, "_error_", [smalltalk.send(aFailure, "_asString", [])]);
  410. return self;}
  411. }),
  412. smalltalk.FunCodeGenerator);
  413. smalltalk.addMethod(
  414. "_visitJSStatementNode_",
  415. smalltalk.method({
  416. selector: "visitJSStatementNode:",
  417. fn: function (aNode) {
  418. var self=this;
  419. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(aNode, "_source", [])]);
  420. return self;}
  421. }),
  422. smalltalk.FunCodeGenerator);
  423. smalltalk.addMethod(
  424. "_visitMethodNode_",
  425. smalltalk.method({
  426. selector: "visitMethodNode:",
  427. fn: function (aNode) {
  428. var self=this;
  429. var str=nil;
  430. var currentSelector=nil;
  431. (self['@currentSelector']=smalltalk.send(smalltalk.send(aNode, "_selector", []), "_asSelector", []));
  432. (self['@nestedBlocks']=(0));
  433. (self['@earlyReturn']=false);
  434. (self['@messageSends']=[]);
  435. (self['@referencedClasses']=[]);
  436. (self['@unknownVariables']=[]);
  437. (self['@tempVariables']=[]);
  438. (self['@argVariables']=[]);
  439. (function($rec){smalltalk.send($rec, "_nextPutAll_", ["smalltalk.method({"]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("selector: \x22", "__comma", [smalltalk.send(aNode, "_selector", [])]), "__comma", ["\x22,"])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);
  440. (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("source: ", "__comma", [smalltalk.send(smalltalk.send(self, "_source", []), "_asJavascript", [])]), "__comma", [","])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);
  441. smalltalk.send(self['@stream'], "_nextPutAll_", ["fn: function("]);
  442. smalltalk.send(smalltalk.send(aNode, "_arguments", []), "_do_separatedBy_", [(function(each){smalltalk.send(self['@argVariables'], "_add_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [", "]);})]);
  443. (function($rec){smalltalk.send($rec, "_nextPutAll_", ["){"]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", ["var self=this;"]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);
  444. (str=self['@stream']);
  445. (self['@stream']=smalltalk.send("", "_writeStream", []));
  446. smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){return smalltalk.send(self, "_visit_", [each]);})]);
  447. ((($receiver = self['@earlyReturn']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_nextPutAll_", ["var $early={};"]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", ["try{"]);})(str);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_nextPutAll_", ["var $early={};"]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", ["try{"]);})(str);})]));
  448. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(self['@stream'], "_contents", [])]);
  449. (self['@stream']=str);
  450. (function($rec){smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", ["return self;"]);})(self['@stream']);
  451. ((($receiver = self['@earlyReturn']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", ["} catch(e) {if(e===$early)return e[0]; throw e}"]);})(self['@stream']);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", ["} catch(e) {if(e===$early)return e[0]; throw e}"]);})(self['@stream']);})]));
  452. smalltalk.send(self['@stream'], "_nextPutAll_", ["}"]);
  453. (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(",", "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", ["messageSends: "])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@messageSends'], "_asJavascript", []), "__comma", [","])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("args: ", "__comma", [smalltalk.send(self['@argVariables'], "_asJavascript", [])]), "__comma", [","])]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", ["referencedClasses: ["]);})(self['@stream']);
  454. smalltalk.send(self['@referencedClasses'], "_do_separatedBy_", [(function(each){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [","]);})]);
  455. smalltalk.send(self['@stream'], "_nextPutAll_", ["]"]);
  456. smalltalk.send(self['@stream'], "_nextPutAll_", ["})"]);
  457. return self;}
  458. }),
  459. smalltalk.FunCodeGenerator);
  460. smalltalk.addMethod(
  461. "_visitReturnNode_",
  462. smalltalk.method({
  463. selector: "visitReturnNode:",
  464. fn: function (aNode) {
  465. var self=this;
  466. ((($receiver = ((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver >(0) : smalltalk.send($receiver, "__gt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (self['@earlyReturn']=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (self['@earlyReturn']=true);})]));
  467. ((($receiver = ((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver >(0) : smalltalk.send($receiver, "__gt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){throw $early=["]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(function(){throw $early=["]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})]));
  468. smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){return smalltalk.send(self, "_visit_", [each]);})]);
  469. ((($receiver = ((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver >(0) : smalltalk.send($receiver, "__gt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["]})()"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["]})()"]);})]));
  470. return self;}
  471. }),
  472. smalltalk.FunCodeGenerator);
  473. smalltalk.addMethod(
  474. "_visitSendNode_",
  475. smalltalk.method({
  476. selector: "visitSendNode:",
  477. fn: function (aNode) {
  478. var self=this;
  479. var str=nil;
  480. var receiver=nil;
  481. var superSend=nil;
  482. var inlined=nil;
  483. (str=self['@stream']);
  484. ((($receiver = smalltalk.send(self['@messageSends'], "_includes_", [smalltalk.send(aNode, "_selector", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@messageSends'], "_add_", [smalltalk.send(aNode, "_selector", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@messageSends'], "_add_", [smalltalk.send(aNode, "_selector", [])]);})]));
  485. (self['@stream']=smalltalk.send("", "_writeStream", []));
  486. smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_receiver", [])]);
  487. (superSend=smalltalk.send(smalltalk.send(self['@stream'], "_contents", []), "__eq", ["super"]));
  488. (receiver=((($receiver = superSend).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "self";})() : (function(){return smalltalk.send(self['@stream'], "_contents", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "self";}), (function(){return smalltalk.send(self['@stream'], "_contents", []);})])));
  489. (self['@stream']=str);
  490. ((($receiver = smalltalk.send(self, "_performOptimizations", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_inlineLiteral_receiverNode_argumentNodes_", [smalltalk.send(aNode, "_selector", []), smalltalk.send(aNode, "_receiver", []), smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return ((($receiver = smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [")"])]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [")"])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return ((($receiver = smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [")"])]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [")"])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));})]));})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return ((($receiver = smalltalk.send(self, "_inlineLiteral_receiverNode_argumentNodes_", [smalltalk.send(aNode, "_selector", []), smalltalk.send(aNode, "_receiver", []), smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return ((($receiver = smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [")"])]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [")"])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return ((($receiver = smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [")"])]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [")"])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));})]));}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));
  491. return self;}
  492. }),
  493. smalltalk.FunCodeGenerator);
  494. smalltalk.addMethod(
  495. "_visitSequenceNode_",
  496. smalltalk.method({
  497. selector: "visitSequenceNode:",
  498. fn: function (aNode) {
  499. var self=this;
  500. smalltalk.send(smalltalk.send(aNode, "_temps", []), "_do_", [(function(each){var temp=nil;
  501. (temp=smalltalk.send(self, "_safeVariableNameFor_", [each]));smalltalk.send(self['@tempVariables'], "_add_", [temp]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("var ", "__comma", [temp]), "__comma", ["=nil;"])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);})]);
  502. smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_separatedBy_", [(function(each){smalltalk.send(self, "_visit_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [";"]);}), (function(){return smalltalk.send(self['@stream'], "_lf", []);})]);
  503. return self;}
  504. }),
  505. smalltalk.FunCodeGenerator);
  506. smalltalk.addMethod(
  507. "_visitValueNode_",
  508. smalltalk.method({
  509. selector: "visitValueNode:",
  510. fn: function (aNode) {
  511. var self=this;
  512. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(aNode, "_value", []), "_asJavascript", [])]);
  513. return self;}
  514. }),
  515. smalltalk.FunCodeGenerator);
  516. smalltalk.addMethod(
  517. "_visitVariableNode_",
  518. smalltalk.method({
  519. selector: "visitVariableNode:",
  520. fn: function (aNode) {
  521. var self=this;
  522. var varName=nil;
  523. ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_currentClass", []), "_allInstanceVariableNames", []), "_includes_", [smalltalk.send(aNode, "_value", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send("self['@", "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", ["']"])]);})() : (function(){(varName=smalltalk.send(self, "_safeVariableNameFor_", [smalltalk.send(aNode, "_value", [])]));return ((($receiver = smalltalk.send(smalltalk.send(self, "_knownVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})]));})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(smalltalk.getThisContext())"]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(smalltalk.getThisContext())"]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})]));})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})]));}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(smalltalk.getThisContext())"]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(smalltalk.getThisContext())"]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})]));})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send("self['@", "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", ["']"])]);}), (function(){(varName=smalltalk.send(self, "_safeVariableNameFor_", [smalltalk.send(aNode, "_value", [])]));return ((($receiver = smalltalk.send(smalltalk.send(self, "_knownVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})]));})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(smalltalk.getThisContext())"]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(smalltalk.getThisContext())"]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})]));})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})]));}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(smalltalk.getThisContext())"]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["(smalltalk.getThisContext())"]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})]));})]));})]));
  524. return self;}
  525. }),
  526. smalltalk.FunCodeGenerator);
  527. smalltalk.FunCodeGenerator.klass.iVarNames = ['performOptimizations'];
  528. smalltalk.addMethod(
  529. "_performOptimizations",
  530. smalltalk.method({
  531. selector: "performOptimizations",
  532. fn: function () {
  533. var self=this;
  534. return (($receiver = self['@performOptimizations']) == nil || $receiver == undefined) ? (function(){return true;})() : $receiver;
  535. return self;}
  536. }),
  537. smalltalk.FunCodeGenerator.klass);
  538. smalltalk.addMethod(
  539. "_performOptimizations_",
  540. smalltalk.method({
  541. selector: "performOptimizations:",
  542. fn: function (aBoolean) {
  543. var self=this;
  544. (self['@performOptimizations']=aBoolean);
  545. return self;}
  546. }),
  547. smalltalk.FunCodeGenerator.klass);
  548. smalltalk.addClass('ImpCodeGenerator', smalltalk.AbstractCodeGenerator, ['stream', 'nestedBlocks', 'earlyReturn', 'currentSelector', 'unknownVariables', 'tempVariables', 'messageSends', 'referencedClasses', 'classReferenced', 'argVariables', 'mutables', 'target', 'lazyVars', 'realVarNames'], 'Compiler');
  549. smalltalk.addMethod(
  550. "_aboutToModifyState",
  551. smalltalk.method({
  552. selector: "aboutToModifyState",
  553. fn: function (){
  554. var self=this;
  555. var list=nil;
  556. var old=nil;
  557. (list=self['@mutables']);
  558. (self['@mutables']=smalltalk.send((smalltalk.Set || Set), "_new", []));
  559. (old=smalltalk.send(self, "_switchTarget_", [nil]));
  560. smalltalk.send(list, "_do_", [(function(each){var value=nil;
  561. smalltalk.send(self, "_switchTarget_", [each]);return smalltalk.send(self, "_realAssign_", [smalltalk.send(self['@lazyVars'], "_at_", [each])]);})]);
  562. smalltalk.send(self, "_switchTarget_", [old]);
  563. return self;}
  564. }),
  565. smalltalk.ImpCodeGenerator);
  566. smalltalk.addMethod(
  567. "_argVariables",
  568. smalltalk.method({
  569. selector: "argVariables",
  570. fn: function () {
  571. var self=this;
  572. return smalltalk.send(self['@argVariables'], "_copy", []);
  573. return self;}
  574. }),
  575. smalltalk.ImpCodeGenerator);
  576. smalltalk.addMethod(
  577. "_assert_",
  578. smalltalk.method({
  579. selector: "assert:",
  580. fn: function (aBoolean) {
  581. var self=this;
  582. ((($receiver = aBoolean).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_error_", ["assertion failed"]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_error_", ["assertion failed"]);})]));
  583. return self;}
  584. }),
  585. smalltalk.ImpCodeGenerator);
  586. smalltalk.addMethod(
  587. "_checkClass_for_",
  588. smalltalk.method({
  589. selector: "checkClass:for:",
  590. fn: function (aClassName, receiver) {
  591. var self=this;
  592. smalltalk.send(self, "_prvCheckClass_for_", [aClassName, receiver]);
  593. smalltalk.send(self['@stream'], "_nextPutAll_", ["{"]);
  594. return self;}
  595. }),
  596. smalltalk.ImpCodeGenerator);
  597. smalltalk.addMethod(
  598. "_checkClass_for_includeIf_",
  599. smalltalk.method({
  600. selector: "checkClass:for:includeIf:",
  601. fn: function (aClassName, receiver, aBoolean){
  602. var self=this;
  603. smalltalk.send(self, "_prvCheckClass_for_", [aClassName, receiver]);
  604. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(((($receiver = aBoolean).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "if((";})() : (function(){return "if(!(";})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "if((";}), (function(){return "if(!(";})])), "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", [")) {"])]);
  605. return self;}
  606. }),
  607. smalltalk.ImpCodeGenerator);
  608. smalltalk.addMethod(
  609. "_compileNode_",
  610. smalltalk.method({
  611. selector: "compileNode:",
  612. fn: function (aNode) {
  613. var self=this;
  614. (self['@stream']=smalltalk.send("", "_writeStream", []));
  615. smalltalk.send(self, "_visit_", [aNode]);
  616. return smalltalk.send(self['@stream'], "_contents", []);
  617. return self;}
  618. }),
  619. smalltalk.ImpCodeGenerator);
  620. smalltalk.addMethod(
  621. "_ifValueWanted_",
  622. smalltalk.method({
  623. selector: "ifValueWanted:",
  624. fn: function (aBlock){
  625. var self=this;
  626. smalltalk.send(self['@target'], "_ifNotNil_", [aBlock]);
  627. return self;}
  628. }),
  629. smalltalk.ImpCodeGenerator);
  630. smalltalk.addMethod(
  631. "_initialize",
  632. smalltalk.method({
  633. selector: "initialize",
  634. fn: function (){
  635. var self=this;
  636. smalltalk.send(self, "_initialize", [], smalltalk.ImpCodeGenerator.superclass || nil);
  637. (self['@stream']=smalltalk.send("", "_writeStream", []));
  638. (self['@unknownVariables']=[]);
  639. (self['@tempVariables']=[]);
  640. (self['@argVariables']=[]);
  641. (self['@messageSends']=[]);
  642. (self['@classReferenced']=[]);
  643. (self['@mutables']=smalltalk.send((smalltalk.Set || Set), "_new", []));
  644. (self['@realVarNames']=smalltalk.send((smalltalk.Set || Set), "_new", []));
  645. (self['@lazyVars']=smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_new", []));
  646. (self['@target']=nil);
  647. return self;}
  648. }),
  649. smalltalk.ImpCodeGenerator);
  650. smalltalk.addMethod(
  651. "_inline_receiver_argumentNodes_",
  652. smalltalk.method({
  653. selector: "inline:receiver:argumentNodes:",
  654. fn: function (aSelector, receiver, aCollection){
  655. var self=this;
  656. var $early={};
  657. try{((($receiver = smalltalk.send(aSelector, "__eq", ["ifFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, false]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, false]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]);return (function(){throw $early=[true]})();})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, false]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, false]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]);return (function(){throw $early=[true]})();})]));})]));
  658. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, true]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, true]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]);return (function(){throw $early=[true]})();})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, true]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, true]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]);return (function(){throw $early=[true]})();})]));})]));
  659. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifTrue:ifFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, true]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, true]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (function(){throw $early=[true]})();})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, true]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, true]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (function(){throw $early=[true]})();})]));})]));
  660. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifFalse:ifTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, false]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, false]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (function(){throw $early=[true]})();})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, false]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_includeIf_", ["Boolean", receiver, false]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (function(){throw $early=[true]})();})]));})]));
  661. ((($receiver = smalltalk.send(aSelector, "__eq", ["<"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var operand=nil;
  662. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["<"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var operand=nil;
  663. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["<"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})]));
  664. ((($receiver = smalltalk.send(aSelector, "__eq", ["<="])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var operand=nil;
  665. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["<="]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var operand=nil;
  666. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["<="]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})]));
  667. ((($receiver = smalltalk.send(aSelector, "__eq", [">"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var operand=nil;
  668. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", [">"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var operand=nil;
  669. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", [">"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})]));
  670. ((($receiver = smalltalk.send(aSelector, "__eq", [">="])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var operand=nil;
  671. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", [">="]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var operand=nil;
  672. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", [">="]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})]));
  673. ((($receiver = smalltalk.send(aSelector, "__eq", ["+"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var operand=nil;
  674. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["+"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var operand=nil;
  675. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["+"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})]));
  676. ((($receiver = smalltalk.send(aSelector, "__eq", ["-"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var operand=nil;
  677. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["-"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var operand=nil;
  678. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["-"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})]));
  679. ((($receiver = smalltalk.send(aSelector, "__eq", ["*"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var operand=nil;
  680. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["*"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var operand=nil;
  681. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["*"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})]));
  682. ((($receiver = smalltalk.send(aSelector, "__eq", ["/"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var operand=nil;
  683. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["/"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var operand=nil;
  684. (operand=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(aCollection, "_first", [])]));smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", ["/"]), "__comma", [operand]), "__comma", [")"])]);})]);return (function(){throw $early=[[smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [operand])]]})();})]));
  685. return nil;
  686. return self;
  687. } catch(e) {if(e===$early)return e[0]; throw e}}
  688. }),
  689. smalltalk.ImpCodeGenerator);
  690. smalltalk.addMethod(
  691. "_inlineLiteral_receiverNode_argumentNodes_",
  692. smalltalk.method({
  693. selector: "inlineLiteral:receiverNode:argumentNodes:",
  694. fn: function (aSelector, anObject, aCollection){
  695. var self=this;
  696. var inlined=nil;
  697. (inlined=false);
  698. ((($receiver = smalltalk.send(aSelector, "__eq", ["whileTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var old=nil;
  699. smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["for(;;){", "if (!(", anObject, ")) {"]);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("break}", "__comma", [smalltalk.send(self, "_mylf", [])])]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", []), nil]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var old=nil;
  700. smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["for(;;){", "if (!(", anObject, ")) {"]);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("break}", "__comma", [smalltalk.send(self, "_mylf", [])])]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", []), nil]);})]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var old=nil;
  701. smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["for(;;){", "if (!(", anObject, ")) {"]);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("break}", "__comma", [smalltalk.send(self, "_mylf", [])])]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", []), nil]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var old=nil;
  702. smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["for(;;){", "if (!(", anObject, ")) {"]);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("break}", "__comma", [smalltalk.send(self, "_mylf", [])])]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", []), nil]);})]);return (inlined=true);})]));})]));
  703. ((($receiver = smalltalk.send(aSelector, "__eq", ["whileFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var old=nil;
  704. smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["for(;;){", "if ((", anObject, ")) {"]);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("break}", "__comma", [smalltalk.send(self, "_mylf", [])])]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", []), nil]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var old=nil;
  705. smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["for(;;){", "if ((", anObject, ")) {"]);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("break}", "__comma", [smalltalk.send(self, "_mylf", [])])]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", []), nil]);})]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var old=nil;
  706. smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["for(;;){", "if ((", anObject, ")) {"]);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("break}", "__comma", [smalltalk.send(self, "_mylf", [])])]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", []), nil]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var old=nil;
  707. smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["for(;;){", "if ((", anObject, ")) {"]);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("break}", "__comma", [smalltalk.send(self, "_mylf", [])])]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", []), nil]);})]);return (inlined=true);})]));})]));
  708. ((($receiver = smalltalk.send(aSelector, "__eq", ["whileTrue"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["do{", "}while((", anObject, smalltalk.send("));", "__comma", [smalltalk.send(self, "_mylf", [])])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["do{", "}while((", anObject, smalltalk.send("));", "__comma", [smalltalk.send(self, "_mylf", [])])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["do{", "}while((", anObject, smalltalk.send("));", "__comma", [smalltalk.send(self, "_mylf", [])])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["do{", "}while((", anObject, smalltalk.send("));", "__comma", [smalltalk.send(self, "_mylf", [])])]);return (inlined=true);})]));})]));
  709. ((($receiver = smalltalk.send(aSelector, "__eq", ["whileFalse"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["do{", "}while(!(", anObject, smalltalk.send("));", "__comma", [smalltalk.send(self, "_mylf", [])])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["do{", "}while(!(", anObject, smalltalk.send("));", "__comma", [smalltalk.send(self, "_mylf", [])])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["do{", "}while(!(", anObject, smalltalk.send("));", "__comma", [smalltalk.send(self, "_mylf", [])])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_prvWhileConditionStatement_pre_condition_post_", ["do{", "}while(!(", anObject, smalltalk.send("));", "__comma", [smalltalk.send(self, "_mylf", [])])]);return (inlined=true);})]));})]));
  710. ((($receiver = smalltalk.send(["+", "-", "*", "/", "<", "<=", ">=", ">"], "_includes_", [aSelector])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_prvInlineNumberOperator_on_and_", [aSelector, anObject, smalltalk.send(aCollection, "_first", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_prvInlineNumberOperator_on_and_", [aSelector, anObject, smalltalk.send(aCollection, "_first", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (inlined=true);})]));})]));
  711. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  712. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [rcv]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  713. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [rcv]);})]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  714. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [rcv]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  715. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [rcv]);})]);return (inlined=true);})]));})]));
  716. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifNotNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  717. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [rcv]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  718. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [rcv]);})]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  719. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [rcv]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  720. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [rcv]);})]);return (inlined=true);})]));})]));
  721. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifNil:ifNotNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  722. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  723. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  724. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  725. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (inlined=true);})]));})]));
  726. ((($receiver = smalltalk.send(aSelector, "__eq", ["ifNotNil:ifNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  727. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  728. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  729. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  730. smalltalk.send(self, "_aboutToModifyState", []);(rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_makeTargetRealVariable", []);smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null) {"])]);smalltalk.send(self, "_prvPutAndElse_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_nodes", []), "_first", [])]);})]);smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_second", []), "_nodes", []), "_first", [])]);})]);return (inlined=true);})]));})]));
  731. ((($receiver = smalltalk.send(aSelector, "__eq", ["isNil"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  732. (rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null)"])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  733. (rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("((", "__comma", [rcv]), "__comma", [") === nil || ("]), "__comma", [rcv]), "__comma", [") == null)"])]);return (inlined=true);})]));
  734. ((($receiver = smalltalk.send(aSelector, "__eq", ["notNil"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  735. (rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null)"])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  736. (rcv=smalltalk.send(self, "_isolatedUse_", [anObject]));((($receiver = smalltalk.send(rcv, "__eq", ["super"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (rcv="self");})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (rcv="self");})]));smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("((", "__comma", [rcv]), "__comma", [") !== nil && ("]), "__comma", [rcv]), "__comma", [") != null)"])]);return (inlined=true);})]));
  737. return inlined;
  738. return self;}
  739. }),
  740. smalltalk.ImpCodeGenerator);
  741. smalltalk.addMethod(
  742. "_isNode_ofClass_",
  743. smalltalk.method({
  744. selector: "isNode:ofClass:",
  745. fn: function (aNode, aClass) {
  746. var self=this;
  747. return smalltalk.send(smalltalk.send(aNode, "_isValueNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_value", []), "_class", []), "__eq", [aClass]), "_or_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["self"]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_currentClass", []), "__eq", [aClass]);})]);})]);})]);
  748. return self;}
  749. }),
  750. smalltalk.ImpCodeGenerator);
  751. smalltalk.addMethod(
  752. "_isolated_",
  753. smalltalk.method({
  754. selector: "isolated:",
  755. fn: function (node){
  756. var self=this;
  757. return smalltalk.send(self, "_visit_targetBeing_", [node, smalltalk.send(self, "_nextLazyvarName", [])]);
  758. return self;}
  759. }),
  760. smalltalk.ImpCodeGenerator);
  761. smalltalk.addMethod(
  762. "_isolatedUse_",
  763. smalltalk.method({
  764. selector: "isolatedUse:",
  765. fn: function (node){
  766. var self=this;
  767. var old=nil;
  768. (old=smalltalk.send(self, "_switchTarget_", [smalltalk.send(self, "_nextLazyvarName", [])]));
  769. smalltalk.send(self, "_visit_", [node]);
  770. return smalltalk.send(self, "_useValueNamed_", [smalltalk.send(self, "_switchTarget_", [old])]);
  771. return self;}
  772. }),
  773. smalltalk.ImpCodeGenerator);
  774. smalltalk.addMethod(
  775. "_knownVariables",
  776. smalltalk.method({
  777. selector: "knownVariables",
  778. fn: function () {
  779. var self=this;
  780. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_tempVariables", [])]);smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_argVariables", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_pseudoVariables", []));
  781. return self;}
  782. }),
  783. smalltalk.ImpCodeGenerator);
  784. smalltalk.addMethod(
  785. "_lazyAssign_dependsOnState_",
  786. smalltalk.method({
  787. selector: "lazyAssign:dependsOnState:",
  788. fn: function (aString, aBoolean){
  789. var self=this;
  790. ((($receiver = smalltalk.send(self['@lazyVars'], "_includesKey_", [self['@target']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@lazyVars'], "_at_put_", [self['@target'], aString]);return ((($receiver = aBoolean).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@mutables'], "_add_", [self['@target']]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@mutables'], "_add_", [self['@target']]);})]));})() : (function(){return smalltalk.send(self, "_realAssign_", [aString]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(self['@lazyVars'], "_at_put_", [self['@target'], aString]);return ((($receiver = aBoolean).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@mutables'], "_add_", [self['@target']]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@mutables'], "_add_", [self['@target']]);})]));}), (function(){return smalltalk.send(self, "_realAssign_", [aString]);})]));
  791. return self;}
  792. }),
  793. smalltalk.ImpCodeGenerator);
  794. smalltalk.addMethod(
  795. "_lazyAssignExpression_",
  796. smalltalk.method({
  797. selector: "lazyAssignExpression:",
  798. fn: function (aString){
  799. var self=this;
  800. smalltalk.send(self, "_lazyAssign_dependsOnState_", [aString, true]);
  801. return self;}
  802. }),
  803. smalltalk.ImpCodeGenerator);
  804. smalltalk.addMethod(
  805. "_lazyAssignValue_",
  806. smalltalk.method({
  807. selector: "lazyAssignValue:",
  808. fn: function (aString){
  809. var self=this;
  810. smalltalk.send(self, "_lazyAssign_dependsOnState_", [aString, false]);
  811. return self;}
  812. }),
  813. smalltalk.ImpCodeGenerator);
  814. smalltalk.addMethod(
  815. "_makeTargetRealVariable",
  816. smalltalk.method({
  817. selector: "makeTargetRealVariable",
  818. fn: function (){
  819. var self=this;
  820. ((($receiver = smalltalk.send(self['@lazyVars'], "_includesKey_", [self['@target']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@lazyVars'], "_removeKey_", [self['@target']]);smalltalk.send(self['@lazyVars'], "_at_put_", [smalltalk.send("assigned ", "__comma", [self['@target']]), nil]);return smalltalk.send(self['@realVarNames'], "_add_", [self['@target']]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@lazyVars'], "_removeKey_", [self['@target']]);smalltalk.send(self['@lazyVars'], "_at_put_", [smalltalk.send("assigned ", "__comma", [self['@target']]), nil]);return smalltalk.send(self['@realVarNames'], "_add_", [self['@target']]);})]));
  821. return self;}
  822. }),
  823. smalltalk.ImpCodeGenerator);
  824. smalltalk.addMethod(
  825. "_mylf",
  826. smalltalk.method({
  827. selector: "mylf",
  828. fn: function () {
  829. var self=this;
  830. return smalltalk.send(smalltalk.send((smalltalk.String || String), "_lf", []), "__comma", [smalltalk.send(smalltalk.send((smalltalk.Array || Array), "_new_", [((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver +(2) : smalltalk.send($receiver, "__plus", [(2)]))]), "_join_", [smalltalk.send((smalltalk.String || String), "_tab", [])])]);
  831. return self;}
  832. }),
  833. smalltalk.ImpCodeGenerator);
  834. smalltalk.addMethod(
  835. "_nextLazyvarName",
  836. smalltalk.method({
  837. selector: "nextLazyvarName",
  838. fn: function (){
  839. var self=this;
  840. var name=nil;
  841. (name=smalltalk.send("$", "__comma", [smalltalk.send(smalltalk.send(self['@lazyVars'], "_size", []), "_asString", [])]));
  842. smalltalk.send(self['@lazyVars'], "_at_put_", [name, name]);
  843. return name;
  844. return self;}
  845. }),
  846. smalltalk.ImpCodeGenerator);
  847. smalltalk.addMethod(
  848. "_nilIfValueWanted",
  849. smalltalk.method({
  850. selector: "nilIfValueWanted",
  851. fn: function (){
  852. var self=this;
  853. (($receiver = self['@target']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_lazyAssignValue_", ["nil"]);})() : nil;
  854. return self;}
  855. }),
  856. smalltalk.ImpCodeGenerator);
  857. smalltalk.addMethod(
  858. "_performOptimizations",
  859. smalltalk.method({
  860. selector: "performOptimizations",
  861. fn: function () {
  862. var self=this;
  863. return smalltalk.send(smalltalk.send(self, "_class", []), "_performOptimizations", []);
  864. return self;}
  865. }),
  866. smalltalk.ImpCodeGenerator);
  867. smalltalk.addMethod(
  868. "_prvCheckClass_for_",
  869. smalltalk.method({
  870. selector: "prvCheckClass:for:",
  871. fn: function (aClassName, receiver){
  872. var self=this;
  873. smalltalk.send(self, "_makeTargetRealVariable", []);
  874. smalltalk.send(self, "_aboutToModifyState", []);
  875. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("if((", "__comma", [smalltalk.send(self, "_useValueNamed_", [receiver])]), "__comma", [").klass === smalltalk."]), "__comma", [aClassName]), "__comma", [") "])]);
  876. return self;}
  877. }),
  878. smalltalk.ImpCodeGenerator);
  879. smalltalk.addMethod(
  880. "_prvInlineNumberOperator_on_and_",
  881. smalltalk.method({
  882. selector: "prvInlineNumberOperator:on:and:",
  883. fn: function (aSelector, receiverNode, operandNode){
  884. var self=this;
  885. var $early={};
  886. try{((($receiver = smalltalk.send(aSelector, "__eq", [aSelector])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [receiverNode, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  887. var operand=nil;
  888. (rcv=smalltalk.send(self, "_isolated_", [receiverNode]));(operand=smalltalk.send(self, "_isolated_", [operandNode]));smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_useValueNamed_", [rcv]), "__comma", [aSelector]), "__comma", [smalltalk.send(self, "_useValueNamed_", [operand])])]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  889. var operand=nil;
  890. (rcv=smalltalk.send(self, "_isolated_", [receiverNode]));(operand=smalltalk.send(self, "_isolated_", [operandNode]));smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_useValueNamed_", [rcv]), "__comma", [aSelector]), "__comma", [smalltalk.send(self, "_useValueNamed_", [operand])])]);return (function(){throw $early=[true]})();})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [receiverNode, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var rcv=nil;
  891. var operand=nil;
  892. (rcv=smalltalk.send(self, "_isolated_", [receiverNode]));(operand=smalltalk.send(self, "_isolated_", [operandNode]));smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_useValueNamed_", [rcv]), "__comma", [aSelector]), "__comma", [smalltalk.send(self, "_useValueNamed_", [operand])])]);return (function(){throw $early=[true]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var rcv=nil;
  893. var operand=nil;
  894. (rcv=smalltalk.send(self, "_isolated_", [receiverNode]));(operand=smalltalk.send(self, "_isolated_", [operandNode]));smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_useValueNamed_", [rcv]), "__comma", [aSelector]), "__comma", [smalltalk.send(self, "_useValueNamed_", [operand])])]);return (function(){throw $early=[true]})();})]));})]));
  895. return false;
  896. return self;
  897. } catch(e) {if(e===$early)return e[0]; throw e}}
  898. }),
  899. smalltalk.ImpCodeGenerator);
  900. smalltalk.addMethod(
  901. "_prvPutAndClose_",
  902. smalltalk.method({
  903. selector: "prvPutAndClose:",
  904. fn: function (aBlock) {
  905. var self=this;
  906. smalltalk.send(aBlock, "_value", []);
  907. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("}", "__comma", [smalltalk.send(self, "_mylf", [])])]);
  908. return self;}
  909. }),
  910. smalltalk.ImpCodeGenerator);
  911. smalltalk.addMethod(
  912. "_prvPutAndElse_",
  913. smalltalk.method({
  914. selector: "prvPutAndElse:",
  915. fn: function (aBlock) {
  916. var self=this;
  917. smalltalk.send(aBlock, "_value", []);
  918. smalltalk.send(self['@stream'], "_nextPutAll_", ["} else {"]);
  919. return self;}
  920. }),
  921. smalltalk.ImpCodeGenerator);
  922. smalltalk.addMethod(
  923. "_prvWhileConditionStatement_pre_condition_post_",
  924. smalltalk.method({
  925. selector: "prvWhileConditionStatement:pre:condition:post:",
  926. fn: function (stmtString, preString, anObject, postString){
  927. var self=this;
  928. var x=nil;
  929. smalltalk.send(self['@stream'], "_nextPutAll_", [stmtString]);
  930. (x=smalltalk.send(self, "_isolatedUse_", [smalltalk.send(smalltalk.send(anObject, "_nodes", []), "_first", [])]));
  931. smalltalk.send(x, "_ifEmpty_", [(function(){return (x="\x22should not reach - receiver includes ^\x22");})]);
  932. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(preString, "__comma", [x]), "__comma", [postString])]);
  933. smalltalk.send(self, "_nilIfValueWanted", []);
  934. return self;}
  935. }),
  936. smalltalk.ImpCodeGenerator);
  937. smalltalk.addMethod(
  938. "_putTemps_",
  939. smalltalk.method({
  940. selector: "putTemps:",
  941. fn: function (temps) {
  942. var self=this;
  943. smalltalk.send(temps, "_ifNotEmpty_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", ["var "]);smalltalk.send(temps, "_do_separatedBy_", [(function(each){var temp=nil;
  944. (temp=smalltalk.send(self, "_safeVariableNameFor_", [each]));smalltalk.send(self['@tempVariables'], "_add_", [temp]);return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(temp, "__comma", ["=nil"])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [","]);})]);return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(";", "__comma", [smalltalk.send(self, "_mylf", [])])]);})]);
  945. return self;}
  946. }),
  947. smalltalk.ImpCodeGenerator);
  948. smalltalk.addMethod(
  949. "_realAssign_",
  950. smalltalk.method({
  951. selector: "realAssign:",
  952. fn: function (aString){
  953. var self=this;
  954. var closer=nil;
  955. smalltalk.send(aString, "_ifNotEmpty_", [(function(){smalltalk.send(self, "_aboutToModifyState", []);(closer="");smalltalk.send(self, "_ifValueWanted_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [((($receiver = smalltalk.send(self['@target'], "__eq", ["^"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "return ";})() : (function(){return ((($receiver = smalltalk.send(self['@target'], "__eq", ["!"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(closer="]");return "throw $early=[";})() : (function(){return smalltalk.send(self['@target'], "__comma", ["="]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){(closer="]");return "throw $early=[";}), (function(){return smalltalk.send(self['@target'], "__comma", ["="]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "return ";}), (function(){return ((($receiver = smalltalk.send(self['@target'], "__eq", ["!"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(closer="]");return "throw $early=[";})() : (function(){return smalltalk.send(self['@target'], "__comma", ["="]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){(closer="]");return "throw $early=[";}), (function(){return smalltalk.send(self['@target'], "__comma", ["="]);})]));})]))]);})]);smalltalk.send(self, "_makeTargetRealVariable", []);return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(aString, "__comma", [closer]), "__comma", [";"]), "__comma", [smalltalk.send(self, "_mylf", [])])]);})]);
  956. return self;}
  957. }),
  958. smalltalk.ImpCodeGenerator);
  959. smalltalk.addMethod(
  960. "_send_to_arguments_superSend_",
  961. smalltalk.method({
  962. selector: "send:to:arguments:superSend:",
  963. fn: function (aSelector, aReceiver, aCollection, aBoolean){
  964. var self=this;
  965. var args=nil;
  966. (args=smalltalk.send(self, "_isolated_", [(function($rec){smalltalk.send($rec, "_nodes_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.DynamicArrayNode || DynamicArrayNode), "_new", []))]));
  967. smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(str){smalltalk.send(str, "_nextPutAll_", ["smalltalk.send("]);smalltalk.send(str, "_nextPutAll_", [smalltalk.send(self, "_useValueNamed_", [aReceiver])]);smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(", \x22", "__comma", [smalltalk.send(aSelector, "_asSelector", [])]), "__comma", ["\x22, "])]);smalltalk.send(str, "_nextPutAll_", [smalltalk.send(self, "_useValueNamed_", [args])]);((($receiver = aBoolean).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(", smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(smalltalk.send(self, "_currentClass", []), "_superclass", [])])])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(", smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(smalltalk.send(self, "_currentClass", []), "_superclass", [])])])]);})]));return smalltalk.send(str, "_nextPutAll_", [")"]);})])]);
  968. return self;}
  969. }),
  970. smalltalk.ImpCodeGenerator);
  971. smalltalk.addMethod(
  972. "_sequenceOfNodes_temps_",
  973. smalltalk.method({
  974. selector: "sequenceOfNodes:temps:",
  975. fn: function (nodes, temps){
  976. var self=this;
  977. ((($receiver = smalltalk.send(nodes, "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){var old=nil;
  978. var index=nil;
  979. smalltalk.send(self, "_putTemps_", [temps]);(old=smalltalk.send(self, "_switchTarget_", [nil]));(index=(0));return smalltalk.send(nodes, "_do_", [(function(each){(index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));((($receiver = smalltalk.send(index, "__eq", [smalltalk.send(nodes, "_size", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_switchTarget_", [old]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_switchTarget_", [old]);})]));return smalltalk.send(self, "_visit_", [each]);})]);})() : (function(){return smalltalk.send(self, "_nilIfValueWanted", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){var old=nil;
  980. var index=nil;
  981. smalltalk.send(self, "_putTemps_", [temps]);(old=smalltalk.send(self, "_switchTarget_", [nil]));(index=(0));return smalltalk.send(nodes, "_do_", [(function(each){(index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));((($receiver = smalltalk.send(index, "__eq", [smalltalk.send(nodes, "_size", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_switchTarget_", [old]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_switchTarget_", [old]);})]));return smalltalk.send(self, "_visit_", [each]);})]);}), (function(){return smalltalk.send(self, "_nilIfValueWanted", []);})]));
  982. return self;}
  983. }),
  984. smalltalk.ImpCodeGenerator);
  985. smalltalk.addMethod(
  986. "_switchTarget_",
  987. smalltalk.method({
  988. selector: "switchTarget:",
  989. fn: function (aString){
  990. var self=this;
  991. var old=nil;
  992. (old=self['@target']);
  993. (self['@target']=aString);
  994. return old;
  995. return self;}
  996. }),
  997. smalltalk.ImpCodeGenerator);
  998. smalltalk.addMethod(
  999. "_tempVariables",
  1000. smalltalk.method({
  1001. selector: "tempVariables",
  1002. fn: function () {
  1003. var self=this;
  1004. return smalltalk.send(self['@tempVariables'], "_copy", []);
  1005. return self;}
  1006. }),
  1007. smalltalk.ImpCodeGenerator);
  1008. smalltalk.addMethod(
  1009. "_unknownVariables",
  1010. smalltalk.method({
  1011. selector: "unknownVariables",
  1012. fn: function () {
  1013. var self=this;
  1014. return smalltalk.send(self['@unknownVariables'], "_copy", []);
  1015. return self;}
  1016. }),
  1017. smalltalk.ImpCodeGenerator);
  1018. smalltalk.addMethod(
  1019. "_useValueNamed_",
  1020. smalltalk.method({
  1021. selector: "useValueNamed:",
  1022. fn: function (key){
  1023. var self=this;
  1024. var $early={};
  1025. try{var val=nil;
  1026. ((($receiver = smalltalk.send(self['@realVarNames'], "_includes_", [key])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw $early=[key]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw $early=[key]})();})]));
  1027. smalltalk.send(self['@mutables'], "_remove_", [key]);
  1028. return smalltalk.send(self['@lazyVars'], "_at_", [key]);
  1029. return self;
  1030. } catch(e) {if(e===$early)return e[0]; throw e}}
  1031. }),
  1032. smalltalk.ImpCodeGenerator);
  1033. smalltalk.addMethod(
  1034. "_visit_",
  1035. smalltalk.method({
  1036. selector: "visit:",
  1037. fn: function (aNode) {
  1038. var self=this;
  1039. smalltalk.send(aNode, "_accept_", [self]);
  1040. return self;}
  1041. }),
  1042. smalltalk.ImpCodeGenerator);
  1043. smalltalk.addMethod(
  1044. "_visit_targetBeing_",
  1045. smalltalk.method({
  1046. selector: "visit:targetBeing:",
  1047. fn: function (aNode, aString){
  1048. var self=this;
  1049. var old=nil;
  1050. (old=smalltalk.send(self, "_switchTarget_", [aString]));
  1051. smalltalk.send(self, "_visit_", [aNode]);
  1052. return smalltalk.send(self, "_switchTarget_", [old]);
  1053. return self;}
  1054. }),
  1055. smalltalk.ImpCodeGenerator);
  1056. smalltalk.addMethod(
  1057. "_visitAssignmentNode_",
  1058. smalltalk.method({
  1059. selector: "visitAssignmentNode:",
  1060. fn: function (aNode){
  1061. var self=this;
  1062. var olds=nil;
  1063. var oldt=nil;
  1064. (olds=self['@stream']);
  1065. (self['@stream']=smalltalk.send("", "_writeStream", []));
  1066. (oldt=smalltalk.send(self, "_switchTarget_", [smalltalk.send(self, "_nextLazyvarName", [])]));
  1067. smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_left", [])]);
  1068. smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(self['@lazyVars'], "_at_", [self['@target']]), "_~_eq", [self['@target']])]);
  1069. smalltalk.send(self, "_switchTarget_", [smalltalk.send(self, "_useValueNamed_", [smalltalk.send(self, "_switchTarget_", [nil])])]);
  1070. smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(self['@lazyVars'], "_includesKey_", [self['@target']]), "_not", [])]);
  1071. (self['@stream']=olds);
  1072. smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_right", [])]);
  1073. (olds=smalltalk.send(self, "_switchTarget_", [oldt]));
  1074. smalltalk.send(self, "_ifValueWanted_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [olds]);})]);
  1075. return self;}
  1076. }),
  1077. smalltalk.ImpCodeGenerator);
  1078. smalltalk.addMethod(
  1079. "_visitBlockNode_",
  1080. smalltalk.method({
  1081. selector: "visitBlockNode:",
  1082. fn: function (aNode){
  1083. var self=this;
  1084. var oldt=nil;
  1085. var olds=nil;
  1086. var oldm=nil;
  1087. smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", []), "__eq", [(1)])]);
  1088. (oldt=smalltalk.send(self, "_switchTarget_", ["^"]));
  1089. (olds=self['@stream']);
  1090. (self['@stream']=smalltalk.send("", "_writeStream", []));
  1091. smalltalk.send(self['@stream'], "_nextPutAll_", ["(function("]);
  1092. smalltalk.send(smalltalk.send(aNode, "_parameters", []), "_do_separatedBy_", [(function(each){smalltalk.send(self['@tempVariables'], "_add_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [", "]);})]);
  1093. smalltalk.send(self['@stream'], "_nextPutAll_", ["){"]);
  1094. (self['@nestedBlocks']=((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
  1095. (oldm=self['@mutables']);
  1096. (self['@mutables']=smalltalk.send((smalltalk.Set || Set), "_new", []));
  1097. smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_first", [])]);
  1098. smalltalk.send(self, "_assert_", [smalltalk.send(self['@mutables'], "_isEmpty", [])]);
  1099. (self['@mutables']=oldm);
  1100. (self['@nestedBlocks']=((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])));
  1101. smalltalk.send(self['@stream'], "_nextPutAll_", ["})"]);
  1102. smalltalk.send(self, "_switchTarget_", [oldt]);
  1103. (oldt=smalltalk.send(self['@stream'], "_contents", []));
  1104. (self['@stream']=olds);
  1105. smalltalk.send(self, "_lazyAssignExpression_", [oldt]);
  1106. return self;}
  1107. }),
  1108. smalltalk.ImpCodeGenerator);
  1109. smalltalk.addMethod(
  1110. "_visitBlockSequenceNode_",
  1111. smalltalk.method({
  1112. selector: "visitBlockSequenceNode:",
  1113. fn: function (aNode) {
  1114. var self=this;
  1115. smalltalk.send(self, "_sequenceOfNodes_temps_", [smalltalk.send(aNode, "_nodes", []), smalltalk.send(aNode, "_temps", [])]);
  1116. return self;}
  1117. }),
  1118. smalltalk.ImpCodeGenerator);
  1119. smalltalk.addMethod(
  1120. "_visitCascadeNode_",
  1121. smalltalk.method({
  1122. selector: "visitCascadeNode:",
  1123. fn: function (aNode){
  1124. var self=this;
  1125. var rcv=nil;
  1126. (rcv=smalltalk.send(self, "_isolated_", [smalltalk.send(aNode, "_receiver", [])]));
  1127. smalltalk.send(self, "_aboutToModifyState", []);
  1128. (rcv=smalltalk.send(self, "_useValueNamed_", [rcv]));
  1129. smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_receiver_", [smalltalk.send(smalltalk.send((smalltalk.VerbatimNode || VerbatimNode), "_new", []), "_value_", [rcv])]);})]);
  1130. smalltalk.send(self, "_sequenceOfNodes_temps_", [smalltalk.send(aNode, "_nodes", []), []]);
  1131. return self;}
  1132. }),
  1133. smalltalk.ImpCodeGenerator);
  1134. smalltalk.addMethod(
  1135. "_visitClassReferenceNode_",
  1136. smalltalk.method({
  1137. selector: "visitClassReferenceNode:",
  1138. fn: function (aNode){
  1139. var self=this;
  1140. ((($receiver = smalltalk.send(self['@referencedClasses'], "_includes_", [smalltalk.send(aNode, "_value", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@referencedClasses'], "_add_", [smalltalk.send(aNode, "_value", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@referencedClasses'], "_add_", [smalltalk.send(aNode, "_value", [])]);})]));
  1141. smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(smalltalk.", "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", [" || "]), "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", [")"])]);
  1142. return self;}
  1143. }),
  1144. smalltalk.ImpCodeGenerator);
  1145. smalltalk.addMethod(
  1146. "_visitDynamicArrayNode_",
  1147. smalltalk.method({
  1148. selector: "visitDynamicArrayNode:",
  1149. fn: function (aNode){
  1150. var self=this;
  1151. var args=nil;
  1152. (args=smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_collect_", [(function(node){return smalltalk.send(self, "_isolated_", [node]);})]));
  1153. smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(str){smalltalk.send(str, "_nextPutAll_", ["["]);smalltalk.send(args, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(self, "_useValueNamed_", [each])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [", "]);})]);return smalltalk.send(str, "_nextPutAll_", ["]"]);})])]);
  1154. return self;}
  1155. }),
  1156. smalltalk.ImpCodeGenerator);
  1157. smalltalk.addMethod(
  1158. "_visitDynamicDictionaryNode_",
  1159. smalltalk.method({
  1160. selector: "visitDynamicDictionaryNode:",
  1161. fn: function (aNode){
  1162. var self=this;
  1163. var elements=nil;
  1164. (elements=smalltalk.send(self, "_isolated_", [(function($rec){smalltalk.send($rec, "_nodes_", [smalltalk.send(aNode, "_nodes", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.DynamicArrayNode || DynamicArrayNode), "_new", []))]));
  1165. smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send("smalltalk.HashedCollection._fromPairs_(", "__comma", [smalltalk.send(self, "_useValueNamed_", [elements])]), "__comma", [")"])]);
  1166. return self;}
  1167. }),
  1168. smalltalk.ImpCodeGenerator);
  1169. smalltalk.addMethod(
  1170. "_visitFailure_",
  1171. smalltalk.method({
  1172. selector: "visitFailure:",
  1173. fn: function (aFailure) {
  1174. var self=this;
  1175. smalltalk.send(self, "_error_", [smalltalk.send(aFailure, "_asString", [])]);
  1176. return self;}
  1177. }),
  1178. smalltalk.ImpCodeGenerator);
  1179. smalltalk.addMethod(
  1180. "_visitJSStatementNode_",
  1181. smalltalk.method({
  1182. selector: "visitJSStatementNode:",
  1183. fn: function (aNode){
  1184. var self=this;
  1185. smalltalk.send(self, "_aboutToModifyState", []);
  1186. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(";", "__comma", [smalltalk.send(smalltalk.send(aNode, "_source", []), "_replace_with_", [">>", ">"])]), "__comma", [";"]), "__comma", [smalltalk.send(self, "_mylf", [])])]);
  1187. return self;}
  1188. }),
  1189. smalltalk.ImpCodeGenerator);
  1190. smalltalk.addMethod(
  1191. "_visitMethodNode_",
  1192. smalltalk.method({
  1193. selector: "visitMethodNode:",
  1194. fn: function (aNode){
  1195. var self=this;
  1196. var str=nil;
  1197. var currentSelector=nil;
  1198. (self['@currentSelector']=smalltalk.send(smalltalk.send(aNode, "_selector", []), "_asSelector", []));
  1199. (self['@nestedBlocks']=(0));
  1200. (self['@earlyReturn']=false);
  1201. (self['@messageSends']=[]);
  1202. (self['@referencedClasses']=[]);
  1203. (self['@unknownVariables']=[]);
  1204. (self['@tempVariables']=[]);
  1205. (self['@argVariables']=[]);
  1206. (self['@lazyVars']=smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_new", []));
  1207. (self['@mutables']=smalltalk.send((smalltalk.Set || Set), "_new", []));
  1208. (self['@realVarNames']=smalltalk.send((smalltalk.Set || Set), "_new", []));
  1209. (function($rec){smalltalk.send($rec, "_nextPutAll_", ["smalltalk.method({"]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("selector: \x22", "__comma", [smalltalk.send(aNode, "_selector", [])]), "__comma", ["\x22,"])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);
  1210. (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("source: ", "__comma", [smalltalk.send(smalltalk.send(self, "_source", []), "_asJavascript", [])]), "__comma", [","])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);
  1211. smalltalk.send(self['@stream'], "_nextPutAll_", ["fn: function("]);
  1212. smalltalk.send(smalltalk.send(aNode, "_arguments", []), "_do_separatedBy_", [(function(each){smalltalk.send(self['@argVariables'], "_add_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [", "]);})]);
  1213. smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send("){var self=this;", "__comma", [smalltalk.send(self, "_mylf", [])])]);
  1214. (str=self['@stream']);
  1215. (self['@stream']=smalltalk.send("", "_writeStream", []));
  1216. smalltalk.send(self, "_switchTarget_", [nil]);
  1217. smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", []), "__eq", [(1)])]);
  1218. smalltalk.send(self, "_visit_", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_first", [])]);
  1219. smalltalk.send(self['@realVarNames'], "_ifNotEmpty_", [(function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send("var ", "__comma", [smalltalk.send(smalltalk.send(self['@realVarNames'], "_asArray", []), "_join_", [","])]), "__comma", [";"]), "__comma", [smalltalk.send(self, "_mylf", [])])]);})]);
  1220. ((($receiver = self['@earlyReturn']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send("var $early={}; try{", "__comma", [smalltalk.send(self, "_mylf", [])])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send("var $early={}; try{", "__comma", [smalltalk.send(self, "_mylf", [])])]);})]));
  1221. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(self['@stream'], "_contents", [])]);
  1222. (self['@stream']=str);
  1223. ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_first", []), "_nodes", []), "_notEmpty", []), "_and_", [(function(){var checker=nil;
  1224. (checker=smalltalk.send((smalltalk.ReturnNodeChecker || ReturnNodeChecker), "_new", []));smalltalk.send(checker, "_visit_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_first", []), "_nodes", []), "_last", [])]);return smalltalk.send(checker, "_wasReturnNode", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(self, "_switchTarget_", ["^"]);smalltalk.send(self, "_lazyAssignValue_", ["self"]);return smalltalk.send(self, "_switchTarget_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){smalltalk.send(self, "_switchTarget_", ["^"]);smalltalk.send(self, "_lazyAssignValue_", ["self"]);return smalltalk.send(self, "_switchTarget_", [nil]);})]));
  1225. ((($receiver = self['@earlyReturn']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["} catch(e) {if(e===$early) return e[0]; throw e}"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["} catch(e) {if(e===$early) return e[0]; throw e}"]);})]));
  1226. smalltalk.send(self['@stream'], "_nextPutAll_", ["}"]);
  1227. (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(",", "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", ["messageSends: "])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@messageSends'], "_asJavascript", []), "__comma", [","])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("args: ", "__comma", [smalltalk.send(self['@argVariables'], "_asJavascript", [])]), "__comma", [","])]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", ["referencedClasses: ["]);})(self['@stream']);
  1228. smalltalk.send(self['@referencedClasses'], "_do_separatedBy_", [(function(each){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [","]);})]);
  1229. smalltalk.send(self['@stream'], "_nextPutAll_", ["]"]);
  1230. smalltalk.send(self['@stream'], "_nextPutAll_", ["})"]);
  1231. smalltalk.send(self, "_assert_", [smalltalk.send(self['@mutables'], "_isEmpty", [])]);
  1232. return self;}
  1233. }),
  1234. smalltalk.ImpCodeGenerator);
  1235. smalltalk.addMethod(
  1236. "_visitReturnNode_",
  1237. smalltalk.method({
  1238. selector: "visitReturnNode:",
  1239. fn: function (aNode){
  1240. var self=this;
  1241. smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", []), "__eq", [(1)])]);
  1242. ((($receiver = ((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver >(0) : smalltalk.send($receiver, "__gt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (self['@earlyReturn']=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (self['@earlyReturn']=true);})]));
  1243. smalltalk.send(self, "_visit_targetBeing_", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_first", []), ((($receiver = ((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver >(0) : smalltalk.send($receiver, "__gt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "!";})() : (function(){return "^";})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "!";}), (function(){return "^";})]))]);
  1244. smalltalk.send(self, "_lazyAssignValue_", [""]);
  1245. return self;}
  1246. }),
  1247. smalltalk.ImpCodeGenerator);
  1248. smalltalk.addMethod(
  1249. "_visitSendNode_",
  1250. smalltalk.method({
  1251. selector: "visitSendNode:",
  1252. fn: function (aNode){
  1253. var self=this;
  1254. var $early={};
  1255. try{var receiver=nil;
  1256. var superSend=nil;
  1257. var rcv=nil;
  1258. ((($receiver = smalltalk.send(self['@messageSends'], "_includes_", [smalltalk.send(aNode, "_selector", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@messageSends'], "_add_", [smalltalk.send(aNode, "_selector", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@messageSends'], "_add_", [smalltalk.send(aNode, "_selector", [])]);})]));
  1259. ((($receiver = smalltalk.send(self, "_performOptimizations", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_inlineLiteral_receiverNode_argumentNodes_", [smalltalk.send(aNode, "_selector", []), smalltalk.send(aNode, "_receiver", []), smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw $early=[self]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw $early=[self]})();})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_inlineLiteral_receiverNode_argumentNodes_", [smalltalk.send(aNode, "_selector", []), smalltalk.send(aNode, "_receiver", []), smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw $early=[self]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw $early=[self]})();})]));})]));
  1260. (rcv=smalltalk.send(self, "_isolated_", [smalltalk.send(aNode, "_receiver", [])]));
  1261. (superSend=smalltalk.send(smalltalk.send(self['@lazyVars'], "_at_ifAbsent_", [rcv, (function(){return nil;})]), "__eq", ["super"]));
  1262. ((($receiver = superSend).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@mutables'], "_remove_", [rcv]);return smalltalk.send(self['@lazyVars'], "_at_put_", [rcv, "self"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@mutables'], "_remove_", [rcv]);return smalltalk.send(self['@lazyVars'], "_at_put_", [rcv, "self"]);})]));
  1263. ((($receiver = smalltalk.send(self, "_performOptimizations", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var inline=nil;
  1264. (inline=smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), rcv, smalltalk.send(aNode, "_arguments", [])]));return (($receiver = inline) != nil && $receiver != undefined) ? (function(){var args=nil;
  1265. (args=((($receiver = smalltalk.send(inline, "__eq", [true])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aNode, "_arguments", []);})() : (function(){return inline;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aNode, "_arguments", []);}), (function(){return inline;})])));smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), rcv, args, superSend]);})]);return (function(){throw $early=[self]})();})() : nil;})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){var inline=nil;
  1266. (inline=smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), rcv, smalltalk.send(aNode, "_arguments", [])]));return (($receiver = inline) != nil && $receiver != undefined) ? (function(){var args=nil;
  1267. (args=((($receiver = smalltalk.send(inline, "__eq", [true])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aNode, "_arguments", []);})() : (function(){return inline;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aNode, "_arguments", []);}), (function(){return inline;})])));smalltalk.send(self, "_prvPutAndClose_", [(function(){return smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), rcv, args, superSend]);})]);return (function(){throw $early=[self]})();})() : nil;})]));
  1268. smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), rcv, smalltalk.send(aNode, "_arguments", []), superSend]);
  1269. return self;
  1270. } catch(e) {if(e===$early)return e[0]; throw e}}
  1271. }),
  1272. smalltalk.ImpCodeGenerator);
  1273. smalltalk.addMethod(
  1274. "_visitSequenceNode_",
  1275. smalltalk.method({
  1276. selector: "visitSequenceNode:",
  1277. fn: function (aNode) {
  1278. var self=this;
  1279. ((($receiver = smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_sequenceOfNodes_temps_", [smalltalk.send(aNode, "_nodes", []), smalltalk.send(aNode, "_temps", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_sequenceOfNodes_temps_", [smalltalk.send(aNode, "_nodes", []), smalltalk.send(aNode, "_temps", [])]);})]));
  1280. return self;}
  1281. }),
  1282. smalltalk.ImpCodeGenerator);
  1283. smalltalk.addMethod(
  1284. "_visitValueNode_",
  1285. smalltalk.method({
  1286. selector: "visitValueNode:",
  1287. fn: function (aNode){
  1288. var self=this;
  1289. smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(smalltalk.send(aNode, "_value", []), "_asJavascript", [])]);
  1290. return self;}
  1291. }),
  1292. smalltalk.ImpCodeGenerator);
  1293. smalltalk.addMethod(
  1294. "_visitVariableNode_",
  1295. smalltalk.method({
  1296. selector: "visitVariableNode:",
  1297. fn: function (aNode){
  1298. var self=this;
  1299. var varName=nil;
  1300. ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_currentClass", []), "_allInstanceVariableNames", []), "_includes_", [smalltalk.send(aNode, "_value", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send("self['@", "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", ["']"])]);})() : (function(){(varName=smalltalk.send(self, "_safeVariableNameFor_", [smalltalk.send(aNode, "_value", [])]));return ((($receiver = smalltalk.send(smalltalk.send(self, "_knownVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})]));})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", ["(smalltalk.getThisContext())"]);})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_pseudoVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", ["(smalltalk.getThisContext())"]);}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_pseudoVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})]));})]));})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})]));}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", ["(smalltalk.getThisContext())"]);})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_pseudoVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", ["(smalltalk.getThisContext())"]);}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_pseudoVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})]));})]));})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send("self['@", "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", ["']"])]);}), (function(){(varName=smalltalk.send(self, "_safeVariableNameFor_", [smalltalk.send(aNode, "_value", [])]));return ((($receiver = smalltalk.send(smalltalk.send(self, "_knownVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})]));})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", ["(smalltalk.getThisContext())"]);})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_pseudoVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", ["(smalltalk.getThisContext())"]);}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_pseudoVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})]));})]));})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("(typeof ", "__comma", [varName]), "__comma", [" == 'undefined' ? nil : "]), "__comma", [varName]), "__comma", [")"])]);})]));}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignExpression_", ["(smalltalk.getThisContext())"]);})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_pseudoVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignExpression_", ["(smalltalk.getThisContext())"]);}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_pseudoVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);})() : (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_lazyAssignValue_", [varName]);}), (function(){return smalltalk.send(self, "_lazyAssignExpression_", [varName]);})]));})]));})]));})]));
  1301. return self;}
  1302. }),
  1303. smalltalk.ImpCodeGenerator);
  1304. smalltalk.addMethod(
  1305. "_visitVerbatimNode_",
  1306. smalltalk.method({
  1307. selector: "visitVerbatimNode:",
  1308. fn: function (aNode){
  1309. var self=this;
  1310. smalltalk.send(self, "_lazyAssignValue_", [smalltalk.send(aNode, "_value", [])]);
  1311. return self;}
  1312. }),
  1313. smalltalk.ImpCodeGenerator);
  1314. smalltalk.ImpCodeGenerator.klass.iVarNames = ['performOptimizations'];
  1315. smalltalk.addMethod(
  1316. "_performOptimizations",
  1317. smalltalk.method({
  1318. selector: "performOptimizations",
  1319. fn: function () {
  1320. var self=this;
  1321. return (($receiver = self['@performOptimizations']) == nil || $receiver == undefined) ? (function(){return true;})() : $receiver;
  1322. return self;}
  1323. }),
  1324. smalltalk.ImpCodeGenerator.klass);
  1325. smalltalk.addMethod(
  1326. "_performOptimizations_",
  1327. smalltalk.method({
  1328. selector: "performOptimizations:",
  1329. fn: function (aBoolean) {
  1330. var self=this;
  1331. (self['@performOptimizations']=aBoolean);
  1332. return self;}
  1333. }),
  1334. smalltalk.ImpCodeGenerator.klass);
  1335. smalltalk.addClass('IRASTTranslator', smalltalk.NodeVisitor, ['source', 'theClass', 'method', 'sequence', 'nextAlias'], 'Compiler');
  1336. smalltalk.addClass('ReturnNodeChecker', smalltalk.NodeVisitor, ['wasReturnNode'], 'Compiler');
  1337. smalltalk.addMethod(
  1338. "_initialize",
  1339. smalltalk.method({
  1340. selector: "initialize",
  1341. fn: function () {
  1342. var self=this;
  1343. (self['@wasReturnNode']=false);
  1344. return self;}
  1345. }),
  1346. smalltalk.ReturnNodeChecker);
  1347. smalltalk.addMethod(
  1348. "_visitReturnNode_",
  1349. smalltalk.method({
  1350. selector: "visitReturnNode:",
  1351. fn: function (aNode) {
  1352. var self=this;
  1353. (self['@wasReturnNode']=true);
  1354. return self;}
  1355. }),
  1356. smalltalk.ReturnNodeChecker);
  1357. smalltalk.addMethod(
  1358. "_wasReturnNode",
  1359. smalltalk.method({
  1360. selector: "wasReturnNode",
  1361. fn: function () {
  1362. var self=this;
  1363. return self['@wasReturnNode'];
  1364. return self;}
  1365. }),
  1366. smalltalk.ReturnNodeChecker);
  1367. smalltalk.addClass('SemanticAnalyzer', smalltalk.NodeVisitor, ['currentScope', 'theClass', 'classReferences', 'messageSends', 'superSends'], 'Compiler');
  1368. smalltalk.addClass('PackageLoader', smalltalk.Object, [], 'Compiler');
  1369. smalltalk.addClass('ScopeVar', smalltalk.Object, ['scope', 'name'], 'Compiler');
  1370. smalltalk.addClass('AliasVar', smalltalk.ScopeVar, ['node'], 'Compiler');
  1371. smalltalk.addClass('ArgVar', smalltalk.ScopeVar, [], 'Compiler');
  1372. smalltalk.addClass('ClassRefVar', smalltalk.ScopeVar, [], 'Compiler');
  1373. smalltalk.addClass('InstanceVar', smalltalk.ScopeVar, [], 'Compiler');
  1374. smalltalk.addClass('PseudoVar', smalltalk.ScopeVar, [], 'Compiler');
  1375. smalltalk.addClass('TempVar', smalltalk.ScopeVar, [], 'Compiler');
  1376. smalltalk.addClass('UnknownVar', smalltalk.ScopeVar, [], 'Compiler');
  1377. smalltalk.addMethod(
  1378. "_appendToInstruction_",
  1379. smalltalk.method({
  1380. selector: "appendToInstruction:",
  1381. fn: function (anIRInstruction){
  1382. var self=this;
  1383. return smalltalk.withContext(function($ctx1) { _st(anIRInstruction)._appendBlock_(self);
  1384. return self}, self, "appendToInstruction:", [anIRInstruction], smalltalk.BlockClosure)}
  1385. }),
  1386. smalltalk.BlockClosure);
  1387. smalltalk.addMethod(
  1388. "_nextChunk",
  1389. smalltalk.method({
  1390. selector: "nextChunk",
  1391. fn: function (){
  1392. var self=this;
  1393. return smalltalk.withContext(function($ctx1) { var $1,$3,$5,$6,$4,$2;
  1394. var $early={};
  1395. try {
  1396. $ctx1.locals.char=nil;
  1397. $ctx1.locals.result=nil;
  1398. $ctx1.locals.chunk=nil;
  1399. $ctx1.locals.result=_st("")._writeStream();
  1400. $1=(function(){
  1401. return smalltalk.withContext(function($ctx2) { $ctx1.locals.char=_st(self["@stream"])._next();
  1402. $ctx1.locals.char;
  1403. return _st($ctx1.locals.char)._notNil();
  1404. })});
  1405. $2=(function(){
  1406. return smalltalk.withContext(function($ctx2) { $3=_st($ctx1.locals.char).__eq("!");
  1407. $4=(function(){
  1408. return smalltalk.withContext(function($ctx3) { $5=_st(_st(self["@stream"])._peek()).__eq("!");
  1409. if(smalltalk.assert($5)){
  1410. return _st(self["@stream"])._next();
  1411. } else {
  1412. $6=_st(_st($ctx1.locals.result)._contents())._trimBoth();
  1413. throw $early=[$6];
  1414. };
  1415. })});
  1416. _st($3)._ifTrue_($4);
  1417. return _st($ctx1.locals.result)._nextPut_($ctx1.locals.char);
  1418. })});
  1419. _st($1)._whileTrue_($2);
  1420. return nil;
  1421. }
  1422. catch(e) {if(e===$early)return e[0]; throw e}
  1423. }, self, "nextChunk", [], smalltalk.ChunkParser)}
  1424. }),
  1425. smalltalk.ChunkParser);
  1426. smalltalk.addMethod(
  1427. "_stream_",
  1428. smalltalk.method({
  1429. selector: "stream:",
  1430. fn: function (aStream){
  1431. var self=this;
  1432. return smalltalk.withContext(function($ctx1) { self["@stream"]=aStream;
  1433. return self}, self, "stream:", [aStream], smalltalk.ChunkParser)}
  1434. }),
  1435. smalltalk.ChunkParser);
  1436. smalltalk.addMethod(
  1437. "_on_",
  1438. smalltalk.method({
  1439. selector: "on:",
  1440. fn: function (aStream){
  1441. var self=this;
  1442. return smalltalk.withContext(function($ctx1) { var $1;
  1443. $1=_st(_st(self)._new())._stream_(aStream);
  1444. return $1;
  1445. }, self, "on:", [aStream], smalltalk.ChunkParser.klass)}
  1446. }),
  1447. smalltalk.ChunkParser.klass);
  1448. smalltalk.addMethod(
  1449. "_asVariableName",
  1450. smalltalk.method({
  1451. selector: "asVariableName",
  1452. fn: function (){
  1453. var self=this;
  1454. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1455. $2=_st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._reservedWords())._includes_(self);
  1456. if(smalltalk.assert($2)){
  1457. $1=_st(self).__comma("_");
  1458. } else {
  1459. $1=self;
  1460. };
  1461. return $1;
  1462. }, self, "asVariableName", [], smalltalk.String)}
  1463. }),
  1464. smalltalk.String);
  1465. smalltalk.addMethod(
  1466. "_codeGeneratorClass",
  1467. smalltalk.method({
  1468. selector: "codeGeneratorClass",
  1469. fn: function (){
  1470. var self=this;
  1471. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1472. $2=self["@codeGeneratorClass"];
  1473. if(($receiver = $2) == nil || $receiver == undefined){
  1474. $1=(smalltalk.InliningCodeGenerator || InliningCodeGenerator);
  1475. } else {
  1476. $1=$2;
  1477. };
  1478. return $1;
  1479. }, self, "codeGeneratorClass", [], smalltalk.Compiler)}
  1480. }),
  1481. smalltalk.Compiler);
  1482. smalltalk.addMethod(
  1483. "_codeGeneratorClass_",
  1484. smalltalk.method({
  1485. selector: "codeGeneratorClass:",
  1486. fn: function (aClass){
  1487. var self=this;
  1488. return smalltalk.withContext(function($ctx1) { self["@codeGeneratorClass"]=aClass;
  1489. return self}, self, "codeGeneratorClass:", [aClass], smalltalk.Compiler)}
  1490. }),
  1491. smalltalk.Compiler);
  1492. smalltalk.addMethod(
  1493. "_compile_",
  1494. smalltalk.method({
  1495. selector: "compile:",
  1496. fn: function (aString){
  1497. var self=this;
  1498. return smalltalk.withContext(function($ctx1) { var $1;
  1499. $1=_st(self)._compileNode_(_st(self)._parse_(aString));
  1500. return $1;
  1501. }, self, "compile:", [aString], smalltalk.Compiler)}
  1502. }),
  1503. smalltalk.Compiler);
  1504. smalltalk.addMethod(
  1505. "_compile_forClass_",
  1506. smalltalk.method({
  1507. selector: "compile:forClass:",
  1508. fn: function (aString,aClass){
  1509. var self=this;
  1510. return smalltalk.withContext(function($ctx1) { var $1;
  1511. _st(self)._currentClass_(aClass);
  1512. _st(self)._source_(aString);
  1513. $1=_st(self)._compile_(aString);
  1514. return $1;
  1515. }, self, "compile:forClass:", [aString,aClass], smalltalk.Compiler)}
  1516. }),
  1517. smalltalk.Compiler);
  1518. smalltalk.addMethod(
  1519. "_compileExpression_",
  1520. smalltalk.method({
  1521. selector: "compileExpression:",
  1522. fn: function (aString){
  1523. var self=this;
  1524. return smalltalk.withContext(function($ctx1) { var $1;
  1525. _st(self)._currentClass_((smalltalk.DoIt || DoIt));
  1526. _st(self)._source_(_st(_st("doIt ^[").__comma(aString)).__comma("] value"));
  1527. $1=_st(self)._compileNode_(_st(self)._parse_(_st(self)._source()));
  1528. return $1;
  1529. }, self, "compileExpression:", [aString], smalltalk.Compiler)}
  1530. }),
  1531. smalltalk.Compiler);
  1532. smalltalk.addMethod(
  1533. "_compileNode_",
  1534. smalltalk.method({
  1535. selector: "compileNode:",
  1536. fn: function (aNode){
  1537. var self=this;
  1538. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1539. $ctx1.locals.generator=nil;
  1540. $ctx1.locals.result=nil;
  1541. $ctx1.locals.generator=_st(_st(self)._codeGeneratorClass())._new();
  1542. $1=$ctx1.locals.generator;
  1543. _st($1)._source_(_st(self)._source());
  1544. $2=_st($1)._currentClass_(_st(self)._currentClass());
  1545. $ctx1.locals.result=_st($ctx1.locals.generator)._compileNode_(aNode);
  1546. _st(self)._unknownVariables_([]);
  1547. $3=$ctx1.locals.result;
  1548. return $3;
  1549. }, self, "compileNode:", [aNode], smalltalk.Compiler)}
  1550. }),
  1551. smalltalk.Compiler);
  1552. smalltalk.addMethod(
  1553. "_currentClass",
  1554. smalltalk.method({
  1555. selector: "currentClass",
  1556. fn: function (){
  1557. var self=this;
  1558. return smalltalk.withContext(function($ctx1) { var $1;
  1559. $1=self["@currentClass"];
  1560. return $1;
  1561. }, self, "currentClass", [], smalltalk.Compiler)}
  1562. }),
  1563. smalltalk.Compiler);
  1564. smalltalk.addMethod(
  1565. "_currentClass_",
  1566. smalltalk.method({
  1567. selector: "currentClass:",
  1568. fn: function (aClass){
  1569. var self=this;
  1570. return smalltalk.withContext(function($ctx1) { self["@currentClass"]=aClass;
  1571. return self}, self, "currentClass:", [aClass], smalltalk.Compiler)}
  1572. }),
  1573. smalltalk.Compiler);
  1574. smalltalk.addMethod(
  1575. "_eval_",
  1576. smalltalk.method({
  1577. selector: "eval:",
  1578. fn: function (aString){
  1579. var self=this;
  1580. return smalltalk.withContext(function($ctx1) { return eval(aString);
  1581. return self}, self, "eval:", [aString], smalltalk.Compiler)}
  1582. }),
  1583. smalltalk.Compiler);
  1584. smalltalk.addMethod(
  1585. "_evaluateExpression_",
  1586. smalltalk.method({
  1587. selector: "evaluateExpression:",
  1588. fn: function (aString){
  1589. var self=this;
  1590. return smalltalk.withContext(function($ctx1) { var $1;
  1591. $ctx1.locals.result=nil;
  1592. _st((smalltalk.DoIt || DoIt))._addCompiledMethod_(_st(self)._eval_(_st(self)._compileExpression_(aString)));
  1593. $ctx1.locals.result=_st(_st((smalltalk.DoIt || DoIt))._new())._doIt();
  1594. _st((smalltalk.DoIt || DoIt))._removeCompiledMethod_(_st(_st((smalltalk.DoIt || DoIt))._methodDictionary())._at_("doIt"));
  1595. $1=$ctx1.locals.result;
  1596. return $1;
  1597. }, self, "evaluateExpression:", [aString], smalltalk.Compiler)}
  1598. }),
  1599. smalltalk.Compiler);
  1600. smalltalk.addMethod(
  1601. "_install_forClass_category_",
  1602. smalltalk.method({
  1603. selector: "install:forClass:category:",
  1604. fn: function (aString,aBehavior,anotherString){
  1605. var self=this;
  1606. return smalltalk.withContext(function($ctx1) { var $1;
  1607. $ctx1.locals.compiled=nil;
  1608. $ctx1.locals.compiled=_st(self)._eval_(_st(self)._compile_forClass_(aString,aBehavior));
  1609. _st($ctx1.locals.compiled)._category_(anotherString);
  1610. _st(aBehavior)._addCompiledMethod_($ctx1.locals.compiled);
  1611. _st(self)._setupClass_(aBehavior);
  1612. $1=$ctx1.locals.compiled;
  1613. return $1;
  1614. }, self, "install:forClass:category:", [aString,aBehavior,anotherString], smalltalk.Compiler)}
  1615. }),
  1616. smalltalk.Compiler);
  1617. smalltalk.addMethod(
  1618. "_parse_",
  1619. smalltalk.method({
  1620. selector: "parse:",
  1621. fn: function (aString){
  1622. var self=this;
  1623. return smalltalk.withContext(function($ctx1) { var $1;
  1624. $1=_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._parse_(aString);
  1625. return $1;
  1626. }, self, "parse:", [aString], smalltalk.Compiler)}
  1627. }),
  1628. smalltalk.Compiler);
  1629. smalltalk.addMethod(
  1630. "_parseExpression_",
  1631. smalltalk.method({
  1632. selector: "parseExpression:",
  1633. fn: function (aString){
  1634. var self=this;
  1635. return smalltalk.withContext(function($ctx1) { var $1;
  1636. $1=_st(self)._parse_(_st(_st("doIt ^[").__comma(aString)).__comma("] value"));
  1637. return $1;
  1638. }, self, "parseExpression:", [aString], smalltalk.Compiler)}
  1639. }),
  1640. smalltalk.Compiler);
  1641. smalltalk.addMethod(
  1642. "_recompile_",
  1643. smalltalk.method({
  1644. selector: "recompile:",
  1645. fn: function (aClass){
  1646. var self=this;
  1647. return smalltalk.withContext(function($ctx1) { var $1;
  1648. _st(_st(aClass)._methodDictionary())._do_((function(each){
  1649. return smalltalk.withContext(function($ctx2) { _st(console)._log_(_st(_st(_st(aClass)._name()).__comma(" >> ")).__comma(_st(each)._selector()));
  1650. return _st(self)._install_forClass_category_(_st(each)._source(),aClass,_st(each)._category());
  1651. })}));
  1652. _st(self)._setupClass_(aClass);
  1653. $1=_st(aClass)._isMetaclass();
  1654. if(! smalltalk.assert($1)){
  1655. _st(self)._recompile_(_st(aClass)._class());
  1656. };
  1657. return self}, self, "recompile:", [aClass], smalltalk.Compiler)}
  1658. }),
  1659. smalltalk.Compiler);
  1660. smalltalk.addMethod(
  1661. "_recompileAll",
  1662. smalltalk.method({
  1663. selector: "recompileAll",
  1664. fn: function (){
  1665. var self=this;
  1666. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1667. _st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._classes())._do_((function(each){
  1668. return smalltalk.withContext(function($ctx2) { $1=(smalltalk.Transcript || Transcript);
  1669. _st($1)._show_(each);
  1670. $2=_st($1)._cr();
  1671. $2;
  1672. return _st((function(){
  1673. return smalltalk.withContext(function($ctx3) { return _st(self)._recompile_(each);
  1674. })}))._valueWithTimeout_((100));
  1675. })}));
  1676. return self}, self, "recompileAll", [], smalltalk.Compiler)}
  1677. }),
  1678. smalltalk.Compiler);
  1679. smalltalk.addMethod(
  1680. "_setupClass_",
  1681. smalltalk.method({
  1682. selector: "setupClass:",
  1683. fn: function (aClass){
  1684. var self=this;
  1685. return smalltalk.withContext(function($ctx1) { smalltalk.init(aClass);
  1686. return self}, self, "setupClass:", [aClass], smalltalk.Compiler)}
  1687. }),
  1688. smalltalk.Compiler);
  1689. smalltalk.addMethod(
  1690. "_source",
  1691. smalltalk.method({
  1692. selector: "source",
  1693. fn: function (){
  1694. var self=this;
  1695. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1696. $2=self["@source"];
  1697. if(($receiver = $2) == nil || $receiver == undefined){
  1698. $1="";
  1699. } else {
  1700. $1=$2;
  1701. };
  1702. return $1;
  1703. }, self, "source", [], smalltalk.Compiler)}
  1704. }),
  1705. smalltalk.Compiler);
  1706. smalltalk.addMethod(
  1707. "_source_",
  1708. smalltalk.method({
  1709. selector: "source:",
  1710. fn: function (aString){
  1711. var self=this;
  1712. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  1713. return self}, self, "source:", [aString], smalltalk.Compiler)}
  1714. }),
  1715. smalltalk.Compiler);
  1716. smalltalk.addMethod(
  1717. "_unknownVariables",
  1718. smalltalk.method({
  1719. selector: "unknownVariables",
  1720. fn: function (){
  1721. var self=this;
  1722. return smalltalk.withContext(function($ctx1) { var $1;
  1723. $1=self["@unknownVariables"];
  1724. return $1;
  1725. }, self, "unknownVariables", [], smalltalk.Compiler)}
  1726. }),
  1727. smalltalk.Compiler);
  1728. smalltalk.addMethod(
  1729. "_unknownVariables_",
  1730. smalltalk.method({
  1731. selector: "unknownVariables:",
  1732. fn: function (aCollection){
  1733. var self=this;
  1734. return smalltalk.withContext(function($ctx1) { self["@unknownVariables"]=aCollection;
  1735. return self}, self, "unknownVariables:", [aCollection], smalltalk.Compiler)}
  1736. }),
  1737. smalltalk.Compiler);
  1738. smalltalk.addMethod(
  1739. "_recompile_",
  1740. smalltalk.method({
  1741. selector: "recompile:",
  1742. fn: function (aClass){
  1743. var self=this;
  1744. return smalltalk.withContext(function($ctx1) { _st(_st(self)._new())._recompile_(aClass);
  1745. return self}, self, "recompile:", [aClass], smalltalk.Compiler.klass)}
  1746. }),
  1747. smalltalk.Compiler.klass);
  1748. smalltalk.addMethod(
  1749. "_recompileAll",
  1750. smalltalk.method({
  1751. selector: "recompileAll",
  1752. fn: function (){
  1753. var self=this;
  1754. return smalltalk.withContext(function($ctx1) { _st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._classes())._do_((function(each){
  1755. return smalltalk.withContext(function($ctx2) { return _st(self)._recompile_(each);
  1756. })}));
  1757. return self}, self, "recompileAll", [], smalltalk.Compiler.klass)}
  1758. }),
  1759. smalltalk.Compiler.klass);
  1760. smalltalk.addMethod(
  1761. "_messageText",
  1762. smalltalk.method({
  1763. selector: "messageText",
  1764. fn: function (){
  1765. var self=this;
  1766. return smalltalk.withContext(function($ctx1) { var $1;
  1767. $1=_st(" Invalid assignment to variable: ").__comma(_st(self)._variableName());
  1768. return $1;
  1769. }, self, "messageText", [], smalltalk.InvalidAssignmentError)}
  1770. }),
  1771. smalltalk.InvalidAssignmentError);
  1772. smalltalk.addMethod(
  1773. "_variableName",
  1774. smalltalk.method({
  1775. selector: "variableName",
  1776. fn: function (){
  1777. var self=this;
  1778. return smalltalk.withContext(function($ctx1) { var $1;
  1779. $1=self["@variableName"];
  1780. return $1;
  1781. }, self, "variableName", [], smalltalk.InvalidAssignmentError)}
  1782. }),
  1783. smalltalk.InvalidAssignmentError);
  1784. smalltalk.addMethod(
  1785. "_variableName_",
  1786. smalltalk.method({
  1787. selector: "variableName:",
  1788. fn: function (aString){
  1789. var self=this;
  1790. return smalltalk.withContext(function($ctx1) { self["@variableName"]=aString;
  1791. return self}, self, "variableName:", [aString], smalltalk.InvalidAssignmentError)}
  1792. }),
  1793. smalltalk.InvalidAssignmentError);
  1794. smalltalk.addMethod(
  1795. "_messageText",
  1796. smalltalk.method({
  1797. selector: "messageText",
  1798. fn: function (){
  1799. var self=this;
  1800. return smalltalk.withContext(function($ctx1) { var $1;
  1801. $1=_st(_st("Variable shadowing error: ").__comma(_st(self)._variableName())).__comma(" is already defined");
  1802. return $1;
  1803. }, self, "messageText", [], smalltalk.ShadowingVariableError)}
  1804. }),
  1805. smalltalk.ShadowingVariableError);
  1806. smalltalk.addMethod(
  1807. "_variableName",
  1808. smalltalk.method({
  1809. selector: "variableName",
  1810. fn: function (){
  1811. var self=this;
  1812. return smalltalk.withContext(function($ctx1) { var $1;
  1813. $1=self["@variableName"];
  1814. return $1;
  1815. }, self, "variableName", [], smalltalk.ShadowingVariableError)}
  1816. }),
  1817. smalltalk.ShadowingVariableError);
  1818. smalltalk.addMethod(
  1819. "_variableName_",
  1820. smalltalk.method({
  1821. selector: "variableName:",
  1822. fn: function (aString){
  1823. var self=this;
  1824. return smalltalk.withContext(function($ctx1) { self["@variableName"]=aString;
  1825. return self}, self, "variableName:", [aString], smalltalk.ShadowingVariableError)}
  1826. }),
  1827. smalltalk.ShadowingVariableError);
  1828. smalltalk.addMethod(
  1829. "_variableName",
  1830. smalltalk.method({
  1831. selector: "variableName",
  1832. fn: function (){
  1833. var self=this;
  1834. return smalltalk.withContext(function($ctx1) { var $1;
  1835. $1=self["@variableName"];
  1836. return $1;
  1837. }, self, "variableName", [], smalltalk.UnknownVariableError)}
  1838. }),
  1839. smalltalk.UnknownVariableError);
  1840. smalltalk.addMethod(
  1841. "_variableName_",
  1842. smalltalk.method({
  1843. selector: "variableName:",
  1844. fn: function (aString){
  1845. var self=this;
  1846. return smalltalk.withContext(function($ctx1) { self["@variableName"]=aString;
  1847. return self}, self, "variableName:", [aString], smalltalk.UnknownVariableError)}
  1848. }),
  1849. smalltalk.UnknownVariableError);
  1850. smalltalk.addMethod(
  1851. "_classNameFor_",
  1852. smalltalk.method({
  1853. selector: "classNameFor:",
  1854. fn: function (aClass){
  1855. var self=this;
  1856. return smalltalk.withContext(function($ctx1) { var $2,$3,$5,$4,$1;
  1857. $2=_st(aClass)._isMetaclass();
  1858. $3=(function(){
  1859. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(aClass)._instanceClass())._name()).__comma(".klass");
  1860. })});
  1861. $4=(function(){
  1862. return smalltalk.withContext(function($ctx2) { $5=_st(aClass)._isNil();
  1863. if(smalltalk.assert($5)){
  1864. return "nil";
  1865. } else {
  1866. return _st(aClass)._name();
  1867. };
  1868. })});
  1869. $1=_st($2)._ifTrue_ifFalse_($3,$4);
  1870. return $1;
  1871. }, self, "classNameFor:", [aClass], smalltalk.Exporter)}
  1872. }),
  1873. smalltalk.Exporter);
  1874. smalltalk.addMethod(
  1875. "_exportAll",
  1876. smalltalk.method({
  1877. selector: "exportAll",
  1878. fn: function (){
  1879. var self=this;
  1880. return smalltalk.withContext(function($ctx1) { var $1;
  1881. $1=_st((smalltalk.String || String))._streamContents_((function(stream){
  1882. return smalltalk.withContext(function($ctx2) { return _st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._packages())._do_((function(pkg){
  1883. return smalltalk.withContext(function($ctx3) { return _st(stream)._nextPutAll_(_st(self)._exportPackage_(_st(pkg)._name()));
  1884. })}));
  1885. })}));
  1886. return $1;
  1887. }, self, "exportAll", [], smalltalk.Exporter)}
  1888. }),
  1889. smalltalk.Exporter);
  1890. smalltalk.addMethod(
  1891. "_exportClass_",
  1892. smalltalk.method({
  1893. selector: "exportClass:",
  1894. fn: function (aClass){
  1895. var self=this;
  1896. return smalltalk.withContext(function($ctx1) { var $1;
  1897. $1=_st((smalltalk.String || String))._streamContents_((function(stream){
  1898. return smalltalk.withContext(function($ctx2) { _st(self)._exportDefinitionOf_on_(aClass,stream);
  1899. _st(self)._exportMethodsOf_on_(aClass,stream);
  1900. _st(self)._exportMetaDefinitionOf_on_(aClass,stream);
  1901. return _st(self)._exportMethodsOf_on_(_st(aClass)._class(),stream);
  1902. })}));
  1903. return $1;
  1904. }, self, "exportClass:", [aClass], smalltalk.Exporter)}
  1905. }),
  1906. smalltalk.Exporter);
  1907. smalltalk.addMethod(
  1908. "_exportDefinitionOf_on_",
  1909. smalltalk.method({
  1910. selector: "exportDefinitionOf:on:",
  1911. fn: function (aClass,aStream){
  1912. var self=this;
  1913. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6,$7;
  1914. $1=aStream;
  1915. _st($1)._nextPutAll_("smalltalk.addClass(");
  1916. _st($1)._nextPutAll_(_st(_st("'").__comma(_st(self)._classNameFor_(aClass))).__comma("', "));
  1917. _st($1)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(_st(aClass)._superclass())));
  1918. $2=_st($1)._nextPutAll_(", [");
  1919. _st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
  1920. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
  1921. })}),(function(){
  1922. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(", ");
  1923. })}));
  1924. $3=aStream;
  1925. _st($3)._nextPutAll_("], '");
  1926. _st($3)._nextPutAll_(_st(_st(aClass)._category()).__comma("'"));
  1927. $4=_st($3)._nextPutAll_(");");
  1928. $5=_st(_st(aClass)._comment())._notEmpty();
  1929. if(smalltalk.assert($5)){
  1930. $6=aStream;
  1931. _st($6)._lf();
  1932. _st($6)._nextPutAll_("smalltalk.");
  1933. _st($6)._nextPutAll_(_st(self)._classNameFor_(aClass));
  1934. _st($6)._nextPutAll_(".comment=");
  1935. $7=_st($6)._nextPutAll_(_st(_st(aClass)._comment())._asJavascript());
  1936. $7;
  1937. };
  1938. _st(aStream)._lf();
  1939. return self}, self, "exportDefinitionOf:on:", [aClass,aStream], smalltalk.Exporter)}
  1940. }),
  1941. smalltalk.Exporter);
  1942. smalltalk.addMethod(
  1943. "_exportMetaDefinitionOf_on_",
  1944. smalltalk.method({
  1945. selector: "exportMetaDefinitionOf:on:",
  1946. fn: function (aClass,aStream){
  1947. var self=this;
  1948. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  1949. $1=_st(_st(_st(aClass)._class())._instanceVariableNames())._isEmpty();
  1950. if(! smalltalk.assert($1)){
  1951. $2=aStream;
  1952. _st($2)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(_st(aClass)._class())));
  1953. $3=_st($2)._nextPutAll_(".iVarNames = [");
  1954. $3;
  1955. _st(_st(_st(aClass)._class())._instanceVariableNames())._do_separatedBy_((function(each){
  1956. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
  1957. })}),(function(){
  1958. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(",");
  1959. })}));
  1960. _st(aStream)._nextPutAll_(_st("];").__comma(_st((smalltalk.String || String))._lf()));
  1961. };
  1962. return self}, self, "exportMetaDefinitionOf:on:", [aClass,aStream], smalltalk.Exporter)}
  1963. }),
  1964. smalltalk.Exporter);
  1965. smalltalk.addMethod(
  1966. "_exportMethod_of_on_",
  1967. smalltalk.method({
  1968. selector: "exportMethod:of:on:",
  1969. fn: function (aMethod,aClass,aStream){
  1970. var self=this;
  1971. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  1972. $1=aStream;
  1973. _st($1)._nextPutAll_("smalltalk.addMethod(");
  1974. _st($1)._lf();
  1975. _st($1)._nextPutAll_(_st(_st(_st(_st(aMethod)._selector())._asSelector())._asJavascript()).__comma(","));
  1976. _st($1)._lf();
  1977. _st($1)._nextPutAll_("smalltalk.method({");
  1978. _st($1)._lf();
  1979. _st($1)._nextPutAll_(_st(_st("selector: ").__comma(_st(_st(aMethod)._selector())._asJavascript())).__comma(","));
  1980. _st($1)._lf();
  1981. _st($1)._nextPutAll_(_st(_st("category: '").__comma(_st(aMethod)._category())).__comma("',"));
  1982. _st($1)._lf();
  1983. _st($1)._nextPutAll_(_st(_st("fn: ").__comma(_st(_st(aMethod)._fn())._compiledSource())).__comma(","));
  1984. _st($1)._lf();
  1985. _st($1)._nextPutAll_(_st(_st("args: ").__comma(_st(_st(aMethod)._arguments())._asJavascript())).__comma(","));
  1986. _st($1)._lf();
  1987. _st($1)._nextPutAll_(_st(_st("source: ").__comma(_st(_st(aMethod)._source())._asJavascript())).__comma(","));
  1988. _st($1)._lf();
  1989. _st($1)._nextPutAll_(_st(_st("messageSends: ").__comma(_st(_st(aMethod)._messageSends())._asJavascript())).__comma(","));
  1990. _st($1)._lf();
  1991. $2=_st($1)._nextPutAll_(_st("referencedClasses: ").__comma(_st(_st(aMethod)._referencedClasses())._asJavascript()));
  1992. $3=aStream;
  1993. _st($3)._lf();
  1994. _st($3)._nextPutAll_("}),");
  1995. _st($3)._lf();
  1996. _st($3)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(aClass)));
  1997. _st($3)._nextPutAll_(");");
  1998. _st($3)._lf();
  1999. $4=_st($3)._lf();
  2000. return self}, self, "exportMethod:of:on:", [aMethod,aClass,aStream], smalltalk.Exporter)}
  2001. }),
  2002. smalltalk.Exporter);
  2003. smalltalk.addMethod(
  2004. "_exportMethodsOf_on_",
  2005. smalltalk.method({
  2006. selector: "exportMethodsOf:on:",
  2007. fn: function (aClass,aStream){
  2008. var self=this;
  2009. return smalltalk.withContext(function($ctx1) { var $1,$3,$2;
  2010. $1=_st(_st(_st(aClass)._methodDictionary())._values())._sorted_((function(a,b){
  2011. return smalltalk.withContext(function($ctx2) { return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
  2012. })}));
  2013. $2=(function(each){
  2014. return smalltalk.withContext(function($ctx2) { $3=_st(_st(each)._category())._match_("^\x5c*");
  2015. if(! smalltalk.assert($3)){
  2016. return _st(self)._exportMethod_of_on_(each,aClass,aStream);
  2017. };
  2018. })});
  2019. _st($1)._do_($2);
  2020. _st(aStream)._lf();
  2021. return self}, self, "exportMethodsOf:on:", [aClass,aStream], smalltalk.Exporter)}
  2022. }),
  2023. smalltalk.Exporter);
  2024. smalltalk.addMethod(
  2025. "_exportPackage_",
  2026. smalltalk.method({
  2027. selector: "exportPackage:",
  2028. fn: function (packageName){
  2029. var self=this;
  2030. return smalltalk.withContext(function($ctx1) { var $1;
  2031. $ctx1.locals.package=nil;
  2032. $1=_st((smalltalk.String || String))._streamContents_((function(stream){
  2033. return smalltalk.withContext(function($ctx2) { $ctx1.locals.package_=_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._packageAt_(packageName);
  2034. $ctx1.locals.package_;
  2035. _st(self)._exportPackageDefinitionOf_on_($ctx1.locals.package_,stream);
  2036. _st(_st(_st($ctx1.locals.package_)._sortedClasses())._asSet())._do_((function(each){
  2037. return smalltalk.withContext(function($ctx3) { return _st(stream)._nextPutAll_(_st(self)._exportClass_(each));
  2038. })}));
  2039. return _st(self)._exportPackageExtensionsOf_on_($ctx1.locals.package_,stream);
  2040. })}));
  2041. return $1;
  2042. }, self, "exportPackage:", [packageName], smalltalk.Exporter)}
  2043. }),
  2044. smalltalk.Exporter);
  2045. smalltalk.addMethod(
  2046. "_exportPackageDefinitionOf_on_",
  2047. smalltalk.method({
  2048. selector: "exportPackageDefinitionOf:on:",
  2049. fn: function (package_,aStream){
  2050. var self=this;
  2051. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2052. $1=aStream;
  2053. _st($1)._nextPutAll_("smalltalk.addPackage(");
  2054. $2=_st($1)._nextPutAll_(_st(_st(_st(_st("'").__comma(_st(package_)._name())).__comma("', ")).__comma(_st(package_)._propertiesAsJSON())).__comma(");"));
  2055. _st(aStream)._lf();
  2056. return self}, self, "exportPackageDefinitionOf:on:", [package_,aStream], smalltalk.Exporter)}
  2057. }),
  2058. smalltalk.Exporter);
  2059. smalltalk.addMethod(
  2060. "_exportPackageExtensionsOf_on_",
  2061. smalltalk.method({
  2062. selector: "exportPackageExtensionsOf:on:",
  2063. fn: function (package_,aStream){
  2064. var self=this;
  2065. return smalltalk.withContext(function($ctx1) { var $1,$3,$5,$7,$6,$4,$2;
  2066. $ctx1.locals.name=nil;
  2067. $ctx1.locals.name=_st(package_)._name();
  2068. $1=_st((smalltalk.Package || Package))._sortedClasses_(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._classes());
  2069. $2=(function(each){
  2070. return smalltalk.withContext(function($ctx2) { $3=[each,_st(each)._class()];
  2071. $4=(function(aClass){
  2072. return smalltalk.withContext(function($ctx3) { $5=_st(_st(_st(aClass)._methodDictionary())._values())._sorted_((function(a,b){
  2073. return smalltalk.withContext(function($ctx4) { return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
  2074. })}));
  2075. $6=(function(method){
  2076. return smalltalk.withContext(function($ctx4) { $7=_st(_st(method)._category())._match_(_st("^\x5c*").__comma($ctx1.locals.name));
  2077. if(smalltalk.assert($7)){
  2078. return _st(self)._exportMethod_of_on_(method,aClass,aStream);
  2079. };
  2080. })});
  2081. return _st($5)._do_($6);
  2082. })});
  2083. return _st($3)._do_($4);
  2084. })});
  2085. _st($1)._do_($2);
  2086. return self}, self, "exportPackageExtensionsOf:on:", [package_,aStream], smalltalk.Exporter)}
  2087. }),
  2088. smalltalk.Exporter);
  2089. smalltalk.addMethod(
  2090. "_chunkEscape_",
  2091. smalltalk.method({
  2092. selector: "chunkEscape:",
  2093. fn: function (aString){
  2094. var self=this;
  2095. return smalltalk.withContext(function($ctx1) { var $1;
  2096. $1=_st(_st(aString)._replace_with_("!","!!"))._trimBoth();
  2097. return $1;
  2098. }, self, "chunkEscape:", [aString], smalltalk.ChunkExporter)}
  2099. }),
  2100. smalltalk.ChunkExporter);
  2101. smalltalk.addMethod(
  2102. "_classNameFor_",
  2103. smalltalk.method({
  2104. selector: "classNameFor:",
  2105. fn: function (aClass){
  2106. var self=this;
  2107. return smalltalk.withContext(function($ctx1) { var $2,$3,$5,$4,$1;
  2108. $2=_st(aClass)._isMetaclass();
  2109. $3=(function(){
  2110. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(aClass)._instanceClass())._name()).__comma(" class");
  2111. })});
  2112. $4=(function(){
  2113. return smalltalk.withContext(function($ctx2) { $5=_st(aClass)._isNil();
  2114. if(smalltalk.assert($5)){
  2115. return "nil";
  2116. } else {
  2117. return _st(aClass)._name();
  2118. };
  2119. })});
  2120. $1=_st($2)._ifTrue_ifFalse_($3,$4);
  2121. return $1;
  2122. }, self, "classNameFor:", [aClass], smalltalk.ChunkExporter)}
  2123. }),
  2124. smalltalk.ChunkExporter);
  2125. smalltalk.addMethod(
  2126. "_exportDefinitionOf_on_",
  2127. smalltalk.method({
  2128. selector: "exportDefinitionOf:on:",
  2129. fn: function (aClass,aStream){
  2130. var self=this;
  2131. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6,$7;
  2132. $1=aStream;
  2133. _st($1)._nextPutAll_(_st(self)._classNameFor_(_st(aClass)._superclass()));
  2134. _st($1)._nextPutAll_(_st(" subclass: #").__comma(_st(self)._classNameFor_(aClass)));
  2135. _st($1)._lf();
  2136. $2=_st($1)._nextPutAll_("\x09instanceVariableNames: '");
  2137. _st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
  2138. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(each);
  2139. })}),(function(){
  2140. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(" ");
  2141. })}));
  2142. $3=aStream;
  2143. _st($3)._nextPutAll_("'");
  2144. _st($3)._lf();
  2145. _st($3)._nextPutAll_(_st(_st("\x09package: '").__comma(_st(aClass)._category())).__comma("'!"));
  2146. $4=_st($3)._lf();
  2147. $5=_st(_st(aClass)._comment())._notEmpty();
  2148. if(smalltalk.assert($5)){
  2149. $6=aStream;
  2150. _st($6)._nextPutAll_(_st(_st("!").__comma(_st(self)._classNameFor_(aClass))).__comma(" commentStamp!"));
  2151. _st($6)._lf();
  2152. _st($6)._nextPutAll_(_st(_st(self)._chunkEscape_(_st(aClass)._comment())).__comma("!"));
  2153. $7=_st($6)._lf();
  2154. $7;
  2155. };
  2156. _st(aStream)._lf();
  2157. return self}, self, "exportDefinitionOf:on:", [aClass,aStream], smalltalk.ChunkExporter)}
  2158. }),
  2159. smalltalk.ChunkExporter);
  2160. smalltalk.addMethod(
  2161. "_exportMetaDefinitionOf_on_",
  2162. smalltalk.method({
  2163. selector: "exportMetaDefinitionOf:on:",
  2164. fn: function (aClass,aStream){
  2165. var self=this;
  2166. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5;
  2167. $1=_st(_st(_st(aClass)._class())._instanceVariableNames())._isEmpty();
  2168. if(! smalltalk.assert($1)){
  2169. $2=aStream;
  2170. _st($2)._nextPutAll_(_st(self)._classNameFor_(_st(aClass)._class()));
  2171. $3=_st($2)._nextPutAll_(" instanceVariableNames: '");
  2172. $3;
  2173. _st(_st(_st(aClass)._class())._instanceVariableNames())._do_separatedBy_((function(each){
  2174. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(each);
  2175. })}),(function(){
  2176. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(" ");
  2177. })}));
  2178. $4=aStream;
  2179. _st($4)._nextPutAll_("'!");
  2180. _st($4)._lf();
  2181. $5=_st($4)._lf();
  2182. $5;
  2183. };
  2184. return self}, self, "exportMetaDefinitionOf:on:", [aClass,aStream], smalltalk.ChunkExporter)}
  2185. }),
  2186. smalltalk.ChunkExporter);
  2187. smalltalk.addMethod(
  2188. "_exportMethod_of_on_",
  2189. smalltalk.method({
  2190. selector: "exportMethod:of:on:",
  2191. fn: function (aMethod,aClass,aStream){
  2192. var self=this;
  2193. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2194. $1=aStream;
  2195. _st($1)._lf();
  2196. _st($1)._lf();
  2197. _st($1)._nextPutAll_(_st(self)._chunkEscape_(_st(aMethod)._source()));
  2198. _st($1)._lf();
  2199. $2=_st($1)._nextPutAll_("!");
  2200. return self}, self, "exportMethod:of:on:", [aMethod,aClass,aStream], smalltalk.ChunkExporter)}
  2201. }),
  2202. smalltalk.ChunkExporter);
  2203. smalltalk.addMethod(
  2204. "_exportMethods_category_of_on_",
  2205. smalltalk.method({
  2206. selector: "exportMethods:category:of:on:",
  2207. fn: function (methods,category,aClass,aStream){
  2208. var self=this;
  2209. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  2210. $1=aStream;
  2211. _st($1)._nextPutAll_(_st("!").__comma(_st(self)._classNameFor_(aClass)));
  2212. $2=_st($1)._nextPutAll_(_st(_st(" methodsFor: '").__comma(category)).__comma("'!"));
  2213. _st(_st(methods)._sorted_((function(a,b){
  2214. return smalltalk.withContext(function($ctx2) { return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
  2215. })})))._do_((function(each){
  2216. return smalltalk.withContext(function($ctx2) { return _st(self)._exportMethod_of_on_(each,aClass,aStream);
  2217. })}));
  2218. $3=aStream;
  2219. _st($3)._nextPutAll_(" !");
  2220. _st($3)._lf();
  2221. $4=_st($3)._lf();
  2222. return self}, self, "exportMethods:category:of:on:", [methods,category,aClass,aStream], smalltalk.ChunkExporter)}
  2223. }),
  2224. smalltalk.ChunkExporter);
  2225. smalltalk.addMethod(
  2226. "_exportMethodsOf_on_",
  2227. smalltalk.method({
  2228. selector: "exportMethodsOf:on:",
  2229. fn: function (aClass,aStream){
  2230. var self=this;
  2231. return smalltalk.withContext(function($ctx1) { var $1,$3,$2;
  2232. $ctx1.locals.map=nil;
  2233. $ctx1.locals.map=_st((smalltalk.Dictionary || Dictionary))._new();
  2234. $1=aClass;
  2235. $2=(function(category,methods){
  2236. return smalltalk.withContext(function($ctx2) { $3=_st(category)._match_("^\x5c*");
  2237. if(! smalltalk.assert($3)){
  2238. return _st($ctx1.locals.map)._at_put_(category,methods);
  2239. };
  2240. })});
  2241. _st($1)._protocolsDo_($2);
  2242. _st(_st(_st($ctx1.locals.map)._keys())._sorted_((function(a,b){
  2243. return smalltalk.withContext(function($ctx2) { return _st(a).__lt_eq(b);
  2244. })})))._do_((function(category){
  2245. return smalltalk.withContext(function($ctx2) { $ctx2.locals.methods=nil;
  2246. $ctx2.locals.methods=_st($ctx1.locals.map)._at_(category);
  2247. $ctx2.locals.methods;
  2248. return _st(self)._exportMethods_category_of_on_($ctx2.locals.methods,category,aClass,aStream);
  2249. })}));
  2250. return self}, self, "exportMethodsOf:on:", [aClass,aStream], smalltalk.ChunkExporter)}
  2251. }),
  2252. smalltalk.ChunkExporter);
  2253. smalltalk.addMethod(
  2254. "_exportPackageDefinitionOf_on_",
  2255. smalltalk.method({
  2256. selector: "exportPackageDefinitionOf:on:",
  2257. fn: function (package_,aStream){
  2258. var self=this;
  2259. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2260. $1=aStream;
  2261. _st($1)._nextPutAll_(_st(_st(_st(_st("Smalltalk current createPackage: '").__comma(_st(package_)._name())).__comma("' properties: ")).__comma(_st(_st(package_)._properties())._storeString())).__comma("!"));
  2262. $2=_st($1)._lf();
  2263. return self}, self, "exportPackageDefinitionOf:on:", [package_,aStream], smalltalk.ChunkExporter)}
  2264. }),
  2265. smalltalk.ChunkExporter);
  2266. smalltalk.addMethod(
  2267. "_exportPackageExtensionsOf_on_",
  2268. smalltalk.method({
  2269. selector: "exportPackageExtensionsOf:on:",
  2270. fn: function (package_,aStream){
  2271. var self=this;
  2272. return smalltalk.withContext(function($ctx1) { var $1,$3,$5,$7,$6,$4,$2;
  2273. $ctx1.locals.name=nil;
  2274. $ctx1.locals.map=nil;
  2275. $ctx1.locals.name=_st(package_)._name();
  2276. $1=_st((smalltalk.Package || Package))._sortedClasses_(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._classes());
  2277. $2=(function(each){
  2278. return smalltalk.withContext(function($ctx2) { $3=[each,_st(each)._class()];
  2279. $4=(function(aClass){
  2280. return smalltalk.withContext(function($ctx3) { $ctx1.locals.map=_st((smalltalk.Dictionary || Dictionary))._new();
  2281. $ctx1.locals.map;
  2282. $5=aClass;
  2283. $6=(function(category,methods){
  2284. return smalltalk.withContext(function($ctx4) { $7=_st(category)._match_(_st("^\x5c*").__comma($ctx1.locals.name));
  2285. if(smalltalk.assert($7)){
  2286. return _st($ctx1.locals.map)._at_put_(category,methods);
  2287. };
  2288. })});
  2289. _st($5)._protocolsDo_($6);
  2290. return _st(_st(_st($ctx1.locals.map)._keys())._sorted_((function(a,b){
  2291. return smalltalk.withContext(function($ctx4) { return _st(a).__lt_eq(b);
  2292. })})))._do_((function(category){
  2293. return smalltalk.withContext(function($ctx4) { $ctx4.locals.methods=nil;
  2294. $ctx4.locals.methods=_st($ctx1.locals.map)._at_(category);
  2295. $ctx4.locals.methods;
  2296. return _st(self)._exportMethods_category_of_on_($ctx4.locals.methods,category,aClass,aStream);
  2297. })}));
  2298. })});
  2299. return _st($3)._do_($4);
  2300. })});
  2301. _st($1)._do_($2);
  2302. return self}, self, "exportPackageExtensionsOf:on:", [package_,aStream], smalltalk.ChunkExporter)}
  2303. }),
  2304. smalltalk.ChunkExporter);
  2305. smalltalk.addMethod(
  2306. "_exportDefinitionOf_on_",
  2307. smalltalk.method({
  2308. selector: "exportDefinitionOf:on:",
  2309. fn: function (aClass,aStream){
  2310. var self=this;
  2311. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  2312. $1=aStream;
  2313. _st($1)._nextPutAll_("smalltalk.addClass(");
  2314. _st($1)._nextPutAll_(_st(_st("'").__comma(_st(self)._classNameFor_(aClass))).__comma("', "));
  2315. _st($1)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(_st(aClass)._superclass())));
  2316. $2=_st($1)._nextPutAll_(", [");
  2317. _st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
  2318. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
  2319. })}),(function(){
  2320. return smalltalk.withContext(function($ctx2) { return _st(aStream)._nextPutAll_(", ");
  2321. })}));
  2322. $3=aStream;
  2323. _st($3)._nextPutAll_("], '");
  2324. _st($3)._nextPutAll_(_st(_st(aClass)._category()).__comma("'"));
  2325. $4=_st($3)._nextPutAll_(");");
  2326. _st(aStream)._lf();
  2327. return self}, self, "exportDefinitionOf:on:", [aClass,aStream], smalltalk.StrippedExporter)}
  2328. }),
  2329. smalltalk.StrippedExporter);
  2330. smalltalk.addMethod(
  2331. "_exportMethod_of_on_",
  2332. smalltalk.method({
  2333. selector: "exportMethod:of:on:",
  2334. fn: function (aMethod,aClass,aStream){
  2335. var self=this;
  2336. return smalltalk.withContext(function($ctx1) { var $1,$2;
  2337. $1=aStream;
  2338. _st($1)._nextPutAll_("smalltalk.addMethod(");
  2339. _st($1)._lf();
  2340. _st($1)._nextPutAll_(_st(_st(_st(_st(aMethod)._selector())._asSelector())._asJavascript()).__comma(","));
  2341. _st($1)._lf();
  2342. _st($1)._nextPutAll_("smalltalk.method({");
  2343. _st($1)._lf();
  2344. _st($1)._nextPutAll_(_st(_st("selector: ").__comma(_st(_st(aMethod)._selector())._asJavascript())).__comma(","));
  2345. _st($1)._lf();
  2346. _st($1)._nextPutAll_(_st("fn: ").__comma(_st(_st(aMethod)._fn())._compiledSource()));
  2347. _st($1)._lf();
  2348. _st($1)._nextPutAll_("}),");
  2349. _st($1)._lf();
  2350. _st($1)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(aClass)));
  2351. _st($1)._nextPutAll_(");");
  2352. _st($1)._lf();
  2353. $2=_st($1)._lf();
  2354. return self}, self, "exportMethod:of:on:", [aMethod,aClass,aStream], smalltalk.StrippedExporter)}
  2355. }),
  2356. smalltalk.StrippedExporter);
  2357. smalltalk.addMethod(
  2358. "_accept_",
  2359. smalltalk.method({
  2360. selector: "accept:",
  2361. fn: function (aVisitor){
  2362. var self=this;
  2363. return smalltalk.withContext(function($ctx1) { var $1;
  2364. $1=_st(aVisitor)._visitIRInstruction_(self);
  2365. return $1;
  2366. }, self, "accept:", [aVisitor], smalltalk.IRInstruction)}
  2367. }),
  2368. smalltalk.IRInstruction);
  2369. smalltalk.addMethod(
  2370. "_add_",
  2371. smalltalk.method({
  2372. selector: "add:",
  2373. fn: function (anObject){
  2374. var self=this;
  2375. return smalltalk.withContext(function($ctx1) { var $1;
  2376. _st(anObject)._parent_(self);
  2377. $1=_st(_st(self)._instructions())._add_(anObject);
  2378. return $1;
  2379. }, self, "add:", [anObject], smalltalk.IRInstruction)}
  2380. }),
  2381. smalltalk.IRInstruction);
  2382. smalltalk.addMethod(
  2383. "_canBeAssigned",
  2384. smalltalk.method({
  2385. selector: "canBeAssigned",
  2386. fn: function (){
  2387. var self=this;
  2388. return smalltalk.withContext(function($ctx1) { return true;
  2389. }, self, "canBeAssigned", [], smalltalk.IRInstruction)}
  2390. }),
  2391. smalltalk.IRInstruction);
  2392. smalltalk.addMethod(
  2393. "_instructions",
  2394. smalltalk.method({
  2395. selector: "instructions",
  2396. fn: function (){
  2397. var self=this;
  2398. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2399. $2=self["@instructions"];
  2400. if(($receiver = $2) == nil || $receiver == undefined){
  2401. self["@instructions"]=_st((smalltalk.OrderedCollection || OrderedCollection))._new();
  2402. $1=self["@instructions"];
  2403. } else {
  2404. $1=$2;
  2405. };
  2406. return $1;
  2407. }, self, "instructions", [], smalltalk.IRInstruction)}
  2408. }),
  2409. smalltalk.IRInstruction);
  2410. smalltalk.addMethod(
  2411. "_isClosure",
  2412. smalltalk.method({
  2413. selector: "isClosure",
  2414. fn: function (){
  2415. var self=this;
  2416. return smalltalk.withContext(function($ctx1) { return false;
  2417. }, self, "isClosure", [], smalltalk.IRInstruction)}
  2418. }),
  2419. smalltalk.IRInstruction);
  2420. smalltalk.addMethod(
  2421. "_isInlined",
  2422. smalltalk.method({
  2423. selector: "isInlined",
  2424. fn: function (){
  2425. var self=this;
  2426. return smalltalk.withContext(function($ctx1) { return false;
  2427. }, self, "isInlined", [], smalltalk.IRInstruction)}
  2428. }),
  2429. smalltalk.IRInstruction);
  2430. smalltalk.addMethod(
  2431. "_isLocalReturn",
  2432. smalltalk.method({
  2433. selector: "isLocalReturn",
  2434. fn: function (){
  2435. var self=this;
  2436. return smalltalk.withContext(function($ctx1) { return false;
  2437. }, self, "isLocalReturn", [], smalltalk.IRInstruction)}
  2438. }),
  2439. smalltalk.IRInstruction);
  2440. smalltalk.addMethod(
  2441. "_isReturn",
  2442. smalltalk.method({
  2443. selector: "isReturn",
  2444. fn: function (){
  2445. var self=this;
  2446. return smalltalk.withContext(function($ctx1) { return false;
  2447. }, self, "isReturn", [], smalltalk.IRInstruction)}
  2448. }),
  2449. smalltalk.IRInstruction);
  2450. smalltalk.addMethod(
  2451. "_isSend",
  2452. smalltalk.method({
  2453. selector: "isSend",
  2454. fn: function (){
  2455. var self=this;
  2456. return smalltalk.withContext(function($ctx1) { return false;
  2457. }, self, "isSend", [], smalltalk.IRInstruction)}
  2458. }),
  2459. smalltalk.IRInstruction);
  2460. smalltalk.addMethod(
  2461. "_isSequence",
  2462. smalltalk.method({
  2463. selector: "isSequence",
  2464. fn: function (){
  2465. var self=this;
  2466. return smalltalk.withContext(function($ctx1) { return false;
  2467. }, self, "isSequence", [], smalltalk.IRInstruction)}
  2468. }),
  2469. smalltalk.IRInstruction);
  2470. smalltalk.addMethod(
  2471. "_isTempDeclaration",
  2472. smalltalk.method({
  2473. selector: "isTempDeclaration",
  2474. fn: function (){
  2475. var self=this;
  2476. return smalltalk.withContext(function($ctx1) { return false;
  2477. }, self, "isTempDeclaration", [], smalltalk.IRInstruction)}
  2478. }),
  2479. smalltalk.IRInstruction);
  2480. smalltalk.addMethod(
  2481. "_isVariable",
  2482. smalltalk.method({
  2483. selector: "isVariable",
  2484. fn: function (){
  2485. var self=this;
  2486. return smalltalk.withContext(function($ctx1) { return false;
  2487. }, self, "isVariable", [], smalltalk.IRInstruction)}
  2488. }),
  2489. smalltalk.IRInstruction);
  2490. smalltalk.addMethod(
  2491. "_parent",
  2492. smalltalk.method({
  2493. selector: "parent",
  2494. fn: function (){
  2495. var self=this;
  2496. return smalltalk.withContext(function($ctx1) { var $1;
  2497. $1=self["@parent"];
  2498. return $1;
  2499. }, self, "parent", [], smalltalk.IRInstruction)}
  2500. }),
  2501. smalltalk.IRInstruction);
  2502. smalltalk.addMethod(
  2503. "_parent_",
  2504. smalltalk.method({
  2505. selector: "parent:",
  2506. fn: function (anIRInstruction){
  2507. var self=this;
  2508. return smalltalk.withContext(function($ctx1) { self["@parent"]=anIRInstruction;
  2509. return self}, self, "parent:", [anIRInstruction], smalltalk.IRInstruction)}
  2510. }),
  2511. smalltalk.IRInstruction);
  2512. smalltalk.addMethod(
  2513. "_remove",
  2514. smalltalk.method({
  2515. selector: "remove",
  2516. fn: function (){
  2517. var self=this;
  2518. return smalltalk.withContext(function($ctx1) { _st(_st(self)._parent())._remove_(self);
  2519. return self}, self, "remove", [], smalltalk.IRInstruction)}
  2520. }),
  2521. smalltalk.IRInstruction);
  2522. smalltalk.addMethod(
  2523. "_remove_",
  2524. smalltalk.method({
  2525. selector: "remove:",
  2526. fn: function (anIRInstruction){
  2527. var self=this;
  2528. return smalltalk.withContext(function($ctx1) { _st(_st(self)._instructions())._remove_(anIRInstruction);
  2529. return self}, self, "remove:", [anIRInstruction], smalltalk.IRInstruction)}
  2530. }),
  2531. smalltalk.IRInstruction);
  2532. smalltalk.addMethod(
  2533. "_replace_with_",
  2534. smalltalk.method({
  2535. selector: "replace:with:",
  2536. fn: function (anIRInstruction,anotherIRInstruction){
  2537. var self=this;
  2538. return smalltalk.withContext(function($ctx1) { _st(anotherIRInstruction)._parent_(self);
  2539. _st(_st(self)._instructions())._at_put_(_st(_st(self)._instructions())._indexOf_(anIRInstruction),anotherIRInstruction);
  2540. return self}, self, "replace:with:", [anIRInstruction,anotherIRInstruction], smalltalk.IRInstruction)}
  2541. }),
  2542. smalltalk.IRInstruction);
  2543. smalltalk.addMethod(
  2544. "_replaceWith_",
  2545. smalltalk.method({
  2546. selector: "replaceWith:",
  2547. fn: function (anIRInstruction){
  2548. var self=this;
  2549. return smalltalk.withContext(function($ctx1) { _st(_st(self)._parent())._replace_with_(self,anIRInstruction);
  2550. return self}, self, "replaceWith:", [anIRInstruction], smalltalk.IRInstruction)}
  2551. }),
  2552. smalltalk.IRInstruction);
  2553. smalltalk.addMethod(
  2554. "_on_",
  2555. smalltalk.method({
  2556. selector: "on:",
  2557. fn: function (aBuilder){
  2558. var self=this;
  2559. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  2560. $2=_st(self)._new();
  2561. _st($2)._builder_(aBuilder);
  2562. $3=_st($2)._yourself();
  2563. $1=$3;
  2564. return $1;
  2565. }, self, "on:", [aBuilder], smalltalk.IRInstruction.klass)}
  2566. }),
  2567. smalltalk.IRInstruction.klass);
  2568. smalltalk.addMethod(
  2569. "_accept_",
  2570. smalltalk.method({
  2571. selector: "accept:",
  2572. fn: function (aVisitor){
  2573. var self=this;
  2574. return smalltalk.withContext(function($ctx1) { var $1;
  2575. $1=_st(aVisitor)._visitIRAssignment_(self);
  2576. return $1;
  2577. }, self, "accept:", [aVisitor], smalltalk.IRAssignment)}
  2578. }),
  2579. smalltalk.IRAssignment);
  2580. smalltalk.addMethod(
  2581. "_accept_",
  2582. smalltalk.method({
  2583. selector: "accept:",
  2584. fn: function (aVisitor){
  2585. var self=this;
  2586. return smalltalk.withContext(function($ctx1) { var $1;
  2587. $1=_st(aVisitor)._visitIRInlinedAssignment_(self);
  2588. return $1;
  2589. }, self, "accept:", [aVisitor], smalltalk.IRInlinedAssignment)}
  2590. }),
  2591. smalltalk.IRInlinedAssignment);
  2592. smalltalk.addMethod(
  2593. "_isInlined",
  2594. smalltalk.method({
  2595. selector: "isInlined",
  2596. fn: function (){
  2597. var self=this;
  2598. return smalltalk.withContext(function($ctx1) { return true;
  2599. }, self, "isInlined", [], smalltalk.IRInlinedAssignment)}
  2600. }),
  2601. smalltalk.IRInlinedAssignment);
  2602. smalltalk.addMethod(
  2603. "_accept_",
  2604. smalltalk.method({
  2605. selector: "accept:",
  2606. fn: function (aVisitor){
  2607. var self=this;
  2608. return smalltalk.withContext(function($ctx1) { var $1;
  2609. $1=_st(aVisitor)._visitIRDynamicArray_(self);
  2610. return $1;
  2611. }, self, "accept:", [aVisitor], smalltalk.IRDynamicArray)}
  2612. }),
  2613. smalltalk.IRDynamicArray);
  2614. smalltalk.addMethod(
  2615. "_accept_",
  2616. smalltalk.method({
  2617. selector: "accept:",
  2618. fn: function (aVisitor){
  2619. var self=this;
  2620. return smalltalk.withContext(function($ctx1) { var $1;
  2621. $1=_st(aVisitor)._visitIRDynamicDictionary_(self);
  2622. return $1;
  2623. }, self, "accept:", [aVisitor], smalltalk.IRDynamicDictionary)}
  2624. }),
  2625. smalltalk.IRDynamicDictionary);
  2626. smalltalk.addMethod(
  2627. "_scope",
  2628. smalltalk.method({
  2629. selector: "scope",
  2630. fn: function (){
  2631. var self=this;
  2632. return smalltalk.withContext(function($ctx1) { var $1;
  2633. $1=self["@scope"];
  2634. return $1;
  2635. }, self, "scope", [], smalltalk.IRScopedInstruction)}
  2636. }),
  2637. smalltalk.IRScopedInstruction);
  2638. smalltalk.addMethod(
  2639. "_scope_",
  2640. smalltalk.method({
  2641. selector: "scope:",
  2642. fn: function (aScope){
  2643. var self=this;
  2644. return smalltalk.withContext(function($ctx1) { self["@scope"]=aScope;
  2645. return self}, self, "scope:", [aScope], smalltalk.IRScopedInstruction)}
  2646. }),
  2647. smalltalk.IRScopedInstruction);
  2648. smalltalk.addMethod(
  2649. "_accept_",
  2650. smalltalk.method({
  2651. selector: "accept:",
  2652. fn: function (aVisitor){
  2653. var self=this;
  2654. return smalltalk.withContext(function($ctx1) { var $1;
  2655. $1=_st(aVisitor)._visitIRClosure_(self);
  2656. return $1;
  2657. }, self, "accept:", [aVisitor], smalltalk.IRClosure)}
  2658. }),
  2659. smalltalk.IRClosure);
  2660. smalltalk.addMethod(
  2661. "_arguments",
  2662. smalltalk.method({
  2663. selector: "arguments",
  2664. fn: function (){
  2665. var self=this;
  2666. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2667. $2=self["@arguments"];
  2668. if(($receiver = $2) == nil || $receiver == undefined){
  2669. $1=[];
  2670. } else {
  2671. $1=$2;
  2672. };
  2673. return $1;
  2674. }, self, "arguments", [], smalltalk.IRClosure)}
  2675. }),
  2676. smalltalk.IRClosure);
  2677. smalltalk.addMethod(
  2678. "_arguments_",
  2679. smalltalk.method({
  2680. selector: "arguments:",
  2681. fn: function (aCollection){
  2682. var self=this;
  2683. return smalltalk.withContext(function($ctx1) { self["@arguments"]=aCollection;
  2684. return self}, self, "arguments:", [aCollection], smalltalk.IRClosure)}
  2685. }),
  2686. smalltalk.IRClosure);
  2687. smalltalk.addMethod(
  2688. "_isClosure",
  2689. smalltalk.method({
  2690. selector: "isClosure",
  2691. fn: function (){
  2692. var self=this;
  2693. return smalltalk.withContext(function($ctx1) { return true;
  2694. }, self, "isClosure", [], smalltalk.IRClosure)}
  2695. }),
  2696. smalltalk.IRClosure);
  2697. smalltalk.addMethod(
  2698. "_scope_",
  2699. smalltalk.method({
  2700. selector: "scope:",
  2701. fn: function (aScope){
  2702. var self=this;
  2703. return smalltalk.withContext(function($ctx1) { smalltalk.IRScopedInstruction.fn.prototype._scope_.apply(_st(self), [aScope]);
  2704. _st(aScope)._instruction_(self);
  2705. return self}, self, "scope:", [aScope], smalltalk.IRClosure)}
  2706. }),
  2707. smalltalk.IRClosure);
  2708. smalltalk.addMethod(
  2709. "_sequence",
  2710. smalltalk.method({
  2711. selector: "sequence",
  2712. fn: function (){
  2713. var self=this;
  2714. return smalltalk.withContext(function($ctx1) { var $1;
  2715. $1=_st(_st(self)._instructions())._last();
  2716. return $1;
  2717. }, self, "sequence", [], smalltalk.IRClosure)}
  2718. }),
  2719. smalltalk.IRClosure);
  2720. smalltalk.addMethod(
  2721. "_accept_",
  2722. smalltalk.method({
  2723. selector: "accept:",
  2724. fn: function (aVisitor){
  2725. var self=this;
  2726. return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedClosure_(self);
  2727. return self}, self, "accept:", [aVisitor], smalltalk.IRInlinedClosure)}
  2728. }),
  2729. smalltalk.IRInlinedClosure);
  2730. smalltalk.addMethod(
  2731. "_isInlined",
  2732. smalltalk.method({
  2733. selector: "isInlined",
  2734. fn: function (){
  2735. var self=this;
  2736. return smalltalk.withContext(function($ctx1) { return true;
  2737. }, self, "isInlined", [], smalltalk.IRInlinedClosure)}
  2738. }),
  2739. smalltalk.IRInlinedClosure);
  2740. smalltalk.addMethod(
  2741. "_accept_",
  2742. smalltalk.method({
  2743. selector: "accept:",
  2744. fn: function (aVisitor){
  2745. var self=this;
  2746. return smalltalk.withContext(function($ctx1) { var $1;
  2747. $1=_st(aVisitor)._visitIRMethod_(self);
  2748. return $1;
  2749. }, self, "accept:", [aVisitor], smalltalk.IRMethod)}
  2750. }),
  2751. smalltalk.IRMethod);
  2752. smalltalk.addMethod(
  2753. "_arguments",
  2754. smalltalk.method({
  2755. selector: "arguments",
  2756. fn: function (){
  2757. var self=this;
  2758. return smalltalk.withContext(function($ctx1) { var $1;
  2759. $1=self["@arguments"];
  2760. return $1;
  2761. }, self, "arguments", [], smalltalk.IRMethod)}
  2762. }),
  2763. smalltalk.IRMethod);
  2764. smalltalk.addMethod(
  2765. "_arguments_",
  2766. smalltalk.method({
  2767. selector: "arguments:",
  2768. fn: function (aCollection){
  2769. var self=this;
  2770. return smalltalk.withContext(function($ctx1) { self["@arguments"]=aCollection;
  2771. return self}, self, "arguments:", [aCollection], smalltalk.IRMethod)}
  2772. }),
  2773. smalltalk.IRMethod);
  2774. smalltalk.addMethod(
  2775. "_classReferences",
  2776. smalltalk.method({
  2777. selector: "classReferences",
  2778. fn: function (){
  2779. var self=this;
  2780. return smalltalk.withContext(function($ctx1) { var $1;
  2781. $1=self["@classReferences"];
  2782. return $1;
  2783. }, self, "classReferences", [], smalltalk.IRMethod)}
  2784. }),
  2785. smalltalk.IRMethod);
  2786. smalltalk.addMethod(
  2787. "_classReferences_",
  2788. smalltalk.method({
  2789. selector: "classReferences:",
  2790. fn: function (aCollection){
  2791. var self=this;
  2792. return smalltalk.withContext(function($ctx1) { self["@classReferences"]=aCollection;
  2793. return self}, self, "classReferences:", [aCollection], smalltalk.IRMethod)}
  2794. }),
  2795. smalltalk.IRMethod);
  2796. smalltalk.addMethod(
  2797. "_internalVariables",
  2798. smalltalk.method({
  2799. selector: "internalVariables",
  2800. fn: function (){
  2801. var self=this;
  2802. return smalltalk.withContext(function($ctx1) { var $2,$1;
  2803. $2=self["@internalVariables"];
  2804. if(($receiver = $2) == nil || $receiver == undefined){
  2805. self["@internalVariables"]=_st((smalltalk.Set || Set))._new();
  2806. $1=self["@internalVariables"];
  2807. } else {
  2808. $1=$2;
  2809. };
  2810. return $1;
  2811. }, self, "internalVariables", [], smalltalk.IRMethod)}
  2812. }),
  2813. smalltalk.IRMethod);
  2814. smalltalk.addMethod(
  2815. "_messageSends",
  2816. smalltalk.method({
  2817. selector: "messageSends",
  2818. fn: function (){
  2819. var self=this;
  2820. return smalltalk.withContext(function($ctx1) { var $1;
  2821. $1=self["@messageSends"];
  2822. return $1;
  2823. }, self, "messageSends", [], smalltalk.IRMethod)}
  2824. }),
  2825. smalltalk.IRMethod);
  2826. smalltalk.addMethod(
  2827. "_messageSends_",
  2828. smalltalk.method({
  2829. selector: "messageSends:",
  2830. fn: function (aCollection){
  2831. var self=this;
  2832. return smalltalk.withContext(function($ctx1) { self["@messageSends"]=aCollection;
  2833. return self}, self, "messageSends:", [aCollection], smalltalk.IRMethod)}
  2834. }),
  2835. smalltalk.IRMethod);
  2836. smalltalk.addMethod(
  2837. "_scope_",
  2838. smalltalk.method({
  2839. selector: "scope:",
  2840. fn: function (aScope){
  2841. var self=this;
  2842. return smalltalk.withContext(function($ctx1) { smalltalk.IRScopedInstruction.fn.prototype._scope_.apply(_st(self), [aScope]);
  2843. _st(aScope)._instruction_(self);
  2844. return self}, self, "scope:", [aScope], smalltalk.IRMethod)}
  2845. }),
  2846. smalltalk.IRMethod);
  2847. smalltalk.addMethod(
  2848. "_selector",
  2849. smalltalk.method({
  2850. selector: "selector",
  2851. fn: function (){
  2852. var self=this;
  2853. return smalltalk.withContext(function($ctx1) { var $1;
  2854. $1=self["@selector"];
  2855. return $1;
  2856. }, self, "selector", [], smalltalk.IRMethod)}
  2857. }),
  2858. smalltalk.IRMethod);
  2859. smalltalk.addMethod(
  2860. "_selector_",
  2861. smalltalk.method({
  2862. selector: "selector:",
  2863. fn: function (aString){
  2864. var self=this;
  2865. return smalltalk.withContext(function($ctx1) { self["@selector"]=aString;
  2866. return self}, self, "selector:", [aString], smalltalk.IRMethod)}
  2867. }),
  2868. smalltalk.IRMethod);
  2869. smalltalk.addMethod(
  2870. "_source",
  2871. smalltalk.method({
  2872. selector: "source",
  2873. fn: function (){
  2874. var self=this;
  2875. return smalltalk.withContext(function($ctx1) { var $1;
  2876. $1=self["@source"];
  2877. return $1;
  2878. }, self, "source", [], smalltalk.IRMethod)}
  2879. }),
  2880. smalltalk.IRMethod);
  2881. smalltalk.addMethod(
  2882. "_source_",
  2883. smalltalk.method({
  2884. selector: "source:",
  2885. fn: function (aString){
  2886. var self=this;
  2887. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  2888. return self}, self, "source:", [aString], smalltalk.IRMethod)}
  2889. }),
  2890. smalltalk.IRMethod);
  2891. smalltalk.addMethod(
  2892. "_superSends",
  2893. smalltalk.method({
  2894. selector: "superSends",
  2895. fn: function (){
  2896. var self=this;
  2897. return smalltalk.withContext(function($ctx1) { var $1;
  2898. $1=self["@superSends"];
  2899. return $1;
  2900. }, self, "superSends", [], smalltalk.IRMethod)}
  2901. }),
  2902. smalltalk.IRMethod);
  2903. smalltalk.addMethod(
  2904. "_superSends_",
  2905. smalltalk.method({
  2906. selector: "superSends:",
  2907. fn: function (aCollection){
  2908. var self=this;
  2909. return smalltalk.withContext(function($ctx1) { self["@superSends"]=aCollection;
  2910. return self}, self, "superSends:", [aCollection], smalltalk.IRMethod)}
  2911. }),
  2912. smalltalk.IRMethod);
  2913. smalltalk.addMethod(
  2914. "_theClass",
  2915. smalltalk.method({
  2916. selector: "theClass",
  2917. fn: function (){
  2918. var self=this;
  2919. return smalltalk.withContext(function($ctx1) { var $1;
  2920. $1=self["@theClass"];
  2921. return $1;
  2922. }, self, "theClass", [], smalltalk.IRMethod)}
  2923. }),
  2924. smalltalk.IRMethod);
  2925. smalltalk.addMethod(
  2926. "_theClass_",
  2927. smalltalk.method({
  2928. selector: "theClass:",
  2929. fn: function (aClass){
  2930. var self=this;
  2931. return smalltalk.withContext(function($ctx1) { self["@theClass"]=aClass;
  2932. return self}, self, "theClass:", [aClass], smalltalk.IRMethod)}
  2933. }),
  2934. smalltalk.IRMethod);
  2935. smalltalk.addMethod(
  2936. "_accept_",
  2937. smalltalk.method({
  2938. selector: "accept:",
  2939. fn: function (aVisitor){
  2940. var self=this;
  2941. return smalltalk.withContext(function($ctx1) { var $1;
  2942. $1=_st(aVisitor)._visitIRReturn_(self);
  2943. return $1;
  2944. }, self, "accept:", [aVisitor], smalltalk.IRReturn)}
  2945. }),
  2946. smalltalk.IRReturn);
  2947. smalltalk.addMethod(
  2948. "_canBeAssigned",
  2949. smalltalk.method({
  2950. selector: "canBeAssigned",
  2951. fn: function (){
  2952. var self=this;
  2953. return smalltalk.withContext(function($ctx1) { return false;
  2954. }, self, "canBeAssigned", [], smalltalk.IRReturn)}
  2955. }),
  2956. smalltalk.IRReturn);
  2957. smalltalk.addMethod(
  2958. "_isBlockReturn",
  2959. smalltalk.method({
  2960. selector: "isBlockReturn",
  2961. fn: function (){
  2962. var self=this;
  2963. return smalltalk.withContext(function($ctx1) { return false;
  2964. }, self, "isBlockReturn", [], smalltalk.IRReturn)}
  2965. }),
  2966. smalltalk.IRReturn);
  2967. smalltalk.addMethod(
  2968. "_isLocalReturn",
  2969. smalltalk.method({
  2970. selector: "isLocalReturn",
  2971. fn: function (){
  2972. var self=this;
  2973. return smalltalk.withContext(function($ctx1) { return true;
  2974. }, self, "isLocalReturn", [], smalltalk.IRReturn)}
  2975. }),
  2976. smalltalk.IRReturn);
  2977. smalltalk.addMethod(
  2978. "_isNonLocalReturn",
  2979. smalltalk.method({
  2980. selector: "isNonLocalReturn",
  2981. fn: function (){
  2982. var self=this;
  2983. return smalltalk.withContext(function($ctx1) { var $1;
  2984. $1=_st(_st(self)._isLocalReturn())._not();
  2985. return $1;
  2986. }, self, "isNonLocalReturn", [], smalltalk.IRReturn)}
  2987. }),
  2988. smalltalk.IRReturn);
  2989. smalltalk.addMethod(
  2990. "_isReturn",
  2991. smalltalk.method({
  2992. selector: "isReturn",
  2993. fn: function (){
  2994. var self=this;
  2995. return smalltalk.withContext(function($ctx1) { return true;
  2996. }, self, "isReturn", [], smalltalk.IRReturn)}
  2997. }),
  2998. smalltalk.IRReturn);
  2999. smalltalk.addMethod(
  3000. "_accept_",
  3001. smalltalk.method({
  3002. selector: "accept:",
  3003. fn: function (aVisitor){
  3004. var self=this;
  3005. return smalltalk.withContext(function($ctx1) { var $1;
  3006. $1=_st(aVisitor)._visitIRBlockReturn_(self);
  3007. return $1;
  3008. }, self, "accept:", [aVisitor], smalltalk.IRBlockReturn)}
  3009. }),
  3010. smalltalk.IRBlockReturn);
  3011. smalltalk.addMethod(
  3012. "_isBlockReturn",
  3013. smalltalk.method({
  3014. selector: "isBlockReturn",
  3015. fn: function (){
  3016. var self=this;
  3017. return smalltalk.withContext(function($ctx1) { return true;
  3018. }, self, "isBlockReturn", [], smalltalk.IRBlockReturn)}
  3019. }),
  3020. smalltalk.IRBlockReturn);
  3021. smalltalk.addMethod(
  3022. "_accept_",
  3023. smalltalk.method({
  3024. selector: "accept:",
  3025. fn: function (aVisitor){
  3026. var self=this;
  3027. return smalltalk.withContext(function($ctx1) { var $1;
  3028. $1=_st(aVisitor)._visitIRInlinedReturn_(self);
  3029. return $1;
  3030. }, self, "accept:", [aVisitor], smalltalk.IRInlinedReturn)}
  3031. }),
  3032. smalltalk.IRInlinedReturn);
  3033. smalltalk.addMethod(
  3034. "_isInlined",
  3035. smalltalk.method({
  3036. selector: "isInlined",
  3037. fn: function (){
  3038. var self=this;
  3039. return smalltalk.withContext(function($ctx1) { return true;
  3040. }, self, "isInlined", [], smalltalk.IRInlinedReturn)}
  3041. }),
  3042. smalltalk.IRInlinedReturn);
  3043. smalltalk.addMethod(
  3044. "_accept_",
  3045. smalltalk.method({
  3046. selector: "accept:",
  3047. fn: function (aVisitor){
  3048. var self=this;
  3049. return smalltalk.withContext(function($ctx1) { var $1;
  3050. $1=_st(aVisitor)._visitIRInlinedNonLocalReturn_(self);
  3051. return $1;
  3052. }, self, "accept:", [aVisitor], smalltalk.IRInlinedNonLocalReturn)}
  3053. }),
  3054. smalltalk.IRInlinedNonLocalReturn);
  3055. smalltalk.addMethod(
  3056. "_isInlined",
  3057. smalltalk.method({
  3058. selector: "isInlined",
  3059. fn: function (){
  3060. var self=this;
  3061. return smalltalk.withContext(function($ctx1) { return true;
  3062. }, self, "isInlined", [], smalltalk.IRInlinedNonLocalReturn)}
  3063. }),
  3064. smalltalk.IRInlinedNonLocalReturn);
  3065. smalltalk.addMethod(
  3066. "_accept_",
  3067. smalltalk.method({
  3068. selector: "accept:",
  3069. fn: function (aVisitor){
  3070. var self=this;
  3071. return smalltalk.withContext(function($ctx1) { var $1;
  3072. $1=_st(aVisitor)._visitIRNonLocalReturn_(self);
  3073. return $1;
  3074. }, self, "accept:", [aVisitor], smalltalk.IRNonLocalReturn)}
  3075. }),
  3076. smalltalk.IRNonLocalReturn);
  3077. smalltalk.addMethod(
  3078. "_isLocalReturn",
  3079. smalltalk.method({
  3080. selector: "isLocalReturn",
  3081. fn: function (){
  3082. var self=this;
  3083. return smalltalk.withContext(function($ctx1) { return false;
  3084. }, self, "isLocalReturn", [], smalltalk.IRNonLocalReturn)}
  3085. }),
  3086. smalltalk.IRNonLocalReturn);
  3087. smalltalk.addMethod(
  3088. "_accept_",
  3089. smalltalk.method({
  3090. selector: "accept:",
  3091. fn: function (aVisitor){
  3092. var self=this;
  3093. return smalltalk.withContext(function($ctx1) { var $1;
  3094. $1=_st(aVisitor)._visitIRTempDeclaration_(self);
  3095. return $1;
  3096. }, self, "accept:", [aVisitor], smalltalk.IRTempDeclaration)}
  3097. }),
  3098. smalltalk.IRTempDeclaration);
  3099. smalltalk.addMethod(
  3100. "_name",
  3101. smalltalk.method({
  3102. selector: "name",
  3103. fn: function (){
  3104. var self=this;
  3105. return smalltalk.withContext(function($ctx1) { var $1;
  3106. $1=self["@name"];
  3107. return $1;
  3108. }, self, "name", [], smalltalk.IRTempDeclaration)}
  3109. }),
  3110. smalltalk.IRTempDeclaration);
  3111. smalltalk.addMethod(
  3112. "_name_",
  3113. smalltalk.method({
  3114. selector: "name:",
  3115. fn: function (aString){
  3116. var self=this;
  3117. return smalltalk.withContext(function($ctx1) { self["@name"]=aString;
  3118. return self}, self, "name:", [aString], smalltalk.IRTempDeclaration)}
  3119. }),
  3120. smalltalk.IRTempDeclaration);
  3121. smalltalk.addMethod(
  3122. "_accept_",
  3123. smalltalk.method({
  3124. selector: "accept:",
  3125. fn: function (aVisitor){
  3126. var self=this;
  3127. return smalltalk.withContext(function($ctx1) { var $1;
  3128. $1=_st(aVisitor)._visitIRSend_(self);
  3129. return $1;
  3130. }, self, "accept:", [aVisitor], smalltalk.IRSend)}
  3131. }),
  3132. smalltalk.IRSend);
  3133. smalltalk.addMethod(
  3134. "_classSend",
  3135. smalltalk.method({
  3136. selector: "classSend",
  3137. fn: function (){
  3138. var self=this;
  3139. return smalltalk.withContext(function($ctx1) { var $1;
  3140. $1=self["@classSend"];
  3141. return $1;
  3142. }, self, "classSend", [], smalltalk.IRSend)}
  3143. }),
  3144. smalltalk.IRSend);
  3145. smalltalk.addMethod(
  3146. "_classSend_",
  3147. smalltalk.method({
  3148. selector: "classSend:",
  3149. fn: function (aClass){
  3150. var self=this;
  3151. return smalltalk.withContext(function($ctx1) { self["@classSend"]=aClass;
  3152. return self}, self, "classSend:", [aClass], smalltalk.IRSend)}
  3153. }),
  3154. smalltalk.IRSend);
  3155. smalltalk.addMethod(
  3156. "_index",
  3157. smalltalk.method({
  3158. selector: "index",
  3159. fn: function (){
  3160. var self=this;
  3161. return smalltalk.withContext(function($ctx1) { var $1;
  3162. $1=self["@index"];
  3163. return $1;
  3164. }, self, "index", [], smalltalk.IRSend)}
  3165. }),
  3166. smalltalk.IRSend);
  3167. smalltalk.addMethod(
  3168. "_index_",
  3169. smalltalk.method({
  3170. selector: "index:",
  3171. fn: function (anInteger){
  3172. var self=this;
  3173. return smalltalk.withContext(function($ctx1) { self["@index"]=anInteger;
  3174. return self}, self, "index:", [anInteger], smalltalk.IRSend)}
  3175. }),
  3176. smalltalk.IRSend);
  3177. smalltalk.addMethod(
  3178. "_isSend",
  3179. smalltalk.method({
  3180. selector: "isSend",
  3181. fn: function (){
  3182. var self=this;
  3183. return smalltalk.withContext(function($ctx1) { return true;
  3184. }, self, "isSend", [], smalltalk.IRSend)}
  3185. }),
  3186. smalltalk.IRSend);
  3187. smalltalk.addMethod(
  3188. "_javascriptSelector",
  3189. smalltalk.method({
  3190. selector: "javascriptSelector",
  3191. fn: function (){
  3192. var self=this;
  3193. return smalltalk.withContext(function($ctx1) { var $2,$1;
  3194. $2=_st(self)._classSend();
  3195. if(($receiver = $2) == nil || $receiver == undefined){
  3196. $1=_st(_st(self)._selector())._asSelector();
  3197. } else {
  3198. $1=_st(_st(self)._selector())._asSuperSelector();
  3199. };
  3200. return $1;
  3201. }, self, "javascriptSelector", [], smalltalk.IRSend)}
  3202. }),
  3203. smalltalk.IRSend);
  3204. smalltalk.addMethod(
  3205. "_selector",
  3206. smalltalk.method({
  3207. selector: "selector",
  3208. fn: function (){
  3209. var self=this;
  3210. return smalltalk.withContext(function($ctx1) { var $1;
  3211. $1=self["@selector"];
  3212. return $1;
  3213. }, self, "selector", [], smalltalk.IRSend)}
  3214. }),
  3215. smalltalk.IRSend);
  3216. smalltalk.addMethod(
  3217. "_selector_",
  3218. smalltalk.method({
  3219. selector: "selector:",
  3220. fn: function (aString){
  3221. var self=this;
  3222. return smalltalk.withContext(function($ctx1) { self["@selector"]=aString;
  3223. return self}, self, "selector:", [aString], smalltalk.IRSend)}
  3224. }),
  3225. smalltalk.IRSend);
  3226. smalltalk.addMethod(
  3227. "_accept_",
  3228. smalltalk.method({
  3229. selector: "accept:",
  3230. fn: function (aVisitor){
  3231. var self=this;
  3232. return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitInlinedSend_(self);
  3233. return self}, self, "accept:", [aVisitor], smalltalk.IRInlinedSend)}
  3234. }),
  3235. smalltalk.IRInlinedSend);
  3236. smalltalk.addMethod(
  3237. "_isInlined",
  3238. smalltalk.method({
  3239. selector: "isInlined",
  3240. fn: function (){
  3241. var self=this;
  3242. return smalltalk.withContext(function($ctx1) { return true;
  3243. }, self, "isInlined", [], smalltalk.IRInlinedSend)}
  3244. }),
  3245. smalltalk.IRInlinedSend);
  3246. smalltalk.addMethod(
  3247. "_accept_",
  3248. smalltalk.method({
  3249. selector: "accept:",
  3250. fn: function (aVisitor){
  3251. var self=this;
  3252. return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedIfFalse_(self);
  3253. return self}, self, "accept:", [aVisitor], smalltalk.IRInlinedIfFalse)}
  3254. }),
  3255. smalltalk.IRInlinedIfFalse);
  3256. smalltalk.addMethod(
  3257. "_accept_",
  3258. smalltalk.method({
  3259. selector: "accept:",
  3260. fn: function (aVisitor){
  3261. var self=this;
  3262. return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedIfNilIfNotNil_(self);
  3263. return self}, self, "accept:", [aVisitor], smalltalk.IRInlinedIfNilIfNotNil)}
  3264. }),
  3265. smalltalk.IRInlinedIfNilIfNotNil);
  3266. smalltalk.addMethod(
  3267. "_accept_",
  3268. smalltalk.method({
  3269. selector: "accept:",
  3270. fn: function (aVisitor){
  3271. var self=this;
  3272. return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedIfTrue_(self);
  3273. return self}, self, "accept:", [aVisitor], smalltalk.IRInlinedIfTrue)}
  3274. }),
  3275. smalltalk.IRInlinedIfTrue);
  3276. smalltalk.addMethod(
  3277. "_accept_",
  3278. smalltalk.method({
  3279. selector: "accept:",
  3280. fn: function (aVisitor){
  3281. var self=this;
  3282. return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedIfTrueIfFalse_(self);
  3283. return self}, self, "accept:", [aVisitor], smalltalk.IRInlinedIfTrueIfFalse)}
  3284. }),
  3285. smalltalk.IRInlinedIfTrueIfFalse);
  3286. smalltalk.addMethod(
  3287. "_accept_",
  3288. smalltalk.method({
  3289. selector: "accept:",
  3290. fn: function (aVisitor){
  3291. var self=this;
  3292. return smalltalk.withContext(function($ctx1) { var $1;
  3293. $1=_st(aVisitor)._visitIRSequence_(self);
  3294. return $1;
  3295. }, self, "accept:", [aVisitor], smalltalk.IRSequence)}
  3296. }),
  3297. smalltalk.IRSequence);
  3298. smalltalk.addMethod(
  3299. "_isSequence",
  3300. smalltalk.method({
  3301. selector: "isSequence",
  3302. fn: function (){
  3303. var self=this;
  3304. return smalltalk.withContext(function($ctx1) { return true;
  3305. }, self, "isSequence", [], smalltalk.IRSequence)}
  3306. }),
  3307. smalltalk.IRSequence);
  3308. smalltalk.addMethod(
  3309. "_accept_",
  3310. smalltalk.method({
  3311. selector: "accept:",
  3312. fn: function (aVisitor){
  3313. var self=this;
  3314. return smalltalk.withContext(function($ctx1) { var $1;
  3315. $1=_st(aVisitor)._visitIRBlockSequence_(self);
  3316. return $1;
  3317. }, self, "accept:", [aVisitor], smalltalk.IRBlockSequence)}
  3318. }),
  3319. smalltalk.IRBlockSequence);
  3320. smalltalk.addMethod(
  3321. "_accept_",
  3322. smalltalk.method({
  3323. selector: "accept:",
  3324. fn: function (aVisitor){
  3325. var self=this;
  3326. return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedSequence_(self);
  3327. return self}, self, "accept:", [aVisitor], smalltalk.IRInlinedSequence)}
  3328. }),
  3329. smalltalk.IRInlinedSequence);
  3330. smalltalk.addMethod(
  3331. "_isInlined",
  3332. smalltalk.method({
  3333. selector: "isInlined",
  3334. fn: function (){
  3335. var self=this;
  3336. return smalltalk.withContext(function($ctx1) { return true;
  3337. }, self, "isInlined", [], smalltalk.IRInlinedSequence)}
  3338. }),
  3339. smalltalk.IRInlinedSequence);
  3340. smalltalk.addMethod(
  3341. "_accept_",
  3342. smalltalk.method({
  3343. selector: "accept:",
  3344. fn: function (aVisitor){
  3345. var self=this;
  3346. return smalltalk.withContext(function($ctx1) { var $1;
  3347. $1=_st(aVisitor)._visitIRValue_(self);
  3348. return $1;
  3349. }, self, "accept:", [aVisitor], smalltalk.IRValue)}
  3350. }),
  3351. smalltalk.IRValue);
  3352. smalltalk.addMethod(
  3353. "_value",
  3354. smalltalk.method({
  3355. selector: "value",
  3356. fn: function (){
  3357. var self=this;
  3358. return smalltalk.withContext(function($ctx1) { var $1;
  3359. $1=self["@value"];
  3360. return $1;
  3361. }, self, "value", [], smalltalk.IRValue)}
  3362. }),
  3363. smalltalk.IRValue);
  3364. smalltalk.addMethod(
  3365. "_value_",
  3366. smalltalk.method({
  3367. selector: "value:",
  3368. fn: function (aString){
  3369. var self=this;
  3370. return smalltalk.withContext(function($ctx1) { self["@value"]=aString;
  3371. return self}, self, "value:", [aString], smalltalk.IRValue)}
  3372. }),
  3373. smalltalk.IRValue);
  3374. smalltalk.addMethod(
  3375. "_accept_",
  3376. smalltalk.method({
  3377. selector: "accept:",
  3378. fn: function (aVisitor){
  3379. var self=this;
  3380. return smalltalk.withContext(function($ctx1) { var $1;
  3381. $1=_st(aVisitor)._visitIRVariable_(self);
  3382. return $1;
  3383. }, self, "accept:", [aVisitor], smalltalk.IRVariable)}
  3384. }),
  3385. smalltalk.IRVariable);
  3386. smalltalk.addMethod(
  3387. "_isVariable",
  3388. smalltalk.method({
  3389. selector: "isVariable",
  3390. fn: function (){
  3391. var self=this;
  3392. return smalltalk.withContext(function($ctx1) { return true;
  3393. }, self, "isVariable", [], smalltalk.IRVariable)}
  3394. }),
  3395. smalltalk.IRVariable);
  3396. smalltalk.addMethod(
  3397. "_variable",
  3398. smalltalk.method({
  3399. selector: "variable",
  3400. fn: function (){
  3401. var self=this;
  3402. return smalltalk.withContext(function($ctx1) { var $1;
  3403. $1=self["@variable"];
  3404. return $1;
  3405. }, self, "variable", [], smalltalk.IRVariable)}
  3406. }),
  3407. smalltalk.IRVariable);
  3408. smalltalk.addMethod(
  3409. "_variable_",
  3410. smalltalk.method({
  3411. selector: "variable:",
  3412. fn: function (aScopeVariable){
  3413. var self=this;
  3414. return smalltalk.withContext(function($ctx1) { self["@variable"]=aScopeVariable;
  3415. return self}, self, "variable:", [aScopeVariable], smalltalk.IRVariable)}
  3416. }),
  3417. smalltalk.IRVariable);
  3418. smalltalk.addMethod(
  3419. "_accept_",
  3420. smalltalk.method({
  3421. selector: "accept:",
  3422. fn: function (aVisitor){
  3423. var self=this;
  3424. return smalltalk.withContext(function($ctx1) { var $1;
  3425. $1=_st(aVisitor)._visitIRVerbatim_(self);
  3426. return $1;
  3427. }, self, "accept:", [aVisitor], smalltalk.IRVerbatim)}
  3428. }),
  3429. smalltalk.IRVerbatim);
  3430. smalltalk.addMethod(
  3431. "_source",
  3432. smalltalk.method({
  3433. selector: "source",
  3434. fn: function (){
  3435. var self=this;
  3436. return smalltalk.withContext(function($ctx1) { var $1;
  3437. $1=self["@source"];
  3438. return $1;
  3439. }, self, "source", [], smalltalk.IRVerbatim)}
  3440. }),
  3441. smalltalk.IRVerbatim);
  3442. smalltalk.addMethod(
  3443. "_source_",
  3444. smalltalk.method({
  3445. selector: "source:",
  3446. fn: function (aString){
  3447. var self=this;
  3448. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  3449. return self}, self, "source:", [aString], smalltalk.IRVerbatim)}
  3450. }),
  3451. smalltalk.IRVerbatim);
  3452. smalltalk.addMethod(
  3453. "_ifFalse_",
  3454. smalltalk.method({
  3455. selector: "ifFalse:",
  3456. fn: function (anIRInstruction){
  3457. var self=this;
  3458. return smalltalk.withContext(function($ctx1) { var $1;
  3459. $1=_st(self)._inlinedSend_with_(_st((smalltalk.IRInlinedIfFalse || IRInlinedIfFalse))._new(),anIRInstruction);
  3460. return $1;
  3461. }, self, "ifFalse:", [anIRInstruction], smalltalk.IRSendInliner)}
  3462. }),
  3463. smalltalk.IRSendInliner);
  3464. smalltalk.addMethod(
  3465. "_ifFalse_ifTrue_",
  3466. smalltalk.method({
  3467. selector: "ifFalse:ifTrue:",
  3468. fn: function (anIRInstruction,anotherIRInstruction){
  3469. var self=this;
  3470. return smalltalk.withContext(function($ctx1) { var $1;
  3471. $1=_st(self)._perform_withArguments_(smalltalk.symbolFor("ifTrue:ifFalse:"),[anotherIRInstruction,anIRInstruction]);
  3472. return $1;
  3473. }, self, "ifFalse:ifTrue:", [anIRInstruction,anotherIRInstruction], smalltalk.IRSendInliner)}
  3474. }),
  3475. smalltalk.IRSendInliner);
  3476. smalltalk.addMethod(
  3477. "_ifNil_",
  3478. smalltalk.method({
  3479. selector: "ifNil:",
  3480. fn: function (anIRInstruction){
  3481. var self=this;
  3482. return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$5,$1;
  3483. $2=_st((smalltalk.IRClosure || IRClosure))._new();
  3484. _st($2)._scope_(_st(_st(anIRInstruction)._scope())._copy());
  3485. $3=_st((smalltalk.IRBlockSequence || IRBlockSequence))._new();
  3486. _st($3)._add_(_st(_st(_st(self)._send())._instructions())._first());
  3487. $4=_st($3)._yourself();
  3488. _st($2)._add_($4);
  3489. $5=_st($2)._yourself();
  3490. $1=_st(self)._inlinedSend_with_with_(_st((smalltalk.IRInlinedIfNilIfNotNil || IRInlinedIfNilIfNotNil))._new(),anIRInstruction,$5);
  3491. return $1;
  3492. }, self, "ifNil:", [anIRInstruction], smalltalk.IRSendInliner)}
  3493. }),
  3494. smalltalk.IRSendInliner);
  3495. smalltalk.addMethod(
  3496. "_ifNil_ifNotNil_",
  3497. smalltalk.method({
  3498. selector: "ifNil:ifNotNil:",
  3499. fn: function (anIRInstruction,anotherIRInstruction){
  3500. var self=this;
  3501. return smalltalk.withContext(function($ctx1) { var $1;
  3502. $1=_st(self)._inlinedSend_with_with_(_st((smalltalk.IRInlinedIfNilIfNotNil || IRInlinedIfNilIfNotNil))._new(),anIRInstruction,anotherIRInstruction);
  3503. return $1;
  3504. }, self, "ifNil:ifNotNil:", [anIRInstruction,anotherIRInstruction], smalltalk.IRSendInliner)}
  3505. }),
  3506. smalltalk.IRSendInliner);
  3507. smalltalk.addMethod(
  3508. "_ifNotNil_",
  3509. smalltalk.method({
  3510. selector: "ifNotNil:",
  3511. fn: function (anIRInstruction){
  3512. var self=this;
  3513. return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$5,$1;
  3514. $2=_st((smalltalk.IRClosure || IRClosure))._new();
  3515. _st($2)._scope_(_st(_st(anIRInstruction)._scope())._copy());
  3516. $3=_st((smalltalk.IRBlockSequence || IRBlockSequence))._new();
  3517. _st($3)._add_(_st(_st(_st(self)._send())._instructions())._first());
  3518. $4=_st($3)._yourself();
  3519. _st($2)._add_($4);
  3520. $5=_st($2)._yourself();
  3521. $1=_st(self)._inlinedSend_with_with_(_st((smalltalk.IRInlinedIfNilIfNotNil || IRInlinedIfNilIfNotNil))._new(),$5,anIRInstruction);
  3522. return $1;
  3523. }, self, "ifNotNil:", [anIRInstruction], smalltalk.IRSendInliner)}
  3524. }),
  3525. smalltalk.IRSendInliner);
  3526. smalltalk.addMethod(
  3527. "_ifNotNil_ifNil_",
  3528. smalltalk.method({
  3529. selector: "ifNotNil:ifNil:",
  3530. fn: function (anIRInstruction,anotherIRInstruction){
  3531. var self=this;
  3532. return smalltalk.withContext(function($ctx1) { var $1;
  3533. $1=_st(self)._inlinedSend_with_with_(_st((smalltalk.IRInlinedIfNilIfNotNil || IRInlinedIfNilIfNotNil))._new(),anotherIRInstruction,anIRInstruction);
  3534. return $1;
  3535. }, self, "ifNotNil:ifNil:", [anIRInstruction,anotherIRInstruction], smalltalk.IRSendInliner)}
  3536. }),
  3537. smalltalk.IRSendInliner);
  3538. smalltalk.addMethod(
  3539. "_ifTrue_",
  3540. smalltalk.method({
  3541. selector: "ifTrue:",
  3542. fn: function (anIRInstruction){
  3543. var self=this;
  3544. return smalltalk.withContext(function($ctx1) { var $1;
  3545. $1=_st(self)._inlinedSend_with_(_st((smalltalk.IRInlinedIfTrue || IRInlinedIfTrue))._new(),anIRInstruction);
  3546. return $1;
  3547. }, self, "ifTrue:", [anIRInstruction], smalltalk.IRSendInliner)}
  3548. }),
  3549. smalltalk.IRSendInliner);
  3550. smalltalk.addMethod(
  3551. "_ifTrue_ifFalse_",
  3552. smalltalk.method({
  3553. selector: "ifTrue:ifFalse:",
  3554. fn: function (anIRInstruction,anotherIRInstruction){
  3555. var self=this;
  3556. return smalltalk.withContext(function($ctx1) { var $1;
  3557. $1=_st(self)._inlinedSend_with_with_(_st((smalltalk.IRInlinedIfTrueIfFalse || IRInlinedIfTrueIfFalse))._new(),anIRInstruction,anotherIRInstruction);
  3558. return $1;
  3559. }, self, "ifTrue:ifFalse:", [anIRInstruction,anotherIRInstruction], smalltalk.IRSendInliner)}
  3560. }),
  3561. smalltalk.IRSendInliner);
  3562. smalltalk.addMethod(
  3563. "_inlineClosure_",
  3564. smalltalk.method({
  3565. selector: "inlineClosure:",
  3566. fn: function (anIRClosure){
  3567. var self=this;
  3568. return smalltalk.withContext(function($ctx1) { var $1,$3,$2,$4,$6,$5,$7;
  3569. $ctx1.locals.inlinedClosure=nil;
  3570. $ctx1.locals.sequence=nil;
  3571. $ctx1.locals.statements=nil;
  3572. $ctx1.locals.inlinedClosure=_st(self)._inlinedClosure();
  3573. _st($ctx1.locals.inlinedClosure)._scope_(_st(anIRClosure)._scope());
  3574. $1=_st(anIRClosure)._instructions();
  3575. $2=(function(each){
  3576. return smalltalk.withContext(function($ctx2) { $3=_st(each)._isSequence();
  3577. if(! smalltalk.assert($3)){
  3578. return _st($ctx1.locals.inlinedClosure)._add_(each);
  3579. };
  3580. })});
  3581. _st($1)._do_($2);
  3582. $ctx1.locals.sequence=_st(self)._inlinedSequence();
  3583. _st($ctx1.locals.inlinedClosure)._add_($ctx1.locals.sequence);
  3584. $ctx1.locals.statements=_st(_st(_st(anIRClosure)._instructions())._last())._instructions();
  3585. $4=$ctx1.locals.statements;
  3586. $5=(function(){
  3587. return smalltalk.withContext(function($ctx2) { _st(_st($ctx1.locals.statements)._allButLast())._do_((function(each){
  3588. return smalltalk.withContext(function($ctx3) { return _st($ctx1.locals.sequence)._add_(each);
  3589. })}));
  3590. $6=_st(_st(_st($ctx1.locals.statements)._last())._isReturn())._and_((function(){
  3591. return smalltalk.withContext(function($ctx3) { return _st(_st($ctx1.locals.statements)._last())._isBlockReturn();
  3592. })}));
  3593. if(smalltalk.assert($6)){
  3594. return _st($ctx1.locals.sequence)._add_(_st(_st(_st($ctx1.locals.statements)._last())._instructions())._first());
  3595. } else {
  3596. return _st($ctx1.locals.sequence)._add_(_st($ctx1.locals.statements)._last());
  3597. };
  3598. })});
  3599. _st($4)._ifNotEmpty_($5);
  3600. $7=$ctx1.locals.inlinedClosure;
  3601. return $7;
  3602. }, self, "inlineClosure:", [anIRClosure], smalltalk.IRSendInliner)}
  3603. }),
  3604. smalltalk.IRSendInliner);
  3605. smalltalk.addMethod(
  3606. "_inlineSend_",
  3607. smalltalk.method({
  3608. selector: "inlineSend:",
  3609. fn: function (anIRSend){
  3610. var self=this;
  3611. return smalltalk.withContext(function($ctx1) { var $1;
  3612. _st(self)._send_(anIRSend);
  3613. $1=_st(self)._perform_withArguments_(_st(_st(self)._send())._selector(),_st(_st(_st(self)._send())._instructions())._allButFirst());
  3614. return $1;
  3615. }, self, "inlineSend:", [anIRSend], smalltalk.IRSendInliner)}
  3616. }),
  3617. smalltalk.IRSendInliner);
  3618. smalltalk.addMethod(
  3619. "_inlinedClosure",
  3620. smalltalk.method({
  3621. selector: "inlinedClosure",
  3622. fn: function (){
  3623. var self=this;
  3624. return smalltalk.withContext(function($ctx1) { var $1;
  3625. $1=_st((smalltalk.IRInlinedClosure || IRInlinedClosure))._new();
  3626. return $1;
  3627. }, self, "inlinedClosure", [], smalltalk.IRSendInliner)}
  3628. }),
  3629. smalltalk.IRSendInliner);
  3630. smalltalk.addMethod(
  3631. "_inlinedSend_with_",
  3632. smalltalk.method({
  3633. selector: "inlinedSend:with:",
  3634. fn: function (inlinedSend,anIRInstruction){
  3635. var self=this;
  3636. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5;
  3637. $ctx1.locals.inlinedClosure=nil;
  3638. $1=_st(anIRInstruction)._isClosure();
  3639. if(! smalltalk.assert($1)){
  3640. _st(self)._inliningError_("Message argument should be a block");
  3641. };
  3642. $2=_st(_st(_st(anIRInstruction)._arguments())._size()).__eq((0));
  3643. if(! smalltalk.assert($2)){
  3644. _st(self)._inliningError_("Inlined block should have zero argument");
  3645. };
  3646. $ctx1.locals.inlinedClosure=_st(_st(self)._translator())._visit_(_st(self)._inlineClosure_(anIRInstruction));
  3647. $3=inlinedSend;
  3648. _st($3)._add_(_st(_st(_st(self)._send())._instructions())._first());
  3649. $4=_st($3)._add_($ctx1.locals.inlinedClosure);
  3650. _st(_st(self)._send())._replaceWith_(inlinedSend);
  3651. $5=inlinedSend;
  3652. return $5;
  3653. }, self, "inlinedSend:with:", [inlinedSend,anIRInstruction], smalltalk.IRSendInliner)}
  3654. }),
  3655. smalltalk.IRSendInliner);
  3656. smalltalk.addMethod(
  3657. "_inlinedSend_with_with_",
  3658. smalltalk.method({
  3659. selector: "inlinedSend:with:with:",
  3660. fn: function (inlinedSend,anIRInstruction,anotherIRInstruction){
  3661. var self=this;
  3662. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6,$7;
  3663. $ctx1.locals.inlinedClosure1=nil;
  3664. $ctx1.locals.inlinedClosure2=nil;
  3665. $1=_st(anIRInstruction)._isClosure();
  3666. if(! smalltalk.assert($1)){
  3667. _st(self)._inliningError_("Message argument should be a block");
  3668. };
  3669. $2=_st(_st(_st(anIRInstruction)._arguments())._size()).__eq((0));
  3670. if(! smalltalk.assert($2)){
  3671. _st(self)._inliningError_("Inlined block should have zero argument");
  3672. };
  3673. $3=_st(anotherIRInstruction)._isClosure();
  3674. if(! smalltalk.assert($3)){
  3675. _st(self)._inliningError_("Message argument should be a block");
  3676. };
  3677. $4=_st(_st(_st(anotherIRInstruction)._arguments())._size()).__eq((0));
  3678. if(! smalltalk.assert($4)){
  3679. _st(self)._inliningError_("Inlined block should have zero argument");
  3680. };
  3681. $ctx1.locals.inlinedClosure1=_st(_st(self)._translator())._visit_(_st(self)._inlineClosure_(anIRInstruction));
  3682. $ctx1.locals.inlinedClosure2=_st(_st(self)._translator())._visit_(_st(self)._inlineClosure_(anotherIRInstruction));
  3683. $5=inlinedSend;
  3684. _st($5)._add_(_st(_st(_st(self)._send())._instructions())._first());
  3685. _st($5)._add_($ctx1.locals.inlinedClosure1);
  3686. $6=_st($5)._add_($ctx1.locals.inlinedClosure2);
  3687. _st(_st(self)._send())._replaceWith_(inlinedSend);
  3688. $7=inlinedSend;
  3689. return $7;
  3690. }, self, "inlinedSend:with:with:", [inlinedSend,anIRInstruction,anotherIRInstruction], smalltalk.IRSendInliner)}
  3691. }),
  3692. smalltalk.IRSendInliner);
  3693. smalltalk.addMethod(
  3694. "_inlinedSequence",
  3695. smalltalk.method({
  3696. selector: "inlinedSequence",
  3697. fn: function (){
  3698. var self=this;
  3699. return smalltalk.withContext(function($ctx1) { var $1;
  3700. $1=_st((smalltalk.IRInlinedSequence || IRInlinedSequence))._new();
  3701. return $1;
  3702. }, self, "inlinedSequence", [], smalltalk.IRSendInliner)}
  3703. }),
  3704. smalltalk.IRSendInliner);
  3705. smalltalk.addMethod(
  3706. "_inliningError_",
  3707. smalltalk.method({
  3708. selector: "inliningError:",
  3709. fn: function (aString){
  3710. var self=this;
  3711. return smalltalk.withContext(function($ctx1) { _st((smalltalk.InliningError || InliningError))._signal_(aString);
  3712. return self}, self, "inliningError:", [aString], smalltalk.IRSendInliner)}
  3713. }),
  3714. smalltalk.IRSendInliner);
  3715. smalltalk.addMethod(
  3716. "_send",
  3717. smalltalk.method({
  3718. selector: "send",
  3719. fn: function (){
  3720. var self=this;
  3721. return smalltalk.withContext(function($ctx1) { var $1;
  3722. $1=self["@send"];
  3723. return $1;
  3724. }, self, "send", [], smalltalk.IRSendInliner)}
  3725. }),
  3726. smalltalk.IRSendInliner);
  3727. smalltalk.addMethod(
  3728. "_send_",
  3729. smalltalk.method({
  3730. selector: "send:",
  3731. fn: function (anIRSend){
  3732. var self=this;
  3733. return smalltalk.withContext(function($ctx1) { self["@send"]=anIRSend;
  3734. return self}, self, "send:", [anIRSend], smalltalk.IRSendInliner)}
  3735. }),
  3736. smalltalk.IRSendInliner);
  3737. smalltalk.addMethod(
  3738. "_translator",
  3739. smalltalk.method({
  3740. selector: "translator",
  3741. fn: function (){
  3742. var self=this;
  3743. return smalltalk.withContext(function($ctx1) { var $1;
  3744. $1=self["@translator"];
  3745. return $1;
  3746. }, self, "translator", [], smalltalk.IRSendInliner)}
  3747. }),
  3748. smalltalk.IRSendInliner);
  3749. smalltalk.addMethod(
  3750. "_translator_",
  3751. smalltalk.method({
  3752. selector: "translator:",
  3753. fn: function (anASTTranslator){
  3754. var self=this;
  3755. return smalltalk.withContext(function($ctx1) { self["@translator"]=anASTTranslator;
  3756. return self}, self, "translator:", [anASTTranslator], smalltalk.IRSendInliner)}
  3757. }),
  3758. smalltalk.IRSendInliner);
  3759. smalltalk.addMethod(
  3760. "_inlinedSelectors",
  3761. smalltalk.method({
  3762. selector: "inlinedSelectors",
  3763. fn: function (){
  3764. var self=this;
  3765. return smalltalk.withContext(function($ctx1) { return ["ifTrue:", "ifFalse:", "ifTrue:ifFalse:", "ifFalse:ifTrue:", "ifNil:", "ifNotNil:", "ifNil:ifNotNil:", "ifNotNil:ifNil"];
  3766. }, self, "inlinedSelectors", [], smalltalk.IRSendInliner.klass)}
  3767. }),
  3768. smalltalk.IRSendInliner.klass);
  3769. smalltalk.addMethod(
  3770. "_shouldInline_",
  3771. smalltalk.method({
  3772. selector: "shouldInline:",
  3773. fn: function (anIRInstruction){
  3774. var self=this;
  3775. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$3;
  3776. var $early={};
  3777. try {
  3778. $1=_st(_st(self)._inlinedSelectors())._includes_(_st(anIRInstruction)._selector());
  3779. if(! smalltalk.assert($1)){
  3780. return false;
  3781. };
  3782. $2=_st(_st(anIRInstruction)._instructions())._allButFirst();
  3783. $3=(function(each){
  3784. return smalltalk.withContext(function($ctx2) { $4=_st(each)._isClosure();
  3785. if(! smalltalk.assert($4)){
  3786. throw $early=[false];
  3787. };
  3788. })});
  3789. _st($2)._do_($3);
  3790. return true;
  3791. }
  3792. catch(e) {if(e===$early)return e[0]; throw e}
  3793. }, self, "shouldInline:", [anIRInstruction], smalltalk.IRSendInliner.klass)}
  3794. }),
  3795. smalltalk.IRSendInliner.klass);
  3796. smalltalk.addMethod(
  3797. "_assignment",
  3798. smalltalk.method({
  3799. selector: "assignment",
  3800. fn: function (){
  3801. var self=this;
  3802. return smalltalk.withContext(function($ctx1) { var $1;
  3803. $1=self["@assignment"];
  3804. return $1;
  3805. }, self, "assignment", [], smalltalk.IRAssignmentInliner)}
  3806. }),
  3807. smalltalk.IRAssignmentInliner);
  3808. smalltalk.addMethod(
  3809. "_assignment_",
  3810. smalltalk.method({
  3811. selector: "assignment:",
  3812. fn: function (aNode){
  3813. var self=this;
  3814. return smalltalk.withContext(function($ctx1) { self["@assignment"]=aNode;
  3815. return self}, self, "assignment:", [aNode], smalltalk.IRAssignmentInliner)}
  3816. }),
  3817. smalltalk.IRAssignmentInliner);
  3818. smalltalk.addMethod(
  3819. "_inlineAssignment_",
  3820. smalltalk.method({
  3821. selector: "inlineAssignment:",
  3822. fn: function (anIRAssignment){
  3823. var self=this;
  3824. return smalltalk.withContext(function($ctx1) { var $1;
  3825. $ctx1.locals.inlinedAssignment=nil;
  3826. _st(self)._assignment_(anIRAssignment);
  3827. $ctx1.locals.inlinedAssignment=_st((smalltalk.IRInlinedAssignment || IRInlinedAssignment))._new();
  3828. _st(_st(anIRAssignment)._instructions())._do_((function(each){
  3829. return smalltalk.withContext(function($ctx2) { return _st($ctx1.locals.inlinedAssignment)._add_(each);
  3830. })}));
  3831. _st(anIRAssignment)._replaceWith_($ctx1.locals.inlinedAssignment);
  3832. _st(self)._inlineSend_(_st(_st($ctx1.locals.inlinedAssignment)._instructions())._last());
  3833. $1=$ctx1.locals.inlinedAssignment;
  3834. return $1;
  3835. }, self, "inlineAssignment:", [anIRAssignment], smalltalk.IRAssignmentInliner)}
  3836. }),
  3837. smalltalk.IRAssignmentInliner);
  3838. smalltalk.addMethod(
  3839. "_inlineClosure_",
  3840. smalltalk.method({
  3841. selector: "inlineClosure:",
  3842. fn: function (anIRClosure){
  3843. var self=this;
  3844. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$2,$6;
  3845. $ctx1.locals.inlinedClosure=nil;
  3846. $ctx1.locals.statements=nil;
  3847. $ctx1.locals.inlinedClosure=smalltalk.IRSendInliner.fn.prototype._inlineClosure_.apply(_st(self), [anIRClosure]);
  3848. $ctx1.locals.statements=_st(_st(_st($ctx1.locals.inlinedClosure)._instructions())._last())._instructions();
  3849. $1=$ctx1.locals.statements;
  3850. $2=(function(){
  3851. return smalltalk.withContext(function($ctx2) { $3=_st(_st($ctx1.locals.statements)._last())._canBeAssigned();
  3852. if(smalltalk.assert($3)){
  3853. $4=_st((smalltalk.IRAssignment || IRAssignment))._new();
  3854. _st($4)._add_(_st(_st(_st(self)._assignment())._instructions())._first());
  3855. _st($4)._add_(_st(_st($ctx1.locals.statements)._last())._copy());
  3856. $5=_st($4)._yourself();
  3857. return _st(_st($ctx1.locals.statements)._last())._replaceWith_($5);
  3858. };
  3859. })});
  3860. _st($1)._ifNotEmpty_($2);
  3861. $6=$ctx1.locals.inlinedClosure;
  3862. return $6;
  3863. }, self, "inlineClosure:", [anIRClosure], smalltalk.IRAssignmentInliner)}
  3864. }),
  3865. smalltalk.IRAssignmentInliner);
  3866. smalltalk.addMethod(
  3867. "_inlineClosure_",
  3868. smalltalk.method({
  3869. selector: "inlineClosure:",
  3870. fn: function (anIRClosure){
  3871. var self=this;
  3872. return smalltalk.withContext(function($ctx1) { var $1;
  3873. $1=smalltalk.IRSendInliner.fn.prototype._inlineCLosure_.apply(_st(self), [anIRClosure]);
  3874. return $1;
  3875. }, self, "inlineClosure:", [anIRClosure], smalltalk.IRNonLocalReturnInliner)}
  3876. }),
  3877. smalltalk.IRNonLocalReturnInliner);
  3878. smalltalk.addMethod(
  3879. "_inlinedReturn",
  3880. smalltalk.method({
  3881. selector: "inlinedReturn",
  3882. fn: function (){
  3883. var self=this;
  3884. return smalltalk.withContext(function($ctx1) { var $1;
  3885. $1=_st((smalltalk.IRInlinedNonLocalReturn || IRInlinedNonLocalReturn))._new();
  3886. return $1;
  3887. }, self, "inlinedReturn", [], smalltalk.IRNonLocalReturnInliner)}
  3888. }),
  3889. smalltalk.IRNonLocalReturnInliner);
  3890. smalltalk.addMethod(
  3891. "_inlineClosure_",
  3892. smalltalk.method({
  3893. selector: "inlineClosure:",
  3894. fn: function (anIRClosure){
  3895. var self=this;
  3896. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$2,$6;
  3897. $ctx1.locals.closure=nil;
  3898. $ctx1.locals.statements=nil;
  3899. $ctx1.locals.closure=smalltalk.IRSendInliner.fn.prototype._inlineClosure_.apply(_st(self), [anIRClosure]);
  3900. $ctx1.locals.statements=_st(_st(_st($ctx1.locals.closure)._instructions())._last())._instructions();
  3901. $1=$ctx1.locals.statements;
  3902. $2=(function(){
  3903. return smalltalk.withContext(function($ctx2) { $3=_st(_st($ctx1.locals.statements)._last())._isReturn();
  3904. if(! smalltalk.assert($3)){
  3905. $4=_st((smalltalk.IRReturn || IRReturn))._new();
  3906. _st($4)._add_(_st(_st($ctx1.locals.statements)._last())._copy());
  3907. $5=_st($4)._yourself();
  3908. return _st(_st($ctx1.locals.statements)._last())._replaceWith_($5);
  3909. };
  3910. })});
  3911. _st($1)._ifNotEmpty_($2);
  3912. $6=$ctx1.locals.closure;
  3913. return $6;
  3914. }, self, "inlineClosure:", [anIRClosure], smalltalk.IRReturnInliner)}
  3915. }),
  3916. smalltalk.IRReturnInliner);
  3917. smalltalk.addMethod(
  3918. "_inlineReturn_",
  3919. smalltalk.method({
  3920. selector: "inlineReturn:",
  3921. fn: function (anIRReturn){
  3922. var self=this;
  3923. return smalltalk.withContext(function($ctx1) { var $1;
  3924. $ctx1.locals.return=nil;
  3925. $ctx1.locals.return_=_st(self)._inlinedReturn();
  3926. _st(_st(anIRReturn)._instructions())._do_((function(each){
  3927. return smalltalk.withContext(function($ctx2) { return _st($ctx1.locals.return_)._add_(each);
  3928. })}));
  3929. _st(anIRReturn)._replaceWith_($ctx1.locals.return_);
  3930. _st(self)._inlineSend_(_st(_st($ctx1.locals.return_)._instructions())._last());
  3931. $1=$ctx1.locals.return_;
  3932. return $1;
  3933. }, self, "inlineReturn:", [anIRReturn], smalltalk.IRReturnInliner)}
  3934. }),
  3935. smalltalk.IRReturnInliner);
  3936. smalltalk.addMethod(
  3937. "_inlinedReturn",
  3938. smalltalk.method({
  3939. selector: "inlinedReturn",
  3940. fn: function (){
  3941. var self=this;
  3942. return smalltalk.withContext(function($ctx1) { var $1;
  3943. $1=_st((smalltalk.IRInlinedReturn || IRInlinedReturn))._new();
  3944. return $1;
  3945. }, self, "inlinedReturn", [], smalltalk.IRReturnInliner)}
  3946. }),
  3947. smalltalk.IRReturnInliner);
  3948. smalltalk.addMethod(
  3949. "_visit_",
  3950. smalltalk.method({
  3951. selector: "visit:",
  3952. fn: function (anIRInstruction){
  3953. var self=this;
  3954. return smalltalk.withContext(function($ctx1) { var $1;
  3955. $1=_st(anIRInstruction)._accept_(self);
  3956. return $1;
  3957. }, self, "visit:", [anIRInstruction], smalltalk.IRVisitor)}
  3958. }),
  3959. smalltalk.IRVisitor);
  3960. smalltalk.addMethod(
  3961. "_visitIRAssignment_",
  3962. smalltalk.method({
  3963. selector: "visitIRAssignment:",
  3964. fn: function (anIRAssignment){
  3965. var self=this;
  3966. return smalltalk.withContext(function($ctx1) { var $1;
  3967. $1=_st(self)._visitIRInstruction_(anIRAssignment);
  3968. return $1;
  3969. }, self, "visitIRAssignment:", [anIRAssignment], smalltalk.IRVisitor)}
  3970. }),
  3971. smalltalk.IRVisitor);
  3972. smalltalk.addMethod(
  3973. "_visitIRBlockReturn_",
  3974. smalltalk.method({
  3975. selector: "visitIRBlockReturn:",
  3976. fn: function (anIRBlockReturn){
  3977. var self=this;
  3978. return smalltalk.withContext(function($ctx1) { var $1;
  3979. $1=_st(self)._visitIRReturn_(anIRBlockReturn);
  3980. return $1;
  3981. }, self, "visitIRBlockReturn:", [anIRBlockReturn], smalltalk.IRVisitor)}
  3982. }),
  3983. smalltalk.IRVisitor);
  3984. smalltalk.addMethod(
  3985. "_visitIRBlockSequence_",
  3986. smalltalk.method({
  3987. selector: "visitIRBlockSequence:",
  3988. fn: function (anIRBlockSequence){
  3989. var self=this;
  3990. return smalltalk.withContext(function($ctx1) { var $1;
  3991. $1=_st(self)._visitIRSequence_(anIRBlockSequence);
  3992. return $1;
  3993. }, self, "visitIRBlockSequence:", [anIRBlockSequence], smalltalk.IRVisitor)}
  3994. }),
  3995. smalltalk.IRVisitor);
  3996. smalltalk.addMethod(
  3997. "_visitIRClosure_",
  3998. smalltalk.method({
  3999. selector: "visitIRClosure:",
  4000. fn: function (anIRClosure){
  4001. var self=this;
  4002. return smalltalk.withContext(function($ctx1) { var $1;
  4003. $1=_st(self)._visitIRInstruction_(anIRClosure);
  4004. return $1;
  4005. }, self, "visitIRClosure:", [anIRClosure], smalltalk.IRVisitor)}
  4006. }),
  4007. smalltalk.IRVisitor);
  4008. smalltalk.addMethod(
  4009. "_visitIRDynamicArray_",
  4010. smalltalk.method({
  4011. selector: "visitIRDynamicArray:",
  4012. fn: function (anIRDynamicArray){
  4013. var self=this;
  4014. return smalltalk.withContext(function($ctx1) { var $1;
  4015. $1=_st(self)._visitIRInstruction_(anIRDynamicArray);
  4016. return $1;
  4017. }, self, "visitIRDynamicArray:", [anIRDynamicArray], smalltalk.IRVisitor)}
  4018. }),
  4019. smalltalk.IRVisitor);
  4020. smalltalk.addMethod(
  4021. "_visitIRDynamicDictionary_",
  4022. smalltalk.method({
  4023. selector: "visitIRDynamicDictionary:",
  4024. fn: function (anIRDynamicDictionary){
  4025. var self=this;
  4026. return smalltalk.withContext(function($ctx1) { var $1;
  4027. $1=_st(self)._visitIRInstruction_(anIRDynamicDictionary);
  4028. return $1;
  4029. }, self, "visitIRDynamicDictionary:", [anIRDynamicDictionary], smalltalk.IRVisitor)}
  4030. }),
  4031. smalltalk.IRVisitor);
  4032. smalltalk.addMethod(
  4033. "_visitIRInlinedClosure_",
  4034. smalltalk.method({
  4035. selector: "visitIRInlinedClosure:",
  4036. fn: function (anIRInlinedClosure){
  4037. var self=this;
  4038. return smalltalk.withContext(function($ctx1) { var $1;
  4039. $1=_st(self)._visitIRClosure_(anIRInlinedClosure);
  4040. return $1;
  4041. }, self, "visitIRInlinedClosure:", [anIRInlinedClosure], smalltalk.IRVisitor)}
  4042. }),
  4043. smalltalk.IRVisitor);
  4044. smalltalk.addMethod(
  4045. "_visitIRInlinedSequence_",
  4046. smalltalk.method({
  4047. selector: "visitIRInlinedSequence:",
  4048. fn: function (anIRInlinedSequence){
  4049. var self=this;
  4050. return smalltalk.withContext(function($ctx1) { var $1;
  4051. $1=_st(self)._visitIRSequence_(anIRInlinedSequence);
  4052. return $1;
  4053. }, self, "visitIRInlinedSequence:", [anIRInlinedSequence], smalltalk.IRVisitor)}
  4054. }),
  4055. smalltalk.IRVisitor);
  4056. smalltalk.addMethod(
  4057. "_visitIRInstruction_",
  4058. smalltalk.method({
  4059. selector: "visitIRInstruction:",
  4060. fn: function (anIRInstruction){
  4061. var self=this;
  4062. return smalltalk.withContext(function($ctx1) { var $1;
  4063. _st(_st(anIRInstruction)._instructions())._do_((function(each){
  4064. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(each);
  4065. })}));
  4066. $1=anIRInstruction;
  4067. return $1;
  4068. }, self, "visitIRInstruction:", [anIRInstruction], smalltalk.IRVisitor)}
  4069. }),
  4070. smalltalk.IRVisitor);
  4071. smalltalk.addMethod(
  4072. "_visitIRMethod_",
  4073. smalltalk.method({
  4074. selector: "visitIRMethod:",
  4075. fn: function (anIRMethod){
  4076. var self=this;
  4077. return smalltalk.withContext(function($ctx1) { var $1;
  4078. $1=_st(self)._visitIRInstruction_(anIRMethod);
  4079. return $1;
  4080. }, self, "visitIRMethod:", [anIRMethod], smalltalk.IRVisitor)}
  4081. }),
  4082. smalltalk.IRVisitor);
  4083. smalltalk.addMethod(
  4084. "_visitIRNonLocalReturn_",
  4085. smalltalk.method({
  4086. selector: "visitIRNonLocalReturn:",
  4087. fn: function (anIRNonLocalReturn){
  4088. var self=this;
  4089. return smalltalk.withContext(function($ctx1) { var $1;
  4090. $1=_st(self)._visitIRInstruction_(anIRNonLocalReturn);
  4091. return $1;
  4092. }, self, "visitIRNonLocalReturn:", [anIRNonLocalReturn], smalltalk.IRVisitor)}
  4093. }),
  4094. smalltalk.IRVisitor);
  4095. smalltalk.addMethod(
  4096. "_visitIRNonLocalReturnHandling_",
  4097. smalltalk.method({
  4098. selector: "visitIRNonLocalReturnHandling:",
  4099. fn: function (anIRNonLocalReturnHandling){
  4100. var self=this;
  4101. return smalltalk.withContext(function($ctx1) { var $1;
  4102. $1=_st(self)._visitIRInstruction_(anIRNonLocalReturnHandling);
  4103. return $1;
  4104. }, self, "visitIRNonLocalReturnHandling:", [anIRNonLocalReturnHandling], smalltalk.IRVisitor)}
  4105. }),
  4106. smalltalk.IRVisitor);
  4107. smalltalk.addMethod(
  4108. "_visitIRReturn_",
  4109. smalltalk.method({
  4110. selector: "visitIRReturn:",
  4111. fn: function (anIRReturn){
  4112. var self=this;
  4113. return smalltalk.withContext(function($ctx1) { var $1;
  4114. $1=_st(self)._visitIRInstruction_(anIRReturn);
  4115. return $1;
  4116. }, self, "visitIRReturn:", [anIRReturn], smalltalk.IRVisitor)}
  4117. }),
  4118. smalltalk.IRVisitor);
  4119. smalltalk.addMethod(
  4120. "_visitIRSend_",
  4121. smalltalk.method({
  4122. selector: "visitIRSend:",
  4123. fn: function (anIRSend){
  4124. var self=this;
  4125. return smalltalk.withContext(function($ctx1) { var $1;
  4126. $1=_st(self)._visitIRInstruction_(anIRSend);
  4127. return $1;
  4128. }, self, "visitIRSend:", [anIRSend], smalltalk.IRVisitor)}
  4129. }),
  4130. smalltalk.IRVisitor);
  4131. smalltalk.addMethod(
  4132. "_visitIRSequence_",
  4133. smalltalk.method({
  4134. selector: "visitIRSequence:",
  4135. fn: function (anIRSequence){
  4136. var self=this;
  4137. return smalltalk.withContext(function($ctx1) { var $1;
  4138. $1=_st(self)._visitIRInstruction_(anIRSequence);
  4139. return $1;
  4140. }, self, "visitIRSequence:", [anIRSequence], smalltalk.IRVisitor)}
  4141. }),
  4142. smalltalk.IRVisitor);
  4143. smalltalk.addMethod(
  4144. "_visitIRTempDeclaration_",
  4145. smalltalk.method({
  4146. selector: "visitIRTempDeclaration:",
  4147. fn: function (anIRTempDeclaration){
  4148. var self=this;
  4149. return smalltalk.withContext(function($ctx1) { var $1;
  4150. $1=_st(self)._visitIRInstruction_(anIRTempDeclaration);
  4151. return $1;
  4152. }, self, "visitIRTempDeclaration:", [anIRTempDeclaration], smalltalk.IRVisitor)}
  4153. }),
  4154. smalltalk.IRVisitor);
  4155. smalltalk.addMethod(
  4156. "_visitIRValue_",
  4157. smalltalk.method({
  4158. selector: "visitIRValue:",
  4159. fn: function (anIRValue){
  4160. var self=this;
  4161. return smalltalk.withContext(function($ctx1) { var $1;
  4162. $1=_st(self)._visitIRInstruction_(anIRValue);
  4163. return $1;
  4164. }, self, "visitIRValue:", [anIRValue], smalltalk.IRVisitor)}
  4165. }),
  4166. smalltalk.IRVisitor);
  4167. smalltalk.addMethod(
  4168. "_visitIRVariable_",
  4169. smalltalk.method({
  4170. selector: "visitIRVariable:",
  4171. fn: function (anIRVariable){
  4172. var self=this;
  4173. return smalltalk.withContext(function($ctx1) { var $1;
  4174. $1=_st(self)._visitIRInstruction_(anIRVariable);
  4175. return $1;
  4176. }, self, "visitIRVariable:", [anIRVariable], smalltalk.IRVisitor)}
  4177. }),
  4178. smalltalk.IRVisitor);
  4179. smalltalk.addMethod(
  4180. "_visitIRVerbatim_",
  4181. smalltalk.method({
  4182. selector: "visitIRVerbatim:",
  4183. fn: function (anIRVerbatim){
  4184. var self=this;
  4185. return smalltalk.withContext(function($ctx1) { var $1;
  4186. $1=_st(self)._visitIRInstruction_(anIRVerbatim);
  4187. return $1;
  4188. }, self, "visitIRVerbatim:", [anIRVerbatim], smalltalk.IRVisitor)}
  4189. }),
  4190. smalltalk.IRVisitor);
  4191. smalltalk.addMethod(
  4192. "_assignmentInliner",
  4193. smalltalk.method({
  4194. selector: "assignmentInliner",
  4195. fn: function (){
  4196. var self=this;
  4197. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  4198. $2=_st((smalltalk.IRAssignmentInliner || IRAssignmentInliner))._new();
  4199. _st($2)._translator_(self);
  4200. $3=_st($2)._yourself();
  4201. $1=$3;
  4202. return $1;
  4203. }, self, "assignmentInliner", [], smalltalk.IRInliner)}
  4204. }),
  4205. smalltalk.IRInliner);
  4206. smalltalk.addMethod(
  4207. "_nonLocalReturnInliner",
  4208. smalltalk.method({
  4209. selector: "nonLocalReturnInliner",
  4210. fn: function (){
  4211. var self=this;
  4212. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  4213. $2=_st((smalltalk.IRNonLocalReturnInliner || IRNonLocalReturnInliner))._new();
  4214. _st($2)._translator_(self);
  4215. $3=_st($2)._yourself();
  4216. $1=$3;
  4217. return $1;
  4218. }, self, "nonLocalReturnInliner", [], smalltalk.IRInliner)}
  4219. }),
  4220. smalltalk.IRInliner);
  4221. smalltalk.addMethod(
  4222. "_returnInliner",
  4223. smalltalk.method({
  4224. selector: "returnInliner",
  4225. fn: function (){
  4226. var self=this;
  4227. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  4228. $2=_st((smalltalk.IRReturnInliner || IRReturnInliner))._new();
  4229. _st($2)._translator_(self);
  4230. $3=_st($2)._yourself();
  4231. $1=$3;
  4232. return $1;
  4233. }, self, "returnInliner", [], smalltalk.IRInliner)}
  4234. }),
  4235. smalltalk.IRInliner);
  4236. smalltalk.addMethod(
  4237. "_sendInliner",
  4238. smalltalk.method({
  4239. selector: "sendInliner",
  4240. fn: function (){
  4241. var self=this;
  4242. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  4243. $2=_st((smalltalk.IRSendInliner || IRSendInliner))._new();
  4244. _st($2)._translator_(self);
  4245. $3=_st($2)._yourself();
  4246. $1=$3;
  4247. return $1;
  4248. }, self, "sendInliner", [], smalltalk.IRInliner)}
  4249. }),
  4250. smalltalk.IRInliner);
  4251. smalltalk.addMethod(
  4252. "_shouldInlineAssignment_",
  4253. smalltalk.method({
  4254. selector: "shouldInlineAssignment:",
  4255. fn: function (anIRAssignment){
  4256. var self=this;
  4257. return smalltalk.withContext(function($ctx1) { var $1;
  4258. $1=_st(_st(_st(anIRAssignment)._isInlined())._not())._and_((function(){
  4259. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(anIRAssignment)._instructions())._last())._isSend())._and_((function(){
  4260. return smalltalk.withContext(function($ctx3) { return _st(self)._shouldInlineSend_(_st(_st(anIRAssignment)._instructions())._last());
  4261. })}));
  4262. })}));
  4263. return $1;
  4264. }, self, "shouldInlineAssignment:", [anIRAssignment], smalltalk.IRInliner)}
  4265. }),
  4266. smalltalk.IRInliner);
  4267. smalltalk.addMethod(
  4268. "_shouldInlineReturn_",
  4269. smalltalk.method({
  4270. selector: "shouldInlineReturn:",
  4271. fn: function (anIRReturn){
  4272. var self=this;
  4273. return smalltalk.withContext(function($ctx1) { var $1;
  4274. $1=_st(_st(_st(anIRReturn)._isInlined())._not())._and_((function(){
  4275. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(anIRReturn)._instructions())._first())._isSend())._and_((function(){
  4276. return smalltalk.withContext(function($ctx3) { return _st(self)._shouldInlineSend_(_st(_st(anIRReturn)._instructions())._first());
  4277. })}));
  4278. })}));
  4279. return $1;
  4280. }, self, "shouldInlineReturn:", [anIRReturn], smalltalk.IRInliner)}
  4281. }),
  4282. smalltalk.IRInliner);
  4283. smalltalk.addMethod(
  4284. "_shouldInlineSend_",
  4285. smalltalk.method({
  4286. selector: "shouldInlineSend:",
  4287. fn: function (anIRSend){
  4288. var self=this;
  4289. return smalltalk.withContext(function($ctx1) { var $1;
  4290. $1=_st(_st(_st(anIRSend)._isInlined())._not())._and_((function(){
  4291. return smalltalk.withContext(function($ctx2) { return _st((smalltalk.IRSendInliner || IRSendInliner))._shouldInline_(anIRSend);
  4292. })}));
  4293. return $1;
  4294. }, self, "shouldInlineSend:", [anIRSend], smalltalk.IRInliner)}
  4295. }),
  4296. smalltalk.IRInliner);
  4297. smalltalk.addMethod(
  4298. "_transformNonLocalReturn_",
  4299. smalltalk.method({
  4300. selector: "transformNonLocalReturn:",
  4301. fn: function (anIRNonLocalReturn){
  4302. var self=this;
  4303. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5;
  4304. $ctx1.locals.localReturn=nil;
  4305. $1=_st(_st(anIRNonLocalReturn)._scope())._canInlineNonLocalReturns();
  4306. if(smalltalk.assert($1)){
  4307. _st(_st(_st(anIRNonLocalReturn)._scope())._methodScope())._removeNonLocalReturn_(_st(anIRNonLocalReturn)._scope());
  4308. $2=_st((smalltalk.IRReturn || IRReturn))._new();
  4309. _st($2)._scope_(_st(anIRNonLocalReturn)._scope());
  4310. $3=_st($2)._yourself();
  4311. $ctx1.locals.localReturn=$3;
  4312. $ctx1.locals.localReturn;
  4313. _st(_st(anIRNonLocalReturn)._instructions())._do_((function(each){
  4314. return smalltalk.withContext(function($ctx2) { return _st($ctx1.locals.localReturn)._add_(each);
  4315. })}));
  4316. _st(anIRNonLocalReturn)._replaceWith_($ctx1.locals.localReturn);
  4317. $4=$ctx1.locals.localReturn;
  4318. return $4;
  4319. };
  4320. $5=smalltalk.IRVisitor.fn.prototype._visitIRNonLocalReturn_.apply(_st(self), [anIRNonLocalReturn]);
  4321. return $5;
  4322. }, self, "transformNonLocalReturn:", [anIRNonLocalReturn], smalltalk.IRInliner)}
  4323. }),
  4324. smalltalk.IRInliner);
  4325. smalltalk.addMethod(
  4326. "_visitIRAssignment_",
  4327. smalltalk.method({
  4328. selector: "visitIRAssignment:",
  4329. fn: function (anIRAssignment){
  4330. var self=this;
  4331. return smalltalk.withContext(function($ctx1) { var $2,$1;
  4332. $2=_st(self)._shouldInlineAssignment_(anIRAssignment);
  4333. if(smalltalk.assert($2)){
  4334. $1=_st(_st(self)._assignmentInliner())._inlineAssignment_(anIRAssignment);
  4335. } else {
  4336. $1=smalltalk.IRVisitor.fn.prototype._visitIRAssignment_.apply(_st(self), [anIRAssignment]);
  4337. };
  4338. return $1;
  4339. }, self, "visitIRAssignment:", [anIRAssignment], smalltalk.IRInliner)}
  4340. }),
  4341. smalltalk.IRInliner);
  4342. smalltalk.addMethod(
  4343. "_visitIRNonLocalReturn_",
  4344. smalltalk.method({
  4345. selector: "visitIRNonLocalReturn:",
  4346. fn: function (anIRNonLocalReturn){
  4347. var self=this;
  4348. return smalltalk.withContext(function($ctx1) { var $2,$1;
  4349. $2=_st(self)._shouldInlineReturn_(anIRNonLocalReturn);
  4350. if(smalltalk.assert($2)){
  4351. $1=_st(_st(self)._nonLocalReturnInliner())._inlineReturn_(anIRNonLocalReturn);
  4352. } else {
  4353. $1=_st(self)._transformNonLocalReturn_(anIRNonLocalReturn);
  4354. };
  4355. return $1;
  4356. }, self, "visitIRNonLocalReturn:", [anIRNonLocalReturn], smalltalk.IRInliner)}
  4357. }),
  4358. smalltalk.IRInliner);
  4359. smalltalk.addMethod(
  4360. "_visitIRReturn_",
  4361. smalltalk.method({
  4362. selector: "visitIRReturn:",
  4363. fn: function (anIRReturn){
  4364. var self=this;
  4365. return smalltalk.withContext(function($ctx1) { var $2,$1;
  4366. $2=_st(self)._shouldInlineReturn_(anIRReturn);
  4367. if(smalltalk.assert($2)){
  4368. $1=_st(_st(self)._returnInliner())._inlineReturn_(anIRReturn);
  4369. } else {
  4370. $1=smalltalk.IRVisitor.fn.prototype._visitIRReturn_.apply(_st(self), [anIRReturn]);
  4371. };
  4372. return $1;
  4373. }, self, "visitIRReturn:", [anIRReturn], smalltalk.IRInliner)}
  4374. }),
  4375. smalltalk.IRInliner);
  4376. smalltalk.addMethod(
  4377. "_visitIRSend_",
  4378. smalltalk.method({
  4379. selector: "visitIRSend:",
  4380. fn: function (anIRSend){
  4381. var self=this;
  4382. return smalltalk.withContext(function($ctx1) { var $2,$1;
  4383. $2=_st(self)._shouldInlineSend_(anIRSend);
  4384. if(smalltalk.assert($2)){
  4385. $1=_st(_st(self)._sendInliner())._inlineSend_(anIRSend);
  4386. } else {
  4387. $1=smalltalk.IRVisitor.fn.prototype._visitIRSend_.apply(_st(self), [anIRSend]);
  4388. };
  4389. return $1;
  4390. }, self, "visitIRSend:", [anIRSend], smalltalk.IRInliner)}
  4391. }),
  4392. smalltalk.IRInliner);
  4393. smalltalk.addMethod(
  4394. "_contents",
  4395. smalltalk.method({
  4396. selector: "contents",
  4397. fn: function (){
  4398. var self=this;
  4399. return smalltalk.withContext(function($ctx1) { var $1;
  4400. $1=_st(_st(self)._stream())._contents();
  4401. return $1;
  4402. }, self, "contents", [], smalltalk.IRJSTranslator)}
  4403. }),
  4404. smalltalk.IRJSTranslator);
  4405. smalltalk.addMethod(
  4406. "_initialize",
  4407. smalltalk.method({
  4408. selector: "initialize",
  4409. fn: function (){
  4410. var self=this;
  4411. return smalltalk.withContext(function($ctx1) { smalltalk.IRVisitor.fn.prototype._initialize.apply(_st(self), []);
  4412. self["@stream"]=_st((smalltalk.JSStream || JSStream))._new();
  4413. return self}, self, "initialize", [], smalltalk.IRJSTranslator)}
  4414. }),
  4415. smalltalk.IRJSTranslator);
  4416. smalltalk.addMethod(
  4417. "_stream",
  4418. smalltalk.method({
  4419. selector: "stream",
  4420. fn: function (){
  4421. var self=this;
  4422. return smalltalk.withContext(function($ctx1) { var $1;
  4423. $1=self["@stream"];
  4424. return $1;
  4425. }, self, "stream", [], smalltalk.IRJSTranslator)}
  4426. }),
  4427. smalltalk.IRJSTranslator);
  4428. smalltalk.addMethod(
  4429. "_stream_",
  4430. smalltalk.method({
  4431. selector: "stream:",
  4432. fn: function (aStream){
  4433. var self=this;
  4434. return smalltalk.withContext(function($ctx1) { self["@stream"]=aStream;
  4435. return self}, self, "stream:", [aStream], smalltalk.IRJSTranslator)}
  4436. }),
  4437. smalltalk.IRJSTranslator);
  4438. smalltalk.addMethod(
  4439. "_visitIRAssignment_",
  4440. smalltalk.method({
  4441. selector: "visitIRAssignment:",
  4442. fn: function (anIRAssignment){
  4443. var self=this;
  4444. return smalltalk.withContext(function($ctx1) { _st(self)._visit_(_st(_st(anIRAssignment)._instructions())._first());
  4445. _st(_st(self)._stream())._nextPutAssignment();
  4446. _st(self)._visit_(_st(_st(anIRAssignment)._instructions())._last());
  4447. return self}, self, "visitIRAssignment:", [anIRAssignment], smalltalk.IRJSTranslator)}
  4448. }),
  4449. smalltalk.IRJSTranslator);
  4450. smalltalk.addMethod(
  4451. "_visitIRClosure_",
  4452. smalltalk.method({
  4453. selector: "visitIRClosure:",
  4454. fn: function (anIRClosure){
  4455. var self=this;
  4456. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutClosureWith_arguments_((function(){
  4457. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._stream())._nextPutBlockContextFor_during_(anIRClosure,(function(){
  4458. return smalltalk.withContext(function($ctx3) { return smalltalk.IRVisitor.fn.prototype._visitIRClosure_.apply(_st(self), [anIRClosure]);
  4459. })}));
  4460. })}),_st(anIRClosure)._arguments());
  4461. return self}, self, "visitIRClosure:", [anIRClosure], smalltalk.IRJSTranslator)}
  4462. }),
  4463. smalltalk.IRJSTranslator);
  4464. smalltalk.addMethod(
  4465. "_visitIRDynamicArray_",
  4466. smalltalk.method({
  4467. selector: "visitIRDynamicArray:",
  4468. fn: function (anIRDynamicArray){
  4469. var self=this;
  4470. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutAll_("[");
  4471. _st(_st(anIRDynamicArray)._instructions())._do_separatedBy_((function(each){
  4472. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(each);
  4473. })}),(function(){
  4474. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._stream())._nextPutAll_(",");
  4475. })}));
  4476. _st(self["@stream"])._nextPutAll_("]");
  4477. return self}, self, "visitIRDynamicArray:", [anIRDynamicArray], smalltalk.IRJSTranslator)}
  4478. }),
  4479. smalltalk.IRJSTranslator);
  4480. smalltalk.addMethod(
  4481. "_visitIRDynamicDictionary_",
  4482. smalltalk.method({
  4483. selector: "visitIRDynamicDictionary:",
  4484. fn: function (anIRDynamicDictionary){
  4485. var self=this;
  4486. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutAll_("smalltalk.HashedCollection._fromPairs_([");
  4487. _st(_st(anIRDynamicDictionary)._instructions())._do_separatedBy_((function(each){
  4488. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(each);
  4489. })}),(function(){
  4490. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._stream())._nextPutAll_(",");
  4491. })}));
  4492. _st(_st(self)._stream())._nextPutAll_("])");
  4493. return self}, self, "visitIRDynamicDictionary:", [anIRDynamicDictionary], smalltalk.IRJSTranslator)}
  4494. }),
  4495. smalltalk.IRJSTranslator);
  4496. smalltalk.addMethod(
  4497. "_visitIRMethod_",
  4498. smalltalk.method({
  4499. selector: "visitIRMethod:",
  4500. fn: function (anIRMethod){
  4501. var self=this;
  4502. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$6,$7,$9,$10,$8,$5,$3;
  4503. $1=_st(self)._stream();
  4504. $2=anIRMethod;
  4505. $3=(function(){
  4506. return smalltalk.withContext(function($ctx2) { $4=_st(self)._stream();
  4507. $5=(function(){
  4508. return smalltalk.withContext(function($ctx3) { $6=_st(self)._stream();
  4509. $7=anIRMethod;
  4510. $8=(function(){
  4511. return smalltalk.withContext(function($ctx4) { $9=_st(_st(anIRMethod)._internalVariables())._notEmpty();
  4512. if(smalltalk.assert($9)){
  4513. _st(_st(self)._stream())._nextPutVars_(_st(_st(_st(anIRMethod)._internalVariables())._asArray())._collect_((function(each){
  4514. return smalltalk.withContext(function($ctx5) { return _st(_st(each)._variable())._alias();
  4515. })})));
  4516. };
  4517. $10=_st(_st(anIRMethod)._scope())._hasNonLocalReturn();
  4518. if(smalltalk.assert($10)){
  4519. return _st(_st(self)._stream())._nextPutNonLocalReturnHandlingWith_((function(){
  4520. return smalltalk.withContext(function($ctx5) { return smalltalk.IRVisitor.fn.prototype._visitIRMethod_.apply(_st(self), [anIRMethod]);
  4521. })}));
  4522. } else {
  4523. return smalltalk.IRVisitor.fn.prototype._visitIRMethod_.apply(_st(self), [anIRMethod]);
  4524. };
  4525. })});
  4526. return _st($6)._nextPutContextFor_during_($7,$8);
  4527. })});
  4528. return _st($4)._nextPutFunctionWith_arguments_($5,_st(anIRMethod)._arguments());
  4529. })});
  4530. _st($1)._nextPutMethodDeclaration_with_($2,$3);
  4531. return self}, self, "visitIRMethod:", [anIRMethod], smalltalk.IRJSTranslator)}
  4532. }),
  4533. smalltalk.IRJSTranslator);
  4534. smalltalk.addMethod(
  4535. "_visitIRNonLocalReturn_",
  4536. smalltalk.method({
  4537. selector: "visitIRNonLocalReturn:",
  4538. fn: function (anIRNonLocalReturn){
  4539. var self=this;
  4540. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutNonLocalReturnWith_((function(){
  4541. return smalltalk.withContext(function($ctx2) { return smalltalk.IRVisitor.fn.prototype._visitIRNonLocalReturn_.apply(_st(self), [anIRNonLocalReturn]);
  4542. })}));
  4543. return self}, self, "visitIRNonLocalReturn:", [anIRNonLocalReturn], smalltalk.IRJSTranslator)}
  4544. }),
  4545. smalltalk.IRJSTranslator);
  4546. smalltalk.addMethod(
  4547. "_visitIRReturn_",
  4548. smalltalk.method({
  4549. selector: "visitIRReturn:",
  4550. fn: function (anIRReturn){
  4551. var self=this;
  4552. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutReturnWith_((function(){
  4553. return smalltalk.withContext(function($ctx2) { return smalltalk.IRVisitor.fn.prototype._visitIRReturn_.apply(_st(self), [anIRReturn]);
  4554. })}));
  4555. return self}, self, "visitIRReturn:", [anIRReturn], smalltalk.IRJSTranslator)}
  4556. }),
  4557. smalltalk.IRJSTranslator);
  4558. smalltalk.addMethod(
  4559. "_visitIRSend_",
  4560. smalltalk.method({
  4561. selector: "visitIRSend:",
  4562. fn: function (anIRSend){
  4563. var self=this;
  4564. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  4565. $1=_st(anIRSend)._classSend();
  4566. if(($receiver = $1) == nil || $receiver == undefined){
  4567. _st(_st(self)._stream())._nextPutAll_("_st(");
  4568. _st(self)._visit_(_st(_st(anIRSend)._instructions())._first());
  4569. _st(_st(self)._stream())._nextPutAll_(_st(_st(").").__comma(_st(_st(anIRSend)._selector())._asSelector())).__comma("("));
  4570. _st(_st(_st(anIRSend)._instructions())._allButFirst())._do_separatedBy_((function(each){
  4571. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(each);
  4572. })}),(function(){
  4573. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._stream())._nextPutAll_(",");
  4574. })}));
  4575. _st(_st(self)._stream())._nextPutAll_(")");
  4576. } else {
  4577. $2=_st(self)._stream();
  4578. _st($2)._nextPutAll_(_st(_st(_st(anIRSend)._classSend())._asJavascript()).__comma(".fn.prototype."));
  4579. _st($2)._nextPutAll_(_st(_st(_st(anIRSend)._selector())._asSelector()).__comma(".apply("));
  4580. $3=_st($2)._nextPutAll_("_st(");
  4581. $3;
  4582. _st(self)._visit_(_st(_st(anIRSend)._instructions())._first());
  4583. _st(_st(self)._stream())._nextPutAll_("), [");
  4584. _st(_st(_st(anIRSend)._instructions())._allButFirst())._do_separatedBy_((function(each){
  4585. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(each);
  4586. })}),(function(){
  4587. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._stream())._nextPutAll_(",");
  4588. })}));
  4589. _st(_st(self)._stream())._nextPutAll_("])");
  4590. };
  4591. return self}, self, "visitIRSend:", [anIRSend], smalltalk.IRJSTranslator)}
  4592. }),
  4593. smalltalk.IRJSTranslator);
  4594. smalltalk.addMethod(
  4595. "_visitIRSequence_",
  4596. smalltalk.method({
  4597. selector: "visitIRSequence:",
  4598. fn: function (anIRSequence){
  4599. var self=this;
  4600. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutSequenceWith_((function(){
  4601. return smalltalk.withContext(function($ctx2) { return _st(_st(anIRSequence)._instructions())._do_((function(each){
  4602. return smalltalk.withContext(function($ctx3) { return _st(_st(self)._stream())._nextPutStatementWith_(_st(self)._visit_(each));
  4603. })}));
  4604. })}));
  4605. return self}, self, "visitIRSequence:", [anIRSequence], smalltalk.IRJSTranslator)}
  4606. }),
  4607. smalltalk.IRJSTranslator);
  4608. smalltalk.addMethod(
  4609. "_visitIRTempDeclaration_",
  4610. smalltalk.method({
  4611. selector: "visitIRTempDeclaration:",
  4612. fn: function (anIRTempDeclaration){
  4613. var self=this;
  4614. return smalltalk.withContext(function($ctx1) { var $1,$2;
  4615. $1=_st(self)._stream();
  4616. _st($1)._nextPutAll_(_st(_st(_st(_st(_st(anIRTempDeclaration)._scope())._alias()).__comma(".locals.")).__comma(_st(anIRTempDeclaration)._name())).__comma("=nil;"));
  4617. $2=_st($1)._lf();
  4618. return self}, self, "visitIRTempDeclaration:", [anIRTempDeclaration], smalltalk.IRJSTranslator)}
  4619. }),
  4620. smalltalk.IRJSTranslator);
  4621. smalltalk.addMethod(
  4622. "_visitIRValue_",
  4623. smalltalk.method({
  4624. selector: "visitIRValue:",
  4625. fn: function (anIRValue){
  4626. var self=this;
  4627. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutAll_(_st(_st(anIRValue)._value())._asJavascript());
  4628. return self}, self, "visitIRValue:", [anIRValue], smalltalk.IRJSTranslator)}
  4629. }),
  4630. smalltalk.IRJSTranslator);
  4631. smalltalk.addMethod(
  4632. "_visitIRVariable_",
  4633. smalltalk.method({
  4634. selector: "visitIRVariable:",
  4635. fn: function (anIRVariable){
  4636. var self=this;
  4637. return smalltalk.withContext(function($ctx1) { var $1;
  4638. $1=_st(_st(_st(anIRVariable)._variable())._name()).__eq("thisContext");
  4639. if(smalltalk.assert($1)){
  4640. _st(_st(self)._stream())._nextPutAll_("smalltalk.getThisContext()");
  4641. } else {
  4642. _st(_st(self)._stream())._nextPutAll_(_st(_st(anIRVariable)._variable())._alias());
  4643. };
  4644. return self}, self, "visitIRVariable:", [anIRVariable], smalltalk.IRJSTranslator)}
  4645. }),
  4646. smalltalk.IRJSTranslator);
  4647. smalltalk.addMethod(
  4648. "_visitIRVerbatim_",
  4649. smalltalk.method({
  4650. selector: "visitIRVerbatim:",
  4651. fn: function (anIRVerbatim){
  4652. var self=this;
  4653. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutStatementWith_((function(){
  4654. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._stream())._nextPutAll_(_st(anIRVerbatim)._source());
  4655. })}));
  4656. return self}, self, "visitIRVerbatim:", [anIRVerbatim], smalltalk.IRJSTranslator)}
  4657. }),
  4658. smalltalk.IRJSTranslator);
  4659. smalltalk.addMethod(
  4660. "_visitIRInlinedAssignment_",
  4661. smalltalk.method({
  4662. selector: "visitIRInlinedAssignment:",
  4663. fn: function (anIRInlinedAssignment){
  4664. var self=this;
  4665. return smalltalk.withContext(function($ctx1) { _st(self)._visit_(_st(_st(anIRInlinedAssignment)._instructions())._last());
  4666. return self}, self, "visitIRInlinedAssignment:", [anIRInlinedAssignment], smalltalk.IRInliningJSTranslator)}
  4667. }),
  4668. smalltalk.IRInliningJSTranslator);
  4669. smalltalk.addMethod(
  4670. "_visitIRInlinedClosure_",
  4671. smalltalk.method({
  4672. selector: "visitIRInlinedClosure:",
  4673. fn: function (anIRInlinedClosure){
  4674. var self=this;
  4675. return smalltalk.withContext(function($ctx1) { _st(_st(anIRInlinedClosure)._instructions())._do_((function(each){
  4676. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(each);
  4677. })}));
  4678. return self}, self, "visitIRInlinedClosure:", [anIRInlinedClosure], smalltalk.IRInliningJSTranslator)}
  4679. }),
  4680. smalltalk.IRInliningJSTranslator);
  4681. smalltalk.addMethod(
  4682. "_visitIRInlinedIfFalse_",
  4683. smalltalk.method({
  4684. selector: "visitIRInlinedIfFalse:",
  4685. fn: function (anIRInlinedIfFalse){
  4686. var self=this;
  4687. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIf_with_((function(){
  4688. return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("! smalltalk.assert(");
  4689. _st(self)._visit_(_st(_st(anIRInlinedIfFalse)._instructions())._first());
  4690. return _st(_st(self)._stream())._nextPutAll_(")");
  4691. })}),(function(){
  4692. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfFalse)._instructions())._last());
  4693. })}));
  4694. return self}, self, "visitIRInlinedIfFalse:", [anIRInlinedIfFalse], smalltalk.IRInliningJSTranslator)}
  4695. }),
  4696. smalltalk.IRInliningJSTranslator);
  4697. smalltalk.addMethod(
  4698. "_visitIRInlinedIfNil_",
  4699. smalltalk.method({
  4700. selector: "visitIRInlinedIfNil:",
  4701. fn: function (anIRInlinedIfNil){
  4702. var self=this;
  4703. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIf_with_((function(){
  4704. return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("($receiver = ");
  4705. _st(self)._visit_(_st(_st(anIRInlinedIfNil)._instructions())._first());
  4706. return _st(_st(self)._stream())._nextPutAll_(") == nil || $receiver == undefined");
  4707. })}),(function(){
  4708. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfNil)._instructions())._last());
  4709. })}));
  4710. return self}, self, "visitIRInlinedIfNil:", [anIRInlinedIfNil], smalltalk.IRInliningJSTranslator)}
  4711. }),
  4712. smalltalk.IRInliningJSTranslator);
  4713. smalltalk.addMethod(
  4714. "_visitIRInlinedIfNilIfNotNil_",
  4715. smalltalk.method({
  4716. selector: "visitIRInlinedIfNilIfNotNil:",
  4717. fn: function (anIRInlinedIfNilIfNotNil){
  4718. var self=this;
  4719. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIfElse_with_with_((function(){
  4720. return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("($receiver = ");
  4721. _st(self)._visit_(_st(_st(anIRInlinedIfNilIfNotNil)._instructions())._first());
  4722. return _st(_st(self)._stream())._nextPutAll_(") == nil || $receiver == undefined");
  4723. })}),(function(){
  4724. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfNilIfNotNil)._instructions())._second());
  4725. })}),(function(){
  4726. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfNilIfNotNil)._instructions())._third());
  4727. })}));
  4728. return self}, self, "visitIRInlinedIfNilIfNotNil:", [anIRInlinedIfNilIfNotNil], smalltalk.IRInliningJSTranslator)}
  4729. }),
  4730. smalltalk.IRInliningJSTranslator);
  4731. smalltalk.addMethod(
  4732. "_visitIRInlinedIfTrue_",
  4733. smalltalk.method({
  4734. selector: "visitIRInlinedIfTrue:",
  4735. fn: function (anIRInlinedIfTrue){
  4736. var self=this;
  4737. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIf_with_((function(){
  4738. return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("smalltalk.assert(");
  4739. _st(self)._visit_(_st(_st(anIRInlinedIfTrue)._instructions())._first());
  4740. return _st(_st(self)._stream())._nextPutAll_(")");
  4741. })}),(function(){
  4742. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfTrue)._instructions())._last());
  4743. })}));
  4744. return self}, self, "visitIRInlinedIfTrue:", [anIRInlinedIfTrue], smalltalk.IRInliningJSTranslator)}
  4745. }),
  4746. smalltalk.IRInliningJSTranslator);
  4747. smalltalk.addMethod(
  4748. "_visitIRInlinedIfTrueIfFalse_",
  4749. smalltalk.method({
  4750. selector: "visitIRInlinedIfTrueIfFalse:",
  4751. fn: function (anIRInlinedIfTrueIfFalse){
  4752. var self=this;
  4753. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIfElse_with_with_((function(){
  4754. return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("smalltalk.assert(");
  4755. _st(self)._visit_(_st(_st(anIRInlinedIfTrueIfFalse)._instructions())._first());
  4756. return _st(_st(self)._stream())._nextPutAll_(")");
  4757. })}),(function(){
  4758. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfTrueIfFalse)._instructions())._second());
  4759. })}),(function(){
  4760. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfTrueIfFalse)._instructions())._third());
  4761. })}));
  4762. return self}, self, "visitIRInlinedIfTrueIfFalse:", [anIRInlinedIfTrueIfFalse], smalltalk.IRInliningJSTranslator)}
  4763. }),
  4764. smalltalk.IRInliningJSTranslator);
  4765. smalltalk.addMethod(
  4766. "_visitIRInlinedNonLocalReturn_",
  4767. smalltalk.method({
  4768. selector: "visitIRInlinedNonLocalReturn:",
  4769. fn: function (anIRInlinedReturn){
  4770. var self=this;
  4771. return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutStatementWith_((function(){
  4772. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedReturn)._instructions())._last());
  4773. })}));
  4774. _st(_st(self)._stream())._nextPutNonLocalReturnWith_((function(){
  4775. return smalltalk.withContext(function($ctx2) { })}));
  4776. return self}, self, "visitIRInlinedNonLocalReturn:", [anIRInlinedReturn], smalltalk.IRInliningJSTranslator)}
  4777. }),
  4778. smalltalk.IRInliningJSTranslator);
  4779. smalltalk.addMethod(
  4780. "_visitIRInlinedReturn_",
  4781. smalltalk.method({
  4782. selector: "visitIRInlinedReturn:",
  4783. fn: function (anIRInlinedReturn){
  4784. var self=this;
  4785. return smalltalk.withContext(function($ctx1) { _st(self)._visit_(_st(_st(anIRInlinedReturn)._instructions())._last());
  4786. return self}, self, "visitIRInlinedReturn:", [anIRInlinedReturn], smalltalk.IRInliningJSTranslator)}
  4787. }),
  4788. smalltalk.IRInliningJSTranslator);
  4789. smalltalk.addMethod(
  4790. "_visitIRInlinedSequence_",
  4791. smalltalk.method({
  4792. selector: "visitIRInlinedSequence:",
  4793. fn: function (anIRInlinedSequence){
  4794. var self=this;
  4795. return smalltalk.withContext(function($ctx1) { _st(_st(anIRInlinedSequence)._instructions())._do_((function(each){
  4796. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._stream())._nextPutStatementWith_((function(){
  4797. return smalltalk.withContext(function($ctx3) { return _st(self)._visit_(each);
  4798. })}));
  4799. })}));
  4800. return self}, self, "visitIRInlinedSequence:", [anIRInlinedSequence], smalltalk.IRInliningJSTranslator)}
  4801. }),
  4802. smalltalk.IRInliningJSTranslator);
  4803. smalltalk.addMethod(
  4804. "_import_",
  4805. smalltalk.method({
  4806. selector: "import:",
  4807. fn: function (aStream){
  4808. var self=this;
  4809. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$6,$5,$2;
  4810. $ctx1.locals.chunk=nil;
  4811. $ctx1.locals.result=nil;
  4812. $ctx1.locals.parser=nil;
  4813. $ctx1.locals.lastEmpty=nil;
  4814. $ctx1.locals.parser=_st((smalltalk.ChunkParser || ChunkParser))._on_(aStream);
  4815. $ctx1.locals.lastEmpty=false;
  4816. $1=(function(){
  4817. return smalltalk.withContext(function($ctx2) { $ctx1.locals.chunk=_st($ctx1.locals.parser)._nextChunk();
  4818. $ctx1.locals.chunk;
  4819. return _st($ctx1.locals.chunk)._isNil();
  4820. })});
  4821. $2=(function(){
  4822. return smalltalk.withContext(function($ctx2) { $3=_st($ctx1.locals.chunk)._isEmpty();
  4823. $4=(function(){
  4824. return smalltalk.withContext(function($ctx3) { $ctx1.locals.lastEmpty=true;
  4825. return $ctx1.locals.lastEmpty;
  4826. })});
  4827. $5=(function(){
  4828. return smalltalk.withContext(function($ctx3) { $ctx1.locals.result=_st(_st((smalltalk.Compiler || Compiler))._new())._evaluateExpression_($ctx1.locals.chunk);
  4829. $ctx1.locals.result;
  4830. $6=$ctx1.locals.lastEmpty;
  4831. if(smalltalk.assert($6)){
  4832. $ctx1.locals.lastEmpty=false;
  4833. $ctx1.locals.lastEmpty;
  4834. return _st($ctx1.locals.result)._scanFrom_($ctx1.locals.parser);
  4835. };
  4836. })});
  4837. return _st($3)._ifTrue_ifFalse_($4,$5);
  4838. })});
  4839. _st($1)._whileFalse_($2);
  4840. return self}, self, "import:", [aStream], smalltalk.Importer)}
  4841. }),
  4842. smalltalk.Importer);
  4843. smalltalk.addMethod(
  4844. "_contents",
  4845. smalltalk.method({
  4846. selector: "contents",
  4847. fn: function (){
  4848. var self=this;
  4849. return smalltalk.withContext(function($ctx1) { var $1;
  4850. $1=_st(self["@stream"])._contents();
  4851. return $1;
  4852. }, self, "contents", [], smalltalk.JSStream)}
  4853. }),
  4854. smalltalk.JSStream);
  4855. smalltalk.addMethod(
  4856. "_initialize",
  4857. smalltalk.method({
  4858. selector: "initialize",
  4859. fn: function (){
  4860. var self=this;
  4861. return smalltalk.withContext(function($ctx1) { smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  4862. self["@stream"]=_st("")._writeStream();
  4863. return self}, self, "initialize", [], smalltalk.JSStream)}
  4864. }),
  4865. smalltalk.JSStream);
  4866. smalltalk.addMethod(
  4867. "_lf",
  4868. smalltalk.method({
  4869. selector: "lf",
  4870. fn: function (){
  4871. var self=this;
  4872. return smalltalk.withContext(function($ctx1) { _st(self["@stream"])._lf();
  4873. return self}, self, "lf", [], smalltalk.JSStream)}
  4874. }),
  4875. smalltalk.JSStream);
  4876. smalltalk.addMethod(
  4877. "_nextPut_",
  4878. smalltalk.method({
  4879. selector: "nextPut:",
  4880. fn: function (aString){
  4881. var self=this;
  4882. return smalltalk.withContext(function($ctx1) { _st(self["@stream"])._nextPut_(aString);
  4883. return self}, self, "nextPut:", [aString], smalltalk.JSStream)}
  4884. }),
  4885. smalltalk.JSStream);
  4886. smalltalk.addMethod(
  4887. "_nextPutAll_",
  4888. smalltalk.method({
  4889. selector: "nextPutAll:",
  4890. fn: function (aString){
  4891. var self=this;
  4892. return smalltalk.withContext(function($ctx1) { _st(self["@stream"])._nextPutAll_(aString);
  4893. return self}, self, "nextPutAll:", [aString], smalltalk.JSStream)}
  4894. }),
  4895. smalltalk.JSStream);
  4896. smalltalk.addMethod(
  4897. "_nextPutAssignment",
  4898. smalltalk.method({
  4899. selector: "nextPutAssignment",
  4900. fn: function (){
  4901. var self=this;
  4902. return smalltalk.withContext(function($ctx1) { _st(self["@stream"])._nextPutAll_("=");
  4903. return self}, self, "nextPutAssignment", [], smalltalk.JSStream)}
  4904. }),
  4905. smalltalk.JSStream);
  4906. smalltalk.addMethod(
  4907. "_nextPutBlockContextFor_during_",
  4908. smalltalk.method({
  4909. selector: "nextPutBlockContextFor:during:",
  4910. fn: function (anIRClosure,aBlock){
  4911. var self=this;
  4912. return smalltalk.withContext(function($ctx1) { var $1,$2;
  4913. $1=self;
  4914. _st($1)._nextPutAll_(_st(_st("return smalltalk.withContext(function(").__comma(_st(_st(anIRClosure)._scope())._alias())).__comma(") { "));
  4915. $2=_st($1)._nextPutAll_(_st((smalltalk.String || String))._cr());
  4916. _st(aBlock)._value();
  4917. _st(self)._nextPutAll_("})");
  4918. return self}, self, "nextPutBlockContextFor:during:", [anIRClosure,aBlock], smalltalk.JSStream)}
  4919. }),
  4920. smalltalk.JSStream);
  4921. smalltalk.addMethod(
  4922. "_nextPutClosureWith_arguments_",
  4923. smalltalk.method({
  4924. selector: "nextPutClosureWith:arguments:",
  4925. fn: function (aBlock,anArray){
  4926. var self=this;
  4927. return smalltalk.withContext(function($ctx1) { var $1,$2;
  4928. _st(self["@stream"])._nextPutAll_("(function(");
  4929. _st(anArray)._do_separatedBy_((function(each){
  4930. return smalltalk.withContext(function($ctx2) { return _st(self["@stream"])._nextPutAll_(_st(each)._asVariableName());
  4931. })}),(function(){
  4932. return smalltalk.withContext(function($ctx2) { return _st(self["@stream"])._nextPut_(",");
  4933. })}));
  4934. $1=self["@stream"];
  4935. _st($1)._nextPutAll_("){");
  4936. $2=_st($1)._lf();
  4937. _st(aBlock)._value();
  4938. _st(self["@stream"])._nextPutAll_("})");
  4939. return self}, self, "nextPutClosureWith:arguments:", [aBlock,anArray], smalltalk.JSStream)}
  4940. }),
  4941. smalltalk.JSStream);
  4942. smalltalk.addMethod(
  4943. "_nextPutContextFor_during_",
  4944. smalltalk.method({
  4945. selector: "nextPutContextFor:during:",
  4946. fn: function (aMethod,aBlock){
  4947. var self=this;
  4948. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6;
  4949. $1=self;
  4950. _st($1)._nextPutAll_(_st(_st("return smalltalk.withContext(function(").__comma(_st(_st(aMethod)._scope())._alias())).__comma(") { "));
  4951. $2=_st($1)._nextPutAll_(_st((smalltalk.String || String))._cr());
  4952. _st(aBlock)._value();
  4953. $3=self;
  4954. _st($3)._nextPutAll_("}, self, ");
  4955. $4=_st($3)._nextPutAll_(_st(_st(_st(aMethod)._selector())._asJavascript()).__comma(", ["));
  4956. _st(_st(aMethod)._arguments())._do_separatedBy_((function(each){
  4957. return smalltalk.withContext(function($ctx2) { return _st(self)._nextPutAll_(_st(each)._asVariableName());
  4958. })}),(function(){
  4959. return smalltalk.withContext(function($ctx2) { return _st(self)._nextPutAll_(",");
  4960. })}));
  4961. $5=self;
  4962. _st($5)._nextPutAll_("], ");
  4963. _st($5)._nextPutAll_(_st(_st(aMethod)._theClass())._asJavascript());
  4964. $6=_st($5)._nextPutAll_(")");
  4965. return self}, self, "nextPutContextFor:during:", [aMethod,aBlock], smalltalk.JSStream)}
  4966. }),
  4967. smalltalk.JSStream);
  4968. smalltalk.addMethod(
  4969. "_nextPutFunctionWith_arguments_",
  4970. smalltalk.method({
  4971. selector: "nextPutFunctionWith:arguments:",
  4972. fn: function (aBlock,anArray){
  4973. var self=this;
  4974. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  4975. _st(self["@stream"])._nextPutAll_("fn: function(");
  4976. _st(anArray)._do_separatedBy_((function(each){
  4977. return smalltalk.withContext(function($ctx2) { return _st(self["@stream"])._nextPutAll_(_st(each)._asVariableName());
  4978. })}),(function(){
  4979. return smalltalk.withContext(function($ctx2) { return _st(self["@stream"])._nextPut_(",");
  4980. })}));
  4981. $1=self["@stream"];
  4982. _st($1)._nextPutAll_("){");
  4983. $2=_st($1)._lf();
  4984. $3=self["@stream"];
  4985. _st($3)._nextPutAll_("var self=this;");
  4986. $4=_st($3)._lf();
  4987. _st(aBlock)._value();
  4988. _st(self["@stream"])._nextPutAll_("}");
  4989. return self}, self, "nextPutFunctionWith:arguments:", [aBlock,anArray], smalltalk.JSStream)}
  4990. }),
  4991. smalltalk.JSStream);
  4992. smalltalk.addMethod(
  4993. "_nextPutIf_with_",
  4994. smalltalk.method({
  4995. selector: "nextPutIf:with:",
  4996. fn: function (aBlock,anotherBlock){
  4997. var self=this;
  4998. return smalltalk.withContext(function($ctx1) { var $1,$2;
  4999. _st(self["@stream"])._nextPutAll_("if(");
  5000. _st(aBlock)._value();
  5001. $1=self["@stream"];
  5002. _st($1)._nextPutAll_("){");
  5003. $2=_st($1)._lf();
  5004. _st(anotherBlock)._value();
  5005. _st(self["@stream"])._nextPutAll_("}");
  5006. return self}, self, "nextPutIf:with:", [aBlock,anotherBlock], smalltalk.JSStream)}
  5007. }),
  5008. smalltalk.JSStream);
  5009. smalltalk.addMethod(
  5010. "_nextPutIfElse_with_with_",
  5011. smalltalk.method({
  5012. selector: "nextPutIfElse:with:with:",
  5013. fn: function (aBlock,ifBlock,elseBlock){
  5014. var self=this;
  5015. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  5016. _st(self["@stream"])._nextPutAll_("if(");
  5017. _st(aBlock)._value();
  5018. $1=self["@stream"];
  5019. _st($1)._nextPutAll_("){");
  5020. $2=_st($1)._lf();
  5021. _st(ifBlock)._value();
  5022. $3=self["@stream"];
  5023. _st($3)._nextPutAll_("} else {");
  5024. $4=_st($3)._lf();
  5025. _st(elseBlock)._value();
  5026. _st(self["@stream"])._nextPutAll_("}");
  5027. return self}, self, "nextPutIfElse:with:with:", [aBlock,ifBlock,elseBlock], smalltalk.JSStream)}
  5028. }),
  5029. smalltalk.JSStream);
  5030. smalltalk.addMethod(
  5031. "_nextPutMethodDeclaration_with_",
  5032. smalltalk.method({
  5033. selector: "nextPutMethodDeclaration:with:",
  5034. fn: function (aMethod,aBlock){
  5035. var self=this;
  5036. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6;
  5037. $1=self["@stream"];
  5038. _st($1)._nextPutAll_("smalltalk.method({");
  5039. _st($1)._lf();
  5040. _st($1)._nextPutAll_(_st(_st("selector: \x22").__comma(_st(aMethod)._selector())).__comma("\x22,"));
  5041. _st($1)._lf();
  5042. _st($1)._nextPutAll_(_st(_st("source: ").__comma(_st(_st(aMethod)._source())._asJavascript())).__comma(","));
  5043. $2=_st($1)._lf();
  5044. _st(aBlock)._value();
  5045. $3=self["@stream"];
  5046. _st($3)._nextPutAll_(_st(_st(",").__comma(_st((smalltalk.String || String))._lf())).__comma("messageSends: "));
  5047. _st($3)._nextPutAll_(_st(_st(_st(_st(aMethod)._messageSends())._asArray())._asJavascript()).__comma(","));
  5048. _st($3)._lf();
  5049. _st($3)._nextPutAll_(_st(_st("args: ").__comma(_st(_st(_st(_st(aMethod)._arguments())._collect_((function(each){
  5050. return smalltalk.withContext(function($ctx2) { return _st(each)._value();
  5051. })})))._asArray())._asJavascript())).__comma(","));
  5052. _st($3)._lf();
  5053. $4=_st($3)._nextPutAll_("referencedClasses: [");
  5054. _st(_st(aMethod)._classReferences())._do_separatedBy_((function(each){
  5055. return smalltalk.withContext(function($ctx2) { return _st(self["@stream"])._nextPutAll_(_st(each)._asJavascript());
  5056. })}),(function(){
  5057. return smalltalk.withContext(function($ctx2) { return _st(self["@stream"])._nextPutAll_(",");
  5058. })}));
  5059. $5=self["@stream"];
  5060. _st($5)._nextPutAll_("]");
  5061. $6=_st($5)._nextPutAll_("})");
  5062. return self}, self, "nextPutMethodDeclaration:with:", [aMethod,aBlock], smalltalk.JSStream)}
  5063. }),
  5064. smalltalk.JSStream);
  5065. smalltalk.addMethod(
  5066. "_nextPutNonLocalReturnHandlingWith_",
  5067. smalltalk.method({
  5068. selector: "nextPutNonLocalReturnHandlingWith:",
  5069. fn: function (aBlock){
  5070. var self=this;
  5071. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  5072. $1=self["@stream"];
  5073. _st($1)._nextPutAll_("var $early={};");
  5074. _st($1)._lf();
  5075. _st($1)._nextPutAll_("try {");
  5076. $2=_st($1)._lf();
  5077. _st(aBlock)._value();
  5078. $3=self["@stream"];
  5079. _st($3)._nextPutAll_("}");
  5080. _st($3)._lf();
  5081. _st($3)._nextPutAll_("catch(e) {if(e===$early)return e[0]; throw e}");
  5082. $4=_st($3)._lf();
  5083. return self}, self, "nextPutNonLocalReturnHandlingWith:", [aBlock], smalltalk.JSStream)}
  5084. }),
  5085. smalltalk.JSStream);
  5086. smalltalk.addMethod(
  5087. "_nextPutNonLocalReturnWith_",
  5088. smalltalk.method({
  5089. selector: "nextPutNonLocalReturnWith:",
  5090. fn: function (aBlock){
  5091. var self=this;
  5092. return smalltalk.withContext(function($ctx1) { _st(self["@stream"])._nextPutAll_("throw $early=[");
  5093. _st(aBlock)._value();
  5094. _st(self["@stream"])._nextPutAll_("]");
  5095. return self}, self, "nextPutNonLocalReturnWith:", [aBlock], smalltalk.JSStream)}
  5096. }),
  5097. smalltalk.JSStream);
  5098. smalltalk.addMethod(
  5099. "_nextPutReturn",
  5100. smalltalk.method({
  5101. selector: "nextPutReturn",
  5102. fn: function (){
  5103. var self=this;
  5104. return smalltalk.withContext(function($ctx1) { _st(self["@stream"])._nextPutAll_("return ");
  5105. return self}, self, "nextPutReturn", [], smalltalk.JSStream)}
  5106. }),
  5107. smalltalk.JSStream);
  5108. smalltalk.addMethod(
  5109. "_nextPutReturnWith_",
  5110. smalltalk.method({
  5111. selector: "nextPutReturnWith:",
  5112. fn: function (aBlock){
  5113. var self=this;
  5114. return smalltalk.withContext(function($ctx1) { _st(self)._nextPutReturn();
  5115. _st(aBlock)._value();
  5116. return self}, self, "nextPutReturnWith:", [aBlock], smalltalk.JSStream)}
  5117. }),
  5118. smalltalk.JSStream);
  5119. smalltalk.addMethod(
  5120. "_nextPutSequenceWith_",
  5121. smalltalk.method({
  5122. selector: "nextPutSequenceWith:",
  5123. fn: function (aBlock){
  5124. var self=this;
  5125. return smalltalk.withContext(function($ctx1) { _st(aBlock)._value();
  5126. return self}, self, "nextPutSequenceWith:", [aBlock], smalltalk.JSStream)}
  5127. }),
  5128. smalltalk.JSStream);
  5129. smalltalk.addMethod(
  5130. "_nextPutStatement_with_",
  5131. smalltalk.method({
  5132. selector: "nextPutStatement:with:",
  5133. fn: function (anInteger,aBlock){
  5134. var self=this;
  5135. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  5136. $1=self["@stream"];
  5137. _st($1)._nextPutAll_(_st(_st("case ").__comma(_st(anInteger)._asString())).__comma(":"));
  5138. $2=_st($1)._lf();
  5139. _st(self)._nextPutStatementWith_(aBlock);
  5140. $3=self["@stream"];
  5141. _st($3)._nextPutAll_(_st(_st("smalltalk.thisContext.pc=").__comma(_st(_st(anInteger).__plus((1)))._asString())).__comma(";"));
  5142. $4=_st($3)._lf();
  5143. return self}, self, "nextPutStatement:with:", [anInteger,aBlock], smalltalk.JSStream)}
  5144. }),
  5145. smalltalk.JSStream);
  5146. smalltalk.addMethod(
  5147. "_nextPutStatementWith_",
  5148. smalltalk.method({
  5149. selector: "nextPutStatementWith:",
  5150. fn: function (aBlock){
  5151. var self=this;
  5152. return smalltalk.withContext(function($ctx1) { var $1,$2;
  5153. _st(aBlock)._value();
  5154. $1=self["@stream"];
  5155. _st($1)._nextPutAll_(";");
  5156. $2=_st($1)._lf();
  5157. return self}, self, "nextPutStatementWith:", [aBlock], smalltalk.JSStream)}
  5158. }),
  5159. smalltalk.JSStream);
  5160. smalltalk.addMethod(
  5161. "_nextPutVar_",
  5162. smalltalk.method({
  5163. selector: "nextPutVar:",
  5164. fn: function (aString){
  5165. var self=this;
  5166. return smalltalk.withContext(function($ctx1) { var $1,$2;
  5167. $1=self["@stream"];
  5168. _st($1)._nextPutAll_(_st(_st("var ").__comma(aString)).__comma(";"));
  5169. $2=_st($1)._lf();
  5170. return self}, self, "nextPutVar:", [aString], smalltalk.JSStream)}
  5171. }),
  5172. smalltalk.JSStream);
  5173. smalltalk.addMethod(
  5174. "_nextPutVars_",
  5175. smalltalk.method({
  5176. selector: "nextPutVars:",
  5177. fn: function (aCollection){
  5178. var self=this;
  5179. return smalltalk.withContext(function($ctx1) { var $1,$2;
  5180. _st(self["@stream"])._nextPutAll_("var ");
  5181. _st(aCollection)._do_separatedBy_((function(each){
  5182. return smalltalk.withContext(function($ctx2) { return _st(self["@stream"])._nextPutAll_(each);
  5183. })}),(function(){
  5184. return smalltalk.withContext(function($ctx2) { return _st(self["@stream"])._nextPutAll_(",");
  5185. })}));
  5186. $1=self["@stream"];
  5187. _st($1)._nextPutAll_(";");
  5188. $2=_st($1)._lf();
  5189. return self}, self, "nextPutVars:", [aCollection], smalltalk.JSStream)}
  5190. }),
  5191. smalltalk.JSStream);
  5192. smalltalk.addMethod(
  5193. "_addArg_",
  5194. smalltalk.method({
  5195. selector: "addArg:",
  5196. fn: function (aString){
  5197. var self=this;
  5198. return smalltalk.withContext(function($ctx1) { _st(_st(self)._args())._at_put_(aString,_st((smalltalk.ArgVar || ArgVar))._on_(aString));
  5199. _st(_st(_st(self)._args())._at_(aString))._scope_(self);
  5200. return self}, self, "addArg:", [aString], smalltalk.LexicalScope)}
  5201. }),
  5202. smalltalk.LexicalScope);
  5203. smalltalk.addMethod(
  5204. "_addTemp_",
  5205. smalltalk.method({
  5206. selector: "addTemp:",
  5207. fn: function (aString){
  5208. var self=this;
  5209. return smalltalk.withContext(function($ctx1) { _st(_st(self)._temps())._at_put_(aString,_st((smalltalk.TempVar || TempVar))._on_(aString));
  5210. _st(_st(_st(self)._temps())._at_(aString))._scope_(self);
  5211. return self}, self, "addTemp:", [aString], smalltalk.LexicalScope)}
  5212. }),
  5213. smalltalk.LexicalScope);
  5214. smalltalk.addMethod(
  5215. "_alias",
  5216. smalltalk.method({
  5217. selector: "alias",
  5218. fn: function (){
  5219. var self=this;
  5220. return smalltalk.withContext(function($ctx1) { var $1;
  5221. $1=_st("$ctx").__comma(_st(_st(self)._scopeLevel())._asString());
  5222. return $1;
  5223. }, self, "alias", [], smalltalk.LexicalScope)}
  5224. }),
  5225. smalltalk.LexicalScope);
  5226. smalltalk.addMethod(
  5227. "_allVariableNames",
  5228. smalltalk.method({
  5229. selector: "allVariableNames",
  5230. fn: function (){
  5231. var self=this;
  5232. return smalltalk.withContext(function($ctx1) { var $1;
  5233. $1=_st(_st(_st(self)._args())._keys()).__comma(_st(_st(self)._temps())._keys());
  5234. return $1;
  5235. }, self, "allVariableNames", [], smalltalk.LexicalScope)}
  5236. }),
  5237. smalltalk.LexicalScope);
  5238. smalltalk.addMethod(
  5239. "_args",
  5240. smalltalk.method({
  5241. selector: "args",
  5242. fn: function (){
  5243. var self=this;
  5244. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5245. $2=self["@args"];
  5246. if(($receiver = $2) == nil || $receiver == undefined){
  5247. self["@args"]=_st((smalltalk.Dictionary || Dictionary))._new();
  5248. $1=self["@args"];
  5249. } else {
  5250. $1=$2;
  5251. };
  5252. return $1;
  5253. }, self, "args", [], smalltalk.LexicalScope)}
  5254. }),
  5255. smalltalk.LexicalScope);
  5256. smalltalk.addMethod(
  5257. "_bindingFor_",
  5258. smalltalk.method({
  5259. selector: "bindingFor:",
  5260. fn: function (aStringOrNode){
  5261. var self=this;
  5262. return smalltalk.withContext(function($ctx1) { var $1;
  5263. $1=_st(_st(self)._pseudoVars())._at_ifAbsent_(_st(aStringOrNode)._value(),(function(){
  5264. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._args())._at_ifAbsent_(_st(aStringOrNode)._value(),(function(){
  5265. return smalltalk.withContext(function($ctx3) { return _st(_st(self)._temps())._at_ifAbsent_(_st(aStringOrNode)._value(),(function(){
  5266. return smalltalk.withContext(function($ctx4) { return nil;
  5267. })}));
  5268. })}));
  5269. })}));
  5270. return $1;
  5271. }, self, "bindingFor:", [aStringOrNode], smalltalk.LexicalScope)}
  5272. }),
  5273. smalltalk.LexicalScope);
  5274. smalltalk.addMethod(
  5275. "_canInlineNonLocalReturns",
  5276. smalltalk.method({
  5277. selector: "canInlineNonLocalReturns",
  5278. fn: function (){
  5279. var self=this;
  5280. return smalltalk.withContext(function($ctx1) { var $1;
  5281. $1=_st(_st(self)._isInlined())._and_((function(){
  5282. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._outerScope())._canInlineNonLocalReturns();
  5283. })}));
  5284. return $1;
  5285. }, self, "canInlineNonLocalReturns", [], smalltalk.LexicalScope)}
  5286. }),
  5287. smalltalk.LexicalScope);
  5288. smalltalk.addMethod(
  5289. "_instruction",
  5290. smalltalk.method({
  5291. selector: "instruction",
  5292. fn: function (){
  5293. var self=this;
  5294. return smalltalk.withContext(function($ctx1) { var $1;
  5295. $1=self["@instruction"];
  5296. return $1;
  5297. }, self, "instruction", [], smalltalk.LexicalScope)}
  5298. }),
  5299. smalltalk.LexicalScope);
  5300. smalltalk.addMethod(
  5301. "_instruction_",
  5302. smalltalk.method({
  5303. selector: "instruction:",
  5304. fn: function (anIRInstruction){
  5305. var self=this;
  5306. return smalltalk.withContext(function($ctx1) { self["@instruction"]=anIRInstruction;
  5307. return self}, self, "instruction:", [anIRInstruction], smalltalk.LexicalScope)}
  5308. }),
  5309. smalltalk.LexicalScope);
  5310. smalltalk.addMethod(
  5311. "_isBlockScope",
  5312. smalltalk.method({
  5313. selector: "isBlockScope",
  5314. fn: function (){
  5315. var self=this;
  5316. return smalltalk.withContext(function($ctx1) { var $1;
  5317. $1=_st(_st(self)._isMethodScope())._not();
  5318. return $1;
  5319. }, self, "isBlockScope", [], smalltalk.LexicalScope)}
  5320. }),
  5321. smalltalk.LexicalScope);
  5322. smalltalk.addMethod(
  5323. "_isInlined",
  5324. smalltalk.method({
  5325. selector: "isInlined",
  5326. fn: function (){
  5327. var self=this;
  5328. return smalltalk.withContext(function($ctx1) { var $1;
  5329. $1=_st(_st(_st(self)._instruction())._notNil())._and_((function(){
  5330. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._instruction())._isInlined();
  5331. })}));
  5332. return $1;
  5333. }, self, "isInlined", [], smalltalk.LexicalScope)}
  5334. }),
  5335. smalltalk.LexicalScope);
  5336. smalltalk.addMethod(
  5337. "_isMethodScope",
  5338. smalltalk.method({
  5339. selector: "isMethodScope",
  5340. fn: function (){
  5341. var self=this;
  5342. return smalltalk.withContext(function($ctx1) { return false;
  5343. }, self, "isMethodScope", [], smalltalk.LexicalScope)}
  5344. }),
  5345. smalltalk.LexicalScope);
  5346. smalltalk.addMethod(
  5347. "_lookupVariable_",
  5348. smalltalk.method({
  5349. selector: "lookupVariable:",
  5350. fn: function (aNode){
  5351. var self=this;
  5352. return smalltalk.withContext(function($ctx1) { var $1,$3,$2,$4;
  5353. $ctx1.locals.lookup=nil;
  5354. $ctx1.locals.lookup=_st(self)._bindingFor_(aNode);
  5355. $1=$ctx1.locals.lookup;
  5356. $2=(function(){
  5357. return smalltalk.withContext(function($ctx2) { $3=_st(self)._outerScope();
  5358. if(($receiver = $3) == nil || $receiver == undefined){
  5359. $ctx1.locals.lookup=$3;
  5360. } else {
  5361. $ctx1.locals.lookup=_st(_st(self)._outerScope())._lookupVariable_(aNode);
  5362. };
  5363. return $ctx1.locals.lookup;
  5364. })});
  5365. _st($1)._ifNil_($2);
  5366. $4=$ctx1.locals.lookup;
  5367. return $4;
  5368. }, self, "lookupVariable:", [aNode], smalltalk.LexicalScope)}
  5369. }),
  5370. smalltalk.LexicalScope);
  5371. smalltalk.addMethod(
  5372. "_methodScope",
  5373. smalltalk.method({
  5374. selector: "methodScope",
  5375. fn: function (){
  5376. var self=this;
  5377. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5378. $2=_st(self)._outerScope();
  5379. if(($receiver = $2) == nil || $receiver == undefined){
  5380. $1=$2;
  5381. } else {
  5382. $1=_st(_st(self)._outerScope())._methodScope();
  5383. };
  5384. return $1;
  5385. }, self, "methodScope", [], smalltalk.LexicalScope)}
  5386. }),
  5387. smalltalk.LexicalScope);
  5388. smalltalk.addMethod(
  5389. "_node",
  5390. smalltalk.method({
  5391. selector: "node",
  5392. fn: function (){
  5393. var self=this;
  5394. return smalltalk.withContext(function($ctx1) { var $1;
  5395. $1=self["@node"];
  5396. return $1;
  5397. }, self, "node", [], smalltalk.LexicalScope)}
  5398. }),
  5399. smalltalk.LexicalScope);
  5400. smalltalk.addMethod(
  5401. "_node_",
  5402. smalltalk.method({
  5403. selector: "node:",
  5404. fn: function (aNode){
  5405. var self=this;
  5406. return smalltalk.withContext(function($ctx1) { self["@node"]=aNode;
  5407. return self}, self, "node:", [aNode], smalltalk.LexicalScope)}
  5408. }),
  5409. smalltalk.LexicalScope);
  5410. smalltalk.addMethod(
  5411. "_outerScope",
  5412. smalltalk.method({
  5413. selector: "outerScope",
  5414. fn: function (){
  5415. var self=this;
  5416. return smalltalk.withContext(function($ctx1) { var $1;
  5417. $1=self["@outerScope"];
  5418. return $1;
  5419. }, self, "outerScope", [], smalltalk.LexicalScope)}
  5420. }),
  5421. smalltalk.LexicalScope);
  5422. smalltalk.addMethod(
  5423. "_outerScope_",
  5424. smalltalk.method({
  5425. selector: "outerScope:",
  5426. fn: function (aLexicalScope){
  5427. var self=this;
  5428. return smalltalk.withContext(function($ctx1) { self["@outerScope"]=aLexicalScope;
  5429. return self}, self, "outerScope:", [aLexicalScope], smalltalk.LexicalScope)}
  5430. }),
  5431. smalltalk.LexicalScope);
  5432. smalltalk.addMethod(
  5433. "_pseudoVars",
  5434. smalltalk.method({
  5435. selector: "pseudoVars",
  5436. fn: function (){
  5437. var self=this;
  5438. return smalltalk.withContext(function($ctx1) { var $1;
  5439. $1=_st(_st(self)._methodScope())._pseudoVars();
  5440. return $1;
  5441. }, self, "pseudoVars", [], smalltalk.LexicalScope)}
  5442. }),
  5443. smalltalk.LexicalScope);
  5444. smalltalk.addMethod(
  5445. "_scopeLevel",
  5446. smalltalk.method({
  5447. selector: "scopeLevel",
  5448. fn: function (){
  5449. var self=this;
  5450. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  5451. $1=_st(self)._outerScope();
  5452. if(($receiver = $1) == nil || $receiver == undefined){
  5453. return (1);
  5454. } else {
  5455. $1;
  5456. };
  5457. $2=_st(self)._isInlined();
  5458. if(smalltalk.assert($2)){
  5459. $3=_st(_st(self)._outerScope())._scopeLevel();
  5460. return $3;
  5461. };
  5462. $4=_st(_st(_st(self)._outerScope())._scopeLevel()).__plus((1));
  5463. return $4;
  5464. }, self, "scopeLevel", [], smalltalk.LexicalScope)}
  5465. }),
  5466. smalltalk.LexicalScope);
  5467. smalltalk.addMethod(
  5468. "_temps",
  5469. smalltalk.method({
  5470. selector: "temps",
  5471. fn: function (){
  5472. var self=this;
  5473. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5474. $2=self["@temps"];
  5475. if(($receiver = $2) == nil || $receiver == undefined){
  5476. self["@temps"]=_st((smalltalk.Dictionary || Dictionary))._new();
  5477. $1=self["@temps"];
  5478. } else {
  5479. $1=$2;
  5480. };
  5481. return $1;
  5482. }, self, "temps", [], smalltalk.LexicalScope)}
  5483. }),
  5484. smalltalk.LexicalScope);
  5485. smalltalk.addMethod(
  5486. "_addIVar_",
  5487. smalltalk.method({
  5488. selector: "addIVar:",
  5489. fn: function (aString){
  5490. var self=this;
  5491. return smalltalk.withContext(function($ctx1) { _st(_st(self)._iVars())._at_put_(aString,_st((smalltalk.InstanceVar || InstanceVar))._on_(aString));
  5492. _st(_st(_st(self)._iVars())._at_(aString))._scope_(self);
  5493. return self}, self, "addIVar:", [aString], smalltalk.MethodLexicalScope)}
  5494. }),
  5495. smalltalk.MethodLexicalScope);
  5496. smalltalk.addMethod(
  5497. "_addNonLocalReturn_",
  5498. smalltalk.method({
  5499. selector: "addNonLocalReturn:",
  5500. fn: function (aScope){
  5501. var self=this;
  5502. return smalltalk.withContext(function($ctx1) { _st(_st(self)._nonLocalReturns())._add_(aScope);
  5503. return self}, self, "addNonLocalReturn:", [aScope], smalltalk.MethodLexicalScope)}
  5504. }),
  5505. smalltalk.MethodLexicalScope);
  5506. smalltalk.addMethod(
  5507. "_allVariableNames",
  5508. smalltalk.method({
  5509. selector: "allVariableNames",
  5510. fn: function (){
  5511. var self=this;
  5512. return smalltalk.withContext(function($ctx1) { var $1;
  5513. $1=_st(smalltalk.LexicalScope.fn.prototype._allVariableNames.apply(_st(self), [])).__comma(_st(_st(self)._iVars())._keys());
  5514. return $1;
  5515. }, self, "allVariableNames", [], smalltalk.MethodLexicalScope)}
  5516. }),
  5517. smalltalk.MethodLexicalScope);
  5518. smalltalk.addMethod(
  5519. "_bindingFor_",
  5520. smalltalk.method({
  5521. selector: "bindingFor:",
  5522. fn: function (aNode){
  5523. var self=this;
  5524. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5525. $2=smalltalk.LexicalScope.fn.prototype._bindingFor_.apply(_st(self), [aNode]);
  5526. if(($receiver = $2) == nil || $receiver == undefined){
  5527. $1=_st(_st(self)._iVars())._at_ifAbsent_(_st(aNode)._value(),(function(){
  5528. return smalltalk.withContext(function($ctx2) { return nil;
  5529. })}));
  5530. } else {
  5531. $1=$2;
  5532. };
  5533. return $1;
  5534. }, self, "bindingFor:", [aNode], smalltalk.MethodLexicalScope)}
  5535. }),
  5536. smalltalk.MethodLexicalScope);
  5537. smalltalk.addMethod(
  5538. "_canInlineNonLocalReturns",
  5539. smalltalk.method({
  5540. selector: "canInlineNonLocalReturns",
  5541. fn: function (){
  5542. var self=this;
  5543. return smalltalk.withContext(function($ctx1) { return true;
  5544. }, self, "canInlineNonLocalReturns", [], smalltalk.MethodLexicalScope)}
  5545. }),
  5546. smalltalk.MethodLexicalScope);
  5547. smalltalk.addMethod(
  5548. "_hasLocalReturn",
  5549. smalltalk.method({
  5550. selector: "hasLocalReturn",
  5551. fn: function (){
  5552. var self=this;
  5553. return smalltalk.withContext(function($ctx1) { var $1;
  5554. $1=_st(self)._localReturn();
  5555. return $1;
  5556. }, self, "hasLocalReturn", [], smalltalk.MethodLexicalScope)}
  5557. }),
  5558. smalltalk.MethodLexicalScope);
  5559. smalltalk.addMethod(
  5560. "_hasNonLocalReturn",
  5561. smalltalk.method({
  5562. selector: "hasNonLocalReturn",
  5563. fn: function (){
  5564. var self=this;
  5565. return smalltalk.withContext(function($ctx1) { var $1;
  5566. $1=_st(_st(self)._nonLocalReturns())._notEmpty();
  5567. return $1;
  5568. }, self, "hasNonLocalReturn", [], smalltalk.MethodLexicalScope)}
  5569. }),
  5570. smalltalk.MethodLexicalScope);
  5571. smalltalk.addMethod(
  5572. "_iVars",
  5573. smalltalk.method({
  5574. selector: "iVars",
  5575. fn: function (){
  5576. var self=this;
  5577. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5578. $2=self["@iVars"];
  5579. if(($receiver = $2) == nil || $receiver == undefined){
  5580. self["@iVars"]=_st((smalltalk.Dictionary || Dictionary))._new();
  5581. $1=self["@iVars"];
  5582. } else {
  5583. $1=$2;
  5584. };
  5585. return $1;
  5586. }, self, "iVars", [], smalltalk.MethodLexicalScope)}
  5587. }),
  5588. smalltalk.MethodLexicalScope);
  5589. smalltalk.addMethod(
  5590. "_isMethodScope",
  5591. smalltalk.method({
  5592. selector: "isMethodScope",
  5593. fn: function (){
  5594. var self=this;
  5595. return smalltalk.withContext(function($ctx1) { return true;
  5596. }, self, "isMethodScope", [], smalltalk.MethodLexicalScope)}
  5597. }),
  5598. smalltalk.MethodLexicalScope);
  5599. smalltalk.addMethod(
  5600. "_localReturn",
  5601. smalltalk.method({
  5602. selector: "localReturn",
  5603. fn: function (){
  5604. var self=this;
  5605. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5606. $2=self["@localReturn"];
  5607. if(($receiver = $2) == nil || $receiver == undefined){
  5608. $1=false;
  5609. } else {
  5610. $1=$2;
  5611. };
  5612. return $1;
  5613. }, self, "localReturn", [], smalltalk.MethodLexicalScope)}
  5614. }),
  5615. smalltalk.MethodLexicalScope);
  5616. smalltalk.addMethod(
  5617. "_localReturn_",
  5618. smalltalk.method({
  5619. selector: "localReturn:",
  5620. fn: function (aBoolean){
  5621. var self=this;
  5622. return smalltalk.withContext(function($ctx1) { self["@localReturn"]=aBoolean;
  5623. return self}, self, "localReturn:", [aBoolean], smalltalk.MethodLexicalScope)}
  5624. }),
  5625. smalltalk.MethodLexicalScope);
  5626. smalltalk.addMethod(
  5627. "_methodScope",
  5628. smalltalk.method({
  5629. selector: "methodScope",
  5630. fn: function (){
  5631. var self=this;
  5632. return smalltalk.withContext(function($ctx1) { var $1;
  5633. $1=self;
  5634. return $1;
  5635. }, self, "methodScope", [], smalltalk.MethodLexicalScope)}
  5636. }),
  5637. smalltalk.MethodLexicalScope);
  5638. smalltalk.addMethod(
  5639. "_nonLocalReturns",
  5640. smalltalk.method({
  5641. selector: "nonLocalReturns",
  5642. fn: function (){
  5643. var self=this;
  5644. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5645. $2=self["@nonLocalReturns"];
  5646. if(($receiver = $2) == nil || $receiver == undefined){
  5647. self["@nonLocalReturns"]=_st((smalltalk.OrderedCollection || OrderedCollection))._new();
  5648. $1=self["@nonLocalReturns"];
  5649. } else {
  5650. $1=$2;
  5651. };
  5652. return $1;
  5653. }, self, "nonLocalReturns", [], smalltalk.MethodLexicalScope)}
  5654. }),
  5655. smalltalk.MethodLexicalScope);
  5656. smalltalk.addMethod(
  5657. "_pseudoVars",
  5658. smalltalk.method({
  5659. selector: "pseudoVars",
  5660. fn: function (){
  5661. var self=this;
  5662. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  5663. $1=self["@pseudoVars"];
  5664. if(($receiver = $1) == nil || $receiver == undefined){
  5665. self["@pseudoVars"]=_st((smalltalk.Dictionary || Dictionary))._new();
  5666. self["@pseudoVars"];
  5667. _st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._pseudoVariableNames())._do_((function(each){
  5668. return smalltalk.withContext(function($ctx2) { $2=_st((smalltalk.PseudoVar || PseudoVar))._on_(each);
  5669. _st($2)._scope_(_st(self)._methodScope());
  5670. $3=_st($2)._yourself();
  5671. return _st(self["@pseudoVars"])._at_put_(each,$3);
  5672. })}));
  5673. } else {
  5674. $1;
  5675. };
  5676. $4=self["@pseudoVars"];
  5677. return $4;
  5678. }, self, "pseudoVars", [], smalltalk.MethodLexicalScope)}
  5679. }),
  5680. smalltalk.MethodLexicalScope);
  5681. smalltalk.addMethod(
  5682. "_removeNonLocalReturn_",
  5683. smalltalk.method({
  5684. selector: "removeNonLocalReturn:",
  5685. fn: function (aScope){
  5686. var self=this;
  5687. return smalltalk.withContext(function($ctx1) { _st(_st(self)._nonLocalReturns())._remove_ifAbsent_(aScope,(function(){
  5688. return smalltalk.withContext(function($ctx2) { })}));
  5689. return self}, self, "removeNonLocalReturn:", [aScope], smalltalk.MethodLexicalScope)}
  5690. }),
  5691. smalltalk.MethodLexicalScope);
  5692. smalltalk.addMethod(
  5693. "_unknownVariables",
  5694. smalltalk.method({
  5695. selector: "unknownVariables",
  5696. fn: function (){
  5697. var self=this;
  5698. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5699. $2=self["@unknownVariables"];
  5700. if(($receiver = $2) == nil || $receiver == undefined){
  5701. self["@unknownVariables"]=_st((smalltalk.OrderedCollection || OrderedCollection))._new();
  5702. $1=self["@unknownVariables"];
  5703. } else {
  5704. $1=$2;
  5705. };
  5706. return $1;
  5707. }, self, "unknownVariables", [], smalltalk.MethodLexicalScope)}
  5708. }),
  5709. smalltalk.MethodLexicalScope);
  5710. smalltalk.addMethod(
  5711. "_accept_",
  5712. smalltalk.method({
  5713. selector: "accept:",
  5714. fn: function (aVisitor){
  5715. var self=this;
  5716. return smalltalk.withContext(function($ctx1) { var $1;
  5717. $1=_st(aVisitor)._visitNode_(self);
  5718. return $1;
  5719. }, self, "accept:", [aVisitor], smalltalk.Node)}
  5720. }),
  5721. smalltalk.Node);
  5722. smalltalk.addMethod(
  5723. "_addNode_",
  5724. smalltalk.method({
  5725. selector: "addNode:",
  5726. fn: function (aNode){
  5727. var self=this;
  5728. return smalltalk.withContext(function($ctx1) { _st(_st(self)._nodes())._add_(aNode);
  5729. return self}, self, "addNode:", [aNode], smalltalk.Node)}
  5730. }),
  5731. smalltalk.Node);
  5732. smalltalk.addMethod(
  5733. "_isAssignmentNode",
  5734. smalltalk.method({
  5735. selector: "isAssignmentNode",
  5736. fn: function (){
  5737. var self=this;
  5738. return smalltalk.withContext(function($ctx1) { return false;
  5739. }, self, "isAssignmentNode", [], smalltalk.Node)}
  5740. }),
  5741. smalltalk.Node);
  5742. smalltalk.addMethod(
  5743. "_isBlockNode",
  5744. smalltalk.method({
  5745. selector: "isBlockNode",
  5746. fn: function (){
  5747. var self=this;
  5748. return smalltalk.withContext(function($ctx1) { return false;
  5749. }, self, "isBlockNode", [], smalltalk.Node)}
  5750. }),
  5751. smalltalk.Node);
  5752. smalltalk.addMethod(
  5753. "_isBlockSequenceNode",
  5754. smalltalk.method({
  5755. selector: "isBlockSequenceNode",
  5756. fn: function (){
  5757. var self=this;
  5758. return smalltalk.withContext(function($ctx1) { return false;
  5759. }, self, "isBlockSequenceNode", [], smalltalk.Node)}
  5760. }),
  5761. smalltalk.Node);
  5762. smalltalk.addMethod(
  5763. "_isImmutable",
  5764. smalltalk.method({
  5765. selector: "isImmutable",
  5766. fn: function (){
  5767. var self=this;
  5768. return smalltalk.withContext(function($ctx1) { return false;
  5769. }, self, "isImmutable", [], smalltalk.Node)}
  5770. }),
  5771. smalltalk.Node);
  5772. smalltalk.addMethod(
  5773. "_isReturnNode",
  5774. smalltalk.method({
  5775. selector: "isReturnNode",
  5776. fn: function (){
  5777. var self=this;
  5778. return smalltalk.withContext(function($ctx1) { return false;
  5779. }, self, "isReturnNode", [], smalltalk.Node)}
  5780. }),
  5781. smalltalk.Node);
  5782. smalltalk.addMethod(
  5783. "_isSendNode",
  5784. smalltalk.method({
  5785. selector: "isSendNode",
  5786. fn: function (){
  5787. var self=this;
  5788. return smalltalk.withContext(function($ctx1) { return false;
  5789. }, self, "isSendNode", [], smalltalk.Node)}
  5790. }),
  5791. smalltalk.Node);
  5792. smalltalk.addMethod(
  5793. "_isValueNode",
  5794. smalltalk.method({
  5795. selector: "isValueNode",
  5796. fn: function (){
  5797. var self=this;
  5798. return smalltalk.withContext(function($ctx1) { return false;
  5799. }, self, "isValueNode", [], smalltalk.Node)}
  5800. }),
  5801. smalltalk.Node);
  5802. smalltalk.addMethod(
  5803. "_nodes",
  5804. smalltalk.method({
  5805. selector: "nodes",
  5806. fn: function (){
  5807. var self=this;
  5808. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5809. $2=self["@nodes"];
  5810. if(($receiver = $2) == nil || $receiver == undefined){
  5811. self["@nodes"]=_st((smalltalk.Array || Array))._new();
  5812. $1=self["@nodes"];
  5813. } else {
  5814. $1=$2;
  5815. };
  5816. return $1;
  5817. }, self, "nodes", [], smalltalk.Node)}
  5818. }),
  5819. smalltalk.Node);
  5820. smalltalk.addMethod(
  5821. "_nodes_",
  5822. smalltalk.method({
  5823. selector: "nodes:",
  5824. fn: function (aCollection){
  5825. var self=this;
  5826. return smalltalk.withContext(function($ctx1) { self["@nodes"]=aCollection;
  5827. return self}, self, "nodes:", [aCollection], smalltalk.Node)}
  5828. }),
  5829. smalltalk.Node);
  5830. smalltalk.addMethod(
  5831. "_position",
  5832. smalltalk.method({
  5833. selector: "position",
  5834. fn: function (){
  5835. var self=this;
  5836. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5837. $2=self["@position"];
  5838. if(($receiver = $2) == nil || $receiver == undefined){
  5839. self["@position"]=_st((0)).__at((0));
  5840. $1=self["@position"];
  5841. } else {
  5842. $1=$2;
  5843. };
  5844. return $1;
  5845. }, self, "position", [], smalltalk.Node)}
  5846. }),
  5847. smalltalk.Node);
  5848. smalltalk.addMethod(
  5849. "_position_",
  5850. smalltalk.method({
  5851. selector: "position:",
  5852. fn: function (aPosition){
  5853. var self=this;
  5854. return smalltalk.withContext(function($ctx1) { self["@position"]=aPosition;
  5855. return self}, self, "position:", [aPosition], smalltalk.Node)}
  5856. }),
  5857. smalltalk.Node);
  5858. smalltalk.addMethod(
  5859. "_shouldBeAliased",
  5860. smalltalk.method({
  5861. selector: "shouldBeAliased",
  5862. fn: function (){
  5863. var self=this;
  5864. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5865. $2=self["@shouldBeAliased"];
  5866. if(($receiver = $2) == nil || $receiver == undefined){
  5867. $1=false;
  5868. } else {
  5869. $1=$2;
  5870. };
  5871. return $1;
  5872. }, self, "shouldBeAliased", [], smalltalk.Node)}
  5873. }),
  5874. smalltalk.Node);
  5875. smalltalk.addMethod(
  5876. "_shouldBeAliased_",
  5877. smalltalk.method({
  5878. selector: "shouldBeAliased:",
  5879. fn: function (aBoolean){
  5880. var self=this;
  5881. return smalltalk.withContext(function($ctx1) { self["@shouldBeAliased"]=aBoolean;
  5882. return self}, self, "shouldBeAliased:", [aBoolean], smalltalk.Node)}
  5883. }),
  5884. smalltalk.Node);
  5885. smalltalk.addMethod(
  5886. "_shouldBeInlined",
  5887. smalltalk.method({
  5888. selector: "shouldBeInlined",
  5889. fn: function (){
  5890. var self=this;
  5891. return smalltalk.withContext(function($ctx1) { var $2,$1;
  5892. $2=self["@shouldBeInlined"];
  5893. if(($receiver = $2) == nil || $receiver == undefined){
  5894. $1=false;
  5895. } else {
  5896. $1=$2;
  5897. };
  5898. return $1;
  5899. }, self, "shouldBeInlined", [], smalltalk.Node)}
  5900. }),
  5901. smalltalk.Node);
  5902. smalltalk.addMethod(
  5903. "_shouldBeInlined_",
  5904. smalltalk.method({
  5905. selector: "shouldBeInlined:",
  5906. fn: function (aBoolean){
  5907. var self=this;
  5908. return smalltalk.withContext(function($ctx1) { self["@shouldBeInlined"]=aBoolean;
  5909. return self}, self, "shouldBeInlined:", [aBoolean], smalltalk.Node)}
  5910. }),
  5911. smalltalk.Node);
  5912. smalltalk.addMethod(
  5913. "_subtreeNeedsAliasing",
  5914. smalltalk.method({
  5915. selector: "subtreeNeedsAliasing",
  5916. fn: function (){
  5917. var self=this;
  5918. return smalltalk.withContext(function($ctx1) { var $1;
  5919. $1=_st(_st(_st(self)._shouldBeAliased())._or_((function(){
  5920. return smalltalk.withContext(function($ctx2) { return _st(self)._shouldBeInlined();
  5921. })})))._or_((function(){
  5922. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(self)._nodes())._detect_ifNone_((function(each){
  5923. return smalltalk.withContext(function($ctx3) { return _st(each)._subtreeNeedsAliasing();
  5924. })}),(function(){
  5925. return smalltalk.withContext(function($ctx3) { return false;
  5926. })}))).__tild_eq(false);
  5927. })}));
  5928. return $1;
  5929. }, self, "subtreeNeedsAliasing", [], smalltalk.Node)}
  5930. }),
  5931. smalltalk.Node);
  5932. smalltalk.addMethod(
  5933. "_accept_",
  5934. smalltalk.method({
  5935. selector: "accept:",
  5936. fn: function (aVisitor){
  5937. var self=this;
  5938. return smalltalk.withContext(function($ctx1) { var $1;
  5939. $1=_st(aVisitor)._visitAssignmentNode_(self);
  5940. return $1;
  5941. }, self, "accept:", [aVisitor], smalltalk.AssignmentNode)}
  5942. }),
  5943. smalltalk.AssignmentNode);
  5944. smalltalk.addMethod(
  5945. "_isAssignmentNode",
  5946. smalltalk.method({
  5947. selector: "isAssignmentNode",
  5948. fn: function (){
  5949. var self=this;
  5950. return smalltalk.withContext(function($ctx1) { return true;
  5951. }, self, "isAssignmentNode", [], smalltalk.AssignmentNode)}
  5952. }),
  5953. smalltalk.AssignmentNode);
  5954. smalltalk.addMethod(
  5955. "_left",
  5956. smalltalk.method({
  5957. selector: "left",
  5958. fn: function (){
  5959. var self=this;
  5960. return smalltalk.withContext(function($ctx1) { var $1;
  5961. $1=self["@left"];
  5962. return $1;
  5963. }, self, "left", [], smalltalk.AssignmentNode)}
  5964. }),
  5965. smalltalk.AssignmentNode);
  5966. smalltalk.addMethod(
  5967. "_left_",
  5968. smalltalk.method({
  5969. selector: "left:",
  5970. fn: function (aNode){
  5971. var self=this;
  5972. return smalltalk.withContext(function($ctx1) { self["@left"]=aNode;
  5973. return self}, self, "left:", [aNode], smalltalk.AssignmentNode)}
  5974. }),
  5975. smalltalk.AssignmentNode);
  5976. smalltalk.addMethod(
  5977. "_nodes",
  5978. smalltalk.method({
  5979. selector: "nodes",
  5980. fn: function (){
  5981. var self=this;
  5982. return smalltalk.withContext(function($ctx1) { var $1;
  5983. $1=_st((smalltalk.Array || Array))._with_with_(_st(self)._left(),_st(self)._right());
  5984. return $1;
  5985. }, self, "nodes", [], smalltalk.AssignmentNode)}
  5986. }),
  5987. smalltalk.AssignmentNode);
  5988. smalltalk.addMethod(
  5989. "_right",
  5990. smalltalk.method({
  5991. selector: "right",
  5992. fn: function (){
  5993. var self=this;
  5994. return smalltalk.withContext(function($ctx1) { var $1;
  5995. $1=self["@right"];
  5996. return $1;
  5997. }, self, "right", [], smalltalk.AssignmentNode)}
  5998. }),
  5999. smalltalk.AssignmentNode);
  6000. smalltalk.addMethod(
  6001. "_right_",
  6002. smalltalk.method({
  6003. selector: "right:",
  6004. fn: function (aNode){
  6005. var self=this;
  6006. return smalltalk.withContext(function($ctx1) { self["@right"]=aNode;
  6007. return self}, self, "right:", [aNode], smalltalk.AssignmentNode)}
  6008. }),
  6009. smalltalk.AssignmentNode);
  6010. smalltalk.addMethod(
  6011. "_accept_",
  6012. smalltalk.method({
  6013. selector: "accept:",
  6014. fn: function (aVisitor){
  6015. var self=this;
  6016. return smalltalk.withContext(function($ctx1) { var $1;
  6017. $1=_st(aVisitor)._visitBlockNode_(self);
  6018. return $1;
  6019. }, self, "accept:", [aVisitor], smalltalk.BlockNode)}
  6020. }),
  6021. smalltalk.BlockNode);
  6022. smalltalk.addMethod(
  6023. "_isBlockNode",
  6024. smalltalk.method({
  6025. selector: "isBlockNode",
  6026. fn: function (){
  6027. var self=this;
  6028. return smalltalk.withContext(function($ctx1) { return true;
  6029. }, self, "isBlockNode", [], smalltalk.BlockNode)}
  6030. }),
  6031. smalltalk.BlockNode);
  6032. smalltalk.addMethod(
  6033. "_parameters",
  6034. smalltalk.method({
  6035. selector: "parameters",
  6036. fn: function (){
  6037. var self=this;
  6038. return smalltalk.withContext(function($ctx1) { var $2,$1;
  6039. $2=self["@parameters"];
  6040. if(($receiver = $2) == nil || $receiver == undefined){
  6041. self["@parameters"]=_st((smalltalk.Array || Array))._new();
  6042. $1=self["@parameters"];
  6043. } else {
  6044. $1=$2;
  6045. };
  6046. return $1;
  6047. }, self, "parameters", [], smalltalk.BlockNode)}
  6048. }),
  6049. smalltalk.BlockNode);
  6050. smalltalk.addMethod(
  6051. "_parameters_",
  6052. smalltalk.method({
  6053. selector: "parameters:",
  6054. fn: function (aCollection){
  6055. var self=this;
  6056. return smalltalk.withContext(function($ctx1) { self["@parameters"]=aCollection;
  6057. return self}, self, "parameters:", [aCollection], smalltalk.BlockNode)}
  6058. }),
  6059. smalltalk.BlockNode);
  6060. smalltalk.addMethod(
  6061. "_scope",
  6062. smalltalk.method({
  6063. selector: "scope",
  6064. fn: function (){
  6065. var self=this;
  6066. return smalltalk.withContext(function($ctx1) { var $1;
  6067. $1=self["@scope"];
  6068. return $1;
  6069. }, self, "scope", [], smalltalk.BlockNode)}
  6070. }),
  6071. smalltalk.BlockNode);
  6072. smalltalk.addMethod(
  6073. "_scope_",
  6074. smalltalk.method({
  6075. selector: "scope:",
  6076. fn: function (aLexicalScope){
  6077. var self=this;
  6078. return smalltalk.withContext(function($ctx1) { self["@scope"]=aLexicalScope;
  6079. return self}, self, "scope:", [aLexicalScope], smalltalk.BlockNode)}
  6080. }),
  6081. smalltalk.BlockNode);
  6082. smalltalk.addMethod(
  6083. "_accept_",
  6084. smalltalk.method({
  6085. selector: "accept:",
  6086. fn: function (aVisitor){
  6087. var self=this;
  6088. return smalltalk.withContext(function($ctx1) { var $1;
  6089. $1=_st(aVisitor)._visitCascadeNode_(self);
  6090. return $1;
  6091. }, self, "accept:", [aVisitor], smalltalk.CascadeNode)}
  6092. }),
  6093. smalltalk.CascadeNode);
  6094. smalltalk.addMethod(
  6095. "_receiver",
  6096. smalltalk.method({
  6097. selector: "receiver",
  6098. fn: function (){
  6099. var self=this;
  6100. return smalltalk.withContext(function($ctx1) { var $1;
  6101. $1=self["@receiver"];
  6102. return $1;
  6103. }, self, "receiver", [], smalltalk.CascadeNode)}
  6104. }),
  6105. smalltalk.CascadeNode);
  6106. smalltalk.addMethod(
  6107. "_receiver_",
  6108. smalltalk.method({
  6109. selector: "receiver:",
  6110. fn: function (aNode){
  6111. var self=this;
  6112. return smalltalk.withContext(function($ctx1) { self["@receiver"]=aNode;
  6113. return self}, self, "receiver:", [aNode], smalltalk.CascadeNode)}
  6114. }),
  6115. smalltalk.CascadeNode);
  6116. smalltalk.addMethod(
  6117. "_accept_",
  6118. smalltalk.method({
  6119. selector: "accept:",
  6120. fn: function (aVisitor){
  6121. var self=this;
  6122. return smalltalk.withContext(function($ctx1) { var $1;
  6123. $1=_st(aVisitor)._visitDynamicArrayNode_(self);
  6124. return $1;
  6125. }, self, "accept:", [aVisitor], smalltalk.DynamicArrayNode)}
  6126. }),
  6127. smalltalk.DynamicArrayNode);
  6128. smalltalk.addMethod(
  6129. "_accept_",
  6130. smalltalk.method({
  6131. selector: "accept:",
  6132. fn: function (aVisitor){
  6133. var self=this;
  6134. return smalltalk.withContext(function($ctx1) { var $1;
  6135. $1=_st(aVisitor)._visitDynamicDictionaryNode_(self);
  6136. return $1;
  6137. }, self, "accept:", [aVisitor], smalltalk.DynamicDictionaryNode)}
  6138. }),
  6139. smalltalk.DynamicDictionaryNode);
  6140. smalltalk.addMethod(
  6141. "_accept_",
  6142. smalltalk.method({
  6143. selector: "accept:",
  6144. fn: function (aVisitor){
  6145. var self=this;
  6146. return smalltalk.withContext(function($ctx1) { var $1;
  6147. $1=_st(aVisitor)._visitJSStatementNode_(self);
  6148. return $1;
  6149. }, self, "accept:", [aVisitor], smalltalk.JSStatementNode)}
  6150. }),
  6151. smalltalk.JSStatementNode);
  6152. smalltalk.addMethod(
  6153. "_source",
  6154. smalltalk.method({
  6155. selector: "source",
  6156. fn: function (){
  6157. var self=this;
  6158. return smalltalk.withContext(function($ctx1) { var $2,$1;
  6159. $2=self["@source"];
  6160. if(($receiver = $2) == nil || $receiver == undefined){
  6161. $1="";
  6162. } else {
  6163. $1=$2;
  6164. };
  6165. return $1;
  6166. }, self, "source", [], smalltalk.JSStatementNode)}
  6167. }),
  6168. smalltalk.JSStatementNode);
  6169. smalltalk.addMethod(
  6170. "_source_",
  6171. smalltalk.method({
  6172. selector: "source:",
  6173. fn: function (aString){
  6174. var self=this;
  6175. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  6176. return self}, self, "source:", [aString], smalltalk.JSStatementNode)}
  6177. }),
  6178. smalltalk.JSStatementNode);
  6179. smalltalk.addMethod(
  6180. "_accept_",
  6181. smalltalk.method({
  6182. selector: "accept:",
  6183. fn: function (aVisitor){
  6184. var self=this;
  6185. return smalltalk.withContext(function($ctx1) { var $1;
  6186. $1=_st(aVisitor)._visitMethodNode_(self);
  6187. return $1;
  6188. }, self, "accept:", [aVisitor], smalltalk.MethodNode)}
  6189. }),
  6190. smalltalk.MethodNode);
  6191. smalltalk.addMethod(
  6192. "_arguments",
  6193. smalltalk.method({
  6194. selector: "arguments",
  6195. fn: function (){
  6196. var self=this;
  6197. return smalltalk.withContext(function($ctx1) { var $2,$1;
  6198. $2=self["@arguments"];
  6199. if(($receiver = $2) == nil || $receiver == undefined){
  6200. $1=[];
  6201. } else {
  6202. $1=$2;
  6203. };
  6204. return $1;
  6205. }, self, "arguments", [], smalltalk.MethodNode)}
  6206. }),
  6207. smalltalk.MethodNode);
  6208. smalltalk.addMethod(
  6209. "_arguments_",
  6210. smalltalk.method({
  6211. selector: "arguments:",
  6212. fn: function (aCollection){
  6213. var self=this;
  6214. return smalltalk.withContext(function($ctx1) { self["@arguments"]=aCollection;
  6215. return self}, self, "arguments:", [aCollection], smalltalk.MethodNode)}
  6216. }),
  6217. smalltalk.MethodNode);
  6218. smalltalk.addMethod(
  6219. "_classReferences",
  6220. smalltalk.method({
  6221. selector: "classReferences",
  6222. fn: function (){
  6223. var self=this;
  6224. return smalltalk.withContext(function($ctx1) { var $1;
  6225. $1=self["@classReferences"];
  6226. return $1;
  6227. }, self, "classReferences", [], smalltalk.MethodNode)}
  6228. }),
  6229. smalltalk.MethodNode);
  6230. smalltalk.addMethod(
  6231. "_classReferences_",
  6232. smalltalk.method({
  6233. selector: "classReferences:",
  6234. fn: function (aCollection){
  6235. var self=this;
  6236. return smalltalk.withContext(function($ctx1) { self["@classReferences"]=aCollection;
  6237. return self}, self, "classReferences:", [aCollection], smalltalk.MethodNode)}
  6238. }),
  6239. smalltalk.MethodNode);
  6240. smalltalk.addMethod(
  6241. "_messageSends",
  6242. smalltalk.method({
  6243. selector: "messageSends",
  6244. fn: function (){
  6245. var self=this;
  6246. return smalltalk.withContext(function($ctx1) { var $1;
  6247. $1=self["@messageSends"];
  6248. return $1;
  6249. }, self, "messageSends", [], smalltalk.MethodNode)}
  6250. }),
  6251. smalltalk.MethodNode);
  6252. smalltalk.addMethod(
  6253. "_messageSends_",
  6254. smalltalk.method({
  6255. selector: "messageSends:",
  6256. fn: function (aCollection){
  6257. var self=this;
  6258. return smalltalk.withContext(function($ctx1) { self["@messageSends"]=aCollection;
  6259. return self}, self, "messageSends:", [aCollection], smalltalk.MethodNode)}
  6260. }),
  6261. smalltalk.MethodNode);
  6262. smalltalk.addMethod(
  6263. "_scope",
  6264. smalltalk.method({
  6265. selector: "scope",
  6266. fn: function (){
  6267. var self=this;
  6268. return smalltalk.withContext(function($ctx1) { var $1;
  6269. $1=self["@scope"];
  6270. return $1;
  6271. }, self, "scope", [], smalltalk.MethodNode)}
  6272. }),
  6273. smalltalk.MethodNode);
  6274. smalltalk.addMethod(
  6275. "_scope_",
  6276. smalltalk.method({
  6277. selector: "scope:",
  6278. fn: function (aMethodScope){
  6279. var self=this;
  6280. return smalltalk.withContext(function($ctx1) { self["@scope"]=aMethodScope;
  6281. return self}, self, "scope:", [aMethodScope], smalltalk.MethodNode)}
  6282. }),
  6283. smalltalk.MethodNode);
  6284. smalltalk.addMethod(
  6285. "_selector",
  6286. smalltalk.method({
  6287. selector: "selector",
  6288. fn: function (){
  6289. var self=this;
  6290. return smalltalk.withContext(function($ctx1) { var $1;
  6291. $1=self["@selector"];
  6292. return $1;
  6293. }, self, "selector", [], smalltalk.MethodNode)}
  6294. }),
  6295. smalltalk.MethodNode);
  6296. smalltalk.addMethod(
  6297. "_selector_",
  6298. smalltalk.method({
  6299. selector: "selector:",
  6300. fn: function (aString){
  6301. var self=this;
  6302. return smalltalk.withContext(function($ctx1) { self["@selector"]=aString;
  6303. return self}, self, "selector:", [aString], smalltalk.MethodNode)}
  6304. }),
  6305. smalltalk.MethodNode);
  6306. smalltalk.addMethod(
  6307. "_source",
  6308. smalltalk.method({
  6309. selector: "source",
  6310. fn: function (){
  6311. var self=this;
  6312. return smalltalk.withContext(function($ctx1) { var $1;
  6313. $1=self["@source"];
  6314. return $1;
  6315. }, self, "source", [], smalltalk.MethodNode)}
  6316. }),
  6317. smalltalk.MethodNode);
  6318. smalltalk.addMethod(
  6319. "_source_",
  6320. smalltalk.method({
  6321. selector: "source:",
  6322. fn: function (aString){
  6323. var self=this;
  6324. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  6325. return self}, self, "source:", [aString], smalltalk.MethodNode)}
  6326. }),
  6327. smalltalk.MethodNode);
  6328. smalltalk.addMethod(
  6329. "_superSends",
  6330. smalltalk.method({
  6331. selector: "superSends",
  6332. fn: function (){
  6333. var self=this;
  6334. return smalltalk.withContext(function($ctx1) { var $1;
  6335. $1=self["@superSends"];
  6336. return $1;
  6337. }, self, "superSends", [], smalltalk.MethodNode)}
  6338. }),
  6339. smalltalk.MethodNode);
  6340. smalltalk.addMethod(
  6341. "_superSends_",
  6342. smalltalk.method({
  6343. selector: "superSends:",
  6344. fn: function (aCollection){
  6345. var self=this;
  6346. return smalltalk.withContext(function($ctx1) { self["@superSends"]=aCollection;
  6347. return self}, self, "superSends:", [aCollection], smalltalk.MethodNode)}
  6348. }),
  6349. smalltalk.MethodNode);
  6350. smalltalk.addMethod(
  6351. "_accept_",
  6352. smalltalk.method({
  6353. selector: "accept:",
  6354. fn: function (aVisitor){
  6355. var self=this;
  6356. return smalltalk.withContext(function($ctx1) { var $1;
  6357. $1=_st(aVisitor)._visitReturnNode_(self);
  6358. return $1;
  6359. }, self, "accept:", [aVisitor], smalltalk.ReturnNode)}
  6360. }),
  6361. smalltalk.ReturnNode);
  6362. smalltalk.addMethod(
  6363. "_isReturnNode",
  6364. smalltalk.method({
  6365. selector: "isReturnNode",
  6366. fn: function (){
  6367. var self=this;
  6368. return smalltalk.withContext(function($ctx1) { return true;
  6369. }, self, "isReturnNode", [], smalltalk.ReturnNode)}
  6370. }),
  6371. smalltalk.ReturnNode);
  6372. smalltalk.addMethod(
  6373. "_nonLocalReturn",
  6374. smalltalk.method({
  6375. selector: "nonLocalReturn",
  6376. fn: function (){
  6377. var self=this;
  6378. return smalltalk.withContext(function($ctx1) { var $1;
  6379. $1=_st(_st(_st(self)._scope())._isMethodScope())._not();
  6380. return $1;
  6381. }, self, "nonLocalReturn", [], smalltalk.ReturnNode)}
  6382. }),
  6383. smalltalk.ReturnNode);
  6384. smalltalk.addMethod(
  6385. "_scope",
  6386. smalltalk.method({
  6387. selector: "scope",
  6388. fn: function (){
  6389. var self=this;
  6390. return smalltalk.withContext(function($ctx1) { var $1;
  6391. $1=self["@scope"];
  6392. return $1;
  6393. }, self, "scope", [], smalltalk.ReturnNode)}
  6394. }),
  6395. smalltalk.ReturnNode);
  6396. smalltalk.addMethod(
  6397. "_scope_",
  6398. smalltalk.method({
  6399. selector: "scope:",
  6400. fn: function (aLexicalScope){
  6401. var self=this;
  6402. return smalltalk.withContext(function($ctx1) { self["@scope"]=aLexicalScope;
  6403. return self}, self, "scope:", [aLexicalScope], smalltalk.ReturnNode)}
  6404. }),
  6405. smalltalk.ReturnNode);
  6406. smalltalk.addMethod(
  6407. "_accept_",
  6408. smalltalk.method({
  6409. selector: "accept:",
  6410. fn: function (aVisitor){
  6411. var self=this;
  6412. return smalltalk.withContext(function($ctx1) { var $1;
  6413. $1=_st(aVisitor)._visitSendNode_(self);
  6414. return $1;
  6415. }, self, "accept:", [aVisitor], smalltalk.SendNode)}
  6416. }),
  6417. smalltalk.SendNode);
  6418. smalltalk.addMethod(
  6419. "_arguments",
  6420. smalltalk.method({
  6421. selector: "arguments",
  6422. fn: function (){
  6423. var self=this;
  6424. return smalltalk.withContext(function($ctx1) { var $2,$1;
  6425. $2=self["@arguments"];
  6426. if(($receiver = $2) == nil || $receiver == undefined){
  6427. self["@arguments"]=[];
  6428. $1=self["@arguments"];
  6429. } else {
  6430. $1=$2;
  6431. };
  6432. return $1;
  6433. }, self, "arguments", [], smalltalk.SendNode)}
  6434. }),
  6435. smalltalk.SendNode);
  6436. smalltalk.addMethod(
  6437. "_arguments_",
  6438. smalltalk.method({
  6439. selector: "arguments:",
  6440. fn: function (aCollection){
  6441. var self=this;
  6442. return smalltalk.withContext(function($ctx1) { self["@arguments"]=aCollection;
  6443. return self}, self, "arguments:", [aCollection], smalltalk.SendNode)}
  6444. }),
  6445. smalltalk.SendNode);
  6446. smalltalk.addMethod(
  6447. "_cascadeNodeWithMessages_",
  6448. smalltalk.method({
  6449. selector: "cascadeNodeWithMessages:",
  6450. fn: function (aCollection){
  6451. var self=this;
  6452. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$5,$3;
  6453. $ctx1.locals.first=nil;
  6454. $1=_st((smalltalk.SendNode || SendNode))._new();
  6455. _st($1)._selector_(_st(self)._selector());
  6456. _st($1)._arguments_(_st(self)._arguments());
  6457. $2=_st($1)._yourself();
  6458. $ctx1.locals.first=$2;
  6459. $4=_st((smalltalk.CascadeNode || CascadeNode))._new();
  6460. _st($4)._receiver_(_st(self)._receiver());
  6461. _st($4)._nodes_(_st(_st((smalltalk.Array || Array))._with_($ctx1.locals.first)).__comma(aCollection));
  6462. $5=_st($4)._yourself();
  6463. $3=$5;
  6464. return $3;
  6465. }, self, "cascadeNodeWithMessages:", [aCollection], smalltalk.SendNode)}
  6466. }),
  6467. smalltalk.SendNode);
  6468. smalltalk.addMethod(
  6469. "_index",
  6470. smalltalk.method({
  6471. selector: "index",
  6472. fn: function (){
  6473. var self=this;
  6474. return smalltalk.withContext(function($ctx1) { var $1;
  6475. $1=self["@index"];
  6476. return $1;
  6477. }, self, "index", [], smalltalk.SendNode)}
  6478. }),
  6479. smalltalk.SendNode);
  6480. smalltalk.addMethod(
  6481. "_index_",
  6482. smalltalk.method({
  6483. selector: "index:",
  6484. fn: function (anInteger){
  6485. var self=this;
  6486. return smalltalk.withContext(function($ctx1) { self["@index"]=anInteger;
  6487. return self}, self, "index:", [anInteger], smalltalk.SendNode)}
  6488. }),
  6489. smalltalk.SendNode);
  6490. smalltalk.addMethod(
  6491. "_isSendNode",
  6492. smalltalk.method({
  6493. selector: "isSendNode",
  6494. fn: function (){
  6495. var self=this;
  6496. return smalltalk.withContext(function($ctx1) { return true;
  6497. }, self, "isSendNode", [], smalltalk.SendNode)}
  6498. }),
  6499. smalltalk.SendNode);
  6500. smalltalk.addMethod(
  6501. "_nodes",
  6502. smalltalk.method({
  6503. selector: "nodes",
  6504. fn: function (){
  6505. var self=this;
  6506. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  6507. $2=_st((smalltalk.Array || Array))._withAll_(_st(self)._arguments());
  6508. _st($2)._add_(_st(self)._receiver());
  6509. $3=_st($2)._yourself();
  6510. $1=$3;
  6511. return $1;
  6512. }, self, "nodes", [], smalltalk.SendNode)}
  6513. }),
  6514. smalltalk.SendNode);
  6515. smalltalk.addMethod(
  6516. "_receiver",
  6517. smalltalk.method({
  6518. selector: "receiver",
  6519. fn: function (){
  6520. var self=this;
  6521. return smalltalk.withContext(function($ctx1) { var $1;
  6522. $1=self["@receiver"];
  6523. return $1;
  6524. }, self, "receiver", [], smalltalk.SendNode)}
  6525. }),
  6526. smalltalk.SendNode);
  6527. smalltalk.addMethod(
  6528. "_receiver_",
  6529. smalltalk.method({
  6530. selector: "receiver:",
  6531. fn: function (aNode){
  6532. var self=this;
  6533. return smalltalk.withContext(function($ctx1) { self["@receiver"]=aNode;
  6534. return self}, self, "receiver:", [aNode], smalltalk.SendNode)}
  6535. }),
  6536. smalltalk.SendNode);
  6537. smalltalk.addMethod(
  6538. "_selector",
  6539. smalltalk.method({
  6540. selector: "selector",
  6541. fn: function (){
  6542. var self=this;
  6543. return smalltalk.withContext(function($ctx1) { var $1;
  6544. $1=self["@selector"];
  6545. return $1;
  6546. }, self, "selector", [], smalltalk.SendNode)}
  6547. }),
  6548. smalltalk.SendNode);
  6549. smalltalk.addMethod(
  6550. "_selector_",
  6551. smalltalk.method({
  6552. selector: "selector:",
  6553. fn: function (aString){
  6554. var self=this;
  6555. return smalltalk.withContext(function($ctx1) { self["@selector"]=aString;
  6556. return self}, self, "selector:", [aString], smalltalk.SendNode)}
  6557. }),
  6558. smalltalk.SendNode);
  6559. smalltalk.addMethod(
  6560. "_superSend",
  6561. smalltalk.method({
  6562. selector: "superSend",
  6563. fn: function (){
  6564. var self=this;
  6565. return smalltalk.withContext(function($ctx1) { var $2,$1;
  6566. $2=self["@superSend"];
  6567. if(($receiver = $2) == nil || $receiver == undefined){
  6568. $1=false;
  6569. } else {
  6570. $1=$2;
  6571. };
  6572. return $1;
  6573. }, self, "superSend", [], smalltalk.SendNode)}
  6574. }),
  6575. smalltalk.SendNode);
  6576. smalltalk.addMethod(
  6577. "_superSend_",
  6578. smalltalk.method({
  6579. selector: "superSend:",
  6580. fn: function (aBoolean){
  6581. var self=this;
  6582. return smalltalk.withContext(function($ctx1) { self["@superSend"]=aBoolean;
  6583. return self}, self, "superSend:", [aBoolean], smalltalk.SendNode)}
  6584. }),
  6585. smalltalk.SendNode);
  6586. smalltalk.addMethod(
  6587. "_valueForReceiver_",
  6588. smalltalk.method({
  6589. selector: "valueForReceiver:",
  6590. fn: function (anObject){
  6591. var self=this;
  6592. return smalltalk.withContext(function($ctx1) { var $2,$3,$5,$4,$6,$1;
  6593. $2=_st((smalltalk.SendNode || SendNode))._new();
  6594. $3=$2;
  6595. $5=_st(self)._receiver();
  6596. if(($receiver = $5) == nil || $receiver == undefined){
  6597. $4=anObject;
  6598. } else {
  6599. $4=_st(_st(self)._receiver())._valueForReceiver_(anObject);
  6600. };
  6601. _st($3)._receiver_($4);
  6602. _st($2)._selector_(_st(self)._selector());
  6603. _st($2)._arguments_(_st(self)._arguments());
  6604. $6=_st($2)._yourself();
  6605. $1=$6;
  6606. return $1;
  6607. }, self, "valueForReceiver:", [anObject], smalltalk.SendNode)}
  6608. }),
  6609. smalltalk.SendNode);
  6610. smalltalk.addMethod(
  6611. "_accept_",
  6612. smalltalk.method({
  6613. selector: "accept:",
  6614. fn: function (aVisitor){
  6615. var self=this;
  6616. return smalltalk.withContext(function($ctx1) { var $1;
  6617. $1=_st(aVisitor)._visitSequenceNode_(self);
  6618. return $1;
  6619. }, self, "accept:", [aVisitor], smalltalk.SequenceNode)}
  6620. }),
  6621. smalltalk.SequenceNode);
  6622. smalltalk.addMethod(
  6623. "_asBlockSequenceNode",
  6624. smalltalk.method({
  6625. selector: "asBlockSequenceNode",
  6626. fn: function (){
  6627. var self=this;
  6628. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  6629. $2=_st((smalltalk.BlockSequenceNode || BlockSequenceNode))._new();
  6630. _st($2)._nodes_(_st(self)._nodes());
  6631. _st($2)._temps_(_st(self)._temps());
  6632. $3=_st($2)._yourself();
  6633. $1=$3;
  6634. return $1;
  6635. }, self, "asBlockSequenceNode", [], smalltalk.SequenceNode)}
  6636. }),
  6637. smalltalk.SequenceNode);
  6638. smalltalk.addMethod(
  6639. "_scope",
  6640. smalltalk.method({
  6641. selector: "scope",
  6642. fn: function (){
  6643. var self=this;
  6644. return smalltalk.withContext(function($ctx1) { var $1;
  6645. $1=self["@scope"];
  6646. return $1;
  6647. }, self, "scope", [], smalltalk.SequenceNode)}
  6648. }),
  6649. smalltalk.SequenceNode);
  6650. smalltalk.addMethod(
  6651. "_scope_",
  6652. smalltalk.method({
  6653. selector: "scope:",
  6654. fn: function (aLexicalScope){
  6655. var self=this;
  6656. return smalltalk.withContext(function($ctx1) { self["@scope"]=aLexicalScope;
  6657. return self}, self, "scope:", [aLexicalScope], smalltalk.SequenceNode)}
  6658. }),
  6659. smalltalk.SequenceNode);
  6660. smalltalk.addMethod(
  6661. "_temps",
  6662. smalltalk.method({
  6663. selector: "temps",
  6664. fn: function (){
  6665. var self=this;
  6666. return smalltalk.withContext(function($ctx1) { var $2,$1;
  6667. $2=self["@temps"];
  6668. if(($receiver = $2) == nil || $receiver == undefined){
  6669. $1=[];
  6670. } else {
  6671. $1=$2;
  6672. };
  6673. return $1;
  6674. }, self, "temps", [], smalltalk.SequenceNode)}
  6675. }),
  6676. smalltalk.SequenceNode);
  6677. smalltalk.addMethod(
  6678. "_temps_",
  6679. smalltalk.method({
  6680. selector: "temps:",
  6681. fn: function (aCollection){
  6682. var self=this;
  6683. return smalltalk.withContext(function($ctx1) { self["@temps"]=aCollection;
  6684. return self}, self, "temps:", [aCollection], smalltalk.SequenceNode)}
  6685. }),
  6686. smalltalk.SequenceNode);
  6687. smalltalk.addMethod(
  6688. "_accept_",
  6689. smalltalk.method({
  6690. selector: "accept:",
  6691. fn: function (aVisitor){
  6692. var self=this;
  6693. return smalltalk.withContext(function($ctx1) { var $1;
  6694. $1=_st(aVisitor)._visitBlockSequenceNode_(self);
  6695. return $1;
  6696. }, self, "accept:", [aVisitor], smalltalk.BlockSequenceNode)}
  6697. }),
  6698. smalltalk.BlockSequenceNode);
  6699. smalltalk.addMethod(
  6700. "_isBlockSequenceNode",
  6701. smalltalk.method({
  6702. selector: "isBlockSequenceNode",
  6703. fn: function (){
  6704. var self=this;
  6705. return smalltalk.withContext(function($ctx1) { return true;
  6706. }, self, "isBlockSequenceNode", [], smalltalk.BlockSequenceNode)}
  6707. }),
  6708. smalltalk.BlockSequenceNode);
  6709. smalltalk.addMethod(
  6710. "_accept_",
  6711. smalltalk.method({
  6712. selector: "accept:",
  6713. fn: function (aVisitor){
  6714. var self=this;
  6715. return smalltalk.withContext(function($ctx1) { var $1;
  6716. $1=_st(aVisitor)._visitValueNode_(self);
  6717. return $1;
  6718. }, self, "accept:", [aVisitor], smalltalk.ValueNode)}
  6719. }),
  6720. smalltalk.ValueNode);
  6721. smalltalk.addMethod(
  6722. "_isImmutable",
  6723. smalltalk.method({
  6724. selector: "isImmutable",
  6725. fn: function (){
  6726. var self=this;
  6727. return smalltalk.withContext(function($ctx1) { return true;
  6728. }, self, "isImmutable", [], smalltalk.ValueNode)}
  6729. }),
  6730. smalltalk.ValueNode);
  6731. smalltalk.addMethod(
  6732. "_isValueNode",
  6733. smalltalk.method({
  6734. selector: "isValueNode",
  6735. fn: function (){
  6736. var self=this;
  6737. return smalltalk.withContext(function($ctx1) { return true;
  6738. }, self, "isValueNode", [], smalltalk.ValueNode)}
  6739. }),
  6740. smalltalk.ValueNode);
  6741. smalltalk.addMethod(
  6742. "_value",
  6743. smalltalk.method({
  6744. selector: "value",
  6745. fn: function (){
  6746. var self=this;
  6747. return smalltalk.withContext(function($ctx1) { var $1;
  6748. $1=self["@value"];
  6749. return $1;
  6750. }, self, "value", [], smalltalk.ValueNode)}
  6751. }),
  6752. smalltalk.ValueNode);
  6753. smalltalk.addMethod(
  6754. "_value_",
  6755. smalltalk.method({
  6756. selector: "value:",
  6757. fn: function (anObject){
  6758. var self=this;
  6759. return smalltalk.withContext(function($ctx1) { self["@value"]=anObject;
  6760. return self}, self, "value:", [anObject], smalltalk.ValueNode)}
  6761. }),
  6762. smalltalk.ValueNode);
  6763. smalltalk.addMethod(
  6764. "_accept_",
  6765. smalltalk.method({
  6766. selector: "accept:",
  6767. fn: function (aVisitor){
  6768. var self=this;
  6769. return smalltalk.withContext(function($ctx1) { var $1;
  6770. $1=_st(aVisitor)._visitVariableNode_(self);
  6771. return $1;
  6772. }, self, "accept:", [aVisitor], smalltalk.VariableNode)}
  6773. }),
  6774. smalltalk.VariableNode);
  6775. smalltalk.addMethod(
  6776. "_alias",
  6777. smalltalk.method({
  6778. selector: "alias",
  6779. fn: function (){
  6780. var self=this;
  6781. return smalltalk.withContext(function($ctx1) { var $1;
  6782. $1=_st(_st(self)._binding())._alias();
  6783. return $1;
  6784. }, self, "alias", [], smalltalk.VariableNode)}
  6785. }),
  6786. smalltalk.VariableNode);
  6787. smalltalk.addMethod(
  6788. "_assigned",
  6789. smalltalk.method({
  6790. selector: "assigned",
  6791. fn: function (){
  6792. var self=this;
  6793. return smalltalk.withContext(function($ctx1) { var $2,$1;
  6794. $2=self["@assigned"];
  6795. if(($receiver = $2) == nil || $receiver == undefined){
  6796. $1=false;
  6797. } else {
  6798. $1=$2;
  6799. };
  6800. return $1;
  6801. }, self, "assigned", [], smalltalk.VariableNode)}
  6802. }),
  6803. smalltalk.VariableNode);
  6804. smalltalk.addMethod(
  6805. "_assigned_",
  6806. smalltalk.method({
  6807. selector: "assigned:",
  6808. fn: function (aBoolean){
  6809. var self=this;
  6810. return smalltalk.withContext(function($ctx1) { self["@assigned"]=aBoolean;
  6811. return self}, self, "assigned:", [aBoolean], smalltalk.VariableNode)}
  6812. }),
  6813. smalltalk.VariableNode);
  6814. smalltalk.addMethod(
  6815. "_beAssigned",
  6816. smalltalk.method({
  6817. selector: "beAssigned",
  6818. fn: function (){
  6819. var self=this;
  6820. return smalltalk.withContext(function($ctx1) { _st(_st(self)._binding())._validateAssignment();
  6821. self["@assigned"]=true;
  6822. return self}, self, "beAssigned", [], smalltalk.VariableNode)}
  6823. }),
  6824. smalltalk.VariableNode);
  6825. smalltalk.addMethod(
  6826. "_binding",
  6827. smalltalk.method({
  6828. selector: "binding",
  6829. fn: function (){
  6830. var self=this;
  6831. return smalltalk.withContext(function($ctx1) { var $1;
  6832. $1=self["@binding"];
  6833. return $1;
  6834. }, self, "binding", [], smalltalk.VariableNode)}
  6835. }),
  6836. smalltalk.VariableNode);
  6837. smalltalk.addMethod(
  6838. "_binding_",
  6839. smalltalk.method({
  6840. selector: "binding:",
  6841. fn: function (aScopeVar){
  6842. var self=this;
  6843. return smalltalk.withContext(function($ctx1) { self["@binding"]=aScopeVar;
  6844. return self}, self, "binding:", [aScopeVar], smalltalk.VariableNode)}
  6845. }),
  6846. smalltalk.VariableNode);
  6847. smalltalk.addMethod(
  6848. "_isImmutable",
  6849. smalltalk.method({
  6850. selector: "isImmutable",
  6851. fn: function (){
  6852. var self=this;
  6853. return smalltalk.withContext(function($ctx1) { return false;
  6854. }, self, "isImmutable", [], smalltalk.VariableNode)}
  6855. }),
  6856. smalltalk.VariableNode);
  6857. smalltalk.addMethod(
  6858. "_accept_",
  6859. smalltalk.method({
  6860. selector: "accept:",
  6861. fn: function (aVisitor){
  6862. var self=this;
  6863. return smalltalk.withContext(function($ctx1) { var $1;
  6864. $1=_st(aVisitor)._visitClassReferenceNode_(self);
  6865. return $1;
  6866. }, self, "accept:", [aVisitor], smalltalk.ClassReferenceNode)}
  6867. }),
  6868. smalltalk.ClassReferenceNode);
  6869. smalltalk.addMethod(
  6870. "_visit_",
  6871. smalltalk.method({
  6872. selector: "visit:",
  6873. fn: function (aNode){
  6874. var self=this;
  6875. return smalltalk.withContext(function($ctx1) { var $1;
  6876. $1=_st(aNode)._accept_(self);
  6877. return $1;
  6878. }, self, "visit:", [aNode], smalltalk.NodeVisitor)}
  6879. }),
  6880. smalltalk.NodeVisitor);
  6881. smalltalk.addMethod(
  6882. "_visitAll_",
  6883. smalltalk.method({
  6884. selector: "visitAll:",
  6885. fn: function (aCollection){
  6886. var self=this;
  6887. return smalltalk.withContext(function($ctx1) { var $1;
  6888. $1=_st(aCollection)._do_((function(each){
  6889. return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(each);
  6890. })}));
  6891. return $1;
  6892. }, self, "visitAll:", [aCollection], smalltalk.NodeVisitor)}
  6893. }),
  6894. smalltalk.NodeVisitor);
  6895. smalltalk.addMethod(
  6896. "_visitAssignmentNode_",
  6897. smalltalk.method({
  6898. selector: "visitAssignmentNode:",
  6899. fn: function (aNode){
  6900. var self=this;
  6901. return smalltalk.withContext(function($ctx1) { var $1;
  6902. $1=_st(self)._visitNode_(aNode);
  6903. return $1;
  6904. }, self, "visitAssignmentNode:", [aNode], smalltalk.NodeVisitor)}
  6905. }),
  6906. smalltalk.NodeVisitor);
  6907. smalltalk.addMethod(
  6908. "_visitBlockNode_",
  6909. smalltalk.method({
  6910. selector: "visitBlockNode:",
  6911. fn: function (aNode){
  6912. var self=this;
  6913. return smalltalk.withContext(function($ctx1) { var $1;
  6914. $1=_st(self)._visitNode_(aNode);
  6915. return $1;
  6916. }, self, "visitBlockNode:", [aNode], smalltalk.NodeVisitor)}
  6917. }),
  6918. smalltalk.NodeVisitor);
  6919. smalltalk.addMethod(
  6920. "_visitBlockSequenceNode_",
  6921. smalltalk.method({
  6922. selector: "visitBlockSequenceNode:",
  6923. fn: function (aNode){
  6924. var self=this;
  6925. return smalltalk.withContext(function($ctx1) { var $1;
  6926. $1=_st(self)._visitSequenceNode_(aNode);
  6927. return $1;
  6928. }, self, "visitBlockSequenceNode:", [aNode], smalltalk.NodeVisitor)}
  6929. }),
  6930. smalltalk.NodeVisitor);
  6931. smalltalk.addMethod(
  6932. "_visitCascadeNode_",
  6933. smalltalk.method({
  6934. selector: "visitCascadeNode:",
  6935. fn: function (aNode){
  6936. var self=this;
  6937. return smalltalk.withContext(function($ctx1) { var $1;
  6938. $1=_st(self)._visitNode_(aNode);
  6939. return $1;
  6940. }, self, "visitCascadeNode:", [aNode], smalltalk.NodeVisitor)}
  6941. }),
  6942. smalltalk.NodeVisitor);
  6943. smalltalk.addMethod(
  6944. "_visitClassReferenceNode_",
  6945. smalltalk.method({
  6946. selector: "visitClassReferenceNode:",
  6947. fn: function (aNode){
  6948. var self=this;
  6949. return smalltalk.withContext(function($ctx1) { var $1;
  6950. $1=_st(self)._visitVariableNode_(aNode);
  6951. return $1;
  6952. }, self, "visitClassReferenceNode:", [aNode], smalltalk.NodeVisitor)}
  6953. }),
  6954. smalltalk.NodeVisitor);
  6955. smalltalk.addMethod(
  6956. "_visitDynamicArrayNode_",
  6957. smalltalk.method({
  6958. selector: "visitDynamicArrayNode:",
  6959. fn: function (aNode){
  6960. var self=this;
  6961. return smalltalk.withContext(function($ctx1) { var $1;
  6962. $1=_st(self)._visitNode_(aNode);
  6963. return $1;
  6964. }, self, "visitDynamicArrayNode:", [aNode], smalltalk.NodeVisitor)}
  6965. }),
  6966. smalltalk.NodeVisitor);
  6967. smalltalk.addMethod(
  6968. "_visitDynamicDictionaryNode_",
  6969. smalltalk.method({
  6970. selector: "visitDynamicDictionaryNode:",
  6971. fn: function (aNode){
  6972. var self=this;
  6973. return smalltalk.withContext(function($ctx1) { var $1;
  6974. $1=_st(self)._visitNode_(aNode);
  6975. return $1;
  6976. }, self, "visitDynamicDictionaryNode:", [aNode], smalltalk.NodeVisitor)}
  6977. }),
  6978. smalltalk.NodeVisitor);
  6979. smalltalk.addMethod(
  6980. "_visitJSStatementNode_",
  6981. smalltalk.method({
  6982. selector: "visitJSStatementNode:",
  6983. fn: function (aNode){
  6984. var self=this;
  6985. return smalltalk.withContext(function($ctx1) { var $1;
  6986. $1=_st(self)._visitNode_(aNode);
  6987. return $1;
  6988. }, self, "visitJSStatementNode:", [aNode], smalltalk.NodeVisitor)}
  6989. }),
  6990. smalltalk.NodeVisitor);
  6991. smalltalk.addMethod(
  6992. "_visitMethodNode_",
  6993. smalltalk.method({
  6994. selector: "visitMethodNode:",
  6995. fn: function (aNode){
  6996. var self=this;
  6997. return smalltalk.withContext(function($ctx1) { var $1;
  6998. $1=_st(self)._visitNode_(aNode);
  6999. return $1;
  7000. }, self, "visitMethodNode:", [aNode], smalltalk.NodeVisitor)}
  7001. }),
  7002. smalltalk.NodeVisitor);
  7003. smalltalk.addMethod(
  7004. "_visitNode_",
  7005. smalltalk.method({
  7006. selector: "visitNode:",
  7007. fn: function (aNode){
  7008. var self=this;
  7009. return smalltalk.withContext(function($ctx1) { var $1;
  7010. $1=_st(self)._visitAll_(_st(aNode)._nodes());
  7011. return $1;
  7012. }, self, "visitNode:", [aNode], smalltalk.NodeVisitor)}
  7013. }),
  7014. smalltalk.NodeVisitor);
  7015. smalltalk.addMethod(
  7016. "_visitReturnNode_",
  7017. smalltalk.method({
  7018. selector: "visitReturnNode:",
  7019. fn: function (aNode){
  7020. var self=this;
  7021. return smalltalk.withContext(function($ctx1) { var $1;
  7022. $1=_st(self)._visitNode_(aNode);
  7023. return $1;
  7024. }, self, "visitReturnNode:", [aNode], smalltalk.NodeVisitor)}
  7025. }),
  7026. smalltalk.NodeVisitor);
  7027. smalltalk.addMethod(
  7028. "_visitSendNode_",
  7029. smalltalk.method({
  7030. selector: "visitSendNode:",
  7031. fn: function (aNode){
  7032. var self=this;
  7033. return smalltalk.withContext(function($ctx1) { var $1;
  7034. $1=_st(self)._visitNode_(aNode);
  7035. return $1;
  7036. }, self, "visitSendNode:", [aNode], smalltalk.NodeVisitor)}
  7037. }),
  7038. smalltalk.NodeVisitor);
  7039. smalltalk.addMethod(
  7040. "_visitSequenceNode_",
  7041. smalltalk.method({
  7042. selector: "visitSequenceNode:",
  7043. fn: function (aNode){
  7044. var self=this;
  7045. return smalltalk.withContext(function($ctx1) { var $1;
  7046. $1=_st(self)._visitNode_(aNode);
  7047. return $1;
  7048. }, self, "visitSequenceNode:", [aNode], smalltalk.NodeVisitor)}
  7049. }),
  7050. smalltalk.NodeVisitor);
  7051. smalltalk.addMethod(
  7052. "_visitValueNode_",
  7053. smalltalk.method({
  7054. selector: "visitValueNode:",
  7055. fn: function (aNode){
  7056. var self=this;
  7057. return smalltalk.withContext(function($ctx1) { var $1;
  7058. $1=_st(self)._visitNode_(aNode);
  7059. return $1;
  7060. }, self, "visitValueNode:", [aNode], smalltalk.NodeVisitor)}
  7061. }),
  7062. smalltalk.NodeVisitor);
  7063. smalltalk.addMethod(
  7064. "_visitVariableNode_",
  7065. smalltalk.method({
  7066. selector: "visitVariableNode:",
  7067. fn: function (aNode){
  7068. var self=this;
  7069. return smalltalk.withContext(function($ctx1) { var $1;
  7070. $1=_st(self)._visitNode_(aNode);
  7071. return $1;
  7072. }, self, "visitVariableNode:", [aNode], smalltalk.NodeVisitor)}
  7073. }),
  7074. smalltalk.NodeVisitor);
  7075. smalltalk.addMethod(
  7076. "_initializeFromMethodContext_",
  7077. smalltalk.method({
  7078. selector: "initializeFromMethodContext:",
  7079. fn: function (aMethodContext){
  7080. var self=this;
  7081. return smalltalk.withContext(function($ctx1) { var $1;
  7082. _st(self)._pc_(_st(aMethodContext)._pc());
  7083. _st(self)._receiver_(_st(aMethodContext)._receiver());
  7084. _st(self)._selector_(_st(aMethodContext)._selector());
  7085. $1=_st(aMethodContext)._outerContext();
  7086. if(($receiver = $1) == nil || $receiver == undefined){
  7087. $1;
  7088. } else {
  7089. _st(self)._outerContext_(_st(_st(self)._class())._fromMethodContext_(_st(aMethodContext)._outerContext()));
  7090. };
  7091. _st(_st(aMethodContext)._locals())._keysAndValuesDo_((function(key,value){
  7092. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._locals())._at_put_(key,value);
  7093. })}));
  7094. return self}, self, "initializeFromMethodContext:", [aMethodContext], smalltalk.AIContext)}
  7095. }),
  7096. smalltalk.AIContext);
  7097. smalltalk.addMethod(
  7098. "_locals",
  7099. smalltalk.method({
  7100. selector: "locals",
  7101. fn: function (){
  7102. var self=this;
  7103. return smalltalk.withContext(function($ctx1) { var $2,$1;
  7104. $2=self["@locals"];
  7105. if(($receiver = $2) == nil || $receiver == undefined){
  7106. self["@locals"]=_st((smalltalk.Dictionary || Dictionary))._new();
  7107. $1=self["@locals"];
  7108. } else {
  7109. $1=$2;
  7110. };
  7111. return $1;
  7112. }, self, "locals", [], smalltalk.AIContext)}
  7113. }),
  7114. smalltalk.AIContext);
  7115. smalltalk.addMethod(
  7116. "_outerContext",
  7117. smalltalk.method({
  7118. selector: "outerContext",
  7119. fn: function (){
  7120. var self=this;
  7121. return smalltalk.withContext(function($ctx1) { var $1;
  7122. $1=self["@outerContext"];
  7123. return $1;
  7124. }, self, "outerContext", [], smalltalk.AIContext)}
  7125. }),
  7126. smalltalk.AIContext);
  7127. smalltalk.addMethod(
  7128. "_outerContext_",
  7129. smalltalk.method({
  7130. selector: "outerContext:",
  7131. fn: function (anAIContext){
  7132. var self=this;
  7133. return smalltalk.withContext(function($ctx1) { self["@outerContext"]=anAIContext;
  7134. return self}, self, "outerContext:", [anAIContext], smalltalk.AIContext)}
  7135. }),
  7136. smalltalk.AIContext);
  7137. smalltalk.addMethod(
  7138. "_pc",
  7139. smalltalk.method({
  7140. selector: "pc",
  7141. fn: function (){
  7142. var self=this;
  7143. return smalltalk.withContext(function($ctx1) { var $2,$1;
  7144. $2=self["@pc"];
  7145. if(($receiver = $2) == nil || $receiver == undefined){
  7146. self["@pc"]=(0);
  7147. $1=self["@pc"];
  7148. } else {
  7149. $1=$2;
  7150. };
  7151. return $1;
  7152. }, self, "pc", [], smalltalk.AIContext)}
  7153. }),
  7154. smalltalk.AIContext);
  7155. smalltalk.addMethod(
  7156. "_pc_",
  7157. smalltalk.method({
  7158. selector: "pc:",
  7159. fn: function (anInteger){
  7160. var self=this;
  7161. return smalltalk.withContext(function($ctx1) { self["@pc"]=anInteger;
  7162. return self}, self, "pc:", [anInteger], smalltalk.AIContext)}
  7163. }),
  7164. smalltalk.AIContext);
  7165. smalltalk.addMethod(
  7166. "_receiver",
  7167. smalltalk.method({
  7168. selector: "receiver",
  7169. fn: function (){
  7170. var self=this;
  7171. return smalltalk.withContext(function($ctx1) { var $1;
  7172. $1=self["@receiver"];
  7173. return $1;
  7174. }, self, "receiver", [], smalltalk.AIContext)}
  7175. }),
  7176. smalltalk.AIContext);
  7177. smalltalk.addMethod(
  7178. "_receiver_",
  7179. smalltalk.method({
  7180. selector: "receiver:",
  7181. fn: function (anObject){
  7182. var self=this;
  7183. return smalltalk.withContext(function($ctx1) { self["@receiver"]=anObject;
  7184. return self}, self, "receiver:", [anObject], smalltalk.AIContext)}
  7185. }),
  7186. smalltalk.AIContext);
  7187. smalltalk.addMethod(
  7188. "_selector",
  7189. smalltalk.method({
  7190. selector: "selector",
  7191. fn: function (){
  7192. var self=this;
  7193. return smalltalk.withContext(function($ctx1) { var $1;
  7194. $1=self["@selector"];
  7195. return $1;
  7196. }, self, "selector", [], smalltalk.AIContext)}
  7197. }),
  7198. smalltalk.AIContext);
  7199. smalltalk.addMethod(
  7200. "_selector_",
  7201. smalltalk.method({
  7202. selector: "selector:",
  7203. fn: function (aString){
  7204. var self=this;
  7205. return smalltalk.withContext(function($ctx1) { self["@selector"]=aString;
  7206. return self}, self, "selector:", [aString], smalltalk.AIContext)}
  7207. }),
  7208. smalltalk.AIContext);
  7209. smalltalk.addMethod(
  7210. "_fromMethodContext_",
  7211. smalltalk.method({
  7212. selector: "fromMethodContext:",
  7213. fn: function (aMethodContext){
  7214. var self=this;
  7215. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  7216. $2=_st(self)._new();
  7217. _st($2)._initializeFromMethodContext_(aMethodContext);
  7218. $3=_st($2)._yourself();
  7219. $1=$3;
  7220. return $1;
  7221. }, self, "fromMethodContext:", [aMethodContext], smalltalk.AIContext.klass)}
  7222. }),
  7223. smalltalk.AIContext.klass);
  7224. smalltalk.addMethod(
  7225. "_context",
  7226. smalltalk.method({
  7227. selector: "context",
  7228. fn: function (){
  7229. var self=this;
  7230. return smalltalk.withContext(function($ctx1) { var $1;
  7231. $1=self["@context"];
  7232. return $1;
  7233. }, self, "context", [], smalltalk.ASTInterpreter)}
  7234. }),
  7235. smalltalk.ASTInterpreter);
  7236. smalltalk.addMethod(
  7237. "_context_",
  7238. smalltalk.method({
  7239. selector: "context:",
  7240. fn: function (anAIContext){
  7241. var self=this;
  7242. return smalltalk.withContext(function($ctx1) { self["@context"]=anAIContext;
  7243. return self}, self, "context:", [anAIContext], smalltalk.ASTInterpreter)}
  7244. }),
  7245. smalltalk.ASTInterpreter);
  7246. smalltalk.addMethod(
  7247. "_initialize",
  7248. smalltalk.method({
  7249. selector: "initialize",
  7250. fn: function (){
  7251. var self=this;
  7252. return smalltalk.withContext(function($ctx1) { smalltalk.NodeVisitor.fn.prototype._initialize.apply(_st(self), []);
  7253. self["@shouldReturn"]=false;
  7254. return self}, self, "initialize", [], smalltalk.ASTInterpreter)}
  7255. }),
  7256. smalltalk.ASTInterpreter);
  7257. smalltalk.addMethod(
  7258. "_interpret_",
  7259. smalltalk.method({
  7260. selector: "interpret:",
  7261. fn: function (aNode){
  7262. var self=this;
  7263. return smalltalk.withContext(function($ctx1) { var $1;
  7264. self["@shouldReturn"]=false;
  7265. $1=_st(self)._interpretNode_(aNode);
  7266. return $1;
  7267. }, self, "interpret:", [aNode], smalltalk.ASTInterpreter)}
  7268. }),
  7269. smalltalk.ASTInterpreter);
  7270. smalltalk.addMethod(
  7271. "_interpretNode_",
  7272. smalltalk.method({
  7273. selector: "interpretNode:",
  7274. fn: function (aNode){
  7275. var self=this;
  7276. return smalltalk.withContext(function($ctx1) { var $1;
  7277. self["@currentNode"]=aNode;
  7278. $1=_st(self)._visit_(aNode);
  7279. return $1;
  7280. }, self, "interpretNode:", [aNode], smalltalk.ASTInterpreter)}
  7281. }),
  7282. smalltalk.ASTInterpreter);
  7283. smalltalk.addMethod(
  7284. "_messageFromSendNode_",
  7285. smalltalk.method({
  7286. selector: "messageFromSendNode:",
  7287. fn: function (aSendNode){
  7288. var self=this;
  7289. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  7290. $2=_st((smalltalk.Message || Message))._new();
  7291. _st($2)._selector_(_st(aSendNode)._selector());
  7292. _st($2)._arguments_(_st(_st(aSendNode)._arguments())._collect_((function(each){
  7293. return smalltalk.withContext(function($ctx2) { return _st(self)._interpretNode_(each);
  7294. })})));
  7295. $3=_st($2)._yourself();
  7296. $1=$3;
  7297. return $1;
  7298. }, self, "messageFromSendNode:", [aSendNode], smalltalk.ASTInterpreter)}
  7299. }),
  7300. smalltalk.ASTInterpreter);
  7301. smalltalk.addMethod(
  7302. "_visitBlockNode_",
  7303. smalltalk.method({
  7304. selector: "visitBlockNode:",
  7305. fn: function (aNode){
  7306. var self=this;
  7307. return smalltalk.withContext(function($ctx1) { var $1;
  7308. $1=(function(){
  7309. return smalltalk.withContext(function($ctx2) { return _st(self)._interpretNode_(_st(_st(aNode)._nodes())._first());
  7310. })});
  7311. return $1;
  7312. }, self, "visitBlockNode:", [aNode], smalltalk.ASTInterpreter)}
  7313. }),
  7314. smalltalk.ASTInterpreter);
  7315. smalltalk.addMethod(
  7316. "_visitCascadeNode_",
  7317. smalltalk.method({
  7318. selector: "visitCascadeNode:",
  7319. fn: function (aNode){
  7320. var self=this;
  7321. return smalltalk.withContext(function($ctx1) { var $1;
  7322. $ctx1.locals.receiver=nil;
  7323. $ctx1.locals.receiver=_st(self)._interpretNode_(_st(aNode)._receiver());
  7324. _st(_st(_st(aNode)._nodes())._allButLast())._do_((function(each){
  7325. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._messageFromSendNode_(each))._sendTo_($ctx1.locals.receiver);
  7326. })}));
  7327. $1=_st(_st(self)._messageFromSendNode_(_st(_st(aNode)._nodes())._last()))._sendTo_($ctx1.locals.receiver);
  7328. return $1;
  7329. }, self, "visitCascadeNode:", [aNode], smalltalk.ASTInterpreter)}
  7330. }),
  7331. smalltalk.ASTInterpreter);
  7332. smalltalk.addMethod(
  7333. "_visitClassReferenceNode_",
  7334. smalltalk.method({
  7335. selector: "visitClassReferenceNode:",
  7336. fn: function (aNode){
  7337. var self=this;
  7338. return smalltalk.withContext(function($ctx1) { var $1;
  7339. $1=_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._at_(_st(aNode)._value());
  7340. return $1;
  7341. }, self, "visitClassReferenceNode:", [aNode], smalltalk.ASTInterpreter)}
  7342. }),
  7343. smalltalk.ASTInterpreter);
  7344. smalltalk.addMethod(
  7345. "_visitJSStatementNode_",
  7346. smalltalk.method({
  7347. selector: "visitJSStatementNode:",
  7348. fn: function (aNode){
  7349. var self=this;
  7350. return smalltalk.withContext(function($ctx1) { _st(self)._halt();
  7351. return self}, self, "visitJSStatementNode:", [aNode], smalltalk.ASTInterpreter)}
  7352. }),
  7353. smalltalk.ASTInterpreter);
  7354. smalltalk.addMethod(
  7355. "_visitReturnNode_",
  7356. smalltalk.method({
  7357. selector: "visitReturnNode:",
  7358. fn: function (aNode){
  7359. var self=this;
  7360. return smalltalk.withContext(function($ctx1) { var $1;
  7361. self["@shouldReturn"]=true;
  7362. $1=_st(self)._interpretNode_(_st(_st(aNode)._nodes())._first());
  7363. return $1;
  7364. }, self, "visitReturnNode:", [aNode], smalltalk.ASTInterpreter)}
  7365. }),
  7366. smalltalk.ASTInterpreter);
  7367. smalltalk.addMethod(
  7368. "_visitSendNode_",
  7369. smalltalk.method({
  7370. selector: "visitSendNode:",
  7371. fn: function (aNode){
  7372. var self=this;
  7373. return smalltalk.withContext(function($ctx1) { var $1;
  7374. $1=_st(_st(self)._messageFromSendNode_(aNode))._sendTo_(_st(self)._interpretNode_(_st(aNode)._receiver()));
  7375. return $1;
  7376. }, self, "visitSendNode:", [aNode], smalltalk.ASTInterpreter)}
  7377. }),
  7378. smalltalk.ASTInterpreter);
  7379. smalltalk.addMethod(
  7380. "_visitSequenceNode_",
  7381. smalltalk.method({
  7382. selector: "visitSequenceNode:",
  7383. fn: function (aNode){
  7384. var self=this;
  7385. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$2,$5;
  7386. var $early={};
  7387. try {
  7388. $1=_st(_st(aNode)._nodes())._allButLast();
  7389. $2=(function(each){
  7390. return smalltalk.withContext(function($ctx2) { $ctx2.locals.value=nil;
  7391. $ctx2.locals.value=_st(self)._interpretNode_(each);
  7392. $ctx2.locals.value;
  7393. $3=self["@shouldReturn"];
  7394. if(smalltalk.assert($3)){
  7395. $4=$ctx2.locals.value;
  7396. throw $early=[$4];
  7397. };
  7398. })});
  7399. _st($1)._do_($2);
  7400. $5=_st(self)._interpretNode_(_st(_st(aNode)._nodes())._last());
  7401. return $5;
  7402. }
  7403. catch(e) {if(e===$early)return e[0]; throw e}
  7404. }, self, "visitSequenceNode:", [aNode], smalltalk.ASTInterpreter)}
  7405. }),
  7406. smalltalk.ASTInterpreter);
  7407. smalltalk.addMethod(
  7408. "_visitValueNode_",
  7409. smalltalk.method({
  7410. selector: "visitValueNode:",
  7411. fn: function (aNode){
  7412. var self=this;
  7413. return smalltalk.withContext(function($ctx1) { var $1;
  7414. $1=_st(aNode)._value();
  7415. return $1;
  7416. }, self, "visitValueNode:", [aNode], smalltalk.ASTInterpreter)}
  7417. }),
  7418. smalltalk.ASTInterpreter);
  7419. smalltalk.addMethod(
  7420. "_classNameFor_",
  7421. smalltalk.method({
  7422. selector: "classNameFor:",
  7423. fn: function (aClass){
  7424. var self=this;
  7425. return smalltalk.withContext(function($ctx1) { var $2,$3,$5,$4,$1;
  7426. $2=_st(aClass)._isMetaclass();
  7427. $3=(function(){
  7428. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(aClass)._instanceClass())._name()).__comma(".klass");
  7429. })});
  7430. $4=(function(){
  7431. return smalltalk.withContext(function($ctx2) { $5=_st(aClass)._isNil();
  7432. if(smalltalk.assert($5)){
  7433. return "nil";
  7434. } else {
  7435. return _st(aClass)._name();
  7436. };
  7437. })});
  7438. $1=_st($2)._ifTrue_ifFalse_($3,$4);
  7439. return $1;
  7440. }, self, "classNameFor:", [aClass], smalltalk.AbstractCodeGenerator)}
  7441. }),
  7442. smalltalk.AbstractCodeGenerator);
  7443. smalltalk.addMethod(
  7444. "_compileNode_",
  7445. smalltalk.method({
  7446. selector: "compileNode:",
  7447. fn: function (aNode){
  7448. var self=this;
  7449. return smalltalk.withContext(function($ctx1) { _st(self)._subclassResponsibility();
  7450. return self}, self, "compileNode:", [aNode], smalltalk.AbstractCodeGenerator)}
  7451. }),
  7452. smalltalk.AbstractCodeGenerator);
  7453. smalltalk.addMethod(
  7454. "_currentClass",
  7455. smalltalk.method({
  7456. selector: "currentClass",
  7457. fn: function (){
  7458. var self=this;
  7459. return smalltalk.withContext(function($ctx1) { var $1;
  7460. $1=self["@currentClass"];
  7461. return $1;
  7462. }, self, "currentClass", [], smalltalk.AbstractCodeGenerator)}
  7463. }),
  7464. smalltalk.AbstractCodeGenerator);
  7465. smalltalk.addMethod(
  7466. "_currentClass_",
  7467. smalltalk.method({
  7468. selector: "currentClass:",
  7469. fn: function (aClass){
  7470. var self=this;
  7471. return smalltalk.withContext(function($ctx1) { self["@currentClass"]=aClass;
  7472. return self}, self, "currentClass:", [aClass], smalltalk.AbstractCodeGenerator)}
  7473. }),
  7474. smalltalk.AbstractCodeGenerator);
  7475. smalltalk.addMethod(
  7476. "_pseudoVariables",
  7477. smalltalk.method({
  7478. selector: "pseudoVariables",
  7479. fn: function (){
  7480. var self=this;
  7481. return smalltalk.withContext(function($ctx1) { return ["self", "super", "true", "false", "nil", "thisContext"];
  7482. }, self, "pseudoVariables", [], smalltalk.AbstractCodeGenerator)}
  7483. }),
  7484. smalltalk.AbstractCodeGenerator);
  7485. smalltalk.addMethod(
  7486. "_safeVariableNameFor_",
  7487. smalltalk.method({
  7488. selector: "safeVariableNameFor:",
  7489. fn: function (aString){
  7490. var self=this;
  7491. return smalltalk.withContext(function($ctx1) { var $2,$1;
  7492. $2=_st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._reservedWords())._includes_(aString);
  7493. if(smalltalk.assert($2)){
  7494. $1=_st(aString).__comma("_");
  7495. } else {
  7496. $1=aString;
  7497. };
  7498. return $1;
  7499. }, self, "safeVariableNameFor:", [aString], smalltalk.AbstractCodeGenerator)}
  7500. }),
  7501. smalltalk.AbstractCodeGenerator);
  7502. smalltalk.addMethod(
  7503. "_source",
  7504. smalltalk.method({
  7505. selector: "source",
  7506. fn: function (){
  7507. var self=this;
  7508. return smalltalk.withContext(function($ctx1) { var $2,$1;
  7509. $2=self["@source"];
  7510. if(($receiver = $2) == nil || $receiver == undefined){
  7511. $1="";
  7512. } else {
  7513. $1=$2;
  7514. };
  7515. return $1;
  7516. }, self, "source", [], smalltalk.AbstractCodeGenerator)}
  7517. }),
  7518. smalltalk.AbstractCodeGenerator);
  7519. smalltalk.addMethod(
  7520. "_source_",
  7521. smalltalk.method({
  7522. selector: "source:",
  7523. fn: function (aString){
  7524. var self=this;
  7525. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  7526. return self}, self, "source:", [aString], smalltalk.AbstractCodeGenerator)}
  7527. }),
  7528. smalltalk.AbstractCodeGenerator);
  7529. smalltalk.addMethod(
  7530. "_compileNode_",
  7531. smalltalk.method({
  7532. selector: "compileNode:",
  7533. fn: function (aNode){
  7534. var self=this;
  7535. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  7536. $ctx1.locals.ir=nil;
  7537. $ctx1.locals.stream=nil;
  7538. _st(_st(self)._semanticAnalyzer())._visit_(aNode);
  7539. $ctx1.locals.ir=_st(_st(self)._translator())._visit_(aNode);
  7540. $2=_st(self)._irTranslator();
  7541. _st($2)._visit_($ctx1.locals.ir);
  7542. $3=_st($2)._contents();
  7543. $1=$3;
  7544. return $1;
  7545. }, self, "compileNode:", [aNode], smalltalk.CodeGenerator)}
  7546. }),
  7547. smalltalk.CodeGenerator);
  7548. smalltalk.addMethod(
  7549. "_irTranslator",
  7550. smalltalk.method({
  7551. selector: "irTranslator",
  7552. fn: function (){
  7553. var self=this;
  7554. return smalltalk.withContext(function($ctx1) { var $1;
  7555. $1=_st((smalltalk.IRJSTranslator || IRJSTranslator))._new();
  7556. return $1;
  7557. }, self, "irTranslator", [], smalltalk.CodeGenerator)}
  7558. }),
  7559. smalltalk.CodeGenerator);
  7560. smalltalk.addMethod(
  7561. "_semanticAnalyzer",
  7562. smalltalk.method({
  7563. selector: "semanticAnalyzer",
  7564. fn: function (){
  7565. var self=this;
  7566. return smalltalk.withContext(function($ctx1) { var $1;
  7567. $1=_st((smalltalk.SemanticAnalyzer || SemanticAnalyzer))._on_(_st(self)._currentClass());
  7568. return $1;
  7569. }, self, "semanticAnalyzer", [], smalltalk.CodeGenerator)}
  7570. }),
  7571. smalltalk.CodeGenerator);
  7572. smalltalk.addMethod(
  7573. "_translator",
  7574. smalltalk.method({
  7575. selector: "translator",
  7576. fn: function (){
  7577. var self=this;
  7578. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  7579. $2=_st((smalltalk.IRASTTranslator || IRASTTranslator))._new();
  7580. _st($2)._source_(_st(self)._source());
  7581. _st($2)._theClass_(_st(self)._currentClass());
  7582. $3=_st($2)._yourself();
  7583. $1=$3;
  7584. return $1;
  7585. }, self, "translator", [], smalltalk.CodeGenerator)}
  7586. }),
  7587. smalltalk.CodeGenerator);
  7588. smalltalk.addMethod(
  7589. "_compileNode_",
  7590. smalltalk.method({
  7591. selector: "compileNode:",
  7592. fn: function (aNode){
  7593. var self=this;
  7594. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  7595. $ctx1.locals.ir=nil;
  7596. $ctx1.locals.stream=nil;
  7597. _st(_st(self)._semanticAnalyzer())._visit_(aNode);
  7598. $ctx1.locals.ir=_st(_st(self)._translator())._visit_(aNode);
  7599. _st(_st(self)._inliner())._visit_($ctx1.locals.ir);
  7600. $2=_st(self)._irTranslator();
  7601. _st($2)._visit_($ctx1.locals.ir);
  7602. $3=_st($2)._contents();
  7603. $1=$3;
  7604. return $1;
  7605. }, self, "compileNode:", [aNode], smalltalk.InliningCodeGenerator)}
  7606. }),
  7607. smalltalk.InliningCodeGenerator);
  7608. smalltalk.addMethod(
  7609. "_inliner",
  7610. smalltalk.method({
  7611. selector: "inliner",
  7612. fn: function (){
  7613. var self=this;
  7614. return smalltalk.withContext(function($ctx1) { var $1;
  7615. $1=_st((smalltalk.IRInliner || IRInliner))._new();
  7616. return $1;
  7617. }, self, "inliner", [], smalltalk.InliningCodeGenerator)}
  7618. }),
  7619. smalltalk.InliningCodeGenerator);
  7620. smalltalk.addMethod(
  7621. "_irTranslator",
  7622. smalltalk.method({
  7623. selector: "irTranslator",
  7624. fn: function (){
  7625. var self=this;
  7626. return smalltalk.withContext(function($ctx1) { var $1;
  7627. $1=_st((smalltalk.IRInliningJSTranslator || IRInliningJSTranslator))._new();
  7628. return $1;
  7629. }, self, "irTranslator", [], smalltalk.InliningCodeGenerator)}
  7630. }),
  7631. smalltalk.InliningCodeGenerator);
  7632. smalltalk.addMethod(
  7633. "_alias_",
  7634. smalltalk.method({
  7635. selector: "alias:",
  7636. fn: function (aNode){
  7637. var self=this;
  7638. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6,$7;
  7639. $ctx1.locals.variable=nil;
  7640. $1=_st(aNode)._isImmutable();
  7641. if(smalltalk.assert($1)){
  7642. $2=_st(self)._visit_(aNode);
  7643. return $2;
  7644. };
  7645. $3=_st((smalltalk.IRVariable || IRVariable))._new();
  7646. _st($3)._variable_(_st(_st((smalltalk.AliasVar || AliasVar))._new())._name_(_st("$").__comma(_st(self)._nextAlias())));
  7647. $4=_st($3)._yourself();
  7648. $ctx1.locals.variable=$4;
  7649. $5=_st((smalltalk.IRAssignment || IRAssignment))._new();
  7650. _st($5)._add_($ctx1.locals.variable);
  7651. _st($5)._add_(_st(self)._visit_(aNode));
  7652. $6=_st($5)._yourself();
  7653. _st(_st(self)._sequence())._add_($6);
  7654. _st(_st(_st(self)._method())._internalVariables())._add_($ctx1.locals.variable);
  7655. $7=$ctx1.locals.variable;
  7656. return $7;
  7657. }, self, "alias:", [aNode], smalltalk.IRASTTranslator)}
  7658. }),
  7659. smalltalk.IRASTTranslator);
  7660. smalltalk.addMethod(
  7661. "_aliasTemporally_",
  7662. smalltalk.method({
  7663. selector: "aliasTemporally:",
  7664. fn: function (aCollection){
  7665. var self=this;
  7666. return smalltalk.withContext(function($ctx1) { var $1,$3,$2,$4,$6,$8,$7,$5,$9;
  7667. $ctx1.locals.threshold=nil;
  7668. $ctx1.locals.result=nil;
  7669. $ctx1.locals.threshold=(0);
  7670. $1=aCollection;
  7671. $2=(function(each,i){
  7672. return smalltalk.withContext(function($ctx2) { $3=_st(each)._subtreeNeedsAliasing();
  7673. if(smalltalk.assert($3)){
  7674. $ctx1.locals.threshold=i;
  7675. return $ctx1.locals.threshold;
  7676. };
  7677. })});
  7678. _st($1)._withIndexDo_($2);
  7679. $ctx1.locals.result=_st((smalltalk.OrderedCollection || OrderedCollection))._new();
  7680. $4=aCollection;
  7681. $5=(function(each,i){
  7682. return smalltalk.withContext(function($ctx2) { $6=$ctx1.locals.result;
  7683. $8=_st(i).__lt_eq($ctx1.locals.threshold);
  7684. if(smalltalk.assert($8)){
  7685. $7=_st(self)._alias_(each);
  7686. } else {
  7687. $7=_st(self)._visit_(each);
  7688. };
  7689. return _st($6)._add_($7);
  7690. })});
  7691. _st($4)._withIndexDo_($5);
  7692. $9=$ctx1.locals.result;
  7693. return $9;
  7694. }, self, "aliasTemporally:", [aCollection], smalltalk.IRASTTranslator)}
  7695. }),
  7696. smalltalk.IRASTTranslator);
  7697. smalltalk.addMethod(
  7698. "_method",
  7699. smalltalk.method({
  7700. selector: "method",
  7701. fn: function (){
  7702. var self=this;
  7703. return smalltalk.withContext(function($ctx1) { var $1;
  7704. $1=self["@method"];
  7705. return $1;
  7706. }, self, "method", [], smalltalk.IRASTTranslator)}
  7707. }),
  7708. smalltalk.IRASTTranslator);
  7709. smalltalk.addMethod(
  7710. "_method_",
  7711. smalltalk.method({
  7712. selector: "method:",
  7713. fn: function (anIRMethod){
  7714. var self=this;
  7715. return smalltalk.withContext(function($ctx1) { self["@method"]=anIRMethod;
  7716. return self}, self, "method:", [anIRMethod], smalltalk.IRASTTranslator)}
  7717. }),
  7718. smalltalk.IRASTTranslator);
  7719. smalltalk.addMethod(
  7720. "_nextAlias",
  7721. smalltalk.method({
  7722. selector: "nextAlias",
  7723. fn: function (){
  7724. var self=this;
  7725. return smalltalk.withContext(function($ctx1) { var $1,$2;
  7726. $1=self["@nextAlias"];
  7727. if(($receiver = $1) == nil || $receiver == undefined){
  7728. self["@nextAlias"]=(0);
  7729. self["@nextAlias"];
  7730. } else {
  7731. $1;
  7732. };
  7733. self["@nextAlias"]=_st(self["@nextAlias"]).__plus((1));
  7734. $2=_st(self["@nextAlias"])._asString();
  7735. return $2;
  7736. }, self, "nextAlias", [], smalltalk.IRASTTranslator)}
  7737. }),
  7738. smalltalk.IRASTTranslator);
  7739. smalltalk.addMethod(
  7740. "_sequence",
  7741. smalltalk.method({
  7742. selector: "sequence",
  7743. fn: function (){
  7744. var self=this;
  7745. return smalltalk.withContext(function($ctx1) { var $1;
  7746. $1=self["@sequence"];
  7747. return $1;
  7748. }, self, "sequence", [], smalltalk.IRASTTranslator)}
  7749. }),
  7750. smalltalk.IRASTTranslator);
  7751. smalltalk.addMethod(
  7752. "_sequence_",
  7753. smalltalk.method({
  7754. selector: "sequence:",
  7755. fn: function (anIRSequence){
  7756. var self=this;
  7757. return smalltalk.withContext(function($ctx1) { self["@sequence"]=anIRSequence;
  7758. return self}, self, "sequence:", [anIRSequence], smalltalk.IRASTTranslator)}
  7759. }),
  7760. smalltalk.IRASTTranslator);
  7761. smalltalk.addMethod(
  7762. "_source",
  7763. smalltalk.method({
  7764. selector: "source",
  7765. fn: function (){
  7766. var self=this;
  7767. return smalltalk.withContext(function($ctx1) { var $1;
  7768. $1=self["@source"];
  7769. return $1;
  7770. }, self, "source", [], smalltalk.IRASTTranslator)}
  7771. }),
  7772. smalltalk.IRASTTranslator);
  7773. smalltalk.addMethod(
  7774. "_source_",
  7775. smalltalk.method({
  7776. selector: "source:",
  7777. fn: function (aString){
  7778. var self=this;
  7779. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  7780. return self}, self, "source:", [aString], smalltalk.IRASTTranslator)}
  7781. }),
  7782. smalltalk.IRASTTranslator);
  7783. smalltalk.addMethod(
  7784. "_theClass",
  7785. smalltalk.method({
  7786. selector: "theClass",
  7787. fn: function (){
  7788. var self=this;
  7789. return smalltalk.withContext(function($ctx1) { var $1;
  7790. $1=self["@theClass"];
  7791. return $1;
  7792. }, self, "theClass", [], smalltalk.IRASTTranslator)}
  7793. }),
  7794. smalltalk.IRASTTranslator);
  7795. smalltalk.addMethod(
  7796. "_theClass_",
  7797. smalltalk.method({
  7798. selector: "theClass:",
  7799. fn: function (aClass){
  7800. var self=this;
  7801. return smalltalk.withContext(function($ctx1) { self["@theClass"]=aClass;
  7802. return self}, self, "theClass:", [aClass], smalltalk.IRASTTranslator)}
  7803. }),
  7804. smalltalk.IRASTTranslator);
  7805. smalltalk.addMethod(
  7806. "_visitAssignmentNode_",
  7807. smalltalk.method({
  7808. selector: "visitAssignmentNode:",
  7809. fn: function (aNode){
  7810. var self=this;
  7811. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  7812. $ctx1.locals.left=nil;
  7813. $ctx1.locals.right=nil;
  7814. $ctx1.locals.assignment=nil;
  7815. $ctx1.locals.right=_st(self)._visit_(_st(aNode)._right());
  7816. $ctx1.locals.left=_st(self)._visit_(_st(aNode)._left());
  7817. $1=_st((smalltalk.IRAssignment || IRAssignment))._new();
  7818. _st($1)._add_($ctx1.locals.left);
  7819. _st($1)._add_($ctx1.locals.right);
  7820. $2=_st($1)._yourself();
  7821. _st(_st(self)._sequence())._add_($2);
  7822. $3=$ctx1.locals.left;
  7823. return $3;
  7824. }, self, "visitAssignmentNode:", [aNode], smalltalk.IRASTTranslator)}
  7825. }),
  7826. smalltalk.IRASTTranslator);
  7827. smalltalk.addMethod(
  7828. "_visitBlockNode_",
  7829. smalltalk.method({
  7830. selector: "visitBlockNode:",
  7831. fn: function (aNode){
  7832. var self=this;
  7833. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5;
  7834. $ctx1.locals.closure=nil;
  7835. $1=_st((smalltalk.IRClosure || IRClosure))._new();
  7836. _st($1)._arguments_(_st(aNode)._parameters());
  7837. _st($1)._scope_(_st(aNode)._scope());
  7838. $2=_st($1)._yourself();
  7839. $ctx1.locals.closure=$2;
  7840. _st(_st(_st(aNode)._scope())._temps())._do_((function(each){
  7841. return smalltalk.withContext(function($ctx2) { $3=_st((smalltalk.IRTempDeclaration || IRTempDeclaration))._new();
  7842. _st($3)._name_(_st(each)._name());
  7843. _st($3)._scope_(_st(aNode)._scope());
  7844. $4=_st($3)._yourself();
  7845. return _st($ctx1.locals.closure)._add_($4);
  7846. })}));
  7847. _st(_st(aNode)._nodes())._do_((function(each){
  7848. return smalltalk.withContext(function($ctx2) { return _st($ctx1.locals.closure)._add_(_st(self)._visit_(each));
  7849. })}));
  7850. $5=$ctx1.locals.closure;
  7851. return $5;
  7852. }, self, "visitBlockNode:", [aNode], smalltalk.IRASTTranslator)}
  7853. }),
  7854. smalltalk.IRASTTranslator);
  7855. smalltalk.addMethod(
  7856. "_visitBlockSequenceNode_",
  7857. smalltalk.method({
  7858. selector: "visitBlockSequenceNode:",
  7859. fn: function (aNode){
  7860. var self=this;
  7861. return smalltalk.withContext(function($ctx1) { var $2,$3,$5,$7,$8,$9,$6,$4,$1;
  7862. $2=self;
  7863. $3=_st((smalltalk.IRBlockSequence || IRBlockSequence))._new();
  7864. $4=(function(){
  7865. return smalltalk.withContext(function($ctx2) { $5=_st(aNode)._nodes();
  7866. $6=(function(){
  7867. return smalltalk.withContext(function($ctx3) { _st(_st(_st(aNode)._nodes())._allButLast())._do_((function(each){
  7868. return smalltalk.withContext(function($ctx4) { return _st(_st(self)._sequence())._add_(_st(self)._visit_(each));
  7869. })}));
  7870. $7=_st(_st(_st(aNode)._nodes())._last())._isReturnNode();
  7871. if(smalltalk.assert($7)){
  7872. return _st(_st(self)._sequence())._add_(_st(self)._visit_(_st(_st(aNode)._nodes())._last()));
  7873. } else {
  7874. $8=_st((smalltalk.IRBlockReturn || IRBlockReturn))._new();
  7875. _st($8)._add_(_st(self)._visit_(_st(_st(aNode)._nodes())._last()));
  7876. $9=_st($8)._yourself();
  7877. return _st(_st(self)._sequence())._add_($9);
  7878. };
  7879. })});
  7880. return _st($5)._ifNotEmpty_($6);
  7881. })});
  7882. $1=_st($2)._withSequence_do_($3,$4);
  7883. return $1;
  7884. }, self, "visitBlockSequenceNode:", [aNode], smalltalk.IRASTTranslator)}
  7885. }),
  7886. smalltalk.IRASTTranslator);
  7887. smalltalk.addMethod(
  7888. "_visitCascadeNode_",
  7889. smalltalk.method({
  7890. selector: "visitCascadeNode:",
  7891. fn: function (aNode){
  7892. var self=this;
  7893. return smalltalk.withContext(function($ctx1) { var $1,$2;
  7894. $ctx1.locals.alias=nil;
  7895. $1=_st(_st(aNode)._receiver())._isImmutable();
  7896. if(! smalltalk.assert($1)){
  7897. $ctx1.locals.alias=_st(self)._alias_(_st(aNode)._receiver());
  7898. $ctx1.locals.alias;
  7899. _st(_st(aNode)._nodes())._do_((function(each){
  7900. return smalltalk.withContext(function($ctx2) { return _st(each)._receiver_(_st(_st((smalltalk.VariableNode || VariableNode))._new())._binding_(_st($ctx1.locals.alias)._variable()));
  7901. })}));
  7902. };
  7903. _st(_st(_st(aNode)._nodes())._allButLast())._do_((function(each){
  7904. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._sequence())._add_(_st(self)._visit_(each));
  7905. })}));
  7906. $2=_st(self)._alias_(_st(_st(aNode)._nodes())._last());
  7907. return $2;
  7908. }, self, "visitCascadeNode:", [aNode], smalltalk.IRASTTranslator)}
  7909. }),
  7910. smalltalk.IRASTTranslator);
  7911. smalltalk.addMethod(
  7912. "_visitDynamicArrayNode_",
  7913. smalltalk.method({
  7914. selector: "visitDynamicArrayNode:",
  7915. fn: function (aNode){
  7916. var self=this;
  7917. return smalltalk.withContext(function($ctx1) { var $1;
  7918. $ctx1.locals.array=nil;
  7919. $ctx1.locals.array=_st((smalltalk.IRDynamicArray || IRDynamicArray))._new();
  7920. _st(_st(self)._aliasTemporally_(_st(aNode)._nodes()))._do_((function(each){
  7921. return smalltalk.withContext(function($ctx2) { return _st($ctx1.locals.array)._add_(each);
  7922. })}));
  7923. $1=$ctx1.locals.array;
  7924. return $1;
  7925. }, self, "visitDynamicArrayNode:", [aNode], smalltalk.IRASTTranslator)}
  7926. }),
  7927. smalltalk.IRASTTranslator);
  7928. smalltalk.addMethod(
  7929. "_visitDynamicDictionaryNode_",
  7930. smalltalk.method({
  7931. selector: "visitDynamicDictionaryNode:",
  7932. fn: function (aNode){
  7933. var self=this;
  7934. return smalltalk.withContext(function($ctx1) { var $1;
  7935. $ctx1.locals.dictionary=nil;
  7936. $ctx1.locals.dictionary=_st((smalltalk.IRDynamicDictionary || IRDynamicDictionary))._new();
  7937. _st(_st(self)._aliasTemporally_(_st(aNode)._nodes()))._do_((function(each){
  7938. return smalltalk.withContext(function($ctx2) { return _st($ctx1.locals.dictionary)._add_(each);
  7939. })}));
  7940. $1=$ctx1.locals.dictionary;
  7941. return $1;
  7942. }, self, "visitDynamicDictionaryNode:", [aNode], smalltalk.IRASTTranslator)}
  7943. }),
  7944. smalltalk.IRASTTranslator);
  7945. smalltalk.addMethod(
  7946. "_visitJSStatementNode_",
  7947. smalltalk.method({
  7948. selector: "visitJSStatementNode:",
  7949. fn: function (aNode){
  7950. var self=this;
  7951. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  7952. $2=_st((smalltalk.IRVerbatim || IRVerbatim))._new();
  7953. _st($2)._source_(_st(aNode)._source());
  7954. $3=_st($2)._yourself();
  7955. $1=$3;
  7956. return $1;
  7957. }, self, "visitJSStatementNode:", [aNode], smalltalk.IRASTTranslator)}
  7958. }),
  7959. smalltalk.IRASTTranslator);
  7960. smalltalk.addMethod(
  7961. "_visitMethodNode_",
  7962. smalltalk.method({
  7963. selector: "visitMethodNode:",
  7964. fn: function (aNode){
  7965. var self=this;
  7966. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6,$7,$8;
  7967. $1=_st((smalltalk.IRMethod || IRMethod))._new();
  7968. _st($1)._source_(_st(self)._source());
  7969. _st($1)._theClass_(_st(self)._theClass());
  7970. _st($1)._arguments_(_st(aNode)._arguments());
  7971. _st($1)._selector_(_st(aNode)._selector());
  7972. _st($1)._messageSends_(_st(aNode)._messageSends());
  7973. _st($1)._superSends_(_st(aNode)._superSends());
  7974. _st($1)._classReferences_(_st(aNode)._classReferences());
  7975. _st($1)._scope_(_st(aNode)._scope());
  7976. $2=_st($1)._yourself();
  7977. _st(self)._method_($2);
  7978. _st(_st(_st(aNode)._scope())._temps())._do_((function(each){
  7979. return smalltalk.withContext(function($ctx2) { $3=_st((smalltalk.IRTempDeclaration || IRTempDeclaration))._new();
  7980. _st($3)._name_(_st(each)._name());
  7981. _st($3)._scope_(_st(aNode)._scope());
  7982. $4=_st($3)._yourself();
  7983. return _st(_st(self)._method())._add_($4);
  7984. })}));
  7985. _st(_st(aNode)._nodes())._do_((function(each){
  7986. return smalltalk.withContext(function($ctx2) { return _st(_st(self)._method())._add_(_st(self)._visit_(each));
  7987. })}));
  7988. $5=_st(_st(aNode)._scope())._hasLocalReturn();
  7989. if(! smalltalk.assert($5)){
  7990. $6=_st((smalltalk.IRVariable || IRVariable))._new();
  7991. _st($6)._variable_(_st(_st(_st(aNode)._scope())._pseudoVars())._at_("self"));
  7992. $7=_st($6)._yourself();
  7993. _st(_st(_st(self)._method())._add_(_st((smalltalk.IRReturn || IRReturn))._new()))._add_($7);
  7994. };
  7995. $8=_st(self)._method();
  7996. return $8;
  7997. }, self, "visitMethodNode:", [aNode], smalltalk.IRASTTranslator)}
  7998. }),
  7999. smalltalk.IRASTTranslator);
  8000. smalltalk.addMethod(
  8001. "_visitReturnNode_",
  8002. smalltalk.method({
  8003. selector: "visitReturnNode:",
  8004. fn: function (aNode){
  8005. var self=this;
  8006. return smalltalk.withContext(function($ctx1) { var $1,$2;
  8007. $ctx1.locals.return=nil;
  8008. $1=_st(aNode)._nonLocalReturn();
  8009. if(smalltalk.assert($1)){
  8010. $ctx1.locals.return_=_st((smalltalk.IRNonLocalReturn || IRNonLocalReturn))._new();
  8011. } else {
  8012. $ctx1.locals.return_=_st((smalltalk.IRReturn || IRReturn))._new();
  8013. };
  8014. _st($ctx1.locals.return_)._scope_(_st(aNode)._scope());
  8015. _st(_st(aNode)._nodes())._do_((function(each){
  8016. return smalltalk.withContext(function($ctx2) { return _st($ctx1.locals.return_)._add_(_st(self)._alias_(each));
  8017. })}));
  8018. $2=$ctx1.locals.return_;
  8019. return $2;
  8020. }, self, "visitReturnNode:", [aNode], smalltalk.IRASTTranslator)}
  8021. }),
  8022. smalltalk.IRASTTranslator);
  8023. smalltalk.addMethod(
  8024. "_visitSendNode_",
  8025. smalltalk.method({
  8026. selector: "visitSendNode:",
  8027. fn: function (aNode){
  8028. var self=this;
  8029. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  8030. $ctx1.locals.send=nil;
  8031. $ctx1.locals.all=nil;
  8032. $ctx1.locals.receiver=nil;
  8033. $ctx1.locals.arguments=nil;
  8034. $ctx1.locals.send=_st((smalltalk.IRSend || IRSend))._new();
  8035. $1=$ctx1.locals.send;
  8036. _st($1)._selector_(_st(aNode)._selector());
  8037. $2=_st($1)._index_(_st(aNode)._index());
  8038. $3=_st(aNode)._superSend();
  8039. if(smalltalk.assert($3)){
  8040. _st($ctx1.locals.send)._classSend_(_st(_st(self)._theClass())._superclass());
  8041. };
  8042. $ctx1.locals.all=_st(self)._aliasTemporally_(_st([_st(aNode)._receiver()]).__comma(_st(aNode)._arguments()));
  8043. $ctx1.locals.receiver=_st($ctx1.locals.all)._first();
  8044. $ctx1.locals.arguments=_st($ctx1.locals.all)._allButFirst();
  8045. _st($ctx1.locals.send)._add_($ctx1.locals.receiver);
  8046. _st($ctx1.locals.arguments)._do_((function(each){
  8047. return smalltalk.withContext(function($ctx2) { return _st($ctx1.locals.send)._add_(each);
  8048. })}));
  8049. $4=$ctx1.locals.send;
  8050. return $4;
  8051. }, self, "visitSendNode:", [aNode], smalltalk.IRASTTranslator)}
  8052. }),
  8053. smalltalk.IRASTTranslator);
  8054. smalltalk.addMethod(
  8055. "_visitSequenceNode_",
  8056. smalltalk.method({
  8057. selector: "visitSequenceNode:",
  8058. fn: function (aNode){
  8059. var self=this;
  8060. return smalltalk.withContext(function($ctx1) { var $2,$3,$5,$7,$6,$4,$1;
  8061. $2=self;
  8062. $3=_st((smalltalk.IRSequence || IRSequence))._new();
  8063. $4=(function(){
  8064. return smalltalk.withContext(function($ctx2) { $5=_st(aNode)._nodes();
  8065. $6=(function(each){
  8066. return smalltalk.withContext(function($ctx3) { $ctx3.locals.instruction=nil;
  8067. $ctx3.locals.instruction=_st(self)._visit_(each);
  8068. $ctx3.locals.instruction;
  8069. $7=_st($ctx3.locals.instruction)._isVariable();
  8070. if(! smalltalk.assert($7)){
  8071. return _st(_st(self)._sequence())._add_($ctx3.locals.instruction);
  8072. };
  8073. })});
  8074. return _st($5)._do_($6);
  8075. })});
  8076. $1=_st($2)._withSequence_do_($3,$4);
  8077. return $1;
  8078. }, self, "visitSequenceNode:", [aNode], smalltalk.IRASTTranslator)}
  8079. }),
  8080. smalltalk.IRASTTranslator);
  8081. smalltalk.addMethod(
  8082. "_visitValueNode_",
  8083. smalltalk.method({
  8084. selector: "visitValueNode:",
  8085. fn: function (aNode){
  8086. var self=this;
  8087. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  8088. $2=_st((smalltalk.IRValue || IRValue))._new();
  8089. _st($2)._value_(_st(aNode)._value());
  8090. $3=_st($2)._yourself();
  8091. $1=$3;
  8092. return $1;
  8093. }, self, "visitValueNode:", [aNode], smalltalk.IRASTTranslator)}
  8094. }),
  8095. smalltalk.IRASTTranslator);
  8096. smalltalk.addMethod(
  8097. "_visitVariableNode_",
  8098. smalltalk.method({
  8099. selector: "visitVariableNode:",
  8100. fn: function (aNode){
  8101. var self=this;
  8102. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  8103. $2=_st((smalltalk.IRVariable || IRVariable))._new();
  8104. _st($2)._variable_(_st(aNode)._binding());
  8105. $3=_st($2)._yourself();
  8106. $1=$3;
  8107. return $1;
  8108. }, self, "visitVariableNode:", [aNode], smalltalk.IRASTTranslator)}
  8109. }),
  8110. smalltalk.IRASTTranslator);
  8111. smalltalk.addMethod(
  8112. "_withSequence_do_",
  8113. smalltalk.method({
  8114. selector: "withSequence:do:",
  8115. fn: function (aSequence,aBlock){
  8116. var self=this;
  8117. return smalltalk.withContext(function($ctx1) { var $1;
  8118. $ctx1.locals.outerSequence=nil;
  8119. $ctx1.locals.outerSequence=_st(self)._sequence();
  8120. _st(self)._sequence_(aSequence);
  8121. _st(aBlock)._value();
  8122. _st(self)._sequence_($ctx1.locals.outerSequence);
  8123. $1=aSequence;
  8124. return $1;
  8125. }, self, "withSequence:do:", [aSequence,aBlock], smalltalk.IRASTTranslator)}
  8126. }),
  8127. smalltalk.IRASTTranslator);
  8128. smalltalk.addMethod(
  8129. "_classReferences",
  8130. smalltalk.method({
  8131. selector: "classReferences",
  8132. fn: function (){
  8133. var self=this;
  8134. return smalltalk.withContext(function($ctx1) { var $2,$1;
  8135. $2=self["@classReferences"];
  8136. if(($receiver = $2) == nil || $receiver == undefined){
  8137. self["@classReferences"]=_st((smalltalk.Set || Set))._new();
  8138. $1=self["@classReferences"];
  8139. } else {
  8140. $1=$2;
  8141. };
  8142. return $1;
  8143. }, self, "classReferences", [], smalltalk.SemanticAnalyzer)}
  8144. }),
  8145. smalltalk.SemanticAnalyzer);
  8146. smalltalk.addMethod(
  8147. "_errorShadowingVariable_",
  8148. smalltalk.method({
  8149. selector: "errorShadowingVariable:",
  8150. fn: function (aString){
  8151. var self=this;
  8152. return smalltalk.withContext(function($ctx1) { var $1,$2;
  8153. $1=_st((smalltalk.ShadowingVariableError || ShadowingVariableError))._new();
  8154. _st($1)._variableName_(aString);
  8155. $2=_st($1)._signal();
  8156. return self}, self, "errorShadowingVariable:", [aString], smalltalk.SemanticAnalyzer)}
  8157. }),
  8158. smalltalk.SemanticAnalyzer);
  8159. smalltalk.addMethod(
  8160. "_errorUnknownVariable_",
  8161. smalltalk.method({
  8162. selector: "errorUnknownVariable:",
  8163. fn: function (aNode){
  8164. var self=this;
  8165. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  8166. $ctx1.locals.identifier=nil;
  8167. $ctx1.locals.identifier=_st(aNode)._value();
  8168. $1=_st(_st(_st(["jQuery", "window", "process", "global"])._includes_($ctx1.locals.identifier))._not())._and_((function(){
  8169. return smalltalk.withContext(function($ctx2) { return _st(self)._isVariableGloballyUndefined_($ctx1.locals.identifier);
  8170. })}));
  8171. if(smalltalk.assert($1)){
  8172. $2=_st((smalltalk.UnknownVariableError || UnknownVariableError))._new();
  8173. _st($2)._variableName_(_st(aNode)._value());
  8174. $3=_st($2)._signal();
  8175. $3;
  8176. } else {
  8177. _st(_st(_st(self["@currentScope"])._methodScope())._unknownVariables())._add_(_st(aNode)._value());
  8178. };
  8179. return self}, self, "errorUnknownVariable:", [aNode], smalltalk.SemanticAnalyzer)}
  8180. }),
  8181. smalltalk.SemanticAnalyzer);
  8182. smalltalk.addMethod(
  8183. "_isVariableGloballyUndefined_",
  8184. smalltalk.method({
  8185. selector: "isVariableGloballyUndefined:",
  8186. fn: function (aString){
  8187. var self=this;
  8188. return smalltalk.withContext(function($ctx1) { return eval('typeof ' + aString + ' == "undefined"');
  8189. return self}, self, "isVariableGloballyUndefined:", [aString], smalltalk.SemanticAnalyzer)}
  8190. }),
  8191. smalltalk.SemanticAnalyzer);
  8192. smalltalk.addMethod(
  8193. "_messageSends",
  8194. smalltalk.method({
  8195. selector: "messageSends",
  8196. fn: function (){
  8197. var self=this;
  8198. return smalltalk.withContext(function($ctx1) { var $2,$1;
  8199. $2=self["@messageSends"];
  8200. if(($receiver = $2) == nil || $receiver == undefined){
  8201. self["@messageSends"]=_st((smalltalk.Dictionary || Dictionary))._new();
  8202. $1=self["@messageSends"];
  8203. } else {
  8204. $1=$2;
  8205. };
  8206. return $1;
  8207. }, self, "messageSends", [], smalltalk.SemanticAnalyzer)}
  8208. }),
  8209. smalltalk.SemanticAnalyzer);
  8210. smalltalk.addMethod(
  8211. "_newBlockScope",
  8212. smalltalk.method({
  8213. selector: "newBlockScope",
  8214. fn: function (){
  8215. var self=this;
  8216. return smalltalk.withContext(function($ctx1) { var $1;
  8217. $1=_st(self)._newScopeOfClass_((smalltalk.LexicalScope || LexicalScope));
  8218. return $1;
  8219. }, self, "newBlockScope", [], smalltalk.SemanticAnalyzer)}
  8220. }),
  8221. smalltalk.SemanticAnalyzer);
  8222. smalltalk.addMethod(
  8223. "_newMethodScope",
  8224. smalltalk.method({
  8225. selector: "newMethodScope",
  8226. fn: function (){
  8227. var self=this;
  8228. return smalltalk.withContext(function($ctx1) { var $1;
  8229. $1=_st(self)._newScopeOfClass_((smalltalk.MethodLexicalScope || MethodLexicalScope));
  8230. return $1;
  8231. }, self, "newMethodScope", [], smalltalk.SemanticAnalyzer)}
  8232. }),
  8233. smalltalk.SemanticAnalyzer);
  8234. smalltalk.addMethod(
  8235. "_newScopeOfClass_",
  8236. smalltalk.method({
  8237. selector: "newScopeOfClass:",
  8238. fn: function (aLexicalScopeClass){
  8239. var self=this;
  8240. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  8241. $2=_st(aLexicalScopeClass)._new();
  8242. _st($2)._outerScope_(self["@currentScope"]);
  8243. $3=_st($2)._yourself();
  8244. $1=$3;
  8245. return $1;
  8246. }, self, "newScopeOfClass:", [aLexicalScopeClass], smalltalk.SemanticAnalyzer)}
  8247. }),
  8248. smalltalk.SemanticAnalyzer);
  8249. smalltalk.addMethod(
  8250. "_popScope",
  8251. smalltalk.method({
  8252. selector: "popScope",
  8253. fn: function (){
  8254. var self=this;
  8255. return smalltalk.withContext(function($ctx1) { var $1;
  8256. $1=self["@currentScope"];
  8257. if(($receiver = $1) == nil || $receiver == undefined){
  8258. $1;
  8259. } else {
  8260. self["@currentScope"]=_st(self["@currentScope"])._outerScope();
  8261. self["@currentScope"];
  8262. };
  8263. return self}, self, "popScope", [], smalltalk.SemanticAnalyzer)}
  8264. }),
  8265. smalltalk.SemanticAnalyzer);
  8266. smalltalk.addMethod(
  8267. "_pushScope_",
  8268. smalltalk.method({
  8269. selector: "pushScope:",
  8270. fn: function (aScope){
  8271. var self=this;
  8272. return smalltalk.withContext(function($ctx1) { _st(aScope)._outerScope_(self["@currentScope"]);
  8273. self["@currentScope"]=aScope;
  8274. return self}, self, "pushScope:", [aScope], smalltalk.SemanticAnalyzer)}
  8275. }),
  8276. smalltalk.SemanticAnalyzer);
  8277. smalltalk.addMethod(
  8278. "_superSends",
  8279. smalltalk.method({
  8280. selector: "superSends",
  8281. fn: function (){
  8282. var self=this;
  8283. return smalltalk.withContext(function($ctx1) { var $2,$1;
  8284. $2=self["@superSends"];
  8285. if(($receiver = $2) == nil || $receiver == undefined){
  8286. self["@superSends"]=_st((smalltalk.Dictionary || Dictionary))._new();
  8287. $1=self["@superSends"];
  8288. } else {
  8289. $1=$2;
  8290. };
  8291. return $1;
  8292. }, self, "superSends", [], smalltalk.SemanticAnalyzer)}
  8293. }),
  8294. smalltalk.SemanticAnalyzer);
  8295. smalltalk.addMethod(
  8296. "_theClass",
  8297. smalltalk.method({
  8298. selector: "theClass",
  8299. fn: function (){
  8300. var self=this;
  8301. return smalltalk.withContext(function($ctx1) { var $1;
  8302. $1=self["@theClass"];
  8303. return $1;
  8304. }, self, "theClass", [], smalltalk.SemanticAnalyzer)}
  8305. }),
  8306. smalltalk.SemanticAnalyzer);
  8307. smalltalk.addMethod(
  8308. "_theClass_",
  8309. smalltalk.method({
  8310. selector: "theClass:",
  8311. fn: function (aClass){
  8312. var self=this;
  8313. return smalltalk.withContext(function($ctx1) { self["@theClass"]=aClass;
  8314. return self}, self, "theClass:", [aClass], smalltalk.SemanticAnalyzer)}
  8315. }),
  8316. smalltalk.SemanticAnalyzer);
  8317. smalltalk.addMethod(
  8318. "_validateVariableScope_",
  8319. smalltalk.method({
  8320. selector: "validateVariableScope:",
  8321. fn: function (aString){
  8322. var self=this;
  8323. return smalltalk.withContext(function($ctx1) { var $1;
  8324. $1=_st(self["@currentScope"])._lookupVariable_(aString);
  8325. if(($receiver = $1) == nil || $receiver == undefined){
  8326. $1;
  8327. } else {
  8328. _st(self)._errorShadowingVariable_(aString);
  8329. };
  8330. return self}, self, "validateVariableScope:", [aString], smalltalk.SemanticAnalyzer)}
  8331. }),
  8332. smalltalk.SemanticAnalyzer);
  8333. smalltalk.addMethod(
  8334. "_visitAssignmentNode_",
  8335. smalltalk.method({
  8336. selector: "visitAssignmentNode:",
  8337. fn: function (aNode){
  8338. var self=this;
  8339. return smalltalk.withContext(function($ctx1) { smalltalk.NodeVisitor.fn.prototype._visitAssignmentNode_.apply(_st(self), [aNode]);
  8340. _st(_st(aNode)._left())._beAssigned();
  8341. return self}, self, "visitAssignmentNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8342. }),
  8343. smalltalk.SemanticAnalyzer);
  8344. smalltalk.addMethod(
  8345. "_visitBlockNode_",
  8346. smalltalk.method({
  8347. selector: "visitBlockNode:",
  8348. fn: function (aNode){
  8349. var self=this;
  8350. return smalltalk.withContext(function($ctx1) { _st(self)._pushScope_(_st(self)._newBlockScope());
  8351. _st(aNode)._scope_(self["@currentScope"]);
  8352. _st(self["@currentScope"])._node_(aNode);
  8353. _st(_st(aNode)._parameters())._do_((function(each){
  8354. return smalltalk.withContext(function($ctx2) { _st(self)._validateVariableScope_(each);
  8355. return _st(self["@currentScope"])._addArg_(each);
  8356. })}));
  8357. smalltalk.NodeVisitor.fn.prototype._visitBlockNode_.apply(_st(self), [aNode]);
  8358. _st(self)._popScope();
  8359. return self}, self, "visitBlockNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8360. }),
  8361. smalltalk.SemanticAnalyzer);
  8362. smalltalk.addMethod(
  8363. "_visitCascadeNode_",
  8364. smalltalk.method({
  8365. selector: "visitCascadeNode:",
  8366. fn: function (aNode){
  8367. var self=this;
  8368. return smalltalk.withContext(function($ctx1) { var $1;
  8369. _st(_st(aNode)._nodes())._do_((function(each){
  8370. return smalltalk.withContext(function($ctx2) { return _st(each)._receiver_(_st(aNode)._receiver());
  8371. })}));
  8372. smalltalk.NodeVisitor.fn.prototype._visitCascadeNode_.apply(_st(self), [aNode]);
  8373. $1=_st(_st(_st(aNode)._nodes())._first())._superSend();
  8374. if(smalltalk.assert($1)){
  8375. _st(_st(aNode)._nodes())._do_((function(each){
  8376. return smalltalk.withContext(function($ctx2) { return _st(each)._superSend_(true);
  8377. })}));
  8378. };
  8379. return self}, self, "visitCascadeNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8380. }),
  8381. smalltalk.SemanticAnalyzer);
  8382. smalltalk.addMethod(
  8383. "_visitClassReferenceNode_",
  8384. smalltalk.method({
  8385. selector: "visitClassReferenceNode:",
  8386. fn: function (aNode){
  8387. var self=this;
  8388. return smalltalk.withContext(function($ctx1) { var $1,$2;
  8389. _st(_st(self)._classReferences())._add_(_st(aNode)._value());
  8390. $1=_st((smalltalk.ClassRefVar || ClassRefVar))._new();
  8391. _st($1)._name_(_st(aNode)._value());
  8392. $2=_st($1)._yourself();
  8393. _st(aNode)._binding_($2);
  8394. return self}, self, "visitClassReferenceNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8395. }),
  8396. smalltalk.SemanticAnalyzer);
  8397. smalltalk.addMethod(
  8398. "_visitMethodNode_",
  8399. smalltalk.method({
  8400. selector: "visitMethodNode:",
  8401. fn: function (aNode){
  8402. var self=this;
  8403. return smalltalk.withContext(function($ctx1) { var $1,$2;
  8404. _st(self)._pushScope_(_st(self)._newMethodScope());
  8405. _st(aNode)._scope_(self["@currentScope"]);
  8406. _st(self["@currentScope"])._node_(aNode);
  8407. _st(_st(_st(self)._theClass())._allInstanceVariableNames())._do_((function(each){
  8408. return smalltalk.withContext(function($ctx2) { return _st(self["@currentScope"])._addIVar_(each);
  8409. })}));
  8410. _st(_st(aNode)._arguments())._do_((function(each){
  8411. return smalltalk.withContext(function($ctx2) { _st(self)._validateVariableScope_(each);
  8412. return _st(self["@currentScope"])._addArg_(each);
  8413. })}));
  8414. smalltalk.NodeVisitor.fn.prototype._visitMethodNode_.apply(_st(self), [aNode]);
  8415. $1=aNode;
  8416. _st($1)._classReferences_(_st(self)._classReferences());
  8417. _st($1)._messageSends_(_st(_st(self)._messageSends())._keys());
  8418. $2=_st($1)._superSends_(_st(_st(self)._superSends())._keys());
  8419. _st(self)._popScope();
  8420. return self}, self, "visitMethodNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8421. }),
  8422. smalltalk.SemanticAnalyzer);
  8423. smalltalk.addMethod(
  8424. "_visitReturnNode_",
  8425. smalltalk.method({
  8426. selector: "visitReturnNode:",
  8427. fn: function (aNode){
  8428. var self=this;
  8429. return smalltalk.withContext(function($ctx1) { var $1;
  8430. _st(aNode)._scope_(self["@currentScope"]);
  8431. $1=_st(self["@currentScope"])._isMethodScope();
  8432. if(smalltalk.assert($1)){
  8433. _st(self["@currentScope"])._localReturn_(true);
  8434. } else {
  8435. _st(_st(self["@currentScope"])._methodScope())._addNonLocalReturn_(self["@currentScope"]);
  8436. };
  8437. smalltalk.NodeVisitor.fn.prototype._visitReturnNode_.apply(_st(self), [aNode]);
  8438. return self}, self, "visitReturnNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8439. }),
  8440. smalltalk.SemanticAnalyzer);
  8441. smalltalk.addMethod(
  8442. "_visitSendNode_",
  8443. smalltalk.method({
  8444. selector: "visitSendNode:",
  8445. fn: function (aNode){
  8446. var self=this;
  8447. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$3;
  8448. $1=_st(_st(_st(aNode)._receiver())._value()).__eq("super");
  8449. $2=(function(){
  8450. return smalltalk.withContext(function($ctx2) { _st(aNode)._superSend_(true);
  8451. _st(_st(aNode)._receiver())._value_("self");
  8452. _st(_st(self)._superSends())._at_ifAbsentPut_(_st(aNode)._selector(),(function(){
  8453. return smalltalk.withContext(function($ctx3) { return _st((smalltalk.Set || Set))._new();
  8454. })}));
  8455. return _st(_st(_st(self)._superSends())._at_(_st(aNode)._selector()))._add_(aNode);
  8456. })});
  8457. $3=(function(){
  8458. return smalltalk.withContext(function($ctx2) { $4=_st(_st((smalltalk.IRSendInliner || IRSendInliner))._inlinedSelectors())._includes_(_st(aNode)._selector());
  8459. if(smalltalk.assert($4)){
  8460. _st(aNode)._shouldBeInlined_(true);
  8461. return _st(_st(aNode)._receiver())._shouldBeAliased_(true);
  8462. };
  8463. })});
  8464. _st($1)._ifTrue_ifFalse_($2,$3);
  8465. _st(_st(self)._messageSends())._at_ifAbsentPut_(_st(aNode)._selector(),(function(){
  8466. return smalltalk.withContext(function($ctx2) { return _st((smalltalk.Set || Set))._new();
  8467. })}));
  8468. _st(_st(_st(self)._messageSends())._at_(_st(aNode)._selector()))._add_(aNode);
  8469. _st(aNode)._index_(_st(_st(_st(self)._messageSends())._at_(_st(aNode)._selector()))._size());
  8470. smalltalk.NodeVisitor.fn.prototype._visitSendNode_.apply(_st(self), [aNode]);
  8471. return self}, self, "visitSendNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8472. }),
  8473. smalltalk.SemanticAnalyzer);
  8474. smalltalk.addMethod(
  8475. "_visitSequenceNode_",
  8476. smalltalk.method({
  8477. selector: "visitSequenceNode:",
  8478. fn: function (aNode){
  8479. var self=this;
  8480. return smalltalk.withContext(function($ctx1) { _st(_st(aNode)._temps())._do_((function(each){
  8481. return smalltalk.withContext(function($ctx2) { _st(self)._validateVariableScope_(each);
  8482. return _st(self["@currentScope"])._addTemp_(each);
  8483. })}));
  8484. smalltalk.NodeVisitor.fn.prototype._visitSequenceNode_.apply(_st(self), [aNode]);
  8485. return self}, self, "visitSequenceNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8486. }),
  8487. smalltalk.SemanticAnalyzer);
  8488. smalltalk.addMethod(
  8489. "_visitVariableNode_",
  8490. smalltalk.method({
  8491. selector: "visitVariableNode:",
  8492. fn: function (aNode){
  8493. var self=this;
  8494. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$2;
  8495. $1=aNode;
  8496. $3=_st(self["@currentScope"])._lookupVariable_(aNode);
  8497. if(($receiver = $3) == nil || $receiver == undefined){
  8498. _st(self)._errorUnknownVariable_(aNode);
  8499. $4=_st((smalltalk.UnknownVar || UnknownVar))._new();
  8500. _st($4)._name_(_st(aNode)._value());
  8501. $5=_st($4)._yourself();
  8502. $2=$5;
  8503. } else {
  8504. $2=$3;
  8505. };
  8506. _st($1)._binding_($2);
  8507. return self}, self, "visitVariableNode:", [aNode], smalltalk.SemanticAnalyzer)}
  8508. }),
  8509. smalltalk.SemanticAnalyzer);
  8510. smalltalk.addMethod(
  8511. "_on_",
  8512. smalltalk.method({
  8513. selector: "on:",
  8514. fn: function (aClass){
  8515. var self=this;
  8516. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  8517. $2=_st(self)._new();
  8518. _st($2)._theClass_(aClass);
  8519. $3=_st($2)._yourself();
  8520. $1=$3;
  8521. return $1;
  8522. }, self, "on:", [aClass], smalltalk.SemanticAnalyzer.klass)}
  8523. }),
  8524. smalltalk.SemanticAnalyzer.klass);
  8525. smalltalk.addMethod(
  8526. "_initializePackageNamed_prefix_",
  8527. smalltalk.method({
  8528. selector: "initializePackageNamed:prefix:",
  8529. fn: function (packageName,aString){
  8530. var self=this;
  8531. return smalltalk.withContext(function($ctx1) { var $1,$2;
  8532. $1=_st((smalltalk.Package || Package))._named_(packageName);
  8533. _st($1)._setupClasses();
  8534. _st($1)._commitPathJs_(_st(_st("/").__comma(aString)).__comma("/js"));
  8535. $2=_st($1)._commitPathSt_(_st(_st("/").__comma(aString)).__comma("/st"));
  8536. return self}, self, "initializePackageNamed:prefix:", [packageName,aString], smalltalk.PackageLoader)}
  8537. }),
  8538. smalltalk.PackageLoader);
  8539. smalltalk.addMethod(
  8540. "_loadPackage_prefix_",
  8541. smalltalk.method({
  8542. selector: "loadPackage:prefix:",
  8543. fn: function (packageName,aString){
  8544. var self=this;
  8545. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$5,$8,$7,$6,$3;
  8546. $ctx1.locals.url=nil;
  8547. $ctx1.locals.url=_st(_st(_st(_st("/").__comma(aString)).__comma("/js/")).__comma(packageName)).__comma(".js");
  8548. $1=jQuery;
  8549. $2=$ctx1.locals.url;
  8550. $4=_st("type").__minus_gt("GET");
  8551. $5=_st("dataType").__minus_gt("script");
  8552. $7=(function(jqXHR,textStatus){
  8553. return smalltalk.withContext(function($ctx2) { $8=_st(_st(jqXHR)._readyState()).__eq((4));
  8554. if(smalltalk.assert($8)){
  8555. return _st(self)._initializePackageNamed_prefix_(packageName,aString);
  8556. };
  8557. })});
  8558. $6=_st("complete").__minus_gt($7);
  8559. $3=smalltalk.HashedCollection._fromPairs_([$4,$5,$6,_st("error").__minus_gt((function(){
  8560. return smalltalk.withContext(function($ctx2) { return _st(window)._alert_(_st("Could not load package at: ").__comma($ctx1.locals.url));
  8561. })}))]);
  8562. _st($1)._ajax_options_($2,$3);
  8563. return self}, self, "loadPackage:prefix:", [packageName,aString], smalltalk.PackageLoader)}
  8564. }),
  8565. smalltalk.PackageLoader);
  8566. smalltalk.addMethod(
  8567. "_loadPackages_prefix_",
  8568. smalltalk.method({
  8569. selector: "loadPackages:prefix:",
  8570. fn: function (aCollection,aString){
  8571. var self=this;
  8572. return smalltalk.withContext(function($ctx1) { _st(aCollection)._do_((function(each){
  8573. return smalltalk.withContext(function($ctx2) { return _st(self)._loadPackage_prefix_(each,aString);
  8574. })}));
  8575. return self}, self, "loadPackages:prefix:", [aCollection,aString], smalltalk.PackageLoader)}
  8576. }),
  8577. smalltalk.PackageLoader);
  8578. smalltalk.addMethod(
  8579. "_loadPackages_prefix_",
  8580. smalltalk.method({
  8581. selector: "loadPackages:prefix:",
  8582. fn: function (aCollection,aString){
  8583. var self=this;
  8584. return smalltalk.withContext(function($ctx1) { var $1;
  8585. $1=_st(_st(self)._new())._loadPackages_prefix_(aCollection,aString);
  8586. return $1;
  8587. }, self, "loadPackages:prefix:", [aCollection,aString], smalltalk.PackageLoader.klass)}
  8588. }),
  8589. smalltalk.PackageLoader.klass);
  8590. smalltalk.addMethod(
  8591. "_alias",
  8592. smalltalk.method({
  8593. selector: "alias",
  8594. fn: function (){
  8595. var self=this;
  8596. return smalltalk.withContext(function($ctx1) { var $1;
  8597. $1=_st(_st(self)._name())._asVariableName();
  8598. return $1;
  8599. }, self, "alias", [], smalltalk.ScopeVar)}
  8600. }),
  8601. smalltalk.ScopeVar);
  8602. smalltalk.addMethod(
  8603. "_isArgVar",
  8604. smalltalk.method({
  8605. selector: "isArgVar",
  8606. fn: function (){
  8607. var self=this;
  8608. return smalltalk.withContext(function($ctx1) { return false;
  8609. }, self, "isArgVar", [], smalltalk.ScopeVar)}
  8610. }),
  8611. smalltalk.ScopeVar);
  8612. smalltalk.addMethod(
  8613. "_isClassRefVar",
  8614. smalltalk.method({
  8615. selector: "isClassRefVar",
  8616. fn: function (){
  8617. var self=this;
  8618. return smalltalk.withContext(function($ctx1) { return false;
  8619. }, self, "isClassRefVar", [], smalltalk.ScopeVar)}
  8620. }),
  8621. smalltalk.ScopeVar);
  8622. smalltalk.addMethod(
  8623. "_isInstanceVar",
  8624. smalltalk.method({
  8625. selector: "isInstanceVar",
  8626. fn: function (){
  8627. var self=this;
  8628. return smalltalk.withContext(function($ctx1) { return false;
  8629. }, self, "isInstanceVar", [], smalltalk.ScopeVar)}
  8630. }),
  8631. smalltalk.ScopeVar);
  8632. smalltalk.addMethod(
  8633. "_isPseudoVar",
  8634. smalltalk.method({
  8635. selector: "isPseudoVar",
  8636. fn: function (){
  8637. var self=this;
  8638. return smalltalk.withContext(function($ctx1) { return false;
  8639. }, self, "isPseudoVar", [], smalltalk.ScopeVar)}
  8640. }),
  8641. smalltalk.ScopeVar);
  8642. smalltalk.addMethod(
  8643. "_isTempVar",
  8644. smalltalk.method({
  8645. selector: "isTempVar",
  8646. fn: function (){
  8647. var self=this;
  8648. return smalltalk.withContext(function($ctx1) { return false;
  8649. }, self, "isTempVar", [], smalltalk.ScopeVar)}
  8650. }),
  8651. smalltalk.ScopeVar);
  8652. smalltalk.addMethod(
  8653. "_isUnknownVar",
  8654. smalltalk.method({
  8655. selector: "isUnknownVar",
  8656. fn: function (){
  8657. var self=this;
  8658. return smalltalk.withContext(function($ctx1) { return false;
  8659. }, self, "isUnknownVar", [], smalltalk.ScopeVar)}
  8660. }),
  8661. smalltalk.ScopeVar);
  8662. smalltalk.addMethod(
  8663. "_name",
  8664. smalltalk.method({
  8665. selector: "name",
  8666. fn: function (){
  8667. var self=this;
  8668. return smalltalk.withContext(function($ctx1) { var $1;
  8669. $1=self["@name"];
  8670. return $1;
  8671. }, self, "name", [], smalltalk.ScopeVar)}
  8672. }),
  8673. smalltalk.ScopeVar);
  8674. smalltalk.addMethod(
  8675. "_name_",
  8676. smalltalk.method({
  8677. selector: "name:",
  8678. fn: function (aString){
  8679. var self=this;
  8680. return smalltalk.withContext(function($ctx1) { self["@name"]=aString;
  8681. return self}, self, "name:", [aString], smalltalk.ScopeVar)}
  8682. }),
  8683. smalltalk.ScopeVar);
  8684. smalltalk.addMethod(
  8685. "_scope",
  8686. smalltalk.method({
  8687. selector: "scope",
  8688. fn: function (){
  8689. var self=this;
  8690. return smalltalk.withContext(function($ctx1) { var $1;
  8691. $1=self["@scope"];
  8692. return $1;
  8693. }, self, "scope", [], smalltalk.ScopeVar)}
  8694. }),
  8695. smalltalk.ScopeVar);
  8696. smalltalk.addMethod(
  8697. "_scope_",
  8698. smalltalk.method({
  8699. selector: "scope:",
  8700. fn: function (aScope){
  8701. var self=this;
  8702. return smalltalk.withContext(function($ctx1) { self["@scope"]=aScope;
  8703. return self}, self, "scope:", [aScope], smalltalk.ScopeVar)}
  8704. }),
  8705. smalltalk.ScopeVar);
  8706. smalltalk.addMethod(
  8707. "_validateAssignment",
  8708. smalltalk.method({
  8709. selector: "validateAssignment",
  8710. fn: function (){
  8711. var self=this;
  8712. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  8713. $1=_st(_st(self)._isArgVar())._or_((function(){
  8714. return smalltalk.withContext(function($ctx2) { return _st(self)._isPseudoVar();
  8715. })}));
  8716. if(smalltalk.assert($1)){
  8717. $2=_st((smalltalk.InvalidAssignmentError || InvalidAssignmentError))._new();
  8718. _st($2)._variableName_(_st(self)._name());
  8719. $3=_st($2)._signal();
  8720. $3;
  8721. };
  8722. return self}, self, "validateAssignment", [], smalltalk.ScopeVar)}
  8723. }),
  8724. smalltalk.ScopeVar);
  8725. smalltalk.addMethod(
  8726. "_on_",
  8727. smalltalk.method({
  8728. selector: "on:",
  8729. fn: function (aString){
  8730. var self=this;
  8731. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  8732. $2=_st(self)._new();
  8733. _st($2)._name_(aString);
  8734. $3=_st($2)._yourself();
  8735. $1=$3;
  8736. return $1;
  8737. }, self, "on:", [aString], smalltalk.ScopeVar.klass)}
  8738. }),
  8739. smalltalk.ScopeVar.klass);
  8740. smalltalk.addMethod(
  8741. "_node",
  8742. smalltalk.method({
  8743. selector: "node",
  8744. fn: function (){
  8745. var self=this;
  8746. return smalltalk.withContext(function($ctx1) { var $1;
  8747. $1=self["@node"];
  8748. return $1;
  8749. }, self, "node", [], smalltalk.AliasVar)}
  8750. }),
  8751. smalltalk.AliasVar);
  8752. smalltalk.addMethod(
  8753. "_node_",
  8754. smalltalk.method({
  8755. selector: "node:",
  8756. fn: function (aNode){
  8757. var self=this;
  8758. return smalltalk.withContext(function($ctx1) { self["@node"]=aNode;
  8759. return self}, self, "node:", [aNode], smalltalk.AliasVar)}
  8760. }),
  8761. smalltalk.AliasVar);
  8762. smalltalk.addMethod(
  8763. "_isArgVar",
  8764. smalltalk.method({
  8765. selector: "isArgVar",
  8766. fn: function (){
  8767. var self=this;
  8768. return smalltalk.withContext(function($ctx1) { return true;
  8769. }, self, "isArgVar", [], smalltalk.ArgVar)}
  8770. }),
  8771. smalltalk.ArgVar);
  8772. smalltalk.addMethod(
  8773. "_alias",
  8774. smalltalk.method({
  8775. selector: "alias",
  8776. fn: function (){
  8777. var self=this;
  8778. return smalltalk.withContext(function($ctx1) { var $1;
  8779. $1=_st(_st(_st(_st("(smalltalk.").__comma(_st(self)._name())).__comma(" || ")).__comma(_st(self)._name())).__comma(")");
  8780. return $1;
  8781. }, self, "alias", [], smalltalk.ClassRefVar)}
  8782. }),
  8783. smalltalk.ClassRefVar);
  8784. smalltalk.addMethod(
  8785. "_isClassRefVar",
  8786. smalltalk.method({
  8787. selector: "isClassRefVar",
  8788. fn: function (){
  8789. var self=this;
  8790. return smalltalk.withContext(function($ctx1) { return true;
  8791. }, self, "isClassRefVar", [], smalltalk.ClassRefVar)}
  8792. }),
  8793. smalltalk.ClassRefVar);
  8794. smalltalk.addMethod(
  8795. "_alias",
  8796. smalltalk.method({
  8797. selector: "alias",
  8798. fn: function (){
  8799. var self=this;
  8800. return smalltalk.withContext(function($ctx1) { var $1;
  8801. $1=_st(_st("self[\x22@").__comma(_st(self)._name())).__comma("\x22]");
  8802. return $1;
  8803. }, self, "alias", [], smalltalk.InstanceVar)}
  8804. }),
  8805. smalltalk.InstanceVar);
  8806. smalltalk.addMethod(
  8807. "_isInstanceVar",
  8808. smalltalk.method({
  8809. selector: "isInstanceVar",
  8810. fn: function (){
  8811. var self=this;
  8812. return smalltalk.withContext(function($ctx1) { return true;
  8813. }, self, "isInstanceVar", [], smalltalk.InstanceVar)}
  8814. }),
  8815. smalltalk.InstanceVar);
  8816. smalltalk.addMethod(
  8817. "_alias",
  8818. smalltalk.method({
  8819. selector: "alias",
  8820. fn: function (){
  8821. var self=this;
  8822. return smalltalk.withContext(function($ctx1) { var $1;
  8823. $1=_st(self)._name();
  8824. return $1;
  8825. }, self, "alias", [], smalltalk.PseudoVar)}
  8826. }),
  8827. smalltalk.PseudoVar);
  8828. smalltalk.addMethod(
  8829. "_isPseudoVar",
  8830. smalltalk.method({
  8831. selector: "isPseudoVar",
  8832. fn: function (){
  8833. var self=this;
  8834. return smalltalk.withContext(function($ctx1) { return true;
  8835. }, self, "isPseudoVar", [], smalltalk.PseudoVar)}
  8836. }),
  8837. smalltalk.PseudoVar);
  8838. smalltalk.addMethod(
  8839. "_alias",
  8840. smalltalk.method({
  8841. selector: "alias",
  8842. fn: function (){
  8843. var self=this;
  8844. return smalltalk.withContext(function($ctx1) { var $1;
  8845. $1=_st(_st(_st(_st(self)._scope())._alias()).__comma(".locals.")).__comma(smalltalk.ScopeVar.fn.prototype._alias.apply(_st(self), []));
  8846. return $1;
  8847. }, self, "alias", [], smalltalk.TempVar)}
  8848. }),
  8849. smalltalk.TempVar);
  8850. smalltalk.addMethod(
  8851. "_isTempVar",
  8852. smalltalk.method({
  8853. selector: "isTempVar",
  8854. fn: function (){
  8855. var self=this;
  8856. return smalltalk.withContext(function($ctx1) { return true;
  8857. }, self, "isTempVar", [], smalltalk.TempVar)}
  8858. }),
  8859. smalltalk.TempVar);
  8860. smalltalk.addMethod(
  8861. "_isUnknownVar",
  8862. smalltalk.method({
  8863. selector: "isUnknownVar",
  8864. fn: function (){
  8865. var self=this;
  8866. return smalltalk.withContext(function($ctx1) { return true;
  8867. }, self, "isUnknownVar", [], smalltalk.UnknownVar)}
  8868. }),
  8869. smalltalk.UnknownVar);