1
0

Compiler-Interpreter.deploy.js 52 KB

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