Kernel-Methods.deploy.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. smalltalk.addPackage('Kernel-Methods', {});
  2. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel-Methods');
  3. smalltalk.addMethod(
  4. "_applyTo_arguments_",
  5. smalltalk.method({
  6. selector: "applyTo:arguments:",
  7. fn: function (anObject, aCollection) {
  8. var self = this;
  9. return self.apply(anObject, aCollection);
  10. return self;
  11. }
  12. }),
  13. smalltalk.BlockClosure);
  14. smalltalk.addMethod(
  15. "_compiledSource",
  16. smalltalk.method({
  17. selector: "compiledSource",
  18. fn: function () {
  19. var self = this;
  20. return self.toString();
  21. return self;
  22. }
  23. }),
  24. smalltalk.BlockClosure);
  25. smalltalk.addMethod(
  26. "_ensure_",
  27. smalltalk.method({
  28. selector: "ensure:",
  29. fn: function (aBlock){
  30. var self=this;
  31. try{return self()}finally{aBlock._value()};
  32. ;
  33. return self}
  34. }),
  35. smalltalk.BlockClosure);
  36. smalltalk.addMethod(
  37. "_fork",
  38. smalltalk.method({
  39. selector: "fork",
  40. fn: function (){
  41. var self=this;
  42. smalltalk.send(smalltalk.send((smalltalk.ForkPool || ForkPool),"_default",[]),"_fork_",[self]);
  43. return self}
  44. }),
  45. smalltalk.BlockClosure);
  46. smalltalk.addMethod(
  47. "_new",
  48. smalltalk.method({
  49. selector: "new",
  50. fn: function () {
  51. var self = this;
  52. return new self;
  53. return self;
  54. }
  55. }),
  56. smalltalk.BlockClosure);
  57. smalltalk.addMethod(
  58. "_newValue_",
  59. smalltalk.method({
  60. selector: "newValue:",
  61. fn: function (anObject) {
  62. var self = this;
  63. return new self(anObject);
  64. return self;
  65. }
  66. }),
  67. smalltalk.BlockClosure);
  68. smalltalk.addMethod(
  69. "_newValue_value_",
  70. smalltalk.method({
  71. selector: "newValue:value:",
  72. fn: function (anObject, anObject2) {
  73. var self = this;
  74. return new self(anObject, anObject2);
  75. return self;
  76. }
  77. }),
  78. smalltalk.BlockClosure);
  79. smalltalk.addMethod(
  80. "_newValue_value_value_",
  81. smalltalk.method({
  82. selector: "newValue:value:value:",
  83. fn: function (anObject, anObject2, anObject3) {
  84. var self = this;
  85. return new self(anObject, anObject2);
  86. return self;
  87. }
  88. }),
  89. smalltalk.BlockClosure);
  90. smalltalk.addMethod(
  91. "_numArgs",
  92. smalltalk.method({
  93. selector: "numArgs",
  94. fn: function () {
  95. var self = this;
  96. return self.length;
  97. return self;
  98. }
  99. }),
  100. smalltalk.BlockClosure);
  101. smalltalk.addMethod(
  102. "_on_do_",
  103. smalltalk.method({
  104. selector: "on:do:",
  105. fn: function (anErrorClass, aBlock) {
  106. var self = this;
  107. var $2, $1;
  108. $1 = smalltalk.send(self, "_try_catch_", [self, function (error) {$2 = smalltalk.send(error, "_isKindOf_", [anErrorClass]);if (smalltalk.assert($2)) {return smalltalk.send(aBlock, "_value_", [error]);} else {return smalltalk.send(error, "_signal", []);}}]);
  109. return $1;
  110. }
  111. }),
  112. smalltalk.BlockClosure);
  113. smalltalk.addMethod(
  114. "_timeToRun",
  115. smalltalk.method({
  116. selector: "timeToRun",
  117. fn: function () {
  118. var self = this;
  119. var $1;
  120. $1 = smalltalk.send(smalltalk.Date || Date, "_millisecondsToRun_", [self]);
  121. return $1;
  122. }
  123. }),
  124. smalltalk.BlockClosure);
  125. smalltalk.addMethod(
  126. "_value",
  127. smalltalk.method({
  128. selector: "value",
  129. fn: function () {
  130. var self = this;
  131. return self();
  132. return self;
  133. }
  134. }),
  135. smalltalk.BlockClosure);
  136. smalltalk.addMethod(
  137. "_value_",
  138. smalltalk.method({
  139. selector: "value:",
  140. fn: function (anArg) {
  141. var self = this;
  142. return self(anArg);
  143. return self;
  144. }
  145. }),
  146. smalltalk.BlockClosure);
  147. smalltalk.addMethod(
  148. "_value_value_",
  149. smalltalk.method({
  150. selector: "value:value:",
  151. fn: function (firstArg, secondArg) {
  152. var self = this;
  153. return self(firstArg, secondArg);
  154. return self;
  155. }
  156. }),
  157. smalltalk.BlockClosure);
  158. smalltalk.addMethod(
  159. "_value_value_value_",
  160. smalltalk.method({
  161. selector: "value:value:value:",
  162. fn: function (firstArg, secondArg, thirdArg) {
  163. var self = this;
  164. return self(firstArg, secondArg, thirdArg);
  165. return self;
  166. }
  167. }),
  168. smalltalk.BlockClosure);
  169. smalltalk.addMethod(
  170. "_valueWithInterval_",
  171. smalltalk.method({
  172. selector: "valueWithInterval:",
  173. fn: function (aNumber){
  174. var self=this;
  175. var interval = setInterval(self, aNumber);
  176. return smalltalk.Timeout._on_(interval);
  177. ;
  178. ;
  179. return self}
  180. }),
  181. smalltalk.BlockClosure);
  182. smalltalk.addMethod(
  183. "_valueWithPossibleArguments_",
  184. smalltalk.method({
  185. selector: "valueWithPossibleArguments:",
  186. fn: function (aCollection) {
  187. var self = this;
  188. return self.apply(null, aCollection);
  189. return self;
  190. }
  191. }),
  192. smalltalk.BlockClosure);
  193. smalltalk.addMethod(
  194. "_valueWithTimeout_",
  195. smalltalk.method({
  196. selector: "valueWithTimeout:",
  197. fn: function (aNumber){
  198. var self=this;
  199. var timeout = setTimeout(self, aNumber);
  200. return smalltalk.Timeout._on_(timeout);
  201. ;
  202. ;
  203. return self}
  204. }),
  205. smalltalk.BlockClosure);
  206. smalltalk.addMethod(
  207. "_whileFalse",
  208. smalltalk.method({
  209. selector: "whileFalse",
  210. fn: function () {
  211. var self = this;
  212. smalltalk.send(self, "_whileFalse_", [function () {}]);
  213. return self;
  214. }
  215. }),
  216. smalltalk.BlockClosure);
  217. smalltalk.addMethod(
  218. "_whileFalse_",
  219. smalltalk.method({
  220. selector: "whileFalse:",
  221. fn: function (aBlock) {
  222. var self = this;
  223. while (!self()) {
  224. aBlock();
  225. }
  226. return self;
  227. }
  228. }),
  229. smalltalk.BlockClosure);
  230. smalltalk.addMethod(
  231. "_whileTrue",
  232. smalltalk.method({
  233. selector: "whileTrue",
  234. fn: function () {
  235. var self = this;
  236. smalltalk.send(self, "_whileTrue_", [function () {}]);
  237. return self;
  238. }
  239. }),
  240. smalltalk.BlockClosure);
  241. smalltalk.addMethod(
  242. "_whileTrue_",
  243. smalltalk.method({
  244. selector: "whileTrue:",
  245. fn: function (aBlock) {
  246. var self = this;
  247. while (self()) {
  248. aBlock();
  249. }
  250. return self;
  251. }
  252. }),
  253. smalltalk.BlockClosure);
  254. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel-Methods');
  255. smalltalk.addMethod(
  256. "_arguments",
  257. smalltalk.method({
  258. selector: "arguments",
  259. fn: function () {
  260. var self = this;
  261. return self.args || [];
  262. return self;
  263. }
  264. }),
  265. smalltalk.CompiledMethod);
  266. smalltalk.addMethod(
  267. "_category",
  268. smalltalk.method({
  269. selector: "category",
  270. fn: function () {
  271. var self = this;
  272. var $2, $1;
  273. $2 = smalltalk.send(self, "_basicAt_", ["category"]);
  274. if (($receiver = $2) == nil || $receiver == undefined) {
  275. $1 = "";
  276. } else {
  277. $1 = $2;
  278. }
  279. return $1;
  280. }
  281. }),
  282. smalltalk.CompiledMethod);
  283. smalltalk.addMethod(
  284. "_category_",
  285. smalltalk.method({
  286. selector: "category:",
  287. fn: function (aString){
  288. var self=this;
  289. var $1;
  290. var oldCategory;
  291. oldCategory=smalltalk.send(self,"_category",[]);
  292. smalltalk.send(self,"_basicAt_put_",["category",aString]);
  293. $1=smalltalk.send(self,"_methodClass",[]);
  294. if(($receiver = $1) == nil || $receiver == undefined){
  295. $1;
  296. } else {
  297. smalltalk.send(smalltalk.send(smalltalk.send(self,"_methodClass",[]),"_organization",[]),"_addElement_",[aString]);
  298. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self,"_methodClass",[]),"_methods",[]),"_select_",[(function(each){
  299. return smalltalk.send(smalltalk.send(each,"_category",[]),"__eq",[oldCategory]);
  300. })]),"_ifEmpty_",[(function(){
  301. return smalltalk.send(smalltalk.send(smalltalk.send(self,"_methodClass",[]),"_organization",[]),"_removeElement_",[oldCategory]);
  302. })]);
  303. };
  304. return self}
  305. }),
  306. smalltalk.CompiledMethod);
  307. smalltalk.addMethod(
  308. "_fn",
  309. smalltalk.method({
  310. selector: "fn",
  311. fn: function () {
  312. var self = this;
  313. var $1;
  314. $1 = smalltalk.send(self, "_basicAt_", ["fn"]);
  315. return $1;
  316. }
  317. }),
  318. smalltalk.CompiledMethod);
  319. smalltalk.addMethod(
  320. "_fn_",
  321. smalltalk.method({
  322. selector: "fn:",
  323. fn: function (aBlock) {
  324. var self = this;
  325. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  326. return self;
  327. }
  328. }),
  329. smalltalk.CompiledMethod);
  330. smalltalk.addMethod(
  331. "_messageSends",
  332. smalltalk.method({
  333. selector: "messageSends",
  334. fn: function () {
  335. var self = this;
  336. var $1;
  337. $1 = smalltalk.send(self, "_basicAt_", ["messageSends"]);
  338. return $1;
  339. }
  340. }),
  341. smalltalk.CompiledMethod);
  342. smalltalk.addMethod(
  343. "_methodClass",
  344. smalltalk.method({
  345. selector: "methodClass",
  346. fn: function () {
  347. var self = this;
  348. var $1;
  349. $1 = smalltalk.send(self, "_basicAt_", ["methodClass"]);
  350. return $1;
  351. }
  352. }),
  353. smalltalk.CompiledMethod);
  354. smalltalk.addMethod(
  355. "_protocol",
  356. smalltalk.method({
  357. selector: "protocol",
  358. fn: function () {
  359. var self = this;
  360. var $1;
  361. $1 = smalltalk.send(self, "_category", []);
  362. return $1;
  363. }
  364. }),
  365. smalltalk.CompiledMethod);
  366. smalltalk.addMethod(
  367. "_referencedClasses",
  368. smalltalk.method({
  369. selector: "referencedClasses",
  370. fn: function () {
  371. var self = this;
  372. var $1;
  373. $1 = smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  374. return $1;
  375. }
  376. }),
  377. smalltalk.CompiledMethod);
  378. smalltalk.addMethod(
  379. "_selector",
  380. smalltalk.method({
  381. selector: "selector",
  382. fn: function () {
  383. var self = this;
  384. var $1;
  385. $1 = smalltalk.send(self, "_basicAt_", ["selector"]);
  386. return $1;
  387. }
  388. }),
  389. smalltalk.CompiledMethod);
  390. smalltalk.addMethod(
  391. "_selector_",
  392. smalltalk.method({
  393. selector: "selector:",
  394. fn: function (aString) {
  395. var self = this;
  396. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  397. return self;
  398. }
  399. }),
  400. smalltalk.CompiledMethod);
  401. smalltalk.addMethod(
  402. "_source",
  403. smalltalk.method({
  404. selector: "source",
  405. fn: function () {
  406. var self = this;
  407. var $2, $1;
  408. $2 = smalltalk.send(self, "_basicAt_", ["source"]);
  409. if (($receiver = $2) == nil || $receiver == undefined) {
  410. $1 = "";
  411. } else {
  412. $1 = $2;
  413. }
  414. return $1;
  415. }
  416. }),
  417. smalltalk.CompiledMethod);
  418. smalltalk.addMethod(
  419. "_source_",
  420. smalltalk.method({
  421. selector: "source:",
  422. fn: function (aString) {
  423. var self = this;
  424. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  425. return self;
  426. }
  427. }),
  428. smalltalk.CompiledMethod);
  429. smalltalk.addClass('ForkPool', smalltalk.Object, ['poolSize', 'maxPoolSize', 'queue', 'worker'], 'Kernel-Methods');
  430. smalltalk.addMethod(
  431. "_addWorker",
  432. smalltalk.method({
  433. selector: "addWorker",
  434. fn: function (){
  435. var self=this;
  436. smalltalk.send(self["@worker"],"_valueWithTimeout_",[(0)]);
  437. self["@poolSize"]=smalltalk.send(self["@poolSize"],"__plus",[(1)]);
  438. return self}
  439. }),
  440. smalltalk.ForkPool);
  441. smalltalk.addMethod(
  442. "_defaultMaxPoolSize",
  443. smalltalk.method({
  444. selector: "defaultMaxPoolSize",
  445. fn: function (){
  446. var self=this;
  447. var $1;
  448. $1=smalltalk.send(smalltalk.send(self,"_class",[]),"_defaultMaxPoolSize",[]);
  449. return $1;
  450. }
  451. }),
  452. smalltalk.ForkPool);
  453. smalltalk.addMethod(
  454. "_fork_",
  455. smalltalk.method({
  456. selector: "fork:",
  457. fn: function (aBlock){
  458. var self=this;
  459. var $1;
  460. $1=smalltalk.send(self["@poolSize"],"__lt",[smalltalk.send(self,"_maxPoolSize",[])]);
  461. if(smalltalk.assert($1)){
  462. smalltalk.send(self,"_addWorker",[]);
  463. };
  464. smalltalk.send(self["@queue"],"_back_",[aBlock]);
  465. return self}
  466. }),
  467. smalltalk.ForkPool);
  468. smalltalk.addMethod(
  469. "_initialize",
  470. smalltalk.method({
  471. selector: "initialize",
  472. fn: function (){
  473. var self=this;
  474. smalltalk.send(self,"_initialize",[],smalltalk.Object);
  475. self["@poolSize"]=(0);
  476. self["@queue"]=smalltalk.send((smalltalk.Queue || Queue),"_new",[]);
  477. self["@worker"]=smalltalk.send(self,"_makeWorker",[]);
  478. return self}
  479. }),
  480. smalltalk.ForkPool);
  481. smalltalk.addMethod(
  482. "_makeWorker",
  483. smalltalk.method({
  484. selector: "makeWorker",
  485. fn: function (){
  486. var self=this;
  487. var $2,$1;
  488. var sentinel;
  489. sentinel=smalltalk.send((smalltalk.Object || Object),"_new",[]);
  490. $1=(function(){
  491. var block;
  492. self["@poolSize"]=smalltalk.send(self["@poolSize"],"__minus",[(1)]);
  493. self["@poolSize"];
  494. block=smalltalk.send(self["@queue"],"_frontIfAbsent_",[(function(){
  495. return sentinel;
  496. })]);
  497. block;
  498. $2=smalltalk.send(block,"__eq_eq",[sentinel]);
  499. if(! smalltalk.assert($2)){
  500. return smalltalk.send((function(){
  501. return smalltalk.send(block,"_value",[]);
  502. }),"_ensure_",[(function(){
  503. return smalltalk.send(self,"_addWorker",[]);
  504. })]);
  505. };
  506. });
  507. return $1;
  508. }
  509. }),
  510. smalltalk.ForkPool);
  511. smalltalk.addMethod(
  512. "_maxPoolSize",
  513. smalltalk.method({
  514. selector: "maxPoolSize",
  515. fn: function (){
  516. var self=this;
  517. var $2,$1;
  518. $2=self["@maxPoolSize"];
  519. if(($receiver = $2) == nil || $receiver == undefined){
  520. $1=smalltalk.send(self,"_defaultMaxPoolSize",[]);
  521. } else {
  522. $1=$2;
  523. };
  524. return $1;
  525. }
  526. }),
  527. smalltalk.ForkPool);
  528. smalltalk.addMethod(
  529. "_maxPoolSize_",
  530. smalltalk.method({
  531. selector: "maxPoolSize:",
  532. fn: function (anInteger){
  533. var self=this;
  534. self["@maxPoolSize"]=anInteger;
  535. return self}
  536. }),
  537. smalltalk.ForkPool);
  538. smalltalk.ForkPool.klass.iVarNames = ['default'];
  539. smalltalk.addMethod(
  540. "_default",
  541. smalltalk.method({
  542. selector: "default",
  543. fn: function (){
  544. var self=this;
  545. var $1;
  546. if(($receiver = self["@default"]) == nil || $receiver == undefined){
  547. self["@default"]=smalltalk.send(self,"_new",[]);
  548. $1=self["@default"];
  549. } else {
  550. $1=self["@default"];
  551. };
  552. return $1;
  553. }
  554. }),
  555. smalltalk.ForkPool.klass);
  556. smalltalk.addMethod(
  557. "_defaultMaxPoolSize",
  558. smalltalk.method({
  559. selector: "defaultMaxPoolSize",
  560. fn: function (){
  561. var self=this;
  562. return (100);
  563. }
  564. }),
  565. smalltalk.ForkPool.klass);
  566. smalltalk.addMethod(
  567. "_resetDefault",
  568. smalltalk.method({
  569. selector: "resetDefault",
  570. fn: function (){
  571. var self=this;
  572. self["@default"]=nil;
  573. return self}
  574. }),
  575. smalltalk.ForkPool.klass);
  576. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel-Methods');
  577. smalltalk.addMethod(
  578. "_arguments",
  579. smalltalk.method({
  580. selector: "arguments",
  581. fn: function () {
  582. var self = this;
  583. return self['@arguments'];
  584. }
  585. }),
  586. smalltalk.Message);
  587. smalltalk.addMethod(
  588. "_arguments_",
  589. smalltalk.method({
  590. selector: "arguments:",
  591. fn: function (anArray) {
  592. var self = this;
  593. self['@arguments'] = anArray;
  594. return self;
  595. }
  596. }),
  597. smalltalk.Message);
  598. smalltalk.addMethod(
  599. "_printString",
  600. smalltalk.method({
  601. selector: "printString",
  602. fn: function () {
  603. var self = this;
  604. var $2, $1;
  605. $1 = smalltalk.send(smalltalk.String || String, "_streamContents_", [function (aStream) {smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Object)]);smalltalk.send(aStream, "_nextPutAll_", ["("]);smalltalk.send(aStream, "_nextPutAll_", [self['@selector']]);$2 = smalltalk.send(aStream, "_nextPutAll_", [")"]);return $2;}]);
  606. return $1;
  607. }
  608. }),
  609. smalltalk.Message);
  610. smalltalk.addMethod(
  611. "_selector",
  612. smalltalk.method({
  613. selector: "selector",
  614. fn: function () {
  615. var self = this;
  616. return self['@selector'];
  617. }
  618. }),
  619. smalltalk.Message);
  620. smalltalk.addMethod(
  621. "_selector_",
  622. smalltalk.method({
  623. selector: "selector:",
  624. fn: function (aString) {
  625. var self = this;
  626. self['@selector'] = aString;
  627. return self;
  628. }
  629. }),
  630. smalltalk.Message);
  631. smalltalk.addMethod(
  632. "_sendTo_",
  633. smalltalk.method({
  634. selector: "sendTo:",
  635. fn: function (anObject) {
  636. var self = this;
  637. var $1;
  638. $1 = smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_send_to_arguments_", [smalltalk.send(self, "_selector", []), anObject, smalltalk.send(self, "_arguments", [])]);
  639. return $1;
  640. }
  641. }),
  642. smalltalk.Message);
  643. smalltalk.addMethod(
  644. "_selector_arguments_",
  645. smalltalk.method({
  646. selector: "selector:arguments:",
  647. fn: function (aString, anArray) {
  648. var self = this;
  649. var $2, $3, $1;
  650. $2 = smalltalk.send(self, "_new", []);
  651. smalltalk.send($2, "_selector_", [aString]);
  652. smalltalk.send($2, "_arguments_", [anArray]);
  653. $3 = smalltalk.send($2, "_yourself", []);
  654. $1 = $3;
  655. return $1;
  656. }
  657. }),
  658. smalltalk.Message.klass);
  659. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel-Methods');
  660. smalltalk.addMethod(
  661. "_asString",
  662. smalltalk.method({
  663. selector: "asString",
  664. fn: function () {
  665. var self = this;
  666. var $1;
  667. $1 = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [" >> "]), "__comma", [smalltalk.send(self, "_selector", [])]);
  668. return $1;
  669. }
  670. }),
  671. smalltalk.MethodContext);
  672. smalltalk.addMethod(
  673. "_home",
  674. smalltalk.method({
  675. selector: "home",
  676. fn: function () {
  677. var self = this;
  678. return self.homeContext;
  679. return self;
  680. }
  681. }),
  682. smalltalk.MethodContext);
  683. smalltalk.addMethod(
  684. "_pc",
  685. smalltalk.method({
  686. selector: "pc",
  687. fn: function () {
  688. var self = this;
  689. return self.pc;
  690. return self;
  691. }
  692. }),
  693. smalltalk.MethodContext);
  694. smalltalk.addMethod(
  695. "_printString",
  696. smalltalk.method({
  697. selector: "printString",
  698. fn: function () {
  699. var self = this;
  700. var $1;
  701. $1 = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", ["("]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [")"]);
  702. return $1;
  703. }
  704. }),
  705. smalltalk.MethodContext);
  706. smalltalk.addMethod(
  707. "_receiver",
  708. smalltalk.method({
  709. selector: "receiver",
  710. fn: function () {
  711. var self = this;
  712. return self.receiver;
  713. return self;
  714. }
  715. }),
  716. smalltalk.MethodContext);
  717. smalltalk.addMethod(
  718. "_selector",
  719. smalltalk.method({
  720. selector: "selector",
  721. fn: function () {
  722. var self = this;
  723. return smalltalk.convertSelector(self.selector);
  724. return self;
  725. }
  726. }),
  727. smalltalk.MethodContext);
  728. smalltalk.addMethod(
  729. "_temps",
  730. smalltalk.method({
  731. selector: "temps",
  732. fn: function () {
  733. var self = this;
  734. return self.temps;
  735. return self;
  736. }
  737. }),
  738. smalltalk.MethodContext);