Kernel-Methods.deploy.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  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 $1;
  176. var local;
  177. local = setInterval(self, aNumber);
  178. ;
  179. $1=smalltalk.send((smalltalk.Timeout || Timeout),"_on_",[local]);
  180. return $1;
  181. }
  182. }),
  183. smalltalk.BlockClosure);
  184. smalltalk.addMethod(
  185. "_valueWithPossibleArguments_",
  186. smalltalk.method({
  187. selector: "valueWithPossibleArguments:",
  188. fn: function (aCollection) {
  189. var self = this;
  190. return self.apply(null, aCollection);
  191. return self;
  192. }
  193. }),
  194. smalltalk.BlockClosure);
  195. smalltalk.addMethod(
  196. "_valueWithTimeout_",
  197. smalltalk.method({
  198. selector: "valueWithTimeout:",
  199. fn: function (aNumber){
  200. var self=this;
  201. var $1;
  202. var local;
  203. local = setTimeout(self, aNumber);
  204. ;
  205. $1=smalltalk.send((smalltalk.Timeout || Timeout),"_on_",[local]);
  206. return $1;
  207. }
  208. }),
  209. smalltalk.BlockClosure);
  210. smalltalk.addMethod(
  211. "_whileFalse",
  212. smalltalk.method({
  213. selector: "whileFalse",
  214. fn: function () {
  215. var self = this;
  216. smalltalk.send(self, "_whileFalse_", [function () {}]);
  217. return self;
  218. }
  219. }),
  220. smalltalk.BlockClosure);
  221. smalltalk.addMethod(
  222. "_whileFalse_",
  223. smalltalk.method({
  224. selector: "whileFalse:",
  225. fn: function (aBlock) {
  226. var self = this;
  227. while (!self()) {
  228. aBlock();
  229. }
  230. return self;
  231. }
  232. }),
  233. smalltalk.BlockClosure);
  234. smalltalk.addMethod(
  235. "_whileTrue",
  236. smalltalk.method({
  237. selector: "whileTrue",
  238. fn: function () {
  239. var self = this;
  240. smalltalk.send(self, "_whileTrue_", [function () {}]);
  241. return self;
  242. }
  243. }),
  244. smalltalk.BlockClosure);
  245. smalltalk.addMethod(
  246. "_whileTrue_",
  247. smalltalk.method({
  248. selector: "whileTrue:",
  249. fn: function (aBlock) {
  250. var self = this;
  251. while (self()) {
  252. aBlock();
  253. }
  254. return self;
  255. }
  256. }),
  257. smalltalk.BlockClosure);
  258. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel-Methods');
  259. smalltalk.addMethod(
  260. "_arguments",
  261. smalltalk.method({
  262. selector: "arguments",
  263. fn: function () {
  264. var self = this;
  265. return self.args || [];
  266. return self;
  267. }
  268. }),
  269. smalltalk.CompiledMethod);
  270. smalltalk.addMethod(
  271. "_category",
  272. smalltalk.method({
  273. selector: "category",
  274. fn: function () {
  275. var self = this;
  276. var $2, $1;
  277. $2 = smalltalk.send(self, "_basicAt_", ["category"]);
  278. if (($receiver = $2) == nil || $receiver == undefined) {
  279. $1 = "";
  280. } else {
  281. $1 = $2;
  282. }
  283. return $1;
  284. }
  285. }),
  286. smalltalk.CompiledMethod);
  287. smalltalk.addMethod(
  288. "_category_",
  289. smalltalk.method({
  290. selector: "category:",
  291. fn: function (aString){
  292. var self=this;
  293. var $1;
  294. var oldCategory;
  295. oldCategory=smalltalk.send(self,"_category",[]);
  296. smalltalk.send(self,"_basicAt_put_",["category",aString]);
  297. $1=smalltalk.send(self,"_methodClass",[]);
  298. if(($receiver = $1) == nil || $receiver == undefined){
  299. $1;
  300. } else {
  301. smalltalk.send(smalltalk.send(smalltalk.send(self,"_methodClass",[]),"_organization",[]),"_addElement_",[aString]);
  302. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self,"_methodClass",[]),"_methods",[]),"_select_",[(function(each){
  303. return smalltalk.send(smalltalk.send(each,"_category",[]),"__eq",[oldCategory]);
  304. })]),"_ifEmpty_",[(function(){
  305. return smalltalk.send(smalltalk.send(smalltalk.send(self,"_methodClass",[]),"_organization",[]),"_removeElement_",[oldCategory]);
  306. })]);
  307. };
  308. return self}
  309. }),
  310. smalltalk.CompiledMethod);
  311. smalltalk.addMethod(
  312. "_fn",
  313. smalltalk.method({
  314. selector: "fn",
  315. fn: function () {
  316. var self = this;
  317. var $1;
  318. $1 = smalltalk.send(self, "_basicAt_", ["fn"]);
  319. return $1;
  320. }
  321. }),
  322. smalltalk.CompiledMethod);
  323. smalltalk.addMethod(
  324. "_fn_",
  325. smalltalk.method({
  326. selector: "fn:",
  327. fn: function (aBlock) {
  328. var self = this;
  329. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  330. return self;
  331. }
  332. }),
  333. smalltalk.CompiledMethod);
  334. smalltalk.addMethod(
  335. "_messageSends",
  336. smalltalk.method({
  337. selector: "messageSends",
  338. fn: function () {
  339. var self = this;
  340. var $1;
  341. $1 = smalltalk.send(self, "_basicAt_", ["messageSends"]);
  342. return $1;
  343. }
  344. }),
  345. smalltalk.CompiledMethod);
  346. smalltalk.addMethod(
  347. "_methodClass",
  348. smalltalk.method({
  349. selector: "methodClass",
  350. fn: function () {
  351. var self = this;
  352. var $1;
  353. $1 = smalltalk.send(self, "_basicAt_", ["methodClass"]);
  354. return $1;
  355. }
  356. }),
  357. smalltalk.CompiledMethod);
  358. smalltalk.addMethod(
  359. "_protocol",
  360. smalltalk.method({
  361. selector: "protocol",
  362. fn: function () {
  363. var self = this;
  364. var $1;
  365. $1 = smalltalk.send(self, "_category", []);
  366. return $1;
  367. }
  368. }),
  369. smalltalk.CompiledMethod);
  370. smalltalk.addMethod(
  371. "_referencedClasses",
  372. smalltalk.method({
  373. selector: "referencedClasses",
  374. fn: function () {
  375. var self = this;
  376. var $1;
  377. $1 = smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  378. return $1;
  379. }
  380. }),
  381. smalltalk.CompiledMethod);
  382. smalltalk.addMethod(
  383. "_selector",
  384. smalltalk.method({
  385. selector: "selector",
  386. fn: function () {
  387. var self = this;
  388. var $1;
  389. $1 = smalltalk.send(self, "_basicAt_", ["selector"]);
  390. return $1;
  391. }
  392. }),
  393. smalltalk.CompiledMethod);
  394. smalltalk.addMethod(
  395. "_selector_",
  396. smalltalk.method({
  397. selector: "selector:",
  398. fn: function (aString) {
  399. var self = this;
  400. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  401. return self;
  402. }
  403. }),
  404. smalltalk.CompiledMethod);
  405. smalltalk.addMethod(
  406. "_source",
  407. smalltalk.method({
  408. selector: "source",
  409. fn: function () {
  410. var self = this;
  411. var $2, $1;
  412. $2 = smalltalk.send(self, "_basicAt_", ["source"]);
  413. if (($receiver = $2) == nil || $receiver == undefined) {
  414. $1 = "";
  415. } else {
  416. $1 = $2;
  417. }
  418. return $1;
  419. }
  420. }),
  421. smalltalk.CompiledMethod);
  422. smalltalk.addMethod(
  423. "_source_",
  424. smalltalk.method({
  425. selector: "source:",
  426. fn: function (aString) {
  427. var self = this;
  428. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  429. return self;
  430. }
  431. }),
  432. smalltalk.CompiledMethod);
  433. smalltalk.addClass('ForkPool', smalltalk.Object, ['poolSize', 'maxPoolSize', 'queue', 'worker'], 'Kernel-Methods');
  434. smalltalk.addMethod(
  435. "_addWorker",
  436. smalltalk.method({
  437. selector: "addWorker",
  438. fn: function (){
  439. var self=this;
  440. smalltalk.send(self["@worker"],"_valueWithTimeout_",[(0)]);
  441. self["@poolSize"]=smalltalk.send(self["@poolSize"],"__plus",[(1)]);
  442. return self}
  443. }),
  444. smalltalk.ForkPool);
  445. smalltalk.addMethod(
  446. "_fork_",
  447. smalltalk.method({
  448. selector: "fork:",
  449. fn: function (aBlock){
  450. var self=this;
  451. var $1;
  452. $1=smalltalk.send(self["@poolSize"],"__lt",[self["@maxPoolSize"]]);
  453. if(smalltalk.assert($1)){
  454. smalltalk.send(self,"_addWorker",[]);
  455. };
  456. smalltalk.send(self["@queue"],"_back_",[aBlock]);
  457. return self}
  458. }),
  459. smalltalk.ForkPool);
  460. smalltalk.addMethod(
  461. "_initialize",
  462. smalltalk.method({
  463. selector: "initialize",
  464. fn: function (){
  465. var self=this;
  466. smalltalk.send(self,"_initialize",[],smalltalk.Object);
  467. self["@poolSize"]=(0);
  468. self["@maxPoolSize"]=smalltalk.send(smalltalk.send(self,"_class",[]),"_defaultMaxPoolSize",[]);
  469. self["@queue"]=smalltalk.send((smalltalk.Queue || Queue),"_new",[]);
  470. self["@worker"]=smalltalk.send(self,"_makeWorker",[]);
  471. return self}
  472. }),
  473. smalltalk.ForkPool);
  474. smalltalk.addMethod(
  475. "_makeWorker",
  476. smalltalk.method({
  477. selector: "makeWorker",
  478. fn: function (){
  479. var self=this;
  480. var $2,$1;
  481. var sentinel;
  482. sentinel=smalltalk.send((smalltalk.Object || Object),"_new",[]);
  483. $1=(function(){
  484. var block;
  485. self["@poolSize"]=smalltalk.send(self["@poolSize"],"__minus",[(1)]);
  486. self["@poolSize"];
  487. block=smalltalk.send(self["@queue"],"_frontIfAbsent_",[(function(){
  488. return sentinel;
  489. })]);
  490. block;
  491. $2=smalltalk.send(block,"__eq_eq",[sentinel]);
  492. if(! smalltalk.assert($2)){
  493. return smalltalk.send((function(){
  494. return smalltalk.send(block,"_value",[]);
  495. }),"_ensure_",[(function(){
  496. return smalltalk.send(self,"_addWorker",[]);
  497. })]);
  498. };
  499. });
  500. return $1;
  501. }
  502. }),
  503. smalltalk.ForkPool);
  504. smalltalk.ForkPool.klass.iVarNames = ['default'];
  505. smalltalk.addMethod(
  506. "_default",
  507. smalltalk.method({
  508. selector: "default",
  509. fn: function (){
  510. var self=this;
  511. var $1;
  512. if(($receiver = self["@default"]) == nil || $receiver == undefined){
  513. self["@default"]=smalltalk.send(self,"_new",[]);
  514. $1=self["@default"];
  515. } else {
  516. $1=self["@default"];
  517. };
  518. return $1;
  519. }
  520. }),
  521. smalltalk.ForkPool.klass);
  522. smalltalk.addMethod(
  523. "_defaultMaxPoolSize",
  524. smalltalk.method({
  525. selector: "defaultMaxPoolSize",
  526. fn: function (){
  527. var self=this;
  528. return (100);
  529. }
  530. }),
  531. smalltalk.ForkPool.klass);
  532. smalltalk.addMethod(
  533. "_resetDefault",
  534. smalltalk.method({
  535. selector: "resetDefault",
  536. fn: function (){
  537. var self=this;
  538. self["@default"]=nil;
  539. return self}
  540. }),
  541. smalltalk.ForkPool.klass);
  542. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel-Methods');
  543. smalltalk.addMethod(
  544. "_arguments",
  545. smalltalk.method({
  546. selector: "arguments",
  547. fn: function () {
  548. var self = this;
  549. return self['@arguments'];
  550. }
  551. }),
  552. smalltalk.Message);
  553. smalltalk.addMethod(
  554. "_arguments_",
  555. smalltalk.method({
  556. selector: "arguments:",
  557. fn: function (anArray) {
  558. var self = this;
  559. self['@arguments'] = anArray;
  560. return self;
  561. }
  562. }),
  563. smalltalk.Message);
  564. smalltalk.addMethod(
  565. "_printString",
  566. smalltalk.method({
  567. selector: "printString",
  568. fn: function () {
  569. var self = this;
  570. var $2, $1;
  571. $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;}]);
  572. return $1;
  573. }
  574. }),
  575. smalltalk.Message);
  576. smalltalk.addMethod(
  577. "_selector",
  578. smalltalk.method({
  579. selector: "selector",
  580. fn: function () {
  581. var self = this;
  582. return self['@selector'];
  583. }
  584. }),
  585. smalltalk.Message);
  586. smalltalk.addMethod(
  587. "_selector_",
  588. smalltalk.method({
  589. selector: "selector:",
  590. fn: function (aString) {
  591. var self = this;
  592. self['@selector'] = aString;
  593. return self;
  594. }
  595. }),
  596. smalltalk.Message);
  597. smalltalk.addMethod(
  598. "_sendTo_",
  599. smalltalk.method({
  600. selector: "sendTo:",
  601. fn: function (anObject) {
  602. var self = this;
  603. var $1;
  604. $1 = smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_send_to_arguments_", [smalltalk.send(self, "_selector", []), anObject, smalltalk.send(self, "_arguments", [])]);
  605. return $1;
  606. }
  607. }),
  608. smalltalk.Message);
  609. smalltalk.addMethod(
  610. "_selector_arguments_",
  611. smalltalk.method({
  612. selector: "selector:arguments:",
  613. fn: function (aString, anArray) {
  614. var self = this;
  615. var $2, $3, $1;
  616. $2 = smalltalk.send(self, "_new", []);
  617. smalltalk.send($2, "_selector_", [aString]);
  618. smalltalk.send($2, "_arguments_", [anArray]);
  619. $3 = smalltalk.send($2, "_yourself", []);
  620. $1 = $3;
  621. return $1;
  622. }
  623. }),
  624. smalltalk.Message.klass);
  625. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel-Methods');
  626. smalltalk.addMethod(
  627. "_asString",
  628. smalltalk.method({
  629. selector: "asString",
  630. fn: function () {
  631. var self = this;
  632. var $1;
  633. $1 = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [" >> "]), "__comma", [smalltalk.send(self, "_selector", [])]);
  634. return $1;
  635. }
  636. }),
  637. smalltalk.MethodContext);
  638. smalltalk.addMethod(
  639. "_home",
  640. smalltalk.method({
  641. selector: "home",
  642. fn: function () {
  643. var self = this;
  644. return self.homeContext;
  645. return self;
  646. }
  647. }),
  648. smalltalk.MethodContext);
  649. smalltalk.addMethod(
  650. "_pc",
  651. smalltalk.method({
  652. selector: "pc",
  653. fn: function () {
  654. var self = this;
  655. return self.pc;
  656. return self;
  657. }
  658. }),
  659. smalltalk.MethodContext);
  660. smalltalk.addMethod(
  661. "_printString",
  662. smalltalk.method({
  663. selector: "printString",
  664. fn: function () {
  665. var self = this;
  666. var $1;
  667. $1 = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", ["("]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [")"]);
  668. return $1;
  669. }
  670. }),
  671. smalltalk.MethodContext);
  672. smalltalk.addMethod(
  673. "_receiver",
  674. smalltalk.method({
  675. selector: "receiver",
  676. fn: function () {
  677. var self = this;
  678. return self.receiver;
  679. return self;
  680. }
  681. }),
  682. smalltalk.MethodContext);
  683. smalltalk.addMethod(
  684. "_selector",
  685. smalltalk.method({
  686. selector: "selector",
  687. fn: function () {
  688. var self = this;
  689. return smalltalk.convertSelector(self.selector);
  690. return self;
  691. }
  692. }),
  693. smalltalk.MethodContext);
  694. smalltalk.addMethod(
  695. "_temps",
  696. smalltalk.method({
  697. selector: "temps",
  698. fn: function () {
  699. var self = this;
  700. return self.temps;
  701. return self;
  702. }
  703. }),
  704. smalltalk.MethodContext);