1
0

Compiler-Interpreter.deploy.js 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531
  1. smalltalk.addPackage('Compiler-Interpreter');
  2. smalltalk.addClass('AIContext', smalltalk.NodeVisitor, ['methodContext', 'outerContext', 'pc', 'locals', 'method'], 'Compiler-Interpreter');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "asString",
  6. fn: function (){
  7. var self=this;
  8. return smalltalk.withContext(function($ctx1) {
  9. var $1;
  10. $1=_st(self["@methodContext"])._asString();
  11. return $1;
  12. }, function($ctx1) {$ctx1.fill(self,"asString",{},smalltalk.AIContext)})},
  13. messageSends: ["asString"]}),
  14. smalltalk.AIContext);
  15. smalltalk.addMethod(
  16. smalltalk.method({
  17. selector: "home",
  18. fn: function (){
  19. var self=this;
  20. return smalltalk.withContext(function($ctx1) {
  21. var $2,$1;
  22. $2=_st(self)._isBlockContext();
  23. if(smalltalk.assert($2)){
  24. $1=_st(_st(self)._outerContext())._methodContext();
  25. } else {
  26. $1=self;
  27. };
  28. return $1;
  29. }, function($ctx1) {$ctx1.fill(self,"home",{},smalltalk.AIContext)})},
  30. messageSends: ["ifTrue:ifFalse:", "methodContext", "outerContext", "isBlockContext"]}),
  31. smalltalk.AIContext);
  32. smalltalk.addMethod(
  33. smalltalk.method({
  34. selector: "initializeFromMethodContext:",
  35. fn: function (aMethodContext){
  36. var self=this;
  37. return smalltalk.withContext(function($ctx1) {
  38. var $1,$2;
  39. self["@methodContext"]=aMethodContext;
  40. _st(self)._pc_(_st(aMethodContext)._pc());
  41. _st(self)._receiver_(_st(aMethodContext)._receiver());
  42. _st(self)._method_(_st(aMethodContext)._method());
  43. $1=_st(aMethodContext)._outerContext();
  44. if(($receiver = $1) == nil || $receiver == undefined){
  45. $1;
  46. } else {
  47. var outer;
  48. outer=$receiver;
  49. $2=_st(outer)._methodContext();
  50. if(($receiver = $2) == nil || $receiver == undefined){
  51. $2;
  52. } else {
  53. _st(self)._outerContext_(_st(_st(self)._class())._fromMethodContext_(_st(aMethodContext)._outerContext()));
  54. };
  55. _st(_st(aMethodContext)._locals())._keysAndValuesDo_((function(key,value){
  56. return smalltalk.withContext(function($ctx2) {
  57. return _st(_st(self)._locals())._at_put_(key,value);
  58. }, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1)})}));
  59. };
  60. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromMethodContext:",{aMethodContext:aMethodContext},smalltalk.AIContext)})},
  61. messageSends: ["pc:", "pc", "receiver:", "receiver", "method:", "method", "ifNotNil:", "outerContext:", "fromMethodContext:", "outerContext", "class", "methodContext", "keysAndValuesDo:", "at:put:", "locals"]}),
  62. smalltalk.AIContext);
  63. smalltalk.addMethod(
  64. smalltalk.method({
  65. selector: "initializeLocals",
  66. fn: function (){
  67. var self=this;
  68. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  69. return smalltalk.withContext(function($ctx1) {
  70. self["@locals"]=_st($Dictionary())._new();
  71. _st(self["@locals"])._at_put_("thisContext",self);
  72. return self}, function($ctx1) {$ctx1.fill(self,"initializeLocals",{},smalltalk.AIContext)})},
  73. messageSends: ["new", "at:put:"]}),
  74. smalltalk.AIContext);
  75. smalltalk.addMethod(
  76. smalltalk.method({
  77. selector: "isBlockContext",
  78. fn: function (){
  79. var self=this;
  80. return smalltalk.withContext(function($ctx1) {
  81. var $1;
  82. $1=_st(self["@methodContext"])._isBlockContext();
  83. return $1;
  84. }, function($ctx1) {$ctx1.fill(self,"isBlockContext",{},smalltalk.AIContext)})},
  85. messageSends: ["isBlockContext"]}),
  86. smalltalk.AIContext);
  87. smalltalk.addMethod(
  88. smalltalk.method({
  89. selector: "localAt:",
  90. fn: function (aString){
  91. var self=this;
  92. return smalltalk.withContext(function($ctx1) {
  93. var $1;
  94. $1=_st(_st(self)._locals())._at_ifAbsent_(aString,(function(){
  95. return smalltalk.withContext(function($ctx2) {
  96. return nil;
  97. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  98. return $1;
  99. }, function($ctx1) {$ctx1.fill(self,"localAt:",{aString:aString},smalltalk.AIContext)})},
  100. messageSends: ["at:ifAbsent:", "locals"]}),
  101. smalltalk.AIContext);
  102. smalltalk.addMethod(
  103. smalltalk.method({
  104. selector: "localAt:put:",
  105. fn: function (aString,anObject){
  106. var self=this;
  107. return smalltalk.withContext(function($ctx1) {
  108. _st(_st(self)._locals())._at_put_(aString,anObject);
  109. return self}, function($ctx1) {$ctx1.fill(self,"localAt:put:",{aString:aString,anObject:anObject},smalltalk.AIContext)})},
  110. messageSends: ["at:put:", "locals"]}),
  111. smalltalk.AIContext);
  112. smalltalk.addMethod(
  113. smalltalk.method({
  114. selector: "locals",
  115. fn: function (){
  116. var self=this;
  117. return smalltalk.withContext(function($ctx1) {
  118. var $1,$2;
  119. $1=self["@locals"];
  120. if(($receiver = $1) == nil || $receiver == undefined){
  121. _st(self)._initializeLocals();
  122. } else {
  123. $1;
  124. };
  125. $2=self["@locals"];
  126. return $2;
  127. }, function($ctx1) {$ctx1.fill(self,"locals",{},smalltalk.AIContext)})},
  128. messageSends: ["ifNil:", "initializeLocals"]}),
  129. smalltalk.AIContext);
  130. smalltalk.addMethod(
  131. smalltalk.method({
  132. selector: "method",
  133. fn: function (){
  134. var self=this;
  135. return smalltalk.withContext(function($ctx1) {
  136. var $1;
  137. $1=self["@method"];
  138. return $1;
  139. }, function($ctx1) {$ctx1.fill(self,"method",{},smalltalk.AIContext)})},
  140. messageSends: []}),
  141. smalltalk.AIContext);
  142. smalltalk.addMethod(
  143. smalltalk.method({
  144. selector: "method:",
  145. fn: function (aCompiledMethod){
  146. var self=this;
  147. return smalltalk.withContext(function($ctx1) {
  148. self["@method"]=aCompiledMethod;
  149. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aCompiledMethod:aCompiledMethod},smalltalk.AIContext)})},
  150. messageSends: []}),
  151. smalltalk.AIContext);
  152. smalltalk.addMethod(
  153. smalltalk.method({
  154. selector: "outerContext",
  155. fn: function (){
  156. var self=this;
  157. return smalltalk.withContext(function($ctx1) {
  158. var $1;
  159. $1=self["@outerContext"];
  160. return $1;
  161. }, function($ctx1) {$ctx1.fill(self,"outerContext",{},smalltalk.AIContext)})},
  162. messageSends: []}),
  163. smalltalk.AIContext);
  164. smalltalk.addMethod(
  165. smalltalk.method({
  166. selector: "outerContext:",
  167. fn: function (anAIContext){
  168. var self=this;
  169. return smalltalk.withContext(function($ctx1) {
  170. self["@outerContext"]=anAIContext;
  171. return self}, function($ctx1) {$ctx1.fill(self,"outerContext:",{anAIContext:anAIContext},smalltalk.AIContext)})},
  172. messageSends: []}),
  173. smalltalk.AIContext);
  174. smalltalk.addMethod(
  175. smalltalk.method({
  176. selector: "pc",
  177. fn: function (){
  178. var self=this;
  179. return smalltalk.withContext(function($ctx1) {
  180. var $2,$1;
  181. $2=self["@pc"];
  182. if(($receiver = $2) == nil || $receiver == undefined){
  183. self["@pc"]=(0);
  184. $1=self["@pc"];
  185. } else {
  186. $1=$2;
  187. };
  188. return $1;
  189. }, function($ctx1) {$ctx1.fill(self,"pc",{},smalltalk.AIContext)})},
  190. messageSends: ["ifNil:"]}),
  191. smalltalk.AIContext);
  192. smalltalk.addMethod(
  193. smalltalk.method({
  194. selector: "pc:",
  195. fn: function (anInteger){
  196. var self=this;
  197. return smalltalk.withContext(function($ctx1) {
  198. self["@pc"]=anInteger;
  199. return self}, function($ctx1) {$ctx1.fill(self,"pc:",{anInteger:anInteger},smalltalk.AIContext)})},
  200. messageSends: []}),
  201. smalltalk.AIContext);
  202. smalltalk.addMethod(
  203. smalltalk.method({
  204. selector: "receiver",
  205. fn: function (){
  206. var self=this;
  207. return smalltalk.withContext(function($ctx1) {
  208. var $1;
  209. $1=_st(self)._localAt_("self");
  210. return $1;
  211. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.AIContext)})},
  212. messageSends: ["localAt:"]}),
  213. smalltalk.AIContext);
  214. smalltalk.addMethod(
  215. smalltalk.method({
  216. selector: "receiver:",
  217. fn: function (anObject){
  218. var self=this;
  219. return smalltalk.withContext(function($ctx1) {
  220. _st(self)._localAt_put_("self",anObject);
  221. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{anObject:anObject},smalltalk.AIContext)})},
  222. messageSends: ["localAt:put:"]}),
  223. smalltalk.AIContext);
  224. smalltalk.addMethod(
  225. smalltalk.method({
  226. selector: "selector",
  227. fn: function (){
  228. var self=this;
  229. return smalltalk.withContext(function($ctx1) {
  230. var $2,$1;
  231. $2=_st(self)._method();
  232. if(($receiver = $2) == nil || $receiver == undefined){
  233. $1=$2;
  234. } else {
  235. $1=_st(_st(self)._method())._selector();
  236. };
  237. return $1;
  238. }, function($ctx1) {$ctx1.fill(self,"selector",{},smalltalk.AIContext)})},
  239. messageSends: ["ifNotNil:", "selector", "method"]}),
  240. smalltalk.AIContext);
  241. smalltalk.addMethod(
  242. smalltalk.method({
  243. selector: "fromMethodContext:",
  244. fn: function (aMethodContext){
  245. var self=this;
  246. return smalltalk.withContext(function($ctx1) {
  247. var $2,$3,$1;
  248. $2=_st(self)._new();
  249. _st($2)._initializeFromMethodContext_(aMethodContext);
  250. $3=_st($2)._yourself();
  251. $1=$3;
  252. return $1;
  253. }, function($ctx1) {$ctx1.fill(self,"fromMethodContext:",{aMethodContext:aMethodContext},smalltalk.AIContext.klass)})},
  254. messageSends: ["initializeFromMethodContext:", "new", "yourself"]}),
  255. smalltalk.AIContext.klass);
  256. smalltalk.addClass('ASTDebugger', smalltalk.Object, ['interpreter', 'context'], 'Compiler-Interpreter');
  257. smalltalk.addMethod(
  258. smalltalk.method({
  259. selector: "atEnd",
  260. fn: function (){
  261. var self=this;
  262. return smalltalk.withContext(function($ctx1) {
  263. var $1;
  264. $1=_st(_st(self)._interpreter())._atEnd();
  265. return $1;
  266. }, function($ctx1) {$ctx1.fill(self,"atEnd",{},smalltalk.ASTDebugger)})},
  267. messageSends: ["atEnd", "interpreter"]}),
  268. smalltalk.ASTDebugger);
  269. smalltalk.addMethod(
  270. smalltalk.method({
  271. selector: "buildAST",
  272. fn: function (){
  273. var self=this;
  274. var ast;
  275. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  276. function $SemanticAnalyzer(){return smalltalk.SemanticAnalyzer||(typeof SemanticAnalyzer=="undefined"?nil:SemanticAnalyzer)}
  277. return smalltalk.withContext(function($ctx1) {
  278. var $1;
  279. ast=_st(_st($Smalltalk())._current())._parse_(_st(_st(self)._method())._source());
  280. _st(_st($SemanticAnalyzer())._on_(_st(_st(_st(self)._context())._receiver())._class()))._visit_(ast);
  281. $1=ast;
  282. return $1;
  283. }, function($ctx1) {$ctx1.fill(self,"buildAST",{ast:ast},smalltalk.ASTDebugger)})},
  284. messageSends: ["parse:", "source", "method", "current", "visit:", "on:", "class", "receiver", "context"]}),
  285. smalltalk.ASTDebugger);
  286. smalltalk.addMethod(
  287. smalltalk.method({
  288. selector: "context",
  289. fn: function (){
  290. var self=this;
  291. return smalltalk.withContext(function($ctx1) {
  292. var $1;
  293. $1=self["@context"];
  294. return $1;
  295. }, function($ctx1) {$ctx1.fill(self,"context",{},smalltalk.ASTDebugger)})},
  296. messageSends: []}),
  297. smalltalk.ASTDebugger);
  298. smalltalk.addMethod(
  299. smalltalk.method({
  300. selector: "context:",
  301. fn: function (aContext){
  302. var self=this;
  303. return smalltalk.withContext(function($ctx1) {
  304. self["@context"]=aContext;
  305. return self}, function($ctx1) {$ctx1.fill(self,"context:",{aContext:aContext},smalltalk.ASTDebugger)})},
  306. messageSends: []}),
  307. smalltalk.ASTDebugger);
  308. smalltalk.addMethod(
  309. smalltalk.method({
  310. selector: "defaultInterpreterClass",
  311. fn: function (){
  312. var self=this;
  313. function $ASTSteppingInterpreter(){return smalltalk.ASTSteppingInterpreter||(typeof ASTSteppingInterpreter=="undefined"?nil:ASTSteppingInterpreter)}
  314. return smalltalk.withContext(function($ctx1) {
  315. var $1;
  316. $1=$ASTSteppingInterpreter();
  317. return $1;
  318. }, function($ctx1) {$ctx1.fill(self,"defaultInterpreterClass",{},smalltalk.ASTDebugger)})},
  319. messageSends: []}),
  320. smalltalk.ASTDebugger);
  321. smalltalk.addMethod(
  322. smalltalk.method({
  323. selector: "initializeInterpreter",
  324. fn: function (){
  325. var self=this;
  326. var ast,next;
  327. function $ASTPCNodeVisitor(){return smalltalk.ASTPCNodeVisitor||(typeof ASTPCNodeVisitor=="undefined"?nil:ASTPCNodeVisitor)}
  328. return smalltalk.withContext(function($ctx1) {
  329. var $1,$2;
  330. ast=_st(self)._buildAST();
  331. $1=_st($ASTPCNodeVisitor())._new();
  332. _st($1)._context_(_st(self)._context());
  333. _st($1)._visit_(ast);
  334. $2=_st($1)._currentNode();
  335. next=$2;
  336. _st(_st(self)._interpreter())._interpret_(next);
  337. return self}, function($ctx1) {$ctx1.fill(self,"initializeInterpreter",{ast:ast,next:next},smalltalk.ASTDebugger)})},
  338. messageSends: ["buildAST", "context:", "context", "new", "visit:", "currentNode", "interpret:", "interpreter"]}),
  339. smalltalk.ASTDebugger);
  340. smalltalk.addMethod(
  341. smalltalk.method({
  342. selector: "initializeWithContext:",
  343. fn: function (aContext){
  344. var self=this;
  345. return smalltalk.withContext(function($ctx1) {
  346. _st(self)._context_(aContext);
  347. _st(self)._initializeInterpreter();
  348. return self}, function($ctx1) {$ctx1.fill(self,"initializeWithContext:",{aContext:aContext},smalltalk.ASTDebugger)})},
  349. messageSends: ["context:", "initializeInterpreter"]}),
  350. smalltalk.ASTDebugger);
  351. smalltalk.addMethod(
  352. smalltalk.method({
  353. selector: "interpreter",
  354. fn: function (){
  355. var self=this;
  356. return smalltalk.withContext(function($ctx1) {
  357. var $2,$1;
  358. $2=self["@interpreter"];
  359. if(($receiver = $2) == nil || $receiver == undefined){
  360. self["@interpreter"]=_st(_st(self)._defaultInterpreterClass())._new();
  361. $1=self["@interpreter"];
  362. } else {
  363. $1=$2;
  364. };
  365. return $1;
  366. }, function($ctx1) {$ctx1.fill(self,"interpreter",{},smalltalk.ASTDebugger)})},
  367. messageSends: ["ifNil:", "new", "defaultInterpreterClass"]}),
  368. smalltalk.ASTDebugger);
  369. smalltalk.addMethod(
  370. smalltalk.method({
  371. selector: "interpreter:",
  372. fn: function (anInterpreter){
  373. var self=this;
  374. return smalltalk.withContext(function($ctx1) {
  375. self["@interpreter"]=anInterpreter;
  376. return self}, function($ctx1) {$ctx1.fill(self,"interpreter:",{anInterpreter:anInterpreter},smalltalk.ASTDebugger)})},
  377. messageSends: []}),
  378. smalltalk.ASTDebugger);
  379. smalltalk.addMethod(
  380. smalltalk.method({
  381. selector: "method",
  382. fn: function (){
  383. var self=this;
  384. return smalltalk.withContext(function($ctx1) {
  385. var $1;
  386. $1=_st(_st(self)._context())._method();
  387. return $1;
  388. }, function($ctx1) {$ctx1.fill(self,"method",{},smalltalk.ASTDebugger)})},
  389. messageSends: ["method", "context"]}),
  390. smalltalk.ASTDebugger);
  391. smalltalk.addMethod(
  392. smalltalk.method({
  393. selector: "nextNode",
  394. fn: function (){
  395. var self=this;
  396. return smalltalk.withContext(function($ctx1) {
  397. var $1;
  398. $1=_st(_st(self)._interpreter())._nextNode();
  399. return $1;
  400. }, function($ctx1) {$ctx1.fill(self,"nextNode",{},smalltalk.ASTDebugger)})},
  401. messageSends: ["nextNode", "interpreter"]}),
  402. smalltalk.ASTDebugger);
  403. smalltalk.addMethod(
  404. smalltalk.method({
  405. selector: "proceed",
  406. fn: function (){
  407. var self=this;
  408. return smalltalk.withContext(function($ctx1) {
  409. _st(self)._shouldBeImplemented();
  410. return self}, function($ctx1) {$ctx1.fill(self,"proceed",{},smalltalk.ASTDebugger)})},
  411. messageSends: ["shouldBeImplemented"]}),
  412. smalltalk.ASTDebugger);
  413. smalltalk.addMethod(
  414. smalltalk.method({
  415. selector: "restart",
  416. fn: function (){
  417. var self=this;
  418. return smalltalk.withContext(function($ctx1) {
  419. _st(self)._shouldBeImplemented();
  420. return self}, function($ctx1) {$ctx1.fill(self,"restart",{},smalltalk.ASTDebugger)})},
  421. messageSends: ["shouldBeImplemented"]}),
  422. smalltalk.ASTDebugger);
  423. smalltalk.addMethod(
  424. smalltalk.method({
  425. selector: "step",
  426. fn: function (){
  427. var self=this;
  428. return smalltalk.withContext(function($ctx1) {
  429. _st((function(){
  430. return smalltalk.withContext(function($ctx2) {
  431. return _st(_st(_st(_st(_st(self)._interpreter())._nextNode())._notNil())._and_((function(){
  432. return smalltalk.withContext(function($ctx3) {
  433. return _st(_st(_st(self)._interpreter())._nextNode())._stopOnStepping();
  434. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})))._or_((function(){
  435. return smalltalk.withContext(function($ctx3) {
  436. return _st(_st(_st(self)._interpreter())._atEnd())._not();
  437. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  438. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileFalse_((function(){
  439. return smalltalk.withContext(function($ctx2) {
  440. _st(_st(self)._interpreter())._step();
  441. return _st(self)._step();
  442. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  443. return self}, function($ctx1) {$ctx1.fill(self,"step",{},smalltalk.ASTDebugger)})},
  444. messageSends: ["whileFalse:", "step", "interpreter", "or:", "not", "atEnd", "and:", "stopOnStepping", "nextNode", "notNil"]}),
  445. smalltalk.ASTDebugger);
  446. smalltalk.addMethod(
  447. smalltalk.method({
  448. selector: "stepInto",
  449. fn: function (){
  450. var self=this;
  451. return smalltalk.withContext(function($ctx1) {
  452. _st(self)._shouldBeImplemented();
  453. return self}, function($ctx1) {$ctx1.fill(self,"stepInto",{},smalltalk.ASTDebugger)})},
  454. messageSends: ["shouldBeImplemented"]}),
  455. smalltalk.ASTDebugger);
  456. smalltalk.addMethod(
  457. smalltalk.method({
  458. selector: "stepOver",
  459. fn: function (){
  460. var self=this;
  461. return smalltalk.withContext(function($ctx1) {
  462. _st(self)._step();
  463. return self}, function($ctx1) {$ctx1.fill(self,"stepOver",{},smalltalk.ASTDebugger)})},
  464. messageSends: ["step"]}),
  465. smalltalk.ASTDebugger);
  466. smalltalk.addMethod(
  467. smalltalk.method({
  468. selector: "context:",
  469. fn: function (aContext){
  470. var self=this;
  471. return smalltalk.withContext(function($ctx1) {
  472. var $2,$3,$1;
  473. $2=_st(self)._new();
  474. _st($2)._initializeWithContext_(aContext);
  475. $3=_st($2)._yourself();
  476. $1=$3;
  477. return $1;
  478. }, function($ctx1) {$ctx1.fill(self,"context:",{aContext:aContext},smalltalk.ASTDebugger.klass)})},
  479. messageSends: ["initializeWithContext:", "new", "yourself"]}),
  480. smalltalk.ASTDebugger.klass);
  481. smalltalk.addClass('ASTInterpreter', smalltalk.Object, ['currentNode', 'context', 'shouldReturn', 'result'], 'Compiler-Interpreter');
  482. smalltalk.addMethod(
  483. smalltalk.method({
  484. selector: "assign:to:",
  485. fn: function (aNode,anObject){
  486. var self=this;
  487. return smalltalk.withContext(function($ctx1) {
  488. var $2,$1;
  489. $2=_st(_st(aNode)._binding())._isInstanceVar();
  490. if(smalltalk.assert($2)){
  491. $1=_st(_st(_st(self)._context())._receiver())._instVarAt_put_(_st(aNode)._value(),anObject);
  492. } else {
  493. $1=_st(_st(self)._context())._localAt_put_(_st(aNode)._value(),anObject);
  494. };
  495. return $1;
  496. }, function($ctx1) {$ctx1.fill(self,"assign:to:",{aNode:aNode,anObject:anObject},smalltalk.ASTInterpreter)})},
  497. messageSends: ["ifTrue:ifFalse:", "instVarAt:put:", "value", "receiver", "context", "localAt:put:", "isInstanceVar", "binding"]}),
  498. smalltalk.ASTInterpreter);
  499. smalltalk.addMethod(
  500. smalltalk.method({
  501. selector: "context",
  502. fn: function (){
  503. var self=this;
  504. function $AIContext(){return smalltalk.AIContext||(typeof AIContext=="undefined"?nil:AIContext)}
  505. return smalltalk.withContext(function($ctx1) {
  506. var $2,$1;
  507. $2=self["@context"];
  508. if(($receiver = $2) == nil || $receiver == undefined){
  509. self["@context"]=_st($AIContext())._new();
  510. $1=self["@context"];
  511. } else {
  512. $1=$2;
  513. };
  514. return $1;
  515. }, function($ctx1) {$ctx1.fill(self,"context",{},smalltalk.ASTInterpreter)})},
  516. messageSends: ["ifNil:", "new"]}),
  517. smalltalk.ASTInterpreter);
  518. smalltalk.addMethod(
  519. smalltalk.method({
  520. selector: "context:",
  521. fn: function (anAIContext){
  522. var self=this;
  523. return smalltalk.withContext(function($ctx1) {
  524. self["@context"]=anAIContext;
  525. return self}, function($ctx1) {$ctx1.fill(self,"context:",{anAIContext:anAIContext},smalltalk.ASTInterpreter)})},
  526. messageSends: []}),
  527. smalltalk.ASTInterpreter);
  528. smalltalk.addMethod(
  529. smalltalk.method({
  530. selector: "continue:value:",
  531. fn: function (aBlock,anObject){
  532. var self=this;
  533. return smalltalk.withContext(function($ctx1) {
  534. self["@result"]=anObject;
  535. _st(aBlock)._value_(anObject);
  536. return self}, function($ctx1) {$ctx1.fill(self,"continue:value:",{aBlock:aBlock,anObject:anObject},smalltalk.ASTInterpreter)})},
  537. messageSends: ["value:"]}),
  538. smalltalk.ASTInterpreter);
  539. smalltalk.addMethod(
  540. smalltalk.method({
  541. selector: "currentNode",
  542. fn: function (){
  543. var self=this;
  544. return smalltalk.withContext(function($ctx1) {
  545. var $1;
  546. $1=self["@currentNode"];
  547. return $1;
  548. }, function($ctx1) {$ctx1.fill(self,"currentNode",{},smalltalk.ASTInterpreter)})},
  549. messageSends: []}),
  550. smalltalk.ASTInterpreter);
  551. smalltalk.addMethod(
  552. smalltalk.method({
  553. selector: "eval:",
  554. fn: function (aString){
  555. var self=this;
  556. var source,function_;
  557. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  558. function $Compiler(){return smalltalk.Compiler||(typeof Compiler=="undefined"?nil:Compiler)}
  559. return smalltalk.withContext(function($ctx1) {
  560. var $1,$2,$3;
  561. source=_st($String())._streamContents_((function(str){
  562. return smalltalk.withContext(function($ctx2) {
  563. _st(str)._nextPutAll_("(function(");
  564. _st(_st(_st(_st(self)._context())._locals())._keys())._do_separatedBy_((function(each){
  565. return smalltalk.withContext(function($ctx3) {
  566. return _st(str)._nextPutAll_(each);
  567. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}),(function(){
  568. return smalltalk.withContext(function($ctx3) {
  569. return _st(str)._nextPutAll_(",");
  570. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  571. $1=str;
  572. _st($1)._nextPutAll_("){ return (function() {");
  573. _st($1)._nextPutAll_(aString);
  574. $2=_st($1)._nextPutAll_("})() })");
  575. return $2;
  576. }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})}));
  577. function_=_st(_st($Compiler())._new())._eval_(source);
  578. $3=_st(function_)._valueWithPossibleArguments_(_st(_st(_st(self)._context())._locals())._values());
  579. return $3;
  580. }, function($ctx1) {$ctx1.fill(self,"eval:",{aString:aString,source:source,function_:function_},smalltalk.ASTInterpreter)})},
  581. messageSends: ["streamContents:", "nextPutAll:", "do:separatedBy:", "keys", "locals", "context", "eval:", "new", "valueWithPossibleArguments:", "values"]}),
  582. smalltalk.ASTInterpreter);
  583. smalltalk.addMethod(
  584. smalltalk.method({
  585. selector: "initialize",
  586. fn: function (){
  587. var self=this;
  588. return smalltalk.withContext(function($ctx1) {
  589. smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  590. self["@shouldReturn"]=false;
  591. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.ASTInterpreter)})},
  592. messageSends: ["initialize"]}),
  593. smalltalk.ASTInterpreter);
  594. smalltalk.addMethod(
  595. smalltalk.method({
  596. selector: "interpret:",
  597. fn: function (aNode){
  598. var self=this;
  599. return smalltalk.withContext(function($ctx1) {
  600. self["@shouldReturn"]=false;
  601. _st(self)._interpret_continue_(aNode,(function(value){
  602. return smalltalk.withContext(function($ctx2) {
  603. self["@result"]=value;
  604. return self["@result"];
  605. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  606. return self}, function($ctx1) {$ctx1.fill(self,"interpret:",{aNode:aNode},smalltalk.ASTInterpreter)})},
  607. messageSends: ["interpret:continue:"]}),
  608. smalltalk.ASTInterpreter);
  609. smalltalk.addMethod(
  610. smalltalk.method({
  611. selector: "interpret:continue:",
  612. fn: function (aNode,aBlock){
  613. var self=this;
  614. return smalltalk.withContext(function($ctx1) {
  615. var $1,$2,$3;
  616. $1=self["@shouldReturn"];
  617. if(smalltalk.assert($1)){
  618. $2=self;
  619. return $2;
  620. };
  621. $3=_st(aNode)._isNode();
  622. if(smalltalk.assert($3)){
  623. self["@currentNode"]=aNode;
  624. self["@currentNode"];
  625. _st(self)._interpretNode_continue_(aNode,(function(value){
  626. return smalltalk.withContext(function($ctx2) {
  627. return _st(self)._continue_value_(aBlock,value);
  628. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  629. } else {
  630. _st(self)._continue_value_(aBlock,aNode);
  631. };
  632. return self}, function($ctx1) {$ctx1.fill(self,"interpret:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  633. messageSends: ["ifTrue:", "ifTrue:ifFalse:", "interpretNode:continue:", "continue:value:", "isNode"]}),
  634. smalltalk.ASTInterpreter);
  635. smalltalk.addMethod(
  636. smalltalk.method({
  637. selector: "interpretAll:continue:",
  638. fn: function (aCollection,aBlock){
  639. var self=this;
  640. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  641. return smalltalk.withContext(function($ctx1) {
  642. _st(self)._interpretAll_continue_result_(aCollection,aBlock,_st($OrderedCollection())._new());
  643. return self}, function($ctx1) {$ctx1.fill(self,"interpretAll:continue:",{aCollection:aCollection,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  644. messageSends: ["interpretAll:continue:result:", "new"]}),
  645. smalltalk.ASTInterpreter);
  646. smalltalk.addMethod(
  647. smalltalk.method({
  648. selector: "interpretAll:continue:result:",
  649. fn: function (nodes,aBlock,aCollection){
  650. var self=this;
  651. return smalltalk.withContext(function($ctx1) {
  652. var $1;
  653. $1=_st(nodes)._isEmpty();
  654. if(smalltalk.assert($1)){
  655. _st(self)._continue_value_(aBlock,aCollection);
  656. } else {
  657. _st(self)._interpret_continue_(_st(nodes)._first(),(function(value){
  658. return smalltalk.withContext(function($ctx2) {
  659. return _st(self)._interpretAll_continue_result_(_st(nodes)._allButFirst(),aBlock,_st(aCollection).__comma([value]));
  660. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  661. };
  662. return self}, function($ctx1) {$ctx1.fill(self,"interpretAll:continue:result:",{nodes:nodes,aBlock:aBlock,aCollection:aCollection},smalltalk.ASTInterpreter)})},
  663. messageSends: ["ifTrue:ifFalse:", "continue:value:", "interpret:continue:", "first", "interpretAll:continue:result:", "allButFirst", ",", "isEmpty"]}),
  664. smalltalk.ASTInterpreter);
  665. smalltalk.addMethod(
  666. smalltalk.method({
  667. selector: "interpretAssignmentNode:continue:",
  668. fn: function (aNode,aBlock){
  669. var self=this;
  670. return smalltalk.withContext(function($ctx1) {
  671. _st(self)._interpret_continue_(_st(aNode)._right(),(function(value){
  672. return smalltalk.withContext(function($ctx2) {
  673. return _st(self)._continue_value_(aBlock,_st(self)._assign_to_(_st(aNode)._left(),value));
  674. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  675. return self}, function($ctx1) {$ctx1.fill(self,"interpretAssignmentNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  676. messageSends: ["interpret:continue:", "right", "continue:value:", "assign:to:", "left"]}),
  677. smalltalk.ASTInterpreter);
  678. smalltalk.addMethod(
  679. smalltalk.method({
  680. selector: "interpretBlockNode:continue:",
  681. fn: function (aNode,aBlock){
  682. var self=this;
  683. return smalltalk.withContext(function($ctx1) {
  684. var $1,$2;
  685. _st(self)._continue_value_(aBlock,(function(){
  686. return smalltalk.withContext(function($ctx2) {
  687. return _st(self)._withBlockContext_((function(){
  688. return smalltalk.withContext(function($ctx3) {
  689. $1=self;
  690. _st($1)._interpret_(_st(_st(aNode)._nodes())._first());
  691. $2=_st($1)._result();
  692. return $2;
  693. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  694. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  695. return self}, function($ctx1) {$ctx1.fill(self,"interpretBlockNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  696. messageSends: ["continue:value:", "withBlockContext:", "interpret:", "first", "nodes", "result"]}),
  697. smalltalk.ASTInterpreter);
  698. smalltalk.addMethod(
  699. smalltalk.method({
  700. selector: "interpretBlockSequenceNode:continue:",
  701. fn: function (aNode,aBlock){
  702. var self=this;
  703. return smalltalk.withContext(function($ctx1) {
  704. _st(self)._interpretSequenceNode_continue_(aNode,aBlock);
  705. return self}, function($ctx1) {$ctx1.fill(self,"interpretBlockSequenceNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  706. messageSends: ["interpretSequenceNode:continue:"]}),
  707. smalltalk.ASTInterpreter);
  708. smalltalk.addMethod(
  709. smalltalk.method({
  710. selector: "interpretCascadeNode:continue:",
  711. fn: function (aNode,aBlock){
  712. var self=this;
  713. return smalltalk.withContext(function($ctx1) {
  714. _st(self)._interpret_continue_(_st(aNode)._receiver(),(function(receiver){
  715. return smalltalk.withContext(function($ctx2) {
  716. _st(_st(aNode)._nodes())._do_((function(each){
  717. return smalltalk.withContext(function($ctx3) {
  718. return _st(each)._receiver_(receiver);
  719. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
  720. return _st(self)._interpretAll_continue_(_st(_st(aNode)._nodes())._allButLast(),(function(){
  721. return smalltalk.withContext(function($ctx3) {
  722. return _st(self)._interpret_continue_(_st(_st(aNode)._nodes())._last(),(function(val){
  723. return smalltalk.withContext(function($ctx4) {
  724. return _st(self)._continue_value_(aBlock,val);
  725. }, function($ctx4) {$ctx4.fillBlock({val:val},$ctx1)})}));
  726. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  727. }, function($ctx2) {$ctx2.fillBlock({receiver:receiver},$ctx1)})}));
  728. return self}, function($ctx1) {$ctx1.fill(self,"interpretCascadeNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  729. messageSends: ["interpret:continue:", "receiver", "do:", "receiver:", "nodes", "interpretAll:continue:", "allButLast", "last", "continue:value:"]}),
  730. smalltalk.ASTInterpreter);
  731. smalltalk.addMethod(
  732. smalltalk.method({
  733. selector: "interpretClassReferenceNode:continue:",
  734. fn: function (aNode,aBlock){
  735. var self=this;
  736. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  737. return smalltalk.withContext(function($ctx1) {
  738. _st(self)._continue_value_(aBlock,_st(_st($Smalltalk())._current())._at_(_st(aNode)._value()));
  739. return self}, function($ctx1) {$ctx1.fill(self,"interpretClassReferenceNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  740. messageSends: ["continue:value:", "at:", "value", "current"]}),
  741. smalltalk.ASTInterpreter);
  742. smalltalk.addMethod(
  743. smalltalk.method({
  744. selector: "interpretDynamicArrayNode:continue:",
  745. fn: function (aNode,aBlock){
  746. var self=this;
  747. return smalltalk.withContext(function($ctx1) {
  748. _st(self)._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
  749. return smalltalk.withContext(function($ctx2) {
  750. return _st(self)._continue_value_(aBlock,array);
  751. }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
  752. return self}, function($ctx1) {$ctx1.fill(self,"interpretDynamicArrayNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  753. messageSends: ["interpretAll:continue:", "nodes", "continue:value:"]}),
  754. smalltalk.ASTInterpreter);
  755. smalltalk.addMethod(
  756. smalltalk.method({
  757. selector: "interpretDynamicDictionaryNode:continue:",
  758. fn: function (aNode,aBlock){
  759. var self=this;
  760. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  761. return smalltalk.withContext(function($ctx1) {
  762. _st(self)._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
  763. var hashedCollection;
  764. return smalltalk.withContext(function($ctx2) {
  765. hashedCollection=_st($HashedCollection())._new();
  766. hashedCollection;
  767. _st(array)._do_((function(each){
  768. return smalltalk.withContext(function($ctx3) {
  769. return _st(hashedCollection)._add_(each);
  770. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
  771. return _st(self)._continue_value_(aBlock,hashedCollection);
  772. }, function($ctx2) {$ctx2.fillBlock({array:array,hashedCollection:hashedCollection},$ctx1)})}));
  773. return self}, function($ctx1) {$ctx1.fill(self,"interpretDynamicDictionaryNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  774. messageSends: ["interpretAll:continue:", "nodes", "new", "do:", "add:", "continue:value:"]}),
  775. smalltalk.ASTInterpreter);
  776. smalltalk.addMethod(
  777. smalltalk.method({
  778. selector: "interpretJSStatementNode:continue:",
  779. fn: function (aNode,aBlock){
  780. var self=this;
  781. return smalltalk.withContext(function($ctx1) {
  782. self["@shouldReturn"]=true;
  783. _st(self)._continue_value_(aBlock,_st(self)._eval_(_st(aNode)._source()));
  784. return self}, function($ctx1) {$ctx1.fill(self,"interpretJSStatementNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  785. messageSends: ["continue:value:", "eval:", "source"]}),
  786. smalltalk.ASTInterpreter);
  787. smalltalk.addMethod(
  788. smalltalk.method({
  789. selector: "interpretMethodNode:continue:",
  790. fn: function (aNode,aBlock){
  791. var self=this;
  792. return smalltalk.withContext(function($ctx1) {
  793. _st(self)._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
  794. return smalltalk.withContext(function($ctx2) {
  795. return _st(self)._continue_value_(aBlock,_st(array)._first());
  796. }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
  797. return self}, function($ctx1) {$ctx1.fill(self,"interpretMethodNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  798. messageSends: ["interpretAll:continue:", "nodes", "continue:value:", "first"]}),
  799. smalltalk.ASTInterpreter);
  800. smalltalk.addMethod(
  801. smalltalk.method({
  802. selector: "interpretNode:continue:",
  803. fn: function (aNode,aBlock){
  804. var self=this;
  805. return smalltalk.withContext(function($ctx1) {
  806. _st(aNode)._interpreter_continue_(self,aBlock);
  807. return self}, function($ctx1) {$ctx1.fill(self,"interpretNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  808. messageSends: ["interpreter:continue:"]}),
  809. smalltalk.ASTInterpreter);
  810. smalltalk.addMethod(
  811. smalltalk.method({
  812. selector: "interpretReturnNode:continue:",
  813. fn: function (aNode,aBlock){
  814. var self=this;
  815. return smalltalk.withContext(function($ctx1) {
  816. _st(self)._interpret_continue_(_st(_st(aNode)._nodes())._first(),(function(value){
  817. return smalltalk.withContext(function($ctx2) {
  818. self["@shouldReturn"]=true;
  819. self["@shouldReturn"];
  820. return _st(self)._continue_value_(aBlock,value);
  821. }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
  822. return self}, function($ctx1) {$ctx1.fill(self,"interpretReturnNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  823. messageSends: ["interpret:continue:", "first", "nodes", "continue:value:"]}),
  824. smalltalk.ASTInterpreter);
  825. smalltalk.addMethod(
  826. smalltalk.method({
  827. selector: "interpretSendNode:continue:",
  828. fn: function (aNode,aBlock){
  829. var self=this;
  830. return smalltalk.withContext(function($ctx1) {
  831. _st(self)._interpret_continue_(_st(aNode)._receiver(),(function(receiver){
  832. return smalltalk.withContext(function($ctx2) {
  833. return _st(self)._interpretAll_continue_(_st(aNode)._arguments(),(function(args){
  834. return smalltalk.withContext(function($ctx3) {
  835. return _st(self)._messageFromSendNode_arguments_do_(aNode,args,(function(message){
  836. return smalltalk.withContext(function($ctx4) {
  837. _st(_st(self)._context())._pc_(_st(_st(_st(self)._context())._pc()).__plus((1)));
  838. return _st(self)._continue_value_(aBlock,_st(self)._sendMessage_to_superSend_(message,receiver,_st(aNode)._superSend()));
  839. }, function($ctx4) {$ctx4.fillBlock({message:message},$ctx1)})}));
  840. }, function($ctx3) {$ctx3.fillBlock({args:args},$ctx1)})}));
  841. }, function($ctx2) {$ctx2.fillBlock({receiver:receiver},$ctx1)})}));
  842. return self}, function($ctx1) {$ctx1.fill(self,"interpretSendNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  843. messageSends: ["interpret:continue:", "receiver", "interpretAll:continue:", "arguments", "messageFromSendNode:arguments:do:", "pc:", "+", "pc", "context", "continue:value:", "sendMessage:to:superSend:", "superSend"]}),
  844. smalltalk.ASTInterpreter);
  845. smalltalk.addMethod(
  846. smalltalk.method({
  847. selector: "interpretSequenceNode:continue:",
  848. fn: function (aNode,aBlock){
  849. var self=this;
  850. return smalltalk.withContext(function($ctx1) {
  851. _st(self)._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
  852. return smalltalk.withContext(function($ctx2) {
  853. return _st(self)._continue_value_(aBlock,_st(array)._last());
  854. }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
  855. return self}, function($ctx1) {$ctx1.fill(self,"interpretSequenceNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  856. messageSends: ["interpretAll:continue:", "nodes", "continue:value:", "last"]}),
  857. smalltalk.ASTInterpreter);
  858. smalltalk.addMethod(
  859. smalltalk.method({
  860. selector: "interpretValueNode:continue:",
  861. fn: function (aNode,aBlock){
  862. var self=this;
  863. return smalltalk.withContext(function($ctx1) {
  864. _st(self)._continue_value_(aBlock,_st(aNode)._value());
  865. return self}, function($ctx1) {$ctx1.fill(self,"interpretValueNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  866. messageSends: ["continue:value:", "value"]}),
  867. smalltalk.ASTInterpreter);
  868. smalltalk.addMethod(
  869. smalltalk.method({
  870. selector: "interpretVariableNode:continue:",
  871. fn: function (aNode,aBlock){
  872. var self=this;
  873. return smalltalk.withContext(function($ctx1) {
  874. var $1,$2,$4,$3;
  875. $1=self;
  876. $2=aBlock;
  877. $4=_st(_st(aNode)._binding())._isInstanceVar();
  878. if(smalltalk.assert($4)){
  879. $3=_st(_st(_st(self)._context())._receiver())._instVarAt_(_st(aNode)._value());
  880. } else {
  881. $3=_st(_st(self)._context())._localAt_(_st(aNode)._value());
  882. };
  883. _st($1)._continue_value_($2,$3);
  884. return self}, function($ctx1) {$ctx1.fill(self,"interpretVariableNode:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  885. messageSends: ["continue:value:", "ifTrue:ifFalse:", "instVarAt:", "value", "receiver", "context", "localAt:", "isInstanceVar", "binding"]}),
  886. smalltalk.ASTInterpreter);
  887. smalltalk.addMethod(
  888. smalltalk.method({
  889. selector: "messageFromSendNode:arguments:do:",
  890. fn: function (aSendNode,aCollection,aBlock){
  891. var self=this;
  892. function $Message(){return smalltalk.Message||(typeof Message=="undefined"?nil:Message)}
  893. return smalltalk.withContext(function($ctx1) {
  894. var $1,$2;
  895. $1=_st($Message())._new();
  896. _st($1)._selector_(_st(aSendNode)._selector());
  897. _st($1)._arguments_(aCollection);
  898. $2=_st($1)._yourself();
  899. _st(self)._continue_value_(aBlock,$2);
  900. return self}, function($ctx1) {$ctx1.fill(self,"messageFromSendNode:arguments:do:",{aSendNode:aSendNode,aCollection:aCollection,aBlock:aBlock},smalltalk.ASTInterpreter)})},
  901. messageSends: ["continue:value:", "selector:", "selector", "new", "arguments:", "yourself"]}),
  902. smalltalk.ASTInterpreter);
  903. smalltalk.addMethod(
  904. smalltalk.method({
  905. selector: "result",
  906. fn: function (){
  907. var self=this;
  908. return smalltalk.withContext(function($ctx1) {
  909. var $1;
  910. $1=self["@result"];
  911. return $1;
  912. }, function($ctx1) {$ctx1.fill(self,"result",{},smalltalk.ASTInterpreter)})},
  913. messageSends: []}),
  914. smalltalk.ASTInterpreter);
  915. smalltalk.addMethod(
  916. smalltalk.method({
  917. selector: "sendMessage:to:superSend:",
  918. fn: function (aMessage,anObject,aBoolean){
  919. var self=this;
  920. var method;
  921. return smalltalk.withContext(function($ctx1) {
  922. var $1,$2,$3,$4,$5,$6;
  923. var $early={};
  924. try {
  925. $1=aBoolean;
  926. if(! smalltalk.assert($1)){
  927. $2=_st(aMessage)._sendTo_(anObject);
  928. return $2;
  929. };
  930. $3=_st(_st(anObject)._class())._superclass();
  931. if(($receiver = $3) == nil || $receiver == undefined){
  932. $4=_st(self)._messageNotUnderstood_receiver_(aMessage,anObject);
  933. return $4;
  934. } else {
  935. $3;
  936. };
  937. method=_st(_st(_st(_st(anObject)._class())._superclass())._methodDictionary())._at_ifAbsent_(_st(aMessage)._selector(),(function(){
  938. return smalltalk.withContext(function($ctx2) {
  939. $5=_st(self)._messageNotUnderstood_receiver_(aMessage,anObject);
  940. throw $early=[$5];
  941. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  942. $6=_st(_st(method)._fn())._applyTo_arguments_(anObject,_st(aMessage)._arguments());
  943. return $6;
  944. }
  945. catch(e) {if(e===$early)return e[0]; throw e}
  946. }, function($ctx1) {$ctx1.fill(self,"sendMessage:to:superSend:",{aMessage:aMessage,anObject:anObject,aBoolean:aBoolean,method:method},smalltalk.ASTInterpreter)})},
  947. messageSends: ["ifFalse:", "sendTo:", "ifNil:", "messageNotUnderstood:receiver:", "superclass", "class", "at:ifAbsent:", "selector", "methodDictionary", "applyTo:arguments:", "arguments", "fn"]}),
  948. smalltalk.ASTInterpreter);
  949. smalltalk.addMethod(
  950. smalltalk.method({
  951. selector: "shouldReturn",
  952. fn: function (){
  953. var self=this;
  954. return smalltalk.withContext(function($ctx1) {
  955. var $2,$1;
  956. $2=self["@shouldReturn"];
  957. if(($receiver = $2) == nil || $receiver == undefined){
  958. $1=false;
  959. } else {
  960. $1=$2;
  961. };
  962. return $1;
  963. }, function($ctx1) {$ctx1.fill(self,"shouldReturn",{},smalltalk.ASTInterpreter)})},
  964. messageSends: ["ifNil:"]}),
  965. smalltalk.ASTInterpreter);
  966. smalltalk.addMethod(
  967. smalltalk.method({
  968. selector: "withBlockContext:",
  969. fn: function (aBlock){
  970. var self=this;
  971. var blockResult;
  972. function $AIContext(){return smalltalk.AIContext||(typeof AIContext=="undefined"?nil:AIContext)}
  973. return smalltalk.withContext(function($ctx1) {
  974. var $1,$2,$3;
  975. $1=_st($AIContext())._new();
  976. _st($1)._outerContext_(_st(self)._context());
  977. $2=_st($1)._yourself();
  978. _st(self)._context_($2);
  979. blockResult=_st(aBlock)._value();
  980. _st(self)._context_(_st(_st(self)._context())._outerContext());
  981. $3=blockResult;
  982. return $3;
  983. }, function($ctx1) {$ctx1.fill(self,"withBlockContext:",{aBlock:aBlock,blockResult:blockResult},smalltalk.ASTInterpreter)})},
  984. messageSends: ["context:", "outerContext:", "context", "new", "yourself", "value", "outerContext"]}),
  985. smalltalk.ASTInterpreter);
  986. smalltalk.addClass('ASTSteppingInterpreter', smalltalk.ASTInterpreter, ['continuation', 'nextNode'], 'Compiler-Interpreter');
  987. smalltalk.addMethod(
  988. smalltalk.method({
  989. selector: "atEnd",
  990. fn: function (){
  991. var self=this;
  992. return smalltalk.withContext(function($ctx1) {
  993. var $1;
  994. $1=_st(_st(self)._shouldReturn())._or_((function(){
  995. return smalltalk.withContext(function($ctx2) {
  996. return _st(_st(self)._nextNode()).__eq_eq(_st(self)._currentNode());
  997. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  998. return $1;
  999. }, function($ctx1) {$ctx1.fill(self,"atEnd",{},smalltalk.ASTSteppingInterpreter)})},
  1000. messageSends: ["or:", "==", "currentNode", "nextNode", "shouldReturn"]}),
  1001. smalltalk.ASTSteppingInterpreter);
  1002. smalltalk.addMethod(
  1003. smalltalk.method({
  1004. selector: "initialize",
  1005. fn: function (){
  1006. var self=this;
  1007. return smalltalk.withContext(function($ctx1) {
  1008. smalltalk.ASTInterpreter.fn.prototype._initialize.apply(_st(self), []);
  1009. self["@continuation"]=(function(){
  1010. return smalltalk.withContext(function($ctx2) {
  1011. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  1012. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.ASTSteppingInterpreter)})},
  1013. messageSends: ["initialize"]}),
  1014. smalltalk.ASTSteppingInterpreter);
  1015. smalltalk.addMethod(
  1016. smalltalk.method({
  1017. selector: "interpret:continue:",
  1018. fn: function (aNode,aBlock){
  1019. var self=this;
  1020. return smalltalk.withContext(function($ctx1) {
  1021. self["@nextNode"]=aNode;
  1022. self["@continuation"]=(function(){
  1023. return smalltalk.withContext(function($ctx2) {
  1024. return smalltalk.ASTInterpreter.fn.prototype._interpret_continue_.apply(_st(self), [aNode,aBlock]);
  1025. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  1026. return self}, function($ctx1) {$ctx1.fill(self,"interpret:continue:",{aNode:aNode,aBlock:aBlock},smalltalk.ASTSteppingInterpreter)})},
  1027. messageSends: ["interpret:continue:"]}),
  1028. smalltalk.ASTSteppingInterpreter);
  1029. smalltalk.addMethod(
  1030. smalltalk.method({
  1031. selector: "nextNode",
  1032. fn: function (){
  1033. var self=this;
  1034. return smalltalk.withContext(function($ctx1) {
  1035. var $1;
  1036. $1=self["@nextNode"];
  1037. return $1;
  1038. }, function($ctx1) {$ctx1.fill(self,"nextNode",{},smalltalk.ASTSteppingInterpreter)})},
  1039. messageSends: []}),
  1040. smalltalk.ASTSteppingInterpreter);
  1041. smalltalk.addMethod(
  1042. smalltalk.method({
  1043. selector: "step",
  1044. fn: function (){
  1045. var self=this;
  1046. return smalltalk.withContext(function($ctx1) {
  1047. _st(self["@continuation"])._value();
  1048. return self}, function($ctx1) {$ctx1.fill(self,"step",{},smalltalk.ASTSteppingInterpreter)})},
  1049. messageSends: ["value"]}),
  1050. smalltalk.ASTSteppingInterpreter);
  1051. smalltalk.addClass('ASTPCNodeVisitor', smalltalk.NodeVisitor, ['useInlinings', 'pc', 'context', 'currentNode'], 'Compiler-Interpreter');
  1052. smalltalk.addMethod(
  1053. smalltalk.method({
  1054. selector: "context",
  1055. fn: function (){
  1056. var self=this;
  1057. return smalltalk.withContext(function($ctx1) {
  1058. var $1;
  1059. $1=self["@context"];
  1060. return $1;
  1061. }, function($ctx1) {$ctx1.fill(self,"context",{},smalltalk.ASTPCNodeVisitor)})},
  1062. messageSends: []}),
  1063. smalltalk.ASTPCNodeVisitor);
  1064. smalltalk.addMethod(
  1065. smalltalk.method({
  1066. selector: "context:",
  1067. fn: function (aContext){
  1068. var self=this;
  1069. return smalltalk.withContext(function($ctx1) {
  1070. self["@context"]=aContext;
  1071. return self}, function($ctx1) {$ctx1.fill(self,"context:",{aContext:aContext},smalltalk.ASTPCNodeVisitor)})},
  1072. messageSends: []}),
  1073. smalltalk.ASTPCNodeVisitor);
  1074. smalltalk.addMethod(
  1075. smalltalk.method({
  1076. selector: "currentNode",
  1077. fn: function (){
  1078. var self=this;
  1079. return smalltalk.withContext(function($ctx1) {
  1080. var $1;
  1081. $1=self["@currentNode"];
  1082. return $1;
  1083. }, function($ctx1) {$ctx1.fill(self,"currentNode",{},smalltalk.ASTPCNodeVisitor)})},
  1084. messageSends: []}),
  1085. smalltalk.ASTPCNodeVisitor);
  1086. smalltalk.addMethod(
  1087. smalltalk.method({
  1088. selector: "pc",
  1089. fn: function (){
  1090. var self=this;
  1091. return smalltalk.withContext(function($ctx1) {
  1092. var $2,$1;
  1093. $2=self["@pc"];
  1094. if(($receiver = $2) == nil || $receiver == undefined){
  1095. $1=(0);
  1096. } else {
  1097. $1=$2;
  1098. };
  1099. return $1;
  1100. }, function($ctx1) {$ctx1.fill(self,"pc",{},smalltalk.ASTPCNodeGetter)})},
  1101. messageSends: ["ifNil:"]}),
  1102. smalltalk.ASTPCNodeVisitor);
  1103. smalltalk.addMethod(
  1104. smalltalk.method({
  1105. selector: "pc:",
  1106. fn: function (anInteger){
  1107. var self=this;
  1108. return smalltalk.withContext(function($ctx1) {
  1109. self["@pc"]=anInteger;
  1110. return self}, function($ctx1) {$ctx1.fill(self,"pc:",{anInteger:anInteger},smalltalk.ASTPCNodeGetter)})},
  1111. messageSends: []}),
  1112. smalltalk.ASTPCNodeVisitor);
  1113. smalltalk.addMethod(
  1114. smalltalk.method({
  1115. selector: "useInlinings",
  1116. fn: function (){
  1117. var self=this;
  1118. return smalltalk.withContext(function($ctx1) {
  1119. var $2,$1;
  1120. $2=self["@useInlinings"];
  1121. if(($receiver = $2) == nil || $receiver == undefined){
  1122. $1=true;
  1123. } else {
  1124. $1=$2;
  1125. };
  1126. return $1;
  1127. }, function($ctx1) {$ctx1.fill(self,"useInlinings",{},smalltalk.ASTPCNodeGetter)})},
  1128. messageSends: ["ifNil:"]}),
  1129. smalltalk.ASTPCNodeVisitor);
  1130. smalltalk.addMethod(
  1131. smalltalk.method({
  1132. selector: "useInlinings:",
  1133. fn: function (aBoolean){
  1134. var self=this;
  1135. return smalltalk.withContext(function($ctx1) {
  1136. self["@useInlinings"]=aBoolean;
  1137. return self}, function($ctx1) {$ctx1.fill(self,"useInlinings:",{aBoolean:aBoolean},smalltalk.ASTPCNodeGetter)})},
  1138. messageSends: []}),
  1139. smalltalk.ASTPCNodeVisitor);
  1140. smalltalk.addMethod(
  1141. smalltalk.method({
  1142. selector: "visitJSStatementNode:",
  1143. fn: function (aNode){
  1144. var self=this;
  1145. return smalltalk.withContext(function($ctx1) {
  1146. self["@currentNode"]=aNode;
  1147. return self}, function($ctx1) {$ctx1.fill(self,"visitJSStatementNode:",{aNode:aNode},smalltalk.ASTPCNodeVisitor)})},
  1148. messageSends: []}),
  1149. smalltalk.ASTPCNodeVisitor);
  1150. smalltalk.addMethod(
  1151. smalltalk.method({
  1152. selector: "visitSendNode:",
  1153. fn: function (aNode){
  1154. var self=this;
  1155. return smalltalk.withContext(function($ctx1) {
  1156. var $1,$2;
  1157. smalltalk.NodeVisitor.fn.prototype._visitSendNode_.apply(_st(self), [aNode]);
  1158. $1=_st(_st(self)._pc()).__eq(_st(_st(self)._context())._pc());
  1159. if(! smalltalk.assert($1)){
  1160. $2=_st(aNode)._shouldBeInlined();
  1161. if(! smalltalk.assert($2)){
  1162. _st(self)._pc_(_st(_st(self)._pc()).__plus((1)));
  1163. self["@currentNode"]=aNode;
  1164. self["@currentNode"];
  1165. };
  1166. };
  1167. return self}, function($ctx1) {$ctx1.fill(self,"visitSendNode:",{aNode:aNode},smalltalk.ASTPCNodeVisitor)})},
  1168. messageSends: ["visitSendNode:", "ifFalse:", "pc:", "+", "pc", "shouldBeInlined", "=", "context"]}),
  1169. smalltalk.ASTPCNodeVisitor);
  1170. smalltalk.addMethod(
  1171. smalltalk.method({
  1172. selector: "interpreter:continue:",
  1173. fn: function (anInterpreter,aBlock){
  1174. var self=this;
  1175. return smalltalk.withContext(function($ctx1) {
  1176. var $1;
  1177. $1=_st(anInterpreter)._interpretNode_continue_(self,aBlock);
  1178. return $1;
  1179. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.Node)})},
  1180. messageSends: ["interpretNode:continue:"]}),
  1181. smalltalk.Node);
  1182. smalltalk.addMethod(
  1183. smalltalk.method({
  1184. selector: "isSteppingNode",
  1185. fn: function (){
  1186. var self=this;
  1187. return smalltalk.withContext(function($ctx1) {
  1188. return false;
  1189. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.Node)})},
  1190. messageSends: []}),
  1191. smalltalk.Node);
  1192. smalltalk.addMethod(
  1193. smalltalk.method({
  1194. selector: "interpreter:continue:",
  1195. fn: function (anInterpreter,aBlock){
  1196. var self=this;
  1197. return smalltalk.withContext(function($ctx1) {
  1198. var $1;
  1199. $1=_st(anInterpreter)._interpretAssignmentNode_continue_(self,aBlock);
  1200. return $1;
  1201. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.AssignmentNode)})},
  1202. messageSends: ["interpretAssignmentNode:continue:"]}),
  1203. smalltalk.AssignmentNode);
  1204. smalltalk.addMethod(
  1205. smalltalk.method({
  1206. selector: "isSteppingNode",
  1207. fn: function (){
  1208. var self=this;
  1209. return smalltalk.withContext(function($ctx1) {
  1210. return true;
  1211. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.AssignmentNode)})},
  1212. messageSends: []}),
  1213. smalltalk.AssignmentNode);
  1214. smalltalk.addMethod(
  1215. smalltalk.method({
  1216. selector: "interpreter:continue:",
  1217. fn: function (anInterpreter,aBlock){
  1218. var self=this;
  1219. return smalltalk.withContext(function($ctx1) {
  1220. var $1;
  1221. $1=_st(anInterpreter)._interpretBlockNode_continue_(self,aBlock);
  1222. return $1;
  1223. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.BlockNode)})},
  1224. messageSends: ["interpretBlockNode:continue:"]}),
  1225. smalltalk.BlockNode);
  1226. smalltalk.addMethod(
  1227. smalltalk.method({
  1228. selector: "isSteppingNode",
  1229. fn: function (){
  1230. var self=this;
  1231. return smalltalk.withContext(function($ctx1) {
  1232. return true;
  1233. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.BlockNode)})},
  1234. messageSends: []}),
  1235. smalltalk.BlockNode);
  1236. smalltalk.addMethod(
  1237. smalltalk.method({
  1238. selector: "interpreter:continue:",
  1239. fn: function (anInterpreter,aBlock){
  1240. var self=this;
  1241. return smalltalk.withContext(function($ctx1) {
  1242. var $1;
  1243. $1=_st(anInterpreter)._interpretCascadeNode_continue_(self,aBlock);
  1244. return $1;
  1245. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.CascadeNode)})},
  1246. messageSends: ["interpretCascadeNode:continue:"]}),
  1247. smalltalk.CascadeNode);
  1248. smalltalk.addMethod(
  1249. smalltalk.method({
  1250. selector: "interpreter:continue:",
  1251. fn: function (anInterpreter,aBlock){
  1252. var self=this;
  1253. return smalltalk.withContext(function($ctx1) {
  1254. var $1;
  1255. $1=_st(anInterpreter)._interpretDynamicArrayNode_continue_(self,aBlock);
  1256. return $1;
  1257. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.DynamicArrayNode)})},
  1258. messageSends: ["interpretDynamicArrayNode:continue:"]}),
  1259. smalltalk.DynamicArrayNode);
  1260. smalltalk.addMethod(
  1261. smalltalk.method({
  1262. selector: "isSteppingNode",
  1263. fn: function (){
  1264. var self=this;
  1265. return smalltalk.withContext(function($ctx1) {
  1266. return true;
  1267. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.DynamicArrayNode)})},
  1268. messageSends: []}),
  1269. smalltalk.DynamicArrayNode);
  1270. smalltalk.addMethod(
  1271. smalltalk.method({
  1272. selector: "interpreter:continue:",
  1273. fn: function (anInterpreter,aBlock){
  1274. var self=this;
  1275. return smalltalk.withContext(function($ctx1) {
  1276. var $1;
  1277. $1=_st(anInterpreter)._interpretDynamicDictionaryNode_continue_(self,aBlock);
  1278. return $1;
  1279. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.DynamicDictionaryNode)})},
  1280. messageSends: ["interpretDynamicDictionaryNode:continue:"]}),
  1281. smalltalk.DynamicDictionaryNode);
  1282. smalltalk.addMethod(
  1283. smalltalk.method({
  1284. selector: "isSteppingNode",
  1285. fn: function (){
  1286. var self=this;
  1287. return smalltalk.withContext(function($ctx1) {
  1288. return true;
  1289. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.DynamicDictionaryNode)})},
  1290. messageSends: []}),
  1291. smalltalk.DynamicDictionaryNode);
  1292. smalltalk.addMethod(
  1293. smalltalk.method({
  1294. selector: "interpreter:continue:",
  1295. fn: function (anInterpreter,aBlock){
  1296. var self=this;
  1297. return smalltalk.withContext(function($ctx1) {
  1298. var $1;
  1299. $1=_st(anInterpreter)._interpretJSStatementNode_continue_(self,aBlock);
  1300. return $1;
  1301. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.JSStatementNode)})},
  1302. messageSends: ["interpretJSStatementNode:continue:"]}),
  1303. smalltalk.JSStatementNode);
  1304. smalltalk.addMethod(
  1305. smalltalk.method({
  1306. selector: "isSteppingNode",
  1307. fn: function (){
  1308. var self=this;
  1309. return smalltalk.withContext(function($ctx1) {
  1310. return true;
  1311. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.JSStatementNode)})},
  1312. messageSends: []}),
  1313. smalltalk.JSStatementNode);
  1314. smalltalk.addMethod(
  1315. smalltalk.method({
  1316. selector: "interpreter:continue:",
  1317. fn: function (anInterpreter,aBlock){
  1318. var self=this;
  1319. return smalltalk.withContext(function($ctx1) {
  1320. var $1;
  1321. $1=_st(anInterpreter)._interpretMethodNode_continue_(self,aBlock);
  1322. return $1;
  1323. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.MethodNode)})},
  1324. messageSends: ["interpretMethodNode:continue:"]}),
  1325. smalltalk.MethodNode);
  1326. smalltalk.addMethod(
  1327. smalltalk.method({
  1328. selector: "interpreter:continue:",
  1329. fn: function (anInterpreter,aBlock){
  1330. var self=this;
  1331. return smalltalk.withContext(function($ctx1) {
  1332. var $1;
  1333. $1=_st(anInterpreter)._interpretReturnNode_continue_(self,aBlock);
  1334. return $1;
  1335. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.ReturnNode)})},
  1336. messageSends: ["interpretReturnNode:continue:"]}),
  1337. smalltalk.ReturnNode);
  1338. smalltalk.addMethod(
  1339. smalltalk.method({
  1340. selector: "interpreter:continue:",
  1341. fn: function (anInterpreter,aBlock){
  1342. var self=this;
  1343. return smalltalk.withContext(function($ctx1) {
  1344. var $1;
  1345. $1=_st(anInterpreter)._interpretSendNode_continue_(self,aBlock);
  1346. return $1;
  1347. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.SendNode)})},
  1348. messageSends: ["interpretSendNode:continue:"]}),
  1349. smalltalk.SendNode);
  1350. smalltalk.addMethod(
  1351. smalltalk.method({
  1352. selector: "isSteppingNode",
  1353. fn: function (){
  1354. var self=this;
  1355. return smalltalk.withContext(function($ctx1) {
  1356. return true;
  1357. }, function($ctx1) {$ctx1.fill(self,"isSteppingNode",{},smalltalk.SendNode)})},
  1358. messageSends: []}),
  1359. smalltalk.SendNode);
  1360. smalltalk.addMethod(
  1361. smalltalk.method({
  1362. selector: "interpreter:continue:",
  1363. fn: function (anInterpreter,aBlock){
  1364. var self=this;
  1365. return smalltalk.withContext(function($ctx1) {
  1366. var $1;
  1367. $1=_st(anInterpreter)._interpretSequenceNode_continue_(self,aBlock);
  1368. return $1;
  1369. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.SequenceNode)})},
  1370. messageSends: ["interpretSequenceNode:continue:"]}),
  1371. smalltalk.SequenceNode);
  1372. smalltalk.addMethod(
  1373. smalltalk.method({
  1374. selector: "interpreter:continue:",
  1375. fn: function (anInterpreter,aBlock){
  1376. var self=this;
  1377. return smalltalk.withContext(function($ctx1) {
  1378. var $1;
  1379. $1=_st(anInterpreter)._interpretBlockSequenceNode_continue_(self,aBlock);
  1380. return $1;
  1381. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.BlockSequenceNode)})},
  1382. messageSends: ["interpretBlockSequenceNode:continue:"]}),
  1383. smalltalk.BlockSequenceNode);
  1384. smalltalk.addMethod(
  1385. smalltalk.method({
  1386. selector: "interpreter:continue:",
  1387. fn: function (anInterpreter,aBlock){
  1388. var self=this;
  1389. return smalltalk.withContext(function($ctx1) {
  1390. var $1;
  1391. $1=_st(anInterpreter)._interpretValueNode_continue_(self,aBlock);
  1392. return $1;
  1393. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.ValueNode)})},
  1394. messageSends: ["interpretValueNode:continue:"]}),
  1395. smalltalk.ValueNode);
  1396. smalltalk.addMethod(
  1397. smalltalk.method({
  1398. selector: "interpreter:continue:",
  1399. fn: function (anInterpreter,aBlock){
  1400. var self=this;
  1401. return smalltalk.withContext(function($ctx1) {
  1402. var $1;
  1403. $1=_st(anInterpreter)._interpretVariableNode_continue_(self,aBlock);
  1404. return $1;
  1405. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.VariableNode)})},
  1406. messageSends: ["interpretVariableNode:continue:"]}),
  1407. smalltalk.VariableNode);
  1408. smalltalk.addMethod(
  1409. smalltalk.method({
  1410. selector: "interpreter:continue:",
  1411. fn: function (anInterpreter,aBlock){
  1412. var self=this;
  1413. return smalltalk.withContext(function($ctx1) {
  1414. var $1;
  1415. $1=_st(anInterpreter)._interpretClassReferenceNode_continue_(self,aBlock);
  1416. return $1;
  1417. }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock},smalltalk.ClassReferenceNode)})},
  1418. messageSends: ["interpretClassReferenceNode:continue:"]}),
  1419. smalltalk.ClassReferenceNode);