Compiler-Interpreter.deploy.js 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179
  1. smalltalk.addPackage('Compiler-Interpreter');
  2. smalltalk.addClass('AIContext', smalltalk.NodeVisitor, ['outerContext', 'innerContext', 'pc', 'locals', 'method', 'ast', 'interpreter'], 'Compiler-Interpreter');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "arguments",
  6. fn: function (){
  7. var self=this;
  8. return smalltalk.withContext(function($ctx1) {
  9. var $1;
  10. $1=_st(_st(self._ast())._arguments())._collect_((function(each){
  11. return smalltalk.withContext(function($ctx2) {
  12. return self._localAt_(each);
  13. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  14. return $1;
  15. }, function($ctx1) {$ctx1.fill(self,"arguments",{},smalltalk.AIContext)})},
  16. messageSends: ["collect:", "localAt:", "arguments", "ast"]}),
  17. smalltalk.AIContext);
  18. smalltalk.addMethod(
  19. smalltalk.method({
  20. selector: "asString",
  21. fn: function (){
  22. var self=this;
  23. return smalltalk.withContext(function($ctx1) {
  24. var $1;
  25. $1=_st(self["@methodContext"])._asString();
  26. return $1;
  27. }, function($ctx1) {$ctx1.fill(self,"asString",{},smalltalk.AIContext)})},
  28. messageSends: ["asString"]}),
  29. smalltalk.AIContext);
  30. smalltalk.addMethod(
  31. smalltalk.method({
  32. selector: "ast",
  33. fn: function (){
  34. var self=this;
  35. return smalltalk.withContext(function($ctx1) {
  36. var $1,$2;
  37. $1=self["@ast"];
  38. if(($receiver = $1) == nil || $receiver == undefined){
  39. self._initializeAST();
  40. } else {
  41. $1;
  42. };
  43. $2=self["@ast"];
  44. return $2;
  45. }, function($ctx1) {$ctx1.fill(self,"ast",{},smalltalk.AIContext)})},
  46. messageSends: ["ifNil:", "initializeAST"]}),
  47. smalltalk.AIContext);
  48. smalltalk.addMethod(
  49. smalltalk.method({
  50. selector: "home",
  51. fn: function (){
  52. var self=this;
  53. return smalltalk.withContext(function($ctx1) {
  54. var $2,$1;
  55. $2=self._isBlockContext();
  56. if(smalltalk.assert($2)){
  57. $1=_st(self._outerContext())._methodContext();
  58. } else {
  59. $1=self;
  60. };
  61. return $1;
  62. }, function($ctx1) {$ctx1.fill(self,"home",{},smalltalk.AIContext)})},
  63. messageSends: ["ifTrue:ifFalse:", "methodContext", "outerContext", "isBlockContext"]}),
  64. smalltalk.AIContext);
  65. smalltalk.addMethod(
  66. smalltalk.method({
  67. selector: "initializeAST",
  68. fn: function (){
  69. var self=this;
  70. function $SemanticAnalyzer(){return smalltalk.SemanticAnalyzer||(typeof SemanticAnalyzer=="undefined"?nil:SemanticAnalyzer)}
  71. return smalltalk.withContext(function($ctx1) {
  72. self["@ast"]=_st(self._method())._ast();
  73. _st(_st($SemanticAnalyzer())._on_(_st(self._method())._methodClass()))._visit_(self["@ast"]);
  74. return self}, function($ctx1) {$ctx1.fill(self,"initializeAST",{},smalltalk.AIContext)})},
  75. messageSends: ["ast", "method", "visit:", "on:", "methodClass"]}),
  76. smalltalk.AIContext);
  77. smalltalk.addMethod(
  78. smalltalk.method({
  79. selector: "initializeFromMethodContext:",
  80. fn: function (aMethodContext){
  81. var self=this;
  82. return smalltalk.withContext(function($ctx1) {
  83. var $1,$2;
  84. self["@methodContext"]=aMethodContext;
  85. self._pc_(_st(aMethodContext)._pc());
  86. self._receiver_(_st(aMethodContext)._receiver());
  87. self._method_(_st(aMethodContext)._method());
  88. $1=_st(aMethodContext)._outerContext();
  89. if(($receiver = $1) == nil || $receiver == undefined){
  90. $1;
  91. } else {
  92. var outer;
  93. outer=$receiver;
  94. $2=_st(outer)._methodContext();
  95. if(($receiver = $2) == nil || $receiver == undefined){
  96. $2;
  97. } else {
  98. self._outerContext_(_st(self._class())._fromMethodContext_(_st(aMethodContext)._outerContext()));
  99. };
  100. _st(_st(aMethodContext)._locals())._keysAndValuesDo_((function(key,value){
  101. return smalltalk.withContext(function($ctx2) {
  102. return _st(self._locals())._at_put_(key,value);
  103. }, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1)})}));
  104. };
  105. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromMethodContext:",{aMethodContext:aMethodContext},smalltalk.AIContext)})},
  106. messageSends: ["pc:", "pc", "receiver:", "receiver", "method:", "method", "ifNotNil:", "outerContext:", "fromMethodContext:", "outerContext", "class", "methodContext", "keysAndValuesDo:", "at:put:", "locals"]}),
  107. smalltalk.AIContext);
  108. smalltalk.addMethod(
  109. smalltalk.method({
  110. selector: "initializeInterpreter",
  111. fn: function (){
  112. var self=this;
  113. function $Interpreter(){return smalltalk.Interpreter||(typeof Interpreter=="undefined"?nil:Interpreter)}
  114. return smalltalk.withContext(function($ctx1) {
  115. var $1,$2,$3;
  116. $1=_st($Interpreter())._new();
  117. _st($1)._context_(self);
  118. _st($1)._node_(self._retrieveNode());
  119. $2=_st($1)._yourself();
  120. self["@interpreter"]=$2;
  121. $3=_st(self._innerContext())._isBlockContext();
  122. if(! smalltalk.assert($3)){
  123. self._setupInterpreter_(self["@interpreter"]);
  124. };
  125. return self}, function($ctx1) {$ctx1.fill(self,"initializeInterpreter",{},smalltalk.AIContext)})},
  126. messageSends: ["context:", "new", "node:", "retrieveNode", "yourself", "ifFalse:", "setupInterpreter:", "isBlockContext", "innerContext"]}),
  127. smalltalk.AIContext);
  128. smalltalk.addMethod(
  129. smalltalk.method({
  130. selector: "initializeLocals",
  131. fn: function (){
  132. var self=this;
  133. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  134. return smalltalk.withContext(function($ctx1) {
  135. self["@locals"]=_st($Dictionary())._new();
  136. _st(self["@locals"])._at_put_("thisContext",self);
  137. return self}, function($ctx1) {$ctx1.fill(self,"initializeLocals",{},smalltalk.AIContext)})},
  138. messageSends: ["new", "at:put:"]}),
  139. smalltalk.AIContext);
  140. smalltalk.addMethod(
  141. smalltalk.method({
  142. selector: "innerContext",
  143. fn: function (){
  144. var self=this;
  145. return smalltalk.withContext(function($ctx1) {
  146. var $1;
  147. $1=self["@innerContext"];
  148. return $1;
  149. }, function($ctx1) {$ctx1.fill(self,"innerContext",{},smalltalk.AIContext)})},
  150. messageSends: []}),
  151. smalltalk.AIContext);
  152. smalltalk.addMethod(
  153. smalltalk.method({
  154. selector: "innerContext:",
  155. fn: function (anAIContext){
  156. var self=this;
  157. return smalltalk.withContext(function($ctx1) {
  158. self["@innerContext"]=anAIContext;
  159. return self}, function($ctx1) {$ctx1.fill(self,"innerContext:",{anAIContext:anAIContext},smalltalk.AIContext)})},
  160. messageSends: []}),
  161. smalltalk.AIContext);
  162. smalltalk.addMethod(
  163. smalltalk.method({
  164. selector: "interpreter",
  165. fn: function (){
  166. var self=this;
  167. return smalltalk.withContext(function($ctx1) {
  168. var $1,$2;
  169. $1=self["@interpreter"];
  170. if(($receiver = $1) == nil || $receiver == undefined){
  171. self._initializeInterpreter();
  172. } else {
  173. $1;
  174. };
  175. $2=self["@interpreter"];
  176. return $2;
  177. }, function($ctx1) {$ctx1.fill(self,"interpreter",{},smalltalk.AIContext)})},
  178. messageSends: ["ifNil:", "initializeInterpreter"]}),
  179. smalltalk.AIContext);
  180. smalltalk.addMethod(
  181. smalltalk.method({
  182. selector: "isBlockContext",
  183. fn: function (){
  184. var self=this;
  185. return smalltalk.withContext(function($ctx1) {
  186. var $1;
  187. $1=_st(self["@methodContext"])._isBlockContext();
  188. return $1;
  189. }, function($ctx1) {$ctx1.fill(self,"isBlockContext",{},smalltalk.AIContext)})},
  190. messageSends: ["isBlockContext"]}),
  191. smalltalk.AIContext);
  192. smalltalk.addMethod(
  193. smalltalk.method({
  194. selector: "localAt:",
  195. fn: function (aString){
  196. var self=this;
  197. return smalltalk.withContext(function($ctx1) {
  198. var $1;
  199. $1=_st(self._locals())._at_ifAbsent_(aString,(function(){
  200. return smalltalk.withContext(function($ctx2) {
  201. return nil;
  202. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  203. return $1;
  204. }, function($ctx1) {$ctx1.fill(self,"localAt:",{aString:aString},smalltalk.AIContext)})},
  205. messageSends: ["at:ifAbsent:", "locals"]}),
  206. smalltalk.AIContext);
  207. smalltalk.addMethod(
  208. smalltalk.method({
  209. selector: "localAt:put:",
  210. fn: function (aString,anObject){
  211. var self=this;
  212. return smalltalk.withContext(function($ctx1) {
  213. _st(self._locals())._at_put_(aString,anObject);
  214. return self}, function($ctx1) {$ctx1.fill(self,"localAt:put:",{aString:aString,anObject:anObject},smalltalk.AIContext)})},
  215. messageSends: ["at:put:", "locals"]}),
  216. smalltalk.AIContext);
  217. smalltalk.addMethod(
  218. smalltalk.method({
  219. selector: "locals",
  220. fn: function (){
  221. var self=this;
  222. return smalltalk.withContext(function($ctx1) {
  223. var $1,$2;
  224. $1=self["@locals"];
  225. if(($receiver = $1) == nil || $receiver == undefined){
  226. self._initializeLocals();
  227. } else {
  228. $1;
  229. };
  230. $2=self["@locals"];
  231. return $2;
  232. }, function($ctx1) {$ctx1.fill(self,"locals",{},smalltalk.AIContext)})},
  233. messageSends: ["ifNil:", "initializeLocals"]}),
  234. smalltalk.AIContext);
  235. smalltalk.addMethod(
  236. smalltalk.method({
  237. selector: "method",
  238. fn: function (){
  239. var self=this;
  240. return smalltalk.withContext(function($ctx1) {
  241. var $1;
  242. $1=self["@method"];
  243. return $1;
  244. }, function($ctx1) {$ctx1.fill(self,"method",{},smalltalk.AIContext)})},
  245. messageSends: []}),
  246. smalltalk.AIContext);
  247. smalltalk.addMethod(
  248. smalltalk.method({
  249. selector: "method:",
  250. fn: function (aCompiledMethod){
  251. var self=this;
  252. return smalltalk.withContext(function($ctx1) {
  253. self["@method"]=aCompiledMethod;
  254. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aCompiledMethod:aCompiledMethod},smalltalk.AIContext)})},
  255. messageSends: []}),
  256. smalltalk.AIContext);
  257. smalltalk.addMethod(
  258. smalltalk.method({
  259. selector: "outerContext",
  260. fn: function (){
  261. var self=this;
  262. return smalltalk.withContext(function($ctx1) {
  263. var $1;
  264. $1=self["@outerContext"];
  265. return $1;
  266. }, function($ctx1) {$ctx1.fill(self,"outerContext",{},smalltalk.AIContext)})},
  267. messageSends: []}),
  268. smalltalk.AIContext);
  269. smalltalk.addMethod(
  270. smalltalk.method({
  271. selector: "outerContext:",
  272. fn: function (anAIContext){
  273. var self=this;
  274. return smalltalk.withContext(function($ctx1) {
  275. self["@outerContext"]=anAIContext;
  276. _st(self["@outerContext"])._innerContext_(self);
  277. return self}, function($ctx1) {$ctx1.fill(self,"outerContext:",{anAIContext:anAIContext},smalltalk.AIContext)})},
  278. messageSends: ["innerContext:"]}),
  279. smalltalk.AIContext);
  280. smalltalk.addMethod(
  281. smalltalk.method({
  282. selector: "pc",
  283. fn: function (){
  284. var self=this;
  285. return smalltalk.withContext(function($ctx1) {
  286. var $2,$1;
  287. $2=self["@pc"];
  288. if(($receiver = $2) == nil || $receiver == undefined){
  289. self["@pc"]=(0);
  290. $1=self["@pc"];
  291. } else {
  292. $1=$2;
  293. };
  294. return $1;
  295. }, function($ctx1) {$ctx1.fill(self,"pc",{},smalltalk.AIContext)})},
  296. messageSends: ["ifNil:"]}),
  297. smalltalk.AIContext);
  298. smalltalk.addMethod(
  299. smalltalk.method({
  300. selector: "pc:",
  301. fn: function (anInteger){
  302. var self=this;
  303. return smalltalk.withContext(function($ctx1) {
  304. self["@pc"]=anInteger;
  305. return self}, function($ctx1) {$ctx1.fill(self,"pc:",{anInteger:anInteger},smalltalk.AIContext)})},
  306. messageSends: []}),
  307. smalltalk.AIContext);
  308. smalltalk.addMethod(
  309. smalltalk.method({
  310. selector: "receiver",
  311. fn: function (){
  312. var self=this;
  313. return smalltalk.withContext(function($ctx1) {
  314. var $1;
  315. $1=self._localAt_("self");
  316. return $1;
  317. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.AIContext)})},
  318. messageSends: ["localAt:"]}),
  319. smalltalk.AIContext);
  320. smalltalk.addMethod(
  321. smalltalk.method({
  322. selector: "receiver:",
  323. fn: function (anObject){
  324. var self=this;
  325. return smalltalk.withContext(function($ctx1) {
  326. self._localAt_put_("self",anObject);
  327. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{anObject:anObject},smalltalk.AIContext)})},
  328. messageSends: ["localAt:put:"]}),
  329. smalltalk.AIContext);
  330. smalltalk.addMethod(
  331. smalltalk.method({
  332. selector: "retrieveNode",
  333. fn: function (){
  334. var self=this;
  335. function $ASTPCNodeVisitor(){return smalltalk.ASTPCNodeVisitor||(typeof ASTPCNodeVisitor=="undefined"?nil:ASTPCNodeVisitor)}
  336. return smalltalk.withContext(function($ctx1) {
  337. var $2,$3,$1;
  338. $2=_st($ASTPCNodeVisitor())._new();
  339. _st($2)._context_(self);
  340. _st($2)._visit_(self._ast());
  341. $3=_st($2)._currentNode();
  342. $1=$3;
  343. return $1;
  344. }, function($ctx1) {$ctx1.fill(self,"retrieveNode",{},smalltalk.AIContext)})},
  345. messageSends: ["context:", "new", "visit:", "ast", "currentNode"]}),
  346. smalltalk.AIContext);
  347. smalltalk.addMethod(
  348. smalltalk.method({
  349. selector: "selector",
  350. fn: function (){
  351. var self=this;
  352. return smalltalk.withContext(function($ctx1) {
  353. var $2,$1;
  354. $2=self._method();
  355. if(($receiver = $2) == nil || $receiver == undefined){
  356. $1=$2;
  357. } else {
  358. $1=_st(self._method())._selector();
  359. };
  360. return $1;
  361. }, function($ctx1) {$ctx1.fill(self,"selector",{},smalltalk.AIContext)})},
  362. messageSends: ["ifNotNil:", "selector", "method"]}),
  363. smalltalk.AIContext);
  364. smalltalk.addMethod(
  365. smalltalk.method({
  366. selector: "setupInterpreter:",
  367. fn: function (anInterpreter){
  368. var self=this;
  369. return smalltalk.withContext(function($ctx1) {
  370. _st(_st(_st(self._innerContext())._arguments())._reversed())._do_((function(each){
  371. return smalltalk.withContext(function($ctx2) {
  372. return _st(anInterpreter)._push_(each);
  373. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  374. _st(anInterpreter)._push_(_st(self._innerContext())._receiver());
  375. return self}, function($ctx1) {$ctx1.fill(self,"setupInterpreter:",{anInterpreter:anInterpreter},smalltalk.AIContext)})},
  376. messageSends: ["do:", "push:", "reversed", "arguments", "innerContext", "receiver"]}),
  377. smalltalk.AIContext);
  378. smalltalk.addMethod(
  379. smalltalk.method({
  380. selector: "fromMethodContext:",
  381. fn: function (aMethodContext){
  382. var self=this;
  383. return smalltalk.withContext(function($ctx1) {
  384. var $2,$3,$1;
  385. $2=self._new();
  386. _st($2)._initializeFromMethodContext_(aMethodContext);
  387. $3=_st($2)._yourself();
  388. $1=$3;
  389. return $1;
  390. }, function($ctx1) {$ctx1.fill(self,"fromMethodContext:",{aMethodContext:aMethodContext},smalltalk.AIContext.klass)})},
  391. messageSends: ["initializeFromMethodContext:", "new", "yourself"]}),
  392. smalltalk.AIContext.klass);
  393. smalltalk.addClass('ASTDebugger', smalltalk.Object, ['interpreter', 'context'], 'Compiler-Interpreter');
  394. smalltalk.addMethod(
  395. smalltalk.method({
  396. selector: "atEnd",
  397. fn: function (){
  398. var self=this;
  399. return smalltalk.withContext(function($ctx1) {
  400. var $1;
  401. $1=_st(self._interpreter())._atEnd();
  402. return $1;
  403. }, function($ctx1) {$ctx1.fill(self,"atEnd",{},smalltalk.ASTDebugger)})},
  404. messageSends: ["atEnd", "interpreter"]}),
  405. smalltalk.ASTDebugger);
  406. smalltalk.addMethod(
  407. smalltalk.method({
  408. selector: "buildAST",
  409. fn: function (){
  410. var self=this;
  411. var ast;
  412. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  413. function $SemanticAnalyzer(){return smalltalk.SemanticAnalyzer||(typeof SemanticAnalyzer=="undefined"?nil:SemanticAnalyzer)}
  414. return smalltalk.withContext(function($ctx1) {
  415. var $1;
  416. ast=_st(_st($Smalltalk())._current())._parse_(_st(self._method())._source());
  417. _st(_st($SemanticAnalyzer())._on_(_st(_st(self._context())._receiver())._class()))._visit_(ast);
  418. $1=ast;
  419. return $1;
  420. }, function($ctx1) {$ctx1.fill(self,"buildAST",{ast:ast},smalltalk.ASTDebugger)})},
  421. messageSends: ["parse:", "source", "method", "current", "visit:", "on:", "class", "receiver", "context"]}),
  422. smalltalk.ASTDebugger);
  423. smalltalk.addMethod(
  424. smalltalk.method({
  425. selector: "context",
  426. fn: function (){
  427. var self=this;
  428. return smalltalk.withContext(function($ctx1) {
  429. var $1;
  430. $1=self["@context"];
  431. return $1;
  432. }, function($ctx1) {$ctx1.fill(self,"context",{},smalltalk.ASTDebugger)})},
  433. messageSends: []}),
  434. smalltalk.ASTDebugger);
  435. smalltalk.addMethod(
  436. smalltalk.method({
  437. selector: "context:",
  438. fn: function (aContext){
  439. var self=this;
  440. return smalltalk.withContext(function($ctx1) {
  441. self["@context"]=aContext;
  442. return self}, function($ctx1) {$ctx1.fill(self,"context:",{aContext:aContext},smalltalk.ASTDebugger)})},
  443. messageSends: []}),
  444. smalltalk.ASTDebugger);
  445. smalltalk.addMethod(
  446. smalltalk.method({
  447. selector: "defaultInterpreterClass",
  448. fn: function (){
  449. var self=this;
  450. function $ASTSteppingInterpreter(){return smalltalk.ASTSteppingInterpreter||(typeof ASTSteppingInterpreter=="undefined"?nil:ASTSteppingInterpreter)}
  451. return smalltalk.withContext(function($ctx1) {
  452. var $1;
  453. $1=$ASTSteppingInterpreter();
  454. return $1;
  455. }, function($ctx1) {$ctx1.fill(self,"defaultInterpreterClass",{},smalltalk.ASTDebugger)})},
  456. messageSends: []}),
  457. smalltalk.ASTDebugger);
  458. smalltalk.addMethod(
  459. smalltalk.method({
  460. selector: "initializeInterpreter",
  461. fn: function (){
  462. var self=this;
  463. var ast,next;
  464. function $ASTPCNodeVisitor(){return smalltalk.ASTPCNodeVisitor||(typeof ASTPCNodeVisitor=="undefined"?nil:ASTPCNodeVisitor)}
  465. return smalltalk.withContext(function($ctx1) {
  466. var $1,$2;
  467. ast=self._buildAST();
  468. $1=_st($ASTPCNodeVisitor())._new();
  469. _st($1)._context_(self._context());
  470. _st($1)._visit_(ast);
  471. $2=_st($1)._currentNode();
  472. next=$2;
  473. _st(self._interpreter())._interpret_(next);
  474. return self}, function($ctx1) {$ctx1.fill(self,"initializeInterpreter",{ast:ast,next:next},smalltalk.ASTDebugger)})},
  475. messageSends: ["buildAST", "context:", "context", "new", "visit:", "currentNode", "interpret:", "interpreter"]}),
  476. smalltalk.ASTDebugger);
  477. smalltalk.addMethod(
  478. smalltalk.method({
  479. selector: "initializeWithContext:",
  480. fn: function (aContext){
  481. var self=this;
  482. return smalltalk.withContext(function($ctx1) {
  483. self._context_(aContext);
  484. self._initializeInterpreter();
  485. return self}, function($ctx1) {$ctx1.fill(self,"initializeWithContext:",{aContext:aContext},smalltalk.ASTDebugger)})},
  486. messageSends: ["context:", "initializeInterpreter"]}),
  487. smalltalk.ASTDebugger);
  488. smalltalk.addMethod(
  489. smalltalk.method({
  490. selector: "interpreter",
  491. fn: function (){
  492. var self=this;
  493. return smalltalk.withContext(function($ctx1) {
  494. var $2,$1;
  495. $2=self["@interpreter"];
  496. if(($receiver = $2) == nil || $receiver == undefined){
  497. self["@interpreter"]=_st(self._defaultInterpreterClass())._new();
  498. $1=self["@interpreter"];
  499. } else {
  500. $1=$2;
  501. };
  502. return $1;
  503. }, function($ctx1) {$ctx1.fill(self,"interpreter",{},smalltalk.ASTDebugger)})},
  504. messageSends: ["ifNil:", "new", "defaultInterpreterClass"]}),
  505. smalltalk.ASTDebugger);
  506. smalltalk.addMethod(
  507. smalltalk.method({
  508. selector: "interpreter:",
  509. fn: function (anInterpreter){
  510. var self=this;
  511. return smalltalk.withContext(function($ctx1) {
  512. self["@interpreter"]=anInterpreter;
  513. return self}, function($ctx1) {$ctx1.fill(self,"interpreter:",{anInterpreter:anInterpreter},smalltalk.ASTDebugger)})},
  514. messageSends: []}),
  515. smalltalk.ASTDebugger);
  516. smalltalk.addMethod(
  517. smalltalk.method({
  518. selector: "method",
  519. fn: function (){
  520. var self=this;
  521. return smalltalk.withContext(function($ctx1) {
  522. var $1;
  523. $1=_st(self._context())._method();
  524. return $1;
  525. }, function($ctx1) {$ctx1.fill(self,"method",{},smalltalk.ASTDebugger)})},
  526. messageSends: ["method", "context"]}),
  527. smalltalk.ASTDebugger);
  528. smalltalk.addMethod(
  529. smalltalk.method({
  530. selector: "nextNode",
  531. fn: function (){
  532. var self=this;
  533. return smalltalk.withContext(function($ctx1) {
  534. var $1;
  535. $1=_st(self._interpreter())._nextNode();
  536. return $1;
  537. }, function($ctx1) {$ctx1.fill(self,"nextNode",{},smalltalk.ASTDebugger)})},
  538. messageSends: ["nextNode", "interpreter"]}),
  539. smalltalk.ASTDebugger);
  540. smalltalk.addMethod(
  541. smalltalk.method({
  542. selector: "proceed",
  543. fn: function (){
  544. var self=this;
  545. return smalltalk.withContext(function($ctx1) {
  546. self._shouldBeImplemented();
  547. return self}, function($ctx1) {$ctx1.fill(self,"proceed",{},smalltalk.ASTDebugger)})},
  548. messageSends: ["shouldBeImplemented"]}),
  549. smalltalk.ASTDebugger);
  550. smalltalk.addMethod(
  551. smalltalk.method({
  552. selector: "restart",
  553. fn: function (){
  554. var self=this;
  555. return smalltalk.withContext(function($ctx1) {
  556. self._shouldBeImplemented();
  557. return self}, function($ctx1) {$ctx1.fill(self,"restart",{},smalltalk.ASTDebugger)})},
  558. messageSends: ["shouldBeImplemented"]}),
  559. smalltalk.ASTDebugger);
  560. smalltalk.addMethod(
  561. smalltalk.method({
  562. selector: "step",
  563. fn: function (){
  564. var self=this;
  565. return smalltalk.withContext(function($ctx1) {
  566. _st((function(){
  567. return smalltalk.withContext(function($ctx2) {
  568. return _st(_st(_st(_st(self._interpreter())._nextNode())._notNil())._and_((function(){
  569. return smalltalk.withContext(function($ctx3) {
  570. return _st(_st(self._interpreter())._nextNode())._stopOnStepping();
  571. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})})))._or_((function(){
  572. return smalltalk.withContext(function($ctx3) {
  573. return _st(_st(self._interpreter())._atEnd())._not();
  574. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  575. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileFalse_((function(){
  576. return smalltalk.withContext(function($ctx2) {
  577. _st(self._interpreter())._step();
  578. return self._step();
  579. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  580. return self}, function($ctx1) {$ctx1.fill(self,"step",{},smalltalk.ASTDebugger)})},
  581. messageSends: ["whileFalse:", "step", "interpreter", "or:", "not", "atEnd", "and:", "stopOnStepping", "nextNode", "notNil"]}),
  582. smalltalk.ASTDebugger);
  583. smalltalk.addMethod(
  584. smalltalk.method({
  585. selector: "stepInto",
  586. fn: function (){
  587. var self=this;
  588. return smalltalk.withContext(function($ctx1) {
  589. self._shouldBeImplemented();
  590. return self}, function($ctx1) {$ctx1.fill(self,"stepInto",{},smalltalk.ASTDebugger)})},
  591. messageSends: ["shouldBeImplemented"]}),
  592. smalltalk.ASTDebugger);
  593. smalltalk.addMethod(
  594. smalltalk.method({
  595. selector: "stepOver",
  596. fn: function (){
  597. var self=this;
  598. return smalltalk.withContext(function($ctx1) {
  599. self._step();
  600. return self}, function($ctx1) {$ctx1.fill(self,"stepOver",{},smalltalk.ASTDebugger)})},
  601. messageSends: ["step"]}),
  602. smalltalk.ASTDebugger);
  603. smalltalk.addMethod(
  604. smalltalk.method({
  605. selector: "context:",
  606. fn: function (aContext){
  607. var self=this;
  608. return smalltalk.withContext(function($ctx1) {
  609. var $2,$3,$1;
  610. $2=self._new();
  611. _st($2)._initializeWithContext_(aContext);
  612. $3=_st($2)._yourself();
  613. $1=$3;
  614. return $1;
  615. }, function($ctx1) {$ctx1.fill(self,"context:",{aContext:aContext},smalltalk.ASTDebugger.klass)})},
  616. messageSends: ["initializeWithContext:", "new", "yourself"]}),
  617. smalltalk.ASTDebugger.klass);
  618. smalltalk.addClass('ASTInterpreter', smalltalk.Object, ['currentNode', 'nextNode', 'context', 'shouldReturn', 'result'], 'Compiler-Interpreter');
  619. smalltalk.addMethod(
  620. smalltalk.method({
  621. selector: "assign:to:",
  622. fn: function (aNode,anObject){
  623. var self=this;
  624. return smalltalk.withContext(function($ctx1) {
  625. var $2,$1;
  626. $2=_st(_st(aNode)._binding())._isInstanceVar();
  627. if(smalltalk.assert($2)){
  628. $1=_st(_st(self._context())._receiver())._instVarAt_put_(_st(aNode)._value(),anObject);
  629. } else {
  630. $1=_st(self._context())._localAt_put_(_st(aNode)._value(),anObject);
  631. };
  632. return $1;
  633. }, function($ctx1) {$ctx1.fill(self,"assign:to:",{aNode:aNode,anObject:anObject},smalltalk.ASTInterpreter)})},
  634. messageSends: ["ifTrue:ifFalse:", "instVarAt:put:", "value", "receiver", "context", "localAt:put:", "isInstanceVar", "binding"]}),
  635. smalltalk.ASTInterpreter);
  636. smalltalk.addMethod(
  637. smalltalk.method({
  638. selector: "context",
  639. fn: function (){
  640. var self=this;
  641. function $AIContext(){return smalltalk.AIContext||(typeof AIContext=="undefined"?nil:AIContext)}
  642. return smalltalk.withContext(function($ctx1) {
  643. var $2,$1;
  644. $2=self["@context"];
  645. if(($receiver = $2) == nil || $receiver == undefined){
  646. self["@context"]=_st($AIContext())._new();
  647. $1=self["@context"];
  648. } else {
  649. $1=$2;
  650. };
  651. return $1;
  652. }, function($ctx1) {$ctx1.fill(self,"context",{},smalltalk.ASTInterpreter)})},
  653. messageSends: ["ifNil:", "new"]}),
  654. smalltalk.ASTInterpreter);
  655. smalltalk.addMethod(
  656. smalltalk.method({
  657. selector: "context:",
  658. fn: function (anAIContext){
  659. var self=this;
  660. return smalltalk.withContext(function($ctx1) {
  661. self["@context"]=anAIContext;
  662. return self}, function($ctx1) {$ctx1.fill(self,"context:",{anAIContext:anAIContext},smalltalk.ASTInterpreter)})},
  663. messageSends: []}),
  664. smalltalk.ASTInterpreter);
  665. smalltalk.addMethod(
  666. smalltalk.method({
  667. selector: "continue:value:",
  668. fn: function (aBlock,anObject){
  669. var self=this;
  670. return smalltalk.withContext(function($ctx1) {
  671. self["@result"]=anObject;
  672. _st(aBlock)._value_(anObject);
  673. return self}, function($ctx1) {$ctx1.fill(self,"continue:value:",{aBlock:aBlock,anObject:anObject},smalltalk.ASTInterpreter)})},
  674. messageSends: ["value:"]}),
  675. smalltalk.ASTInterpreter);
  676. smalltalk.addMethod(
  677. smalltalk.method({
  678. selector: "currentNode",
  679. fn: function (){
  680. var self=this;
  681. return smalltalk.withContext(function($ctx1) {
  682. var $1;
  683. $1=self["@currentNode"];
  684. return $1;
  685. }, function($ctx1) {$ctx1.fill(self,"currentNode",{},smalltalk.ASTInterpreter)})},
  686. messageSends: []}),
  687. smalltalk.ASTInterpreter);
  688. smalltalk.addMethod(
  689. smalltalk.method({
  690. selector: "eval:",
  691. fn: function (aString){
  692. var self=this;
  693. var source,function_;
  694. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  695. function $Compiler(){return smalltalk.Compiler||(typeof Compiler=="undefined"?nil:Compiler)}
  696. return smalltalk.withContext(function($ctx1) {
  697. var $1,$2,$3;
  698. source=_st($String())._streamContents_((function(str){
  699. return smalltalk.withContext(function($ctx2) {
  700. _st(str)._nextPutAll_("(function(");
  701. _st(_st(_st(self._context())._locals())._keys())._do_separatedBy_((function(each){
  702. return smalltalk.withContext(function($ctx3) {
  703. return _st(str)._nextPutAll_(each);
  704. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2)})}),(function(){
  705. return smalltalk.withContext(function($ctx3) {
  706. return _st(str)._nextPutAll_(",");
  707. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  708. $1=str;
  709. _st($1)._nextPutAll_("){ return (function() {");
  710. _st($1)._nextPutAll_(aString);
  711. $2=_st($1)._nextPutAll_("})() })");
  712. return $2;
  713. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})}));
  714. function_=_st(_st($Compiler())._new())._eval_(source);
  715. $3=_st(function_)._valueWithPossibleArguments_(_st(_st(self._context())._locals())._values());
  716. return $3;
  717. }, function($ctx1) {$ctx1.fill(self,"eval:",{aString:aString,source:source,function_:function_},smalltalk.ASTInterpreter)})},
  718. messageSends: ["streamContents:", "nextPutAll:", "do:separatedBy:", "keys", "locals", "context", "eval:", "new", "valueWithPossibleArguments:", "values"]}),
  719. smalltalk.ASTInterpreter);
  720. smalltalk.addMethod(
  721. smalltalk.method({
  722. selector: "initialize",
  723. fn: function (){
  724. var self=this;
  725. return smalltalk.withContext(function($ctx1) {
  726. smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  727. self["@shouldReturn"]=false;
  728. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.ASTInterpreter)})},
  729. messageSends: ["initialize"]}),
  730. smalltalk.ASTInterpreter);
  731. smalltalk.addMethod(
  732. smalltalk.method({
  733. selector: "interpret:",
  734. fn: function (aNode){
  735. var self=this;
  736. return smalltalk.withContext(function($ctx1) {
  737. self["@shouldReturn"]=false;
  738. self._interpret_continue_(aNode,(function(value){
  739. return smalltalk.withContext(function($ctx2) {
  740. self["@result"]=value;
  741. return self["@result"];
  742. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  743. return self}, function($ctx1) {$ctx1.fill(self,"interpret:",{aNode:aNode},smalltalk.ASTInterpreter)})},
  744. messageSends: ["interpret:continue:"]}),
  745. smalltalk.ASTInterpreter);
  746. smalltalk.addMethod(
  747. smalltalk.method({
  748. selector: "interpret:continue:",
  749. fn: function (aNode,aBlock){
  750. var self=this;
  751. return smalltalk.withContext(function($ctx1) {
  752. var $1,$2,$3;
  753. $1=self["@shouldReturn"];
  754. if(smalltalk.assert($1)){
  755. $2=self;
  756. return $2;
  757. };
  758. $3=_st(aNode)._isNode();
  759. if(smalltalk.assert($3)){
  760. self["@currentNode"]=aNode;
  761. self["@currentNode"];
  762. self._interpretNode_continue_(aNode,(function(value){
  763. return smalltalk.withContext(function($ctx2) {
  764. return self._continue_value_(aBlock,value);
  765. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  766. } else {
  767. self._continue_value_(aBlock,aNode);
  768. };
  769. return self}, function($ctx1) {$ctx1.fill(self,"interpret:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  770. messageSends: ["ifTrue:", "ifTrue:ifFalse:", "interpretNode:continue:", "continue:value:", "isNode"]}),
  771. smalltalk.ASTInterpreter);
  772. smalltalk.addMethod(
  773. smalltalk.method({
  774. selector: "interpretAll:continue:",
  775. fn: function (aCollection,aBlock){
  776. var self=this;
  777. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  778. return smalltalk.withContext(function($ctx1) {
  779. self._interpretAll_continue_result_(aCollection,aBlock,_st($OrderedCollection())._new());
  780. return self}, function($ctx1) {$ctx1.fill(self,"interpretAll:continue:",{aCollection:aCollection,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  781. messageSends: ["interpretAll:continue:result:", "new"]}),
  782. smalltalk.ASTInterpreter);
  783. smalltalk.addMethod(
  784. smalltalk.method({
  785. selector: "interpretAll:continue:result:",
  786. fn: function (nodes,aBlock,aCollection){
  787. var self=this;
  788. return smalltalk.withContext(function($ctx1) {
  789. var $1;
  790. $1=_st(nodes)._isEmpty();
  791. if(smalltalk.assert($1)){
  792. self._continue_value_(aBlock,aCollection);
  793. } else {
  794. self._interpret_continue_(_st(nodes)._first(),(function(value){
  795. return smalltalk.withContext(function($ctx2) {
  796. return self._interpretAll_continue_result_(_st(nodes)._allButFirst(),aBlock,_st(aCollection).__comma([value]));
  797. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  798. };
  799. return self}, function($ctx1) {$ctx1.fill(self,"interpretAll:continue:result:",{nodes:nodes,aBlock:aBlock,aCollection:aCollection},smalltalk.ASTInterpreter)})},
  800. messageSends: ["ifTrue:ifFalse:", "continue:value:", "interpret:continue:", "first", "interpretAll:continue:result:", "allButFirst", ",", "isEmpty"]}),
  801. smalltalk.ASTInterpreter);
  802. smalltalk.addMethod(
  803. smalltalk.method({
  804. selector: "interpretAssignmentNode:continue:",
  805. fn: function (aNode,aBlock){
  806. var self=this;
  807. return smalltalk.withContext(function($ctx1) {
  808. self._interpret_continue_(_st(aNode)._right(),(function(value){
  809. return smalltalk.withContext(function($ctx2) {
  810. return self._continue_value_(aBlock,self._assign_to_(_st(aNode)._left(),value));
  811. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  812. return self}, function($ctx1) {$ctx1.fill(self,"interpretAssignmentNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  813. messageSends: ["interpret:continue:", "right", "continue:value:", "assign:to:", "left"]}),
  814. smalltalk.ASTInterpreter);
  815. smalltalk.addMethod(
  816. smalltalk.method({
  817. selector: "interpretBlockNode:continue:",
  818. fn: function (aNode,aBlock){
  819. var self=this;
  820. return smalltalk.withContext(function($ctx1) {
  821. var $1,$2;
  822. self._continue_value_(aBlock,(function(){
  823. return smalltalk.withContext(function($ctx2) {
  824. return self._withBlockContext_((function(){
  825. return smalltalk.withContext(function($ctx3) {
  826. $1=self;
  827. _st($1)._interpret_(_st(_st(aNode)._nodes())._first());
  828. $2=_st($1)._result();
  829. return $2;
  830. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  831. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  832. return self}, function($ctx1) {$ctx1.fill(self,"interpretBlockNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  833. messageSends: ["continue:value:", "withBlockContext:", "interpret:", "first", "nodes", "result"]}),
  834. smalltalk.ASTInterpreter);
  835. smalltalk.addMethod(
  836. smalltalk.method({
  837. selector: "interpretBlockSequenceNode:continue:",
  838. fn: function (aNode,aBlock){
  839. var self=this;
  840. return smalltalk.withContext(function($ctx1) {
  841. self._interpretSequenceNode_continue_(aNode,aBlock);
  842. return self}, function($ctx1) {$ctx1.fill(self,"interpretBlockSequenceNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  843. messageSends: ["interpretSequenceNode:continue:"]}),
  844. smalltalk.ASTInterpreter);
  845. smalltalk.addMethod(
  846. smalltalk.method({
  847. selector: "interpretCascadeNode:continue:",
  848. fn: function (aNode,aBlock){
  849. var self=this;
  850. return smalltalk.withContext(function($ctx1) {
  851. self._interpret_continue_(_st(aNode)._receiver(),(function(receiver){
  852. return smalltalk.withContext(function($ctx2) {
  853. _st(_st(aNode)._nodes())._do_((function(each){
  854. return smalltalk.withContext(function($ctx3) {
  855. return _st(each)._receiver_(receiver);
  856. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2)})}));
  857. return self._interpretAll_continue_(_st(_st(aNode)._nodes())._allButLast(),(function(){
  858. return smalltalk.withContext(function($ctx3) {
  859. return self._interpret_continue_(_st(_st(aNode)._nodes())._last(),(function(val){
  860. return smalltalk.withContext(function($ctx4) {
  861. return self._continue_value_(aBlock,val);
  862. }, function($ctx4) {$ctx4.fillBlock({val:val},$ctx3)})}));
  863. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  864. }, function($ctx2) {$ctx2.fillBlock({receiver:receiver},$ctx1)})}));
  865. return self}, function($ctx1) {$ctx1.fill(self,"interpretCascadeNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  866. messageSends: ["interpret:continue:", "receiver", "do:", "receiver:", "nodes", "interpretAll:continue:", "allButLast", "last", "continue:value:"]}),
  867. smalltalk.ASTInterpreter);
  868. smalltalk.addMethod(
  869. smalltalk.method({
  870. selector: "interpretClassReferenceNode:continue:",
  871. fn: function (aNode,aBlock){
  872. var self=this;
  873. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  874. return smalltalk.withContext(function($ctx1) {
  875. self._continue_value_(aBlock,_st(_st($Smalltalk())._current())._at_(_st(aNode)._value()));
  876. return self}, function($ctx1) {$ctx1.fill(self,"interpretClassReferenceNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  877. messageSends: ["continue:value:", "at:", "value", "current"]}),
  878. smalltalk.ASTInterpreter);
  879. smalltalk.addMethod(
  880. smalltalk.method({
  881. selector: "interpretDynamicArrayNode:continue:",
  882. fn: function (aNode,aBlock){
  883. var self=this;
  884. return smalltalk.withContext(function($ctx1) {
  885. self._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
  886. return smalltalk.withContext(function($ctx2) {
  887. return self._continue_value_(aBlock,array);
  888. }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
  889. return self}, function($ctx1) {$ctx1.fill(self,"interpretDynamicArrayNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  890. messageSends: ["interpretAll:continue:", "nodes", "continue:value:"]}),
  891. smalltalk.ASTInterpreter);
  892. smalltalk.addMethod(
  893. smalltalk.method({
  894. selector: "interpretDynamicDictionaryNode:continue:",
  895. fn: function (aNode,aBlock){
  896. var self=this;
  897. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  898. return smalltalk.withContext(function($ctx1) {
  899. self._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
  900. var hashedCollection;
  901. return smalltalk.withContext(function($ctx2) {
  902. hashedCollection=_st($HashedCollection())._new();
  903. hashedCollection;
  904. _st(array)._do_((function(each){
  905. return smalltalk.withContext(function($ctx3) {
  906. return _st(hashedCollection)._add_(each);
  907. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2)})}));
  908. return self._continue_value_(aBlock,hashedCollection);
  909. }, function($ctx2) {$ctx2.fillBlock({array:array,hashedCollection:hashedCollection},$ctx1)})}));
  910. return self}, function($ctx1) {$ctx1.fill(self,"interpretDynamicDictionaryNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  911. messageSends: ["interpretAll:continue:", "nodes", "new", "do:", "add:", "continue:value:"]}),
  912. smalltalk.ASTInterpreter);
  913. smalltalk.addMethod(
  914. smalltalk.method({
  915. selector: "interpretJSStatementNode:continue:",
  916. fn: function (aNode,aBlock){
  917. var self=this;
  918. return smalltalk.withContext(function($ctx1) {
  919. self["@shouldReturn"]=true;
  920. self._continue_value_(aBlock,self._eval_(_st(aNode)._source()));
  921. return self}, function($ctx1) {$ctx1.fill(self,"interpretJSStatementNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  922. messageSends: ["continue:value:", "eval:", "source"]}),
  923. smalltalk.ASTInterpreter);
  924. smalltalk.addMethod(
  925. smalltalk.method({
  926. selector: "interpretMethodNode:continue:",
  927. fn: function (aNode,aBlock){
  928. var self=this;
  929. return smalltalk.withContext(function($ctx1) {
  930. self._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
  931. return smalltalk.withContext(function($ctx2) {
  932. return self._continue_value_(aBlock,_st(array)._first());
  933. }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
  934. return self}, function($ctx1) {$ctx1.fill(self,"interpretMethodNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  935. messageSends: ["interpretAll:continue:", "nodes", "continue:value:", "first"]}),
  936. smalltalk.ASTInterpreter);
  937. smalltalk.addMethod(
  938. smalltalk.method({
  939. selector: "interpretNode:continue:",
  940. fn: function (aNode,aBlock){
  941. var self=this;
  942. return smalltalk.withContext(function($ctx1) {
  943. _st(aNode)._interpreter_continue_(self,aBlock);
  944. return self}, function($ctx1) {$ctx1.fill(self,"interpretNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  945. messageSends: ["interpreter:continue:"]}),
  946. smalltalk.ASTInterpreter);
  947. smalltalk.addMethod(
  948. smalltalk.method({
  949. selector: "interpretReturnNode:continue:",
  950. fn: function (aNode,aBlock){
  951. var self=this;
  952. return smalltalk.withContext(function($ctx1) {
  953. self._interpret_continue_(_st(_st(aNode)._nodes())._first(),(function(value){
  954. return smalltalk.withContext(function($ctx2) {
  955. self["@shouldReturn"]=true;
  956. self["@shouldReturn"];
  957. return self._continue_value_(aBlock,value);
  958. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  959. return self}, function($ctx1) {$ctx1.fill(self,"interpretReturnNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  960. messageSends: ["interpret:continue:", "first", "nodes", "continue:value:"]}),
  961. smalltalk.ASTInterpreter);
  962. smalltalk.addMethod(
  963. smalltalk.method({
  964. selector: "interpretSendNode:continue:",
  965. fn: function (aNode,aBlock){
  966. var self=this;
  967. return smalltalk.withContext(function($ctx1) {
  968. self._interpret_continue_(_st(aNode)._receiver(),(function(receiver){
  969. return smalltalk.withContext(function($ctx2) {
  970. return self._interpretAll_continue_(_st(aNode)._arguments(),(function(args){
  971. return smalltalk.withContext(function($ctx3) {
  972. return self._messageFromSendNode_arguments_do_(aNode,args,(function(message){
  973. return smalltalk.withContext(function($ctx4) {
  974. _st(self._context())._pc_(_st(_st(self._context())._pc()).__plus((1)));
  975. return self._continue_value_(aBlock,self._sendMessage_to_superSend_(message,receiver,_st(aNode)._superSend()));
  976. }, function($ctx4) {$ctx4.fillBlock({message:message},$ctx3)})}));
  977. }, function($ctx3) {$ctx3.fillBlock({args:args},$ctx2)})}));
  978. }, function($ctx2) {$ctx2.fillBlock({receiver:receiver},$ctx1)})}));
  979. return self}, function($ctx1) {$ctx1.fill(self,"interpretSendNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  980. messageSends: ["interpret:continue:", "receiver", "interpretAll:continue:", "arguments", "messageFromSendNode:arguments:do:", "pc:", "+", "pc", "context", "continue:value:", "sendMessage:to:superSend:", "superSend"]}),
  981. smalltalk.ASTInterpreter);
  982. smalltalk.addMethod(
  983. smalltalk.method({
  984. selector: "interpretSequenceNode:continue:",
  985. fn: function (aNode,aBlock){
  986. var self=this;
  987. return smalltalk.withContext(function($ctx1) {
  988. self._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
  989. return smalltalk.withContext(function($ctx2) {
  990. return self._continue_value_(aBlock,_st(array)._last());
  991. }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
  992. return self}, function($ctx1) {$ctx1.fill(self,"interpretSequenceNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  993. messageSends: ["interpretAll:continue:", "nodes", "continue:value:", "last"]}),
  994. smalltalk.ASTInterpreter);
  995. smalltalk.addMethod(
  996. smalltalk.method({
  997. selector: "interpretValueNode:continue:",
  998. fn: function (aNode,aBlock){
  999. var self=this;
  1000. return smalltalk.withContext(function($ctx1) {
  1001. self._continue_value_(aBlock,_st(aNode)._value());
  1002. return self}, function($ctx1) {$ctx1.fill(self,"interpretValueNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  1003. messageSends: ["continue:value:", "value"]}),
  1004. smalltalk.ASTInterpreter);
  1005. smalltalk.addMethod(
  1006. smalltalk.method({
  1007. selector: "interpretVariableNode:continue:",
  1008. fn: function (aNode,aBlock){
  1009. var self=this;
  1010. return smalltalk.withContext(function($ctx1) {
  1011. var $1,$2,$4,$3;
  1012. $1=self;
  1013. $2=aBlock;
  1014. $4=_st(_st(aNode)._binding())._isInstanceVar();
  1015. if(smalltalk.assert($4)){
  1016. $3=_st(_st(self._context())._receiver())._instVarAt_(_st(aNode)._value());
  1017. } else {
  1018. $3=_st(self._context())._localAt_(_st(aNode)._value());
  1019. };
  1020. _st($1)._continue_value_($2,$3);
  1021. return self}, function($ctx1) {$ctx1.fill(self,"interpretVariableNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  1022. messageSends: ["continue:value:", "ifTrue:ifFalse:", "instVarAt:", "value", "receiver", "context", "localAt:", "isInstanceVar", "binding"]}),
  1023. smalltalk.ASTInterpreter);
  1024. smalltalk.addMethod(
  1025. smalltalk.method({
  1026. selector: "messageFromSendNode:arguments:do:",
  1027. fn: function (aSendNode,aCollection,aBlock){
  1028. var self=this;
  1029. function $Message(){return smalltalk.Message||(typeof Message=="undefined"?nil:Message)}
  1030. return smalltalk.withContext(function($ctx1) {
  1031. var $1,$2;
  1032. $1=_st($Message())._new();
  1033. _st($1)._selector_(_st(aSendNode)._selector());
  1034. _st($1)._arguments_(aCollection);
  1035. $2=_st($1)._yourself();
  1036. self._continue_value_(aBlock,$2);
  1037. return self}, function($ctx1) {$ctx1.fill(self,"messageFromSendNode:arguments:do:",{aSendNode:aSendNode,aCollection:aCollection,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  1038. messageSends: ["continue:value:", "selector:", "selector", "new", "arguments:", "yourself"]}),
  1039. smalltalk.ASTInterpreter);
  1040. smalltalk.addMethod(
  1041. smalltalk.method({
  1042. selector: "nextNode",
  1043. fn: function (){
  1044. var self=this;
  1045. return smalltalk.withContext(function($ctx1) {
  1046. var $2,$1;
  1047. $2=self["@nextNode"];
  1048. if(($receiver = $2) == nil || $receiver == undefined){
  1049. $1=self._currentNode();
  1050. } else {
  1051. $1=$2;
  1052. };
  1053. return $1;
  1054. }, function($ctx1) {$ctx1.fill(self,"nextNode",{},smalltalk.ASTInterpreter)})},
  1055. messageSends: ["ifNil:", "currentNode"]}),
  1056. smalltalk.ASTInterpreter);
  1057. smalltalk.addMethod(
  1058. smalltalk.method({
  1059. selector: "nextNode:",
  1060. fn: function (aNode){
  1061. var self=this;
  1062. return smalltalk.withContext(function($ctx1) {
  1063. self["@nextNode"]=aNode;
  1064. return self}, function($ctx1) {$ctx1.fill(self,"nextNode:",{aNode:aNode},smalltalk.ASTInterpreter)})},
  1065. messageSends: []}),
  1066. smalltalk.ASTInterpreter);
  1067. smalltalk.addMethod(
  1068. smalltalk.method({
  1069. selector: "result",
  1070. fn: function (){
  1071. var self=this;
  1072. return smalltalk.withContext(function($ctx1) {
  1073. var $1;
  1074. $1=self["@result"];
  1075. return $1;
  1076. }, function($ctx1) {$ctx1.fill(self,"result",{},smalltalk.ASTInterpreter)})},
  1077. messageSends: []}),
  1078. smalltalk.ASTInterpreter);
  1079. smalltalk.addMethod(
  1080. smalltalk.method({
  1081. selector: "sendMessage:to:superSend:",
  1082. fn: function (aMessage,anObject,aBoolean){
  1083. var self=this;
  1084. var method;
  1085. return smalltalk.withContext(function($ctx1) {
  1086. var $1,$2,$3,$4,$5,$6;
  1087. var $early={};
  1088. try {
  1089. $1=aBoolean;
  1090. if(! smalltalk.assert($1)){
  1091. $2=_st(aMessage)._sendTo_(anObject);
  1092. return $2;
  1093. };
  1094. $3=_st(_st(anObject)._class())._superclass();
  1095. if(($receiver = $3) == nil || $receiver == undefined){
  1096. $4=self._messageNotUnderstood_receiver_(aMessage,anObject);
  1097. return $4;
  1098. } else {
  1099. $3;
  1100. };
  1101. method=_st(_st(_st(_st(anObject)._class())._superclass())._methodDictionary())._at_ifAbsent_(_st(aMessage)._selector(),(function(){
  1102. return smalltalk.withContext(function($ctx2) {
  1103. $5=self._messageNotUnderstood_receiver_(aMessage,anObject);
  1104. throw $early=[$5];
  1105. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1106. $6=_st(_st(method)._fn())._applyTo_arguments_(anObject,_st(aMessage)._arguments());
  1107. return $6;
  1108. }
  1109. catch(e) {if(e===$early)return e[0]; throw e}
  1110. }, function($ctx1) {$ctx1.fill(self,"sendMessage:to:superSend:",{aMessage:aMessage,anObject:anObject,aBoolean:aBoolean,method:method},smalltalk.ASTInterpreter)})},
  1111. messageSends: ["ifFalse:", "sendTo:", "ifNil:", "messageNotUnderstood:receiver:", "superclass", "class", "at:ifAbsent:", "selector", "methodDictionary", "applyTo:arguments:", "arguments", "fn"]}),
  1112. smalltalk.ASTInterpreter);
  1113. smalltalk.addMethod(
  1114. smalltalk.method({
  1115. selector: "shouldReturn",
  1116. fn: function (){
  1117. var self=this;
  1118. return smalltalk.withContext(function($ctx1) {
  1119. var $2,$1;
  1120. $2=self["@shouldReturn"];
  1121. if(($receiver = $2) == nil || $receiver == undefined){
  1122. $1=false;
  1123. } else {
  1124. $1=$2;
  1125. };
  1126. return $1;
  1127. }, function($ctx1) {$ctx1.fill(self,"shouldReturn",{},smalltalk.ASTInterpreter)})},
  1128. messageSends: ["ifNil:"]}),
  1129. smalltalk.ASTInterpreter);
  1130. smalltalk.addMethod(
  1131. smalltalk.method({
  1132. selector: "withBlockContext:",
  1133. fn: function (aBlock){
  1134. var self=this;
  1135. var blockResult;
  1136. function $AIContext(){return smalltalk.AIContext||(typeof AIContext=="undefined"?nil:AIContext)}
  1137. return smalltalk.withContext(function($ctx1) {
  1138. var $1,$2,$3;
  1139. $1=_st($AIContext())._new();
  1140. _st($1)._outerContext_(self._context());
  1141. $2=_st($1)._yourself();
  1142. self._context_($2);
  1143. blockResult=_st(aBlock)._value();
  1144. self._context_(_st(self._context())._outerContext());
  1145. $3=blockResult;
  1146. return $3;
  1147. }, function($ctx1) {$ctx1.fill(self,"withBlockContext:",{aBlock:aBlock,blockResult:blockResult},smalltalk.ASTInterpreter)})},
  1148. messageSends: ["context:", "outerContext:", "context", "new", "yourself", "value", "outerContext"]}),
  1149. smalltalk.ASTInterpreter);
  1150. smalltalk.addClass('ASTSteppingInterpreter', smalltalk.ASTInterpreter, ['continuation', 'nextNode'], 'Compiler-Interpreter');
  1151. smalltalk.addMethod(
  1152. smalltalk.method({
  1153. selector: "atEnd",
  1154. fn: function (){
  1155. var self=this;
  1156. return smalltalk.withContext(function($ctx1) {
  1157. var $1;
  1158. $1=_st(self._shouldReturn())._or_((function(){
  1159. return smalltalk.withContext(function($ctx2) {
  1160. return _st(self._nextNode()).__eq_eq(self._currentNode());
  1161. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1162. return $1;
  1163. }, function($ctx1) {$ctx1.fill(self,"atEnd",{},smalltalk.ASTSteppingInterpreter)})},
  1164. messageSends: ["or:", "==", "currentNode", "nextNode", "shouldReturn"]}),
  1165. smalltalk.ASTSteppingInterpreter);
  1166. smalltalk.addMethod(
  1167. smalltalk.method({
  1168. selector: "initialize",
  1169. fn: function (){
  1170. var self=this;
  1171. return smalltalk.withContext(function($ctx1) {
  1172. smalltalk.ASTInterpreter.fn.prototype._initialize.apply(_st(self), []);
  1173. self["@continuation"]=(function(){
  1174. return smalltalk.withContext(function($ctx2) {
  1175. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  1176. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.ASTSteppingInterpreter)})},
  1177. messageSends: ["initialize"]}),
  1178. smalltalk.ASTSteppingInterpreter);
  1179. smalltalk.addMethod(
  1180. smalltalk.method({
  1181. selector: "interpret:continue:",
  1182. fn: function (aNode,aBlock){
  1183. var self=this;
  1184. return smalltalk.withContext(function($ctx1) {
  1185. self["@nextNode"]=aNode;
  1186. self["@continuation"]=(function(){
  1187. return smalltalk.withContext(function($ctx2) {
  1188. return smalltalk.ASTInterpreter.fn.prototype._interpret_continue_.apply(_st(self), [aNode,aBlock]);
  1189. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  1190. return self}, function($ctx1) {$ctx1.fill(self,"interpret:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTSteppingInterpreter)})},
  1191. messageSends: ["interpret:continue:"]}),
  1192. smalltalk.ASTSteppingInterpreter);
  1193. smalltalk.addMethod(
  1194. smalltalk.method({
  1195. selector: "nextNode",
  1196. fn: function (){
  1197. var self=this;
  1198. return smalltalk.withContext(function($ctx1) {
  1199. var $1;
  1200. $1=self["@nextNode"];
  1201. return $1;
  1202. }, function($ctx1) {$ctx1.fill(self,"nextNode",{},smalltalk.ASTSteppingInterpreter)})},
  1203. messageSends: []}),
  1204. smalltalk.ASTSteppingInterpreter);
  1205. smalltalk.addMethod(
  1206. smalltalk.method({
  1207. selector: "step",
  1208. fn: function (){
  1209. var self=this;
  1210. return smalltalk.withContext(function($ctx1) {
  1211. _st(self["@continuation"])._value();
  1212. return self}, function($ctx1) {$ctx1.fill(self,"step",{},smalltalk.ASTSteppingInterpreter)})},
  1213. messageSends: ["value"]}),
  1214. smalltalk.ASTSteppingInterpreter);
  1215. smalltalk.addClass('ASTPCNodeVisitor', smalltalk.NodeVisitor, ['useInlinings', 'pc', 'context', 'currentNode'], 'Compiler-Interpreter');
  1216. smalltalk.addMethod(
  1217. smalltalk.method({
  1218. selector: "context",
  1219. fn: function (){
  1220. var self=this;
  1221. return smalltalk.withContext(function($ctx1) {
  1222. var $1;
  1223. $1=self["@context"];
  1224. return $1;
  1225. }, function($ctx1) {$ctx1.fill(self,"context",{},smalltalk.ASTPCNodeVisitor)})},
  1226. messageSends: []}),
  1227. smalltalk.ASTPCNodeVisitor);
  1228. smalltalk.addMethod(
  1229. smalltalk.method({
  1230. selector: "context:",
  1231. fn: function (aContext){
  1232. var self=this;
  1233. return smalltalk.withContext(function($ctx1) {
  1234. self["@context"]=aContext;
  1235. return self}, function($ctx1) {$ctx1.fill(self,"context:",{aContext:aContext},smalltalk.ASTPCNodeVisitor)})},
  1236. messageSends: []}),
  1237. smalltalk.ASTPCNodeVisitor);
  1238. smalltalk.addMethod(
  1239. smalltalk.method({
  1240. selector: "currentNode",
  1241. fn: function (){
  1242. var self=this;
  1243. return smalltalk.withContext(function($ctx1) {
  1244. var $1;
  1245. $1=self["@currentNode"];
  1246. return $1;
  1247. }, function($ctx1) {$ctx1.fill(self,"currentNode",{},smalltalk.ASTPCNodeVisitor)})},
  1248. messageSends: []}),
  1249. smalltalk.ASTPCNodeVisitor);
  1250. smalltalk.addMethod(
  1251. smalltalk.method({
  1252. selector: "pc",
  1253. fn: function (){
  1254. var self=this;
  1255. return smalltalk.withContext(function($ctx1) {
  1256. var $2,$1;
  1257. $2=self["@pc"];
  1258. if(($receiver = $2) == nil || $receiver == undefined){
  1259. $1=(0);
  1260. } else {
  1261. $1=$2;
  1262. };
  1263. return $1;
  1264. }, function($ctx1) {$ctx1.fill(self,"pc",{},smalltalk.ASTPCNodeVisitor)})},
  1265. messageSends: ["ifNil:"]}),
  1266. smalltalk.ASTPCNodeVisitor);
  1267. smalltalk.addMethod(
  1268. smalltalk.method({
  1269. selector: "pc:",
  1270. fn: function (anInteger){
  1271. var self=this;
  1272. return smalltalk.withContext(function($ctx1) {
  1273. self["@pc"]=anInteger;
  1274. return self}, function($ctx1) {$ctx1.fill(self,"pc:",{anInteger:anInteger},smalltalk.ASTPCNodeVisitor)})},
  1275. messageSends: []}),
  1276. smalltalk.ASTPCNodeVisitor);
  1277. smalltalk.addMethod(
  1278. smalltalk.method({
  1279. selector: "useInlinings",
  1280. fn: function (){
  1281. var self=this;
  1282. return smalltalk.withContext(function($ctx1) {
  1283. var $2,$1;
  1284. $2=self["@useInlinings"];
  1285. if(($receiver = $2) == nil || $receiver == undefined){
  1286. $1=true;
  1287. } else {
  1288. $1=$2;
  1289. };
  1290. return $1;
  1291. }, function($ctx1) {$ctx1.fill(self,"useInlinings",{},smalltalk.ASTPCNodeVisitor)})},
  1292. messageSends: ["ifNil:"]}),
  1293. smalltalk.ASTPCNodeVisitor);
  1294. smalltalk.addMethod(
  1295. smalltalk.method({
  1296. selector: "useInlinings:",
  1297. fn: function (aBoolean){
  1298. var self=this;
  1299. return smalltalk.withContext(function($ctx1) {
  1300. self["@useInlinings"]=aBoolean;
  1301. return self}, function($ctx1) {$ctx1.fill(self,"useInlinings:",{aBoolean:aBoolean},smalltalk.ASTPCNodeVisitor)})},
  1302. messageSends: []}),
  1303. smalltalk.ASTPCNodeVisitor);
  1304. smalltalk.addMethod(
  1305. smalltalk.method({
  1306. selector: "visitJSStatementNode:",
  1307. fn: function (aNode){
  1308. var self=this;
  1309. return smalltalk.withContext(function($ctx1) {
  1310. self["@currentNode"]=aNode;
  1311. return self}, function($ctx1) {$ctx1.fill(self,"visitJSStatementNode:",{aNode:aNode},smalltalk.ASTPCNodeVisitor)})},
  1312. messageSends: []}),
  1313. smalltalk.ASTPCNodeVisitor);
  1314. smalltalk.addMethod(
  1315. smalltalk.method({
  1316. selector: "visitSendNode:",
  1317. fn: function (aNode){
  1318. var self=this;
  1319. return smalltalk.withContext(function($ctx1) {
  1320. var $1,$2;
  1321. smalltalk.NodeVisitor.fn.prototype._visitSendNode_.apply(_st(self), [aNode]);
  1322. $1=_st(self._pc()).__eq(_st(self._context())._pc());
  1323. if(! smalltalk.assert($1)){
  1324. $2=_st(aNode)._shouldBeInlined();
  1325. if(! smalltalk.assert($2)){
  1326. self._pc_(_st(self._pc()).__plus((1)));
  1327. self["@currentNode"]=aNode;
  1328. self["@currentNode"];
  1329. };
  1330. };
  1331. return self}, function($ctx1) {$ctx1.fill(self,"visitSendNode:",{aNode:aNode},smalltalk.ASTPCNodeVisitor)})},
  1332. messageSends: ["visitSendNode:", "ifFalse:", "pc:", "+", "pc", "shouldBeInlined", "=", "context"]}),
  1333. smalltalk.ASTPCNodeVisitor);
  1334. smalltalk.addClass('Interpreter', smalltalk.NodeVisitor, ['node', 'context', 'stack', 'returnValue'], 'Compiler-Interpreter');
  1335. smalltalk.addMethod(
  1336. smalltalk.method({
  1337. selector: "assign:to:",
  1338. fn: function (aNode,anObject){
  1339. var self=this;
  1340. return smalltalk.withContext(function($ctx1) {
  1341. var $1;
  1342. $1=_st(_st(aNode)._binding())._isInstanceVar();
  1343. if(smalltalk.assert($1)){
  1344. _st(_st(self._context())._receiver())._instVarAt_put_(_st(aNode)._value(),anObject);
  1345. } else {
  1346. _st(self._context())._localAt_put_(_st(aNode)._value(),anObject);
  1347. };
  1348. return self}, function($ctx1) {$ctx1.fill(self,"assign:to:",{aNode:aNode,anObject:anObject},smalltalk.Interpreter)})},
  1349. messageSends: ["ifTrue:ifFalse:", "instVarAt:put:", "value", "receiver", "context", "localAt:put:", "isInstanceVar", "binding"]}),
  1350. smalltalk.Interpreter);
  1351. smalltalk.addMethod(
  1352. smalltalk.method({
  1353. selector: "atEnd",
  1354. fn: function (){
  1355. var self=this;
  1356. return smalltalk.withContext(function($ctx1) {
  1357. var $1;
  1358. $1=_st(self._shouldReturn())._or_((function(){
  1359. return smalltalk.withContext(function($ctx2) {
  1360. return _st(self._node())._isNil();
  1361. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1362. return $1;
  1363. }, function($ctx1) {$ctx1.fill(self,"atEnd",{},smalltalk.Interpreter)})},
  1364. messageSends: ["or:", "isNil", "node", "shouldReturn"]}),
  1365. smalltalk.Interpreter);
  1366. smalltalk.addMethod(
  1367. smalltalk.method({
  1368. selector: "context",
  1369. fn: function (){
  1370. var self=this;
  1371. return smalltalk.withContext(function($ctx1) {
  1372. var $1;
  1373. $1=self["@context"];
  1374. return $1;
  1375. }, function($ctx1) {$ctx1.fill(self,"context",{},smalltalk.Interpreter)})},
  1376. messageSends: []}),
  1377. smalltalk.Interpreter);
  1378. smalltalk.addMethod(
  1379. smalltalk.method({
  1380. selector: "context:",
  1381. fn: function (aContext){
  1382. var self=this;
  1383. return smalltalk.withContext(function($ctx1) {
  1384. self["@context"]=aContext;
  1385. return self}, function($ctx1) {$ctx1.fill(self,"context:",{aContext:aContext},smalltalk.Interpreter)})},
  1386. messageSends: []}),
  1387. smalltalk.Interpreter);
  1388. smalltalk.addMethod(
  1389. smalltalk.method({
  1390. selector: "eval:",
  1391. fn: function (aString){
  1392. var self=this;
  1393. var source,function_;
  1394. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  1395. function $Compiler(){return smalltalk.Compiler||(typeof Compiler=="undefined"?nil:Compiler)}
  1396. return smalltalk.withContext(function($ctx1) {
  1397. var $1,$2,$3;
  1398. source=_st($String())._streamContents_((function(str){
  1399. return smalltalk.withContext(function($ctx2) {
  1400. _st(str)._nextPutAll_("(function(");
  1401. _st(_st(_st(self._context())._locals())._keys())._do_separatedBy_((function(each){
  1402. return smalltalk.withContext(function($ctx3) {
  1403. return _st(str)._nextPutAll_(each);
  1404. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2)})}),(function(){
  1405. return smalltalk.withContext(function($ctx3) {
  1406. return _st(str)._nextPutAll_(",");
  1407. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1408. $1=str;
  1409. _st($1)._nextPutAll_("){ return (function() {");
  1410. _st($1)._nextPutAll_(aString);
  1411. $2=_st($1)._nextPutAll_("})() })");
  1412. return $2;
  1413. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})}));
  1414. function_=_st(_st($Compiler())._new())._eval_(source);
  1415. $3=_st(function_)._valueWithPossibleArguments_(_st(_st(self._context())._locals())._values());
  1416. return $3;
  1417. }, function($ctx1) {$ctx1.fill(self,"eval:",{aString:aString,source:source,function_:function_},smalltalk.Interpreter)})},
  1418. messageSends: ["streamContents:", "nextPutAll:", "do:separatedBy:", "keys", "locals", "context", "eval:", "new", "valueWithPossibleArguments:", "values"]}),
  1419. smalltalk.Interpreter);
  1420. smalltalk.addMethod(
  1421. smalltalk.method({
  1422. selector: "interpret",
  1423. fn: function (){
  1424. var self=this;
  1425. return smalltalk.withContext(function($ctx1) {
  1426. self._visit_(self._node());
  1427. return self}, function($ctx1) {$ctx1.fill(self,"interpret",{},smalltalk.Interpreter)})},
  1428. messageSends: ["visit:", "node"]}),
  1429. smalltalk.Interpreter);
  1430. smalltalk.addMethod(
  1431. smalltalk.method({
  1432. selector: "messageFromSendNode:arguments:",
  1433. fn: function (aSendNode,aCollection){
  1434. var self=this;
  1435. function $Message(){return smalltalk.Message||(typeof Message=="undefined"?nil:Message)}
  1436. return smalltalk.withContext(function($ctx1) {
  1437. var $2,$3,$1;
  1438. $2=_st($Message())._new();
  1439. _st($2)._selector_(_st(aSendNode)._selector());
  1440. _st($2)._arguments_(aCollection);
  1441. $3=_st($2)._yourself();
  1442. $1=$3;
  1443. return $1;
  1444. }, function($ctx1) {$ctx1.fill(self,"messageFromSendNode:arguments:",{aSendNode:aSendNode,aCollection:aCollection},smalltalk.Interpreter)})},
  1445. messageSends: ["selector:", "selector", "new", "arguments:", "yourself"]}),
  1446. smalltalk.Interpreter);
  1447. smalltalk.addMethod(
  1448. smalltalk.method({
  1449. selector: "messageNotUnderstood:receiver:",
  1450. fn: function (aMessage,anObject){
  1451. var self=this;
  1452. function $MessageNotUnderstood(){return smalltalk.MessageNotUnderstood||(typeof MessageNotUnderstood=="undefined"?nil:MessageNotUnderstood)}
  1453. return smalltalk.withContext(function($ctx1) {
  1454. var $1,$2;
  1455. $1=_st($MessageNotUnderstood())._new();
  1456. _st($1)._meesage_(aMessage);
  1457. _st($1)._receiver_(anObject);
  1458. $2=_st($1)._signal();
  1459. return self}, function($ctx1) {$ctx1.fill(self,"messageNotUnderstood:receiver:",{aMessage:aMessage,anObject:anObject},smalltalk.Interpreter)})},
  1460. messageSends: ["meesage:", "new", "receiver:", "signal"]}),
  1461. smalltalk.Interpreter);
  1462. smalltalk.addMethod(
  1463. smalltalk.method({
  1464. selector: "next",
  1465. fn: function (){
  1466. var self=this;
  1467. return smalltalk.withContext(function($ctx1) {
  1468. self._node_(_st(self._node())._nextNode());
  1469. return self}, function($ctx1) {$ctx1.fill(self,"next",{},smalltalk.Interpreter)})},
  1470. messageSends: ["node:", "nextNode", "node"]}),
  1471. smalltalk.Interpreter);
  1472. smalltalk.addMethod(
  1473. smalltalk.method({
  1474. selector: "node",
  1475. fn: function (){
  1476. var self=this;
  1477. return smalltalk.withContext(function($ctx1) {
  1478. var $1;
  1479. $1=self["@node"];
  1480. return $1;
  1481. }, function($ctx1) {$ctx1.fill(self,"node",{},smalltalk.Interpreter)})},
  1482. messageSends: []}),
  1483. smalltalk.Interpreter);
  1484. smalltalk.addMethod(
  1485. smalltalk.method({
  1486. selector: "node:",
  1487. fn: function (aNode){
  1488. var self=this;
  1489. return smalltalk.withContext(function($ctx1) {
  1490. self["@node"]=aNode;
  1491. return self}, function($ctx1) {$ctx1.fill(self,"node:",{aNode:aNode},smalltalk.Interpreter)})},
  1492. messageSends: []}),
  1493. smalltalk.Interpreter);
  1494. smalltalk.addMethod(
  1495. smalltalk.method({
  1496. selector: "peek",
  1497. fn: function (){
  1498. var self=this;
  1499. return smalltalk.withContext(function($ctx1) {
  1500. var $1;
  1501. $1=_st(self._stack())._last();
  1502. return $1;
  1503. }, function($ctx1) {$ctx1.fill(self,"peek",{},smalltalk.Interpreter)})},
  1504. messageSends: ["last", "stack"]}),
  1505. smalltalk.Interpreter);
  1506. smalltalk.addMethod(
  1507. smalltalk.method({
  1508. selector: "pop",
  1509. fn: function (){
  1510. var self=this;
  1511. var value;
  1512. return smalltalk.withContext(function($ctx1) {
  1513. var $1;
  1514. value=self._peek();
  1515. _st(self._stack())._removeLast();
  1516. $1=value;
  1517. return $1;
  1518. }, function($ctx1) {$ctx1.fill(self,"pop",{value:value},smalltalk.Interpreter)})},
  1519. messageSends: ["peek", "removeLast", "stack"]}),
  1520. smalltalk.Interpreter);
  1521. smalltalk.addMethod(
  1522. smalltalk.method({
  1523. selector: "proceed",
  1524. fn: function (){
  1525. var self=this;
  1526. return smalltalk.withContext(function($ctx1) {
  1527. _st((function(){
  1528. return smalltalk.withContext(function($ctx2) {
  1529. return _st(self._node())._notNil();
  1530. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  1531. return smalltalk.withContext(function($ctx2) {
  1532. return self._step();
  1533. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1534. return self}, function($ctx1) {$ctx1.fill(self,"proceed",{},smalltalk.Interpreter)})},
  1535. messageSends: ["whileTrue:", "step", "notNil", "node"]}),
  1536. smalltalk.Interpreter);
  1537. smalltalk.addMethod(
  1538. smalltalk.method({
  1539. selector: "push:",
  1540. fn: function (anObject){
  1541. var self=this;
  1542. return smalltalk.withContext(function($ctx1) {
  1543. var $1;
  1544. $1=_st(self._stack())._add_(anObject);
  1545. return $1;
  1546. }, function($ctx1) {$ctx1.fill(self,"push:",{anObject:anObject},smalltalk.Interpreter)})},
  1547. messageSends: ["add:", "stack"]}),
  1548. smalltalk.Interpreter);
  1549. smalltalk.addMethod(
  1550. smalltalk.method({
  1551. selector: "returnValue",
  1552. fn: function (){
  1553. var self=this;
  1554. return smalltalk.withContext(function($ctx1) {
  1555. var $2,$1;
  1556. $2=self["@returnValue"];
  1557. if(($receiver = $2) == nil || $receiver == undefined){
  1558. $1=_st(self._context())._receiver();
  1559. } else {
  1560. $1=$2;
  1561. };
  1562. return $1;
  1563. }, function($ctx1) {$ctx1.fill(self,"returnValue",{},smalltalk.Interpreter)})},
  1564. messageSends: ["ifNil:", "receiver", "context"]}),
  1565. smalltalk.Interpreter);
  1566. smalltalk.addMethod(
  1567. smalltalk.method({
  1568. selector: "returnValue:",
  1569. fn: function (anObject){
  1570. var self=this;
  1571. return smalltalk.withContext(function($ctx1) {
  1572. self["@returnValue"]=anObject;
  1573. return self}, function($ctx1) {$ctx1.fill(self,"returnValue:",{anObject:anObject},smalltalk.Interpreter)})},
  1574. messageSends: []}),
  1575. smalltalk.Interpreter);
  1576. smalltalk.addMethod(
  1577. smalltalk.method({
  1578. selector: "sendMessage:to:superSend:",
  1579. fn: function (aMessage,anObject,aBoolean){
  1580. var self=this;
  1581. var method;
  1582. return smalltalk.withContext(function($ctx1) {
  1583. var $1,$2,$3,$4,$5,$6;
  1584. var $early={};
  1585. try {
  1586. $1=aBoolean;
  1587. if(! smalltalk.assert($1)){
  1588. $2=_st(aMessage)._sendTo_(anObject);
  1589. return $2;
  1590. };
  1591. $3=_st(_st(anObject)._class())._superclass();
  1592. if(($receiver = $3) == nil || $receiver == undefined){
  1593. $4=self._messageNotUnderstood_receiver_(aMessage,anObject);
  1594. return $4;
  1595. } else {
  1596. $3;
  1597. };
  1598. method=_st(_st(_st(_st(anObject)._class())._superclass())._methodDictionary())._at_ifAbsent_(_st(aMessage)._selector(),(function(){
  1599. return smalltalk.withContext(function($ctx2) {
  1600. $5=self._messageNotUnderstood_receiver_(aMessage,anObject);
  1601. throw $early=[$5];
  1602. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1603. $6=_st(method)._sendTo_arguments_(anObject,_st(aMessage)._arguments());
  1604. return $6;
  1605. }
  1606. catch(e) {if(e===$early)return e[0]; throw e}
  1607. }, function($ctx1) {$ctx1.fill(self,"sendMessage:to:superSend:",{aMessage:aMessage,anObject:anObject,aBoolean:aBoolean,method:method},smalltalk.Interpreter)})},
  1608. messageSends: ["ifFalse:", "sendTo:", "ifNil:", "messageNotUnderstood:receiver:", "superclass", "class", "at:ifAbsent:", "selector", "methodDictionary", "sendTo:arguments:", "arguments"]}),
  1609. smalltalk.Interpreter);
  1610. smalltalk.addMethod(
  1611. smalltalk.method({
  1612. selector: "shouldReturn",
  1613. fn: function (){
  1614. var self=this;
  1615. return smalltalk.withContext(function($ctx1) {
  1616. var $1;
  1617. $1=_st(self["@returnValue"])._notNil();
  1618. return $1;
  1619. }, function($ctx1) {$ctx1.fill(self,"shouldReturn",{},smalltalk.Interpreter)})},
  1620. messageSends: ["notNil"]}),
  1621. smalltalk.Interpreter);
  1622. smalltalk.addMethod(
  1623. smalltalk.method({
  1624. selector: "skip",
  1625. fn: function (){
  1626. var self=this;
  1627. return smalltalk.withContext(function($ctx1) {
  1628. self._next();
  1629. return self}, function($ctx1) {$ctx1.fill(self,"skip",{},smalltalk.Interpreter)})},
  1630. messageSends: ["next"]}),
  1631. smalltalk.Interpreter);
  1632. smalltalk.addMethod(
  1633. smalltalk.method({
  1634. selector: "stack",
  1635. fn: function (){
  1636. var self=this;
  1637. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  1638. return smalltalk.withContext(function($ctx1) {
  1639. var $2,$1;
  1640. $2=self["@stack"];
  1641. if(($receiver = $2) == nil || $receiver == undefined){
  1642. self["@stack"]=_st($OrderedCollection())._new();
  1643. $1=self["@stack"];
  1644. } else {
  1645. $1=$2;
  1646. };
  1647. return $1;
  1648. }, function($ctx1) {$ctx1.fill(self,"stack",{},smalltalk.Interpreter)})},
  1649. messageSends: ["ifNil:", "new"]}),
  1650. smalltalk.Interpreter);
  1651. smalltalk.addMethod(
  1652. smalltalk.method({
  1653. selector: "step",
  1654. fn: function (){
  1655. var self=this;
  1656. return smalltalk.withContext(function($ctx1) {
  1657. var $1,$2;
  1658. $1=self;
  1659. _st($1)._interpret();
  1660. $2=_st($1)._next();
  1661. return self}, function($ctx1) {$ctx1.fill(self,"step",{},smalltalk.Interpreter)})},
  1662. messageSends: ["interpret", "next"]}),
  1663. smalltalk.Interpreter);
  1664. smalltalk.addMethod(
  1665. smalltalk.method({
  1666. selector: "visit:",
  1667. fn: function (aNode){
  1668. var self=this;
  1669. return smalltalk.withContext(function($ctx1) {
  1670. var $1;
  1671. $1=self._shouldReturn();
  1672. if(! smalltalk.assert($1)){
  1673. smalltalk.NodeVisitor.fn.prototype._visit_.apply(_st(self), [aNode]);
  1674. };
  1675. return self}, function($ctx1) {$ctx1.fill(self,"visit:",{aNode:aNode},smalltalk.Interpreter)})},
  1676. messageSends: ["ifFalse:", "visit:", "shouldReturn"]}),
  1677. smalltalk.Interpreter);
  1678. smalltalk.addMethod(
  1679. smalltalk.method({
  1680. selector: "visitAssignmentNode:",
  1681. fn: function (aNode){
  1682. var self=this;
  1683. return smalltalk.withContext(function($ctx1) {
  1684. self._assign_to_(_st(aNode)._left(),self._peek());
  1685. return self}, function($ctx1) {$ctx1.fill(self,"visitAssignmentNode:",{aNode:aNode},smalltalk.Interpreter)})},
  1686. messageSends: ["assign:to:", "left", "peek"]}),
  1687. smalltalk.Interpreter);
  1688. smalltalk.addMethod(
  1689. smalltalk.method({
  1690. selector: "visitClassReferenceNode:",
  1691. fn: function (aNode){
  1692. var self=this;
  1693. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  1694. return smalltalk.withContext(function($ctx1) {
  1695. self._push_(_st(_st($Smalltalk())._current())._at_(_st(aNode)._value()));
  1696. return self}, function($ctx1) {$ctx1.fill(self,"visitClassReferenceNode:",{aNode:aNode},smalltalk.Interpreter)})},
  1697. messageSends: ["push:", "at:", "value", "current"]}),
  1698. smalltalk.Interpreter);
  1699. smalltalk.addMethod(
  1700. smalltalk.method({
  1701. selector: "visitJSStatementNode:",
  1702. fn: function (aNode){
  1703. var self=this;
  1704. return smalltalk.withContext(function($ctx1) {
  1705. self._returnValue_(self._eval_(_st(aNode)._source()));
  1706. return self}, function($ctx1) {$ctx1.fill(self,"visitJSStatementNode:",{aNode:aNode},smalltalk.Interpreter)})},
  1707. messageSends: ["returnValue:", "eval:", "source"]}),
  1708. smalltalk.Interpreter);
  1709. smalltalk.addMethod(
  1710. smalltalk.method({
  1711. selector: "visitNode:",
  1712. fn: function (aNode){
  1713. var self=this;
  1714. return smalltalk.withContext(function($ctx1) {
  1715. return self}, function($ctx1) {$ctx1.fill(self,"visitNode:",{aNode:aNode},smalltalk.Interpreter)})},
  1716. messageSends: []}),
  1717. smalltalk.Interpreter);
  1718. smalltalk.addMethod(
  1719. smalltalk.method({
  1720. selector: "visitReturnNode:",
  1721. fn: function (aNode){
  1722. var self=this;
  1723. return smalltalk.withContext(function($ctx1) {
  1724. self._returnValue_(self._pop());
  1725. return self}, function($ctx1) {$ctx1.fill(self,"visitReturnNode:",{aNode:aNode},smalltalk.Interpreter)})},
  1726. messageSends: ["returnValue:", "pop"]}),
  1727. smalltalk.Interpreter);
  1728. smalltalk.addMethod(
  1729. smalltalk.method({
  1730. selector: "visitSendNode:",
  1731. fn: function (aNode){
  1732. var self=this;
  1733. var receiver,args,message,result;
  1734. return smalltalk.withContext(function($ctx1) {
  1735. args=_st(_st(aNode)._arguments())._collect_((function(each){
  1736. return smalltalk.withContext(function($ctx2) {
  1737. return self._pop();
  1738. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1739. receiver=self._pop();
  1740. message=self._messageFromSendNode_arguments_(aNode,args);
  1741. result=self._sendMessage_to_superSend_(message,receiver,_st(aNode)._superSend());
  1742. self._push_(result);
  1743. return self}, function($ctx1) {$ctx1.fill(self,"visitSendNode:",{aNode:aNode,receiver:receiver,args:args,message:message,result:result},smalltalk.Interpreter)})},
  1744. messageSends: ["collect:", "pop", "arguments", "messageFromSendNode:arguments:", "sendMessage:to:superSend:", "superSend", "push:"]}),
  1745. smalltalk.Interpreter);
  1746. smalltalk.addMethod(
  1747. smalltalk.method({
  1748. selector: "visitValueNode:",
  1749. fn: function (aNode){
  1750. var self=this;
  1751. return smalltalk.withContext(function($ctx1) {
  1752. self._push_(_st(aNode)._value());
  1753. return self}, function($ctx1) {$ctx1.fill(self,"visitValueNode:",{aNode:aNode},smalltalk.Interpreter)})},
  1754. messageSends: ["push:", "value"]}),
  1755. smalltalk.Interpreter);
  1756. smalltalk.addMethod(
  1757. smalltalk.method({
  1758. selector: "visitVariableNode:",
  1759. fn: function (aNode){
  1760. var self=this;
  1761. return smalltalk.withContext(function($ctx1) {
  1762. var $1,$3,$2;
  1763. $1=self;
  1764. $3=_st(_st(aNode)._binding())._isInstanceVar();
  1765. if(smalltalk.assert($3)){
  1766. $2=_st(_st(self._context())._receiver())._instVarAt_(_st(aNode)._value());
  1767. } else {
  1768. $2=_st(self._context())._localAt_(_st(aNode)._value());
  1769. };
  1770. _st($1)._push_($2);
  1771. return self}, function($ctx1) {$ctx1.fill(self,"visitVariableNode:",{aNode:aNode},smalltalk.Interpreter)})},
  1772. messageSends: ["push:", "ifTrue:ifFalse:", "instVarAt:", "value", "receiver", "context", "localAt:", "isInstanceVar", "binding"]}),
  1773. smalltalk.Interpreter);
  1774. smalltalk.addMethod(
  1775. smalltalk.method({
  1776. selector: "interpreter:continue:",
  1777. fn: function (anInterpreter,aBlock){
  1778. var self=this;
  1779. return smalltalk.withContext(function($ctx1) {
  1780. var $1;
  1781. $1=_st(anInterpreter)._interpretNode_continue_(self,aBlock);
  1782. return $1;
  1783. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.Node)})},
  1784. messageSends: ["interpretNode:continue:"]}),
  1785. smalltalk.Node);
  1786. smalltalk.addMethod(
  1787. smalltalk.method({
  1788. selector: "isSteppingNode",
  1789. fn: function (){
  1790. var self=this;
  1791. return smalltalk.withContext(function($ctx1) {
  1792. return false;
  1793. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.Node)})},
  1794. messageSends: []}),
  1795. smalltalk.Node);
  1796. smalltalk.addMethod(
  1797. smalltalk.method({
  1798. selector: "interpreter:continue:",
  1799. fn: function (anInterpreter,aBlock){
  1800. var self=this;
  1801. return smalltalk.withContext(function($ctx1) {
  1802. var $1;
  1803. $1=_st(anInterpreter)._interpretAssignmentNode_continue_(self,aBlock);
  1804. return $1;
  1805. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.AssignmentNode)})},
  1806. messageSends: ["interpretAssignmentNode:continue:"]}),
  1807. smalltalk.AssignmentNode);
  1808. smalltalk.addMethod(
  1809. smalltalk.method({
  1810. selector: "isSteppingNode",
  1811. fn: function (){
  1812. var self=this;
  1813. return smalltalk.withContext(function($ctx1) {
  1814. return true;
  1815. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.AssignmentNode)})},
  1816. messageSends: []}),
  1817. smalltalk.AssignmentNode);
  1818. smalltalk.addMethod(
  1819. smalltalk.method({
  1820. selector: "interpreter:continue:",
  1821. fn: function (anInterpreter,aBlock){
  1822. var self=this;
  1823. return smalltalk.withContext(function($ctx1) {
  1824. var $1;
  1825. $1=_st(anInterpreter)._interpretBlockNode_continue_(self,aBlock);
  1826. return $1;
  1827. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.BlockNode)})},
  1828. messageSends: ["interpretBlockNode:continue:"]}),
  1829. smalltalk.BlockNode);
  1830. smalltalk.addMethod(
  1831. smalltalk.method({
  1832. selector: "isSteppingNode",
  1833. fn: function (){
  1834. var self=this;
  1835. return smalltalk.withContext(function($ctx1) {
  1836. return true;
  1837. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.BlockNode)})},
  1838. messageSends: []}),
  1839. smalltalk.BlockNode);
  1840. smalltalk.addMethod(
  1841. smalltalk.method({
  1842. selector: "interpreter:continue:",
  1843. fn: function (anInterpreter,aBlock){
  1844. var self=this;
  1845. return smalltalk.withContext(function($ctx1) {
  1846. var $1;
  1847. $1=_st(anInterpreter)._interpretCascadeNode_continue_(self,aBlock);
  1848. return $1;
  1849. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.CascadeNode)})},
  1850. messageSends: ["interpretCascadeNode:continue:"]}),
  1851. smalltalk.CascadeNode);
  1852. smalltalk.addMethod(
  1853. smalltalk.method({
  1854. selector: "interpreter:continue:",
  1855. fn: function (anInterpreter,aBlock){
  1856. var self=this;
  1857. return smalltalk.withContext(function($ctx1) {
  1858. var $1;
  1859. $1=_st(anInterpreter)._interpretDynamicArrayNode_continue_(self,aBlock);
  1860. return $1;
  1861. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.DynamicArrayNode)})},
  1862. messageSends: ["interpretDynamicArrayNode:continue:"]}),
  1863. smalltalk.DynamicArrayNode);
  1864. smalltalk.addMethod(
  1865. smalltalk.method({
  1866. selector: "isSteppingNode",
  1867. fn: function (){
  1868. var self=this;
  1869. return smalltalk.withContext(function($ctx1) {
  1870. return true;
  1871. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.DynamicArrayNode)})},
  1872. messageSends: []}),
  1873. smalltalk.DynamicArrayNode);
  1874. smalltalk.addMethod(
  1875. smalltalk.method({
  1876. selector: "interpreter:continue:",
  1877. fn: function (anInterpreter,aBlock){
  1878. var self=this;
  1879. return smalltalk.withContext(function($ctx1) {
  1880. var $1;
  1881. $1=_st(anInterpreter)._interpretDynamicDictionaryNode_continue_(self,aBlock);
  1882. return $1;
  1883. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.DynamicDictionaryNode)})},
  1884. messageSends: ["interpretDynamicDictionaryNode:continue:"]}),
  1885. smalltalk.DynamicDictionaryNode);
  1886. smalltalk.addMethod(
  1887. smalltalk.method({
  1888. selector: "isSteppingNode",
  1889. fn: function (){
  1890. var self=this;
  1891. return smalltalk.withContext(function($ctx1) {
  1892. return true;
  1893. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.DynamicDictionaryNode)})},
  1894. messageSends: []}),
  1895. smalltalk.DynamicDictionaryNode);
  1896. smalltalk.addMethod(
  1897. smalltalk.method({
  1898. selector: "interpreter:continue:",
  1899. fn: function (anInterpreter,aBlock){
  1900. var self=this;
  1901. return smalltalk.withContext(function($ctx1) {
  1902. var $1;
  1903. $1=_st(anInterpreter)._interpretJSStatementNode_continue_(self,aBlock);
  1904. return $1;
  1905. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.JSStatementNode)})},
  1906. messageSends: ["interpretJSStatementNode:continue:"]}),
  1907. smalltalk.JSStatementNode);
  1908. smalltalk.addMethod(
  1909. smalltalk.method({
  1910. selector: "isSteppingNode",
  1911. fn: function (){
  1912. var self=this;
  1913. return smalltalk.withContext(function($ctx1) {
  1914. return true;
  1915. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.JSStatementNode)})},
  1916. messageSends: []}),
  1917. smalltalk.JSStatementNode);
  1918. smalltalk.addMethod(
  1919. smalltalk.method({
  1920. selector: "interpreter:continue:",
  1921. fn: function (anInterpreter,aBlock){
  1922. var self=this;
  1923. return smalltalk.withContext(function($ctx1) {
  1924. var $1;
  1925. $1=_st(anInterpreter)._interpretMethodNode_continue_(self,aBlock);
  1926. return $1;
  1927. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.MethodNode)})},
  1928. messageSends: ["interpretMethodNode:continue:"]}),
  1929. smalltalk.MethodNode);
  1930. smalltalk.addMethod(
  1931. smalltalk.method({
  1932. selector: "interpreter:continue:",
  1933. fn: function (anInterpreter,aBlock){
  1934. var self=this;
  1935. return smalltalk.withContext(function($ctx1) {
  1936. var $1;
  1937. $1=_st(anInterpreter)._interpretReturnNode_continue_(self,aBlock);
  1938. return $1;
  1939. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.ReturnNode)})},
  1940. messageSends: ["interpretReturnNode:continue:"]}),
  1941. smalltalk.ReturnNode);
  1942. smalltalk.addMethod(
  1943. smalltalk.method({
  1944. selector: "interpreter:continue:",
  1945. fn: function (anInterpreter,aBlock){
  1946. var self=this;
  1947. return smalltalk.withContext(function($ctx1) {
  1948. var $1;
  1949. $1=_st(anInterpreter)._interpretSendNode_continue_(self,aBlock);
  1950. return $1;
  1951. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.SendNode)})},
  1952. messageSends: ["interpretSendNode:continue:"]}),
  1953. smalltalk.SendNode);
  1954. smalltalk.addMethod(
  1955. smalltalk.method({
  1956. selector: "isSteppingNode",
  1957. fn: function (){
  1958. var self=this;
  1959. return smalltalk.withContext(function($ctx1) {
  1960. return true;
  1961. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.SendNode)})},
  1962. messageSends: []}),
  1963. smalltalk.SendNode);
  1964. smalltalk.addMethod(
  1965. smalltalk.method({
  1966. selector: "interpreter:continue:",
  1967. fn: function (anInterpreter,aBlock){
  1968. var self=this;
  1969. return smalltalk.withContext(function($ctx1) {
  1970. var $1;
  1971. $1=_st(anInterpreter)._interpretSequenceNode_continue_(self,aBlock);
  1972. return $1;
  1973. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.SequenceNode)})},
  1974. messageSends: ["interpretSequenceNode:continue:"]}),
  1975. smalltalk.SequenceNode);
  1976. smalltalk.addMethod(
  1977. smalltalk.method({
  1978. selector: "interpreter:continue:",
  1979. fn: function (anInterpreter,aBlock){
  1980. var self=this;
  1981. return smalltalk.withContext(function($ctx1) {
  1982. var $1;
  1983. $1=_st(anInterpreter)._interpretBlockSequenceNode_continue_(self,aBlock);
  1984. return $1;
  1985. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.BlockSequenceNode)})},
  1986. messageSends: ["interpretBlockSequenceNode:continue:"]}),
  1987. smalltalk.BlockSequenceNode);
  1988. smalltalk.addMethod(
  1989. smalltalk.method({
  1990. selector: "interpreter:continue:",
  1991. fn: function (anInterpreter,aBlock){
  1992. var self=this;
  1993. return smalltalk.withContext(function($ctx1) {
  1994. var $1;
  1995. $1=_st(anInterpreter)._interpretValueNode_continue_(self,aBlock);
  1996. return $1;
  1997. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.ValueNode)})},
  1998. messageSends: ["interpretValueNode:continue:"]}),
  1999. smalltalk.ValueNode);
  2000. smalltalk.addMethod(
  2001. smalltalk.method({
  2002. selector: "interpreter:continue:",
  2003. fn: function (anInterpreter,aBlock){
  2004. var self=this;
  2005. return smalltalk.withContext(function($ctx1) {
  2006. var $1;
  2007. $1=_st(anInterpreter)._interpretVariableNode_continue_(self,aBlock);
  2008. return $1;
  2009. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.VariableNode)})},
  2010. messageSends: ["interpretVariableNode:continue:"]}),
  2011. smalltalk.VariableNode);
  2012. smalltalk.addMethod(
  2013. smalltalk.method({
  2014. selector: "interpreter:continue:",
  2015. fn: function (anInterpreter,aBlock){
  2016. var self=this;
  2017. return smalltalk.withContext(function($ctx1) {
  2018. var $1;
  2019. $1=_st(anInterpreter)._interpretClassReferenceNode_continue_(self,aBlock);
  2020. return $1;
  2021. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.ClassReferenceNode)})},
  2022. messageSends: ["interpretClassReferenceNode:continue:"]}),
  2023. smalltalk.ClassReferenceNode);