resin 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/amber/css/amber-normalize.css +73 -73
  2. data/amber/css/amber-normalize.less +1 -1
  3. data/amber/css/amber.css +106 -106
  4. data/amber/css/helios.css +242 -0
  5. data/amber/images/hsplitter.png +0 -0
  6. data/amber/images/vsplitter.png +0 -0
  7. data/amber/js/Benchfib.deploy.js +116 -38
  8. data/amber/js/Benchfib.js +120 -42
  9. data/amber/js/Canvas.deploy.js +674 -403
  10. data/amber/js/Canvas.js +682 -411
  11. data/amber/js/Compiler-AST.deploy.js +1150 -0
  12. data/amber/js/Compiler-AST.js +1591 -0
  13. data/amber/js/Compiler-Core.deploy.js +1562 -0
  14. data/amber/js/Compiler-Core.js +1972 -0
  15. data/amber/js/Compiler-Exceptions.deploy.js +114 -0
  16. data/amber/js/Compiler-Exceptions.js +161 -0
  17. data/amber/js/Compiler-IR.deploy.js +2326 -0
  18. data/amber/js/Compiler-IR.js +3146 -0
  19. data/amber/js/Compiler-Inlining.deploy.js +1147 -0
  20. data/amber/js/Compiler-Inlining.js +1514 -0
  21. data/amber/js/Compiler-Semantic.deploy.js +1207 -0
  22. data/amber/js/Compiler-Semantic.js +1628 -0
  23. data/amber/js/Compiler-Tests.deploy.js +646 -60
  24. data/amber/js/Compiler-Tests.js +843 -82
  25. data/amber/js/Compiler.deploy.js +1097 -159
  26. data/amber/js/Compiler.js +1414 -161
  27. data/amber/js/Examples.deploy.js +31 -15
  28. data/amber/js/Examples.js +33 -17
  29. data/amber/js/Helios-Announcements.deploy.js +127 -0
  30. data/amber/js/Helios-Announcements.js +157 -0
  31. data/amber/js/Helios-Browser.deploy.js +1473 -0
  32. data/amber/js/Helios-Browser.js +1953 -0
  33. data/amber/js/Helios-Commands.deploy.js +403 -0
  34. data/amber/js/Helios-Commands.js +563 -0
  35. data/amber/js/Helios-Core.deploy.js +1070 -0
  36. data/amber/js/Helios-Core.js +1445 -0
  37. data/amber/js/Helios-Environments.deploy.js +132 -0
  38. data/amber/js/Helios-Environments.js +179 -0
  39. data/amber/js/Helios-Inspector.deploy.js +855 -0
  40. data/amber/js/Helios-Inspector.js +1155 -0
  41. data/amber/js/Helios-KeyBindings.deploy.js +753 -0
  42. data/amber/js/Helios-KeyBindings.js +1023 -0
  43. data/amber/js/Helios-Layout.deploy.js +383 -0
  44. data/amber/js/Helios-Layout.js +523 -0
  45. data/amber/js/Helios-Workspace.deploy.js +799 -0
  46. data/amber/js/Helios-Workspace.js +1074 -0
  47. data/amber/js/IDE.deploy.js +2541 -1490
  48. data/amber/js/IDE.js +2721 -1660
  49. data/amber/js/Importer-Exporter.deploy.js +671 -0
  50. data/amber/js/Importer-Exporter.js +816 -0
  51. data/amber/js/Kernel-Announcements.deploy.js +137 -20
  52. data/amber/js/Kernel-Announcements.js +176 -22
  53. data/amber/js/Kernel-Classes.deploy.js +555 -168
  54. data/amber/js/Kernel-Classes.js +662 -205
  55. data/amber/js/Kernel-Collections.deploy.js +1403 -618
  56. data/amber/js/Kernel-Collections.js +1545 -690
  57. data/amber/js/Kernel-Exceptions.deploy.js +109 -45
  58. data/amber/js/Kernel-Exceptions.js +123 -49
  59. data/amber/js/Kernel-Methods.deploy.js +196 -81
  60. data/amber/js/Kernel-Methods.js +214 -89
  61. data/amber/js/Kernel-Objects.deploy.js +1542 -1117
  62. data/amber/js/Kernel-Objects.js +1593 -1148
  63. data/amber/js/Kernel-Tests.deploy.js +1725 -772
  64. data/amber/js/Kernel-Tests.js +2301 -1123
  65. data/amber/js/Kernel-Transcript.deploy.js +23 -25
  66. data/amber/js/Kernel-Transcript.js +24 -26
  67. data/amber/js/SUnit.deploy.js +204 -131
  68. data/amber/js/SUnit.js +222 -139
  69. data/amber/js/Spaces.deploy.js +240 -0
  70. data/amber/js/Spaces.js +326 -0
  71. data/amber/js/amber.js +26 -7
  72. data/amber/js/boot.js +65 -47
  73. data/amber/js/init.js +1 -1
  74. data/amber/js/lib/CodeMirror/amber.css +21 -21
  75. data/amber/js/lib/CodeMirror/codemirror.css +119 -13
  76. data/amber/js/lib/CodeMirror/codemirror.js +2219 -1220
  77. data/amber/js/lib/CodeMirror/smalltalk.js +134 -129
  78. data/amber/js/lib/bootstrap/css/bootstrap.css +5837 -0
  79. data/amber/js/lib/bootstrap/css/bootstrap.min.css +841 -0
  80. data/amber/js/lib/bootstrap/img/glyphicons-halflings-white.png +0 -0
  81. data/amber/js/lib/bootstrap/img/glyphicons-halflings.png +0 -0
  82. data/amber/js/lib/bootstrap/js/bootstrap.js +2038 -0
  83. data/amber/js/lib/bootstrap/js/bootstrap.min.js +7 -0
  84. data/amber/js/lib/jQuery/jquery-1.8.2.min.js +2 -0
  85. data/amber/js/lib/jQuery/jquery-ui-1.8.24.custom.min.js +125 -0
  86. data/amber/st/Compiler-AST.st +505 -0
  87. data/amber/st/Compiler-Core.st +835 -0
  88. data/amber/st/Compiler-Exceptions.st +87 -0
  89. data/amber/st/Compiler-IR.st +1097 -0
  90. data/amber/st/Compiler-Inlining.st +650 -0
  91. data/amber/st/Compiler-Semantic.st +558 -0
  92. data/amber/st/Compiler-Tests.st +285 -381
  93. data/amber/st/Compiler.st +725 -2
  94. data/amber/st/Helios-Announcements.st +104 -0
  95. data/amber/st/Helios-Browser.st +708 -0
  96. data/amber/st/Helios-Commands.st +223 -0
  97. data/amber/st/Helios-Core.st +532 -0
  98. data/amber/st/Helios-Environments.st +98 -0
  99. data/amber/st/Helios-Inspector.st +367 -0
  100. data/amber/st/Helios-KeyBindings.st +337 -0
  101. data/amber/st/Helios-Layout.st +199 -0
  102. data/amber/st/Helios-Workspace.st +367 -0
  103. data/amber/st/IDE.st +75 -53
  104. data/amber/st/Importer-Exporter.st +386 -0
  105. data/amber/st/Kernel-Announcements.st +92 -0
  106. data/amber/st/Kernel-Classes.st +137 -15
  107. data/amber/st/Kernel-Collections.st +137 -47
  108. data/amber/st/Kernel-Exceptions.st +14 -0
  109. data/amber/st/Kernel-Methods.st +9 -1
  110. data/amber/st/Kernel-Objects.st +29 -5
  111. data/amber/st/Kernel-Tests.st +545 -199
  112. data/amber/st/SUnit.st +10 -0
  113. data/amber/st/Spaces.st +142 -0
  114. data/lib/resin/app.rb +1 -1
  115. metadata +86 -31
  116. data/amber/js/lib/jQuery/jquery-1.4.4.min.js +0 -167
  117. data/amber/js/lib/jQuery/jquery-1.6.4.min.js +0 -4
@@ -4,10 +4,11 @@ smalltalk.addMethod(
4
4
  "_applyTo_arguments_",
5
5
  smalltalk.method({
6
6
  selector: "applyTo:arguments:",
7
- fn: function (anObject, aCollection){
7
+ fn: function (anObject,aCollection){
8
8
  var self=this;
9
9
  return self.apply(anObject, aCollection);
10
- return self;}
10
+ ;
11
+ return self}
11
12
  }),
12
13
  smalltalk.BlockClosure);
13
14
 
@@ -18,7 +19,8 @@ selector: "compiledSource",
18
19
  fn: function (){
19
20
  var self=this;
20
21
  return self.toString();
21
- return self;}
22
+ ;
23
+ return self}
22
24
  }),
23
25
  smalltalk.BlockClosure);
24
26
 
@@ -28,10 +30,22 @@ smalltalk.method({
28
30
  selector: "ensure:",
29
31
  fn: function (aBlock){
30
32
  var self=this;
31
- var success=nil;
32
- (success=false);
33
- return smalltalk.send((function(){smalltalk.send(self, "_value", []);(success=true);return smalltalk.send(aBlock, "_value", []);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){((($receiver = success).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value", []);})]));return smalltalk.send(ex, "_signal", []);})]);
34
- return self;}
33
+ var $1;
34
+ var success;
35
+ success=false;
36
+ $1=smalltalk.send((function(){
37
+ smalltalk.send(self,"_value",[]);
38
+ success=true;
39
+ success;
40
+ return smalltalk.send(aBlock,"_value",[]);
41
+ }),"_on_do_",[(smalltalk.Error || Error),(function(ex){
42
+ if(! smalltalk.assert(success)){
43
+ smalltalk.send(aBlock,"_value",[]);
44
+ };
45
+ return smalltalk.send(ex,"_signal",[]);
46
+ })]);
47
+ return $1;
48
+ }
35
49
  }),
36
50
  smalltalk.BlockClosure);
37
51
 
@@ -42,7 +56,8 @@ selector: "new",
42
56
  fn: function (){
43
57
  var self=this;
44
58
  return new self();
45
- return self;}
59
+ ;
60
+ return self}
46
61
  }),
47
62
  smalltalk.BlockClosure);
48
63
 
@@ -53,7 +68,8 @@ selector: "newValue:",
53
68
  fn: function (anObject){
54
69
  var self=this;
55
70
  return new self(anObject);
56
- return self;}
71
+ ;
72
+ return self}
57
73
  }),
58
74
  smalltalk.BlockClosure);
59
75
 
@@ -61,10 +77,11 @@ smalltalk.addMethod(
61
77
  "_newValue_value_",
62
78
  smalltalk.method({
63
79
  selector: "newValue:value:",
64
- fn: function (anObject, anObject2){
80
+ fn: function (anObject,anObject2){
65
81
  var self=this;
66
82
  return new self(anObject, anObject2);
67
- return self;}
83
+ ;
84
+ return self}
68
85
  }),
69
86
  smalltalk.BlockClosure);
70
87
 
@@ -72,10 +89,11 @@ smalltalk.addMethod(
72
89
  "_newValue_value_value_",
73
90
  smalltalk.method({
74
91
  selector: "newValue:value:value:",
75
- fn: function (anObject, anObject2, anObject3){
92
+ fn: function (anObject,anObject2,anObject3){
76
93
  var self=this;
77
94
  return new self(anObject, anObject2);
78
- return self;}
95
+ ;
96
+ return self}
79
97
  }),
80
98
  smalltalk.BlockClosure);
81
99
 
@@ -86,7 +104,8 @@ selector: "numArgs",
86
104
  fn: function (){
87
105
  var self=this;
88
106
  return self.length;
89
- return self;}
107
+ ;
108
+ return self}
90
109
  }),
91
110
  smalltalk.BlockClosure);
92
111
 
@@ -94,10 +113,19 @@ smalltalk.addMethod(
94
113
  "_on_do_",
95
114
  smalltalk.method({
96
115
  selector: "on:do:",
97
- fn: function (anErrorClass, aBlock){
98
- var self=this;
99
- return smalltalk.send(self, "_try_catch_", [self, (function(error){return ((($receiver = smalltalk.send(error, "_isKindOf_", [anErrorClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aBlock, "_value_", [error]);})() : (function(){return smalltalk.send(error, "_signal", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value_", [error]);}), (function(){return smalltalk.send(error, "_signal", []);})]));})]);
100
- return self;}
116
+ fn: function (anErrorClass,aBlock){
117
+ var self=this;
118
+ var $2,$1;
119
+ $1=smalltalk.send(self,"_try_catch_",[self,(function(error){
120
+ $2=smalltalk.send(error,"_isKindOf_",[anErrorClass]);
121
+ if(smalltalk.assert($2)){
122
+ return smalltalk.send(aBlock,"_value_",[error]);
123
+ } else {
124
+ return smalltalk.send(error,"_signal",[]);
125
+ };
126
+ })]);
127
+ return $1;
128
+ }
101
129
  }),
102
130
  smalltalk.BlockClosure);
103
131
 
@@ -107,8 +135,10 @@ smalltalk.method({
107
135
  selector: "timeToRun",
108
136
  fn: function (){
109
137
  var self=this;
110
- return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
111
- return self;}
138
+ var $1;
139
+ $1=smalltalk.send((smalltalk.Date || Date),"_millisecondsToRun_",[self]);
140
+ return $1;
141
+ }
112
142
  }),
113
143
  smalltalk.BlockClosure);
114
144
 
@@ -119,7 +149,8 @@ selector: "value",
119
149
  fn: function (){
120
150
  var self=this;
121
151
  return self();;
122
- return self;}
152
+ ;
153
+ return self}
123
154
  }),
124
155
  smalltalk.BlockClosure);
125
156
 
@@ -130,7 +161,8 @@ selector: "value:",
130
161
  fn: function (anArg){
131
162
  var self=this;
132
163
  return self(anArg);;
133
- return self;}
164
+ ;
165
+ return self}
134
166
  }),
135
167
  smalltalk.BlockClosure);
136
168
 
@@ -138,10 +170,11 @@ smalltalk.addMethod(
138
170
  "_value_value_",
139
171
  smalltalk.method({
140
172
  selector: "value:value:",
141
- fn: function (firstArg, secondArg){
173
+ fn: function (firstArg,secondArg){
142
174
  var self=this;
143
175
  return self(firstArg, secondArg);;
144
- return self;}
176
+ ;
177
+ return self}
145
178
  }),
146
179
  smalltalk.BlockClosure);
147
180
 
@@ -149,10 +182,11 @@ smalltalk.addMethod(
149
182
  "_value_value_value_",
150
183
  smalltalk.method({
151
184
  selector: "value:value:value:",
152
- fn: function (firstArg, secondArg, thirdArg){
185
+ fn: function (firstArg,secondArg,thirdArg){
153
186
  var self=this;
154
187
  return self(firstArg, secondArg, thirdArg);;
155
- return self;}
188
+ ;
189
+ return self}
156
190
  }),
157
191
  smalltalk.BlockClosure);
158
192
 
@@ -163,7 +197,8 @@ selector: "valueWithInterval:",
163
197
  fn: function (aNumber){
164
198
  var self=this;
165
199
  return setInterval(self, aNumber);
166
- return self;}
200
+ ;
201
+ return self}
167
202
  }),
168
203
  smalltalk.BlockClosure);
169
204
 
@@ -174,7 +209,8 @@ selector: "valueWithPossibleArguments:",
174
209
  fn: function (aCollection){
175
210
  var self=this;
176
211
  return self.apply(null, aCollection);;
177
- return self;}
212
+ ;
213
+ return self}
178
214
  }),
179
215
  smalltalk.BlockClosure);
180
216
 
@@ -185,7 +221,8 @@ selector: "valueWithTimeout:",
185
221
  fn: function (aNumber){
186
222
  var self=this;
187
223
  return setTimeout(self, aNumber);
188
- return self;}
224
+ ;
225
+ return self}
189
226
  }),
190
227
  smalltalk.BlockClosure);
191
228
 
@@ -195,8 +232,9 @@ smalltalk.method({
195
232
  selector: "whileFalse",
196
233
  fn: function (){
197
234
  var self=this;
198
- smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
199
- return self;}
235
+ smalltalk.send(self,"_whileFalse_",[(function(){
236
+ })]);
237
+ return self}
200
238
  }),
201
239
  smalltalk.BlockClosure);
202
240
 
@@ -207,7 +245,8 @@ selector: "whileFalse:",
207
245
  fn: function (aBlock){
208
246
  var self=this;
209
247
  while(!self()) {aBlock()};
210
- return self;}
248
+ ;
249
+ return self}
211
250
  }),
212
251
  smalltalk.BlockClosure);
213
252
 
@@ -217,8 +256,9 @@ smalltalk.method({
217
256
  selector: "whileTrue",
218
257
  fn: function (){
219
258
  var self=this;
220
- smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
221
- return self;}
259
+ smalltalk.send(self,"_whileTrue_",[(function(){
260
+ })]);
261
+ return self}
222
262
  }),
223
263
  smalltalk.BlockClosure);
224
264
 
@@ -229,7 +269,8 @@ selector: "whileTrue:",
229
269
  fn: function (aBlock){
230
270
  var self=this;
231
271
  while(self()) {aBlock()};
232
- return self;}
272
+ ;
273
+ return self}
233
274
  }),
234
275
  smalltalk.BlockClosure);
235
276
 
@@ -243,7 +284,8 @@ selector: "arguments",
243
284
  fn: function (){
244
285
  var self=this;
245
286
  return self.args || [];
246
- return self;}
287
+ ;
288
+ return self}
247
289
  }),
248
290
  smalltalk.CompiledMethod);
249
291
 
@@ -253,8 +295,15 @@ smalltalk.method({
253
295
  selector: "category",
254
296
  fn: function (){
255
297
  var self=this;
256
- return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
257
- return self;}
298
+ var $2,$1;
299
+ $2=smalltalk.send(self,"_basicAt_",["category"]);
300
+ if(($receiver = $2) == nil || $receiver == undefined){
301
+ $1="";
302
+ } else {
303
+ $1=$2;
304
+ };
305
+ return $1;
306
+ }
258
307
  }),
259
308
  smalltalk.CompiledMethod);
260
309
 
@@ -264,8 +313,8 @@ smalltalk.method({
264
313
  selector: "category:",
265
314
  fn: function (aString){
266
315
  var self=this;
267
- smalltalk.send(self, "_basicAt_put_", ["category", aString]);
268
- return self;}
316
+ smalltalk.send(self,"_basicAt_put_",["category",aString]);
317
+ return self}
269
318
  }),
270
319
  smalltalk.CompiledMethod);
271
320
 
@@ -275,8 +324,10 @@ smalltalk.method({
275
324
  selector: "fn",
276
325
  fn: function (){
277
326
  var self=this;
278
- return smalltalk.send(self, "_basicAt_", ["fn"]);
279
- return self;}
327
+ var $1;
328
+ $1=smalltalk.send(self,"_basicAt_",["fn"]);
329
+ return $1;
330
+ }
280
331
  }),
281
332
  smalltalk.CompiledMethod);
282
333
 
@@ -286,8 +337,8 @@ smalltalk.method({
286
337
  selector: "fn:",
287
338
  fn: function (aBlock){
288
339
  var self=this;
289
- smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
290
- return self;}
340
+ smalltalk.send(self,"_basicAt_put_",["fn",aBlock]);
341
+ return self}
291
342
  }),
292
343
  smalltalk.CompiledMethod);
293
344
 
@@ -297,8 +348,10 @@ smalltalk.method({
297
348
  selector: "messageSends",
298
349
  fn: function (){
299
350
  var self=this;
300
- return smalltalk.send(self, "_basicAt_", ["messageSends"]);
301
- return self;}
351
+ var $1;
352
+ $1=smalltalk.send(self,"_basicAt_",["messageSends"]);
353
+ return $1;
354
+ }
302
355
  }),
303
356
  smalltalk.CompiledMethod);
304
357
 
@@ -308,8 +361,23 @@ smalltalk.method({
308
361
  selector: "methodClass",
309
362
  fn: function (){
310
363
  var self=this;
311
- return smalltalk.send(self, "_basicAt_", ["methodClass"]);
312
- return self;}
364
+ var $1;
365
+ $1=smalltalk.send(self,"_basicAt_",["methodClass"]);
366
+ return $1;
367
+ }
368
+ }),
369
+ smalltalk.CompiledMethod);
370
+
371
+ smalltalk.addMethod(
372
+ "_protocol",
373
+ smalltalk.method({
374
+ selector: "protocol",
375
+ fn: function (){
376
+ var self=this;
377
+ var $1;
378
+ $1=smalltalk.send(self,"_category",[]);
379
+ return $1;
380
+ }
313
381
  }),
314
382
  smalltalk.CompiledMethod);
315
383
 
@@ -319,8 +387,10 @@ smalltalk.method({
319
387
  selector: "referencedClasses",
320
388
  fn: function (){
321
389
  var self=this;
322
- return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
323
- return self;}
390
+ var $1;
391
+ $1=smalltalk.send(self,"_basicAt_",["referencedClasses"]);
392
+ return $1;
393
+ }
324
394
  }),
325
395
  smalltalk.CompiledMethod);
326
396
 
@@ -330,8 +400,10 @@ smalltalk.method({
330
400
  selector: "selector",
331
401
  fn: function (){
332
402
  var self=this;
333
- return smalltalk.send(self, "_basicAt_", ["selector"]);
334
- return self;}
403
+ var $1;
404
+ $1=smalltalk.send(self,"_basicAt_",["selector"]);
405
+ return $1;
406
+ }
335
407
  }),
336
408
  smalltalk.CompiledMethod);
337
409
 
@@ -341,8 +413,8 @@ smalltalk.method({
341
413
  selector: "selector:",
342
414
  fn: function (aString){
343
415
  var self=this;
344
- smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
345
- return self;}
416
+ smalltalk.send(self,"_basicAt_put_",["selector",aString]);
417
+ return self}
346
418
  }),
347
419
  smalltalk.CompiledMethod);
348
420
 
@@ -352,8 +424,15 @@ smalltalk.method({
352
424
  selector: "source",
353
425
  fn: function (){
354
426
  var self=this;
355
- return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
356
- return self;}
427
+ var $2,$1;
428
+ $2=smalltalk.send(self,"_basicAt_",["source"]);
429
+ if(($receiver = $2) == nil || $receiver == undefined){
430
+ $1="";
431
+ } else {
432
+ $1=$2;
433
+ };
434
+ return $1;
435
+ }
357
436
  }),
358
437
  smalltalk.CompiledMethod);
359
438
 
@@ -363,8 +442,8 @@ smalltalk.method({
363
442
  selector: "source:",
364
443
  fn: function (aString){
365
444
  var self=this;
366
- smalltalk.send(self, "_basicAt_put_", ["source", aString]);
367
- return self;}
445
+ smalltalk.send(self,"_basicAt_put_",["source",aString]);
446
+ return self}
368
447
  }),
369
448
  smalltalk.CompiledMethod);
370
449
 
@@ -377,8 +456,8 @@ smalltalk.method({
377
456
  selector: "arguments",
378
457
  fn: function (){
379
458
  var self=this;
380
- return self['@arguments'];
381
- return self;}
459
+ return self["@arguments"];
460
+ }
382
461
  }),
383
462
  smalltalk.Message);
384
463
 
@@ -388,8 +467,8 @@ smalltalk.method({
388
467
  selector: "arguments:",
389
468
  fn: function (anArray){
390
469
  var self=this;
391
- (self['@arguments']=anArray);
392
- return self;}
470
+ self["@arguments"]=anArray;
471
+ return self}
393
472
  }),
394
473
  smalltalk.Message);
395
474
 
@@ -399,8 +478,16 @@ smalltalk.method({
399
478
  selector: "printString",
400
479
  fn: function (){
401
480
  var self=this;
402
- return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Message.superclass || nil)]);smalltalk.send($rec, "_nextPutAll_", ["("]);smalltalk.send($rec, "_nextPutAll_", [self['@selector']]);return smalltalk.send($rec, "_nextPutAll_", [")"]);})(aStream);})]);
403
- return self;}
481
+ var $2,$1;
482
+ $1=smalltalk.send((smalltalk.String || String),"_streamContents_",[(function(aStream){
483
+ smalltalk.send(aStream,"_nextPutAll_",[smalltalk.send(self,"_printString",[],smalltalk.Object)]);
484
+ smalltalk.send(aStream,"_nextPutAll_",["("]);
485
+ smalltalk.send(aStream,"_nextPutAll_",[self["@selector"]]);
486
+ $2=smalltalk.send(aStream,"_nextPutAll_",[")"]);
487
+ return $2;
488
+ })]);
489
+ return $1;
490
+ }
404
491
  }),
405
492
  smalltalk.Message);
406
493
 
@@ -410,8 +497,8 @@ smalltalk.method({
410
497
  selector: "selector",
411
498
  fn: function (){
412
499
  var self=this;
413
- return self['@selector'];
414
- return self;}
500
+ return self["@selector"];
501
+ }
415
502
  }),
416
503
  smalltalk.Message);
417
504
 
@@ -421,8 +508,8 @@ smalltalk.method({
421
508
  selector: "selector:",
422
509
  fn: function (aString){
423
510
  var self=this;
424
- (self['@selector']=aString);
425
- return self;}
511
+ self["@selector"]=aString;
512
+ return self}
426
513
  }),
427
514
  smalltalk.Message);
428
515
 
@@ -432,8 +519,10 @@ smalltalk.method({
432
519
  selector: "sendTo:",
433
520
  fn: function (anObject){
434
521
  var self=this;
435
- smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_send_to_arguments_", [smalltalk.send(self, "_selector", []), anObject, smalltalk.send(self, "_arguments", [])]);
436
- return self;}
522
+ var $1;
523
+ $1=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk),"_current",[]),"_send_to_arguments_",[smalltalk.send(self,"_selector",[]),anObject,smalltalk.send(self,"_arguments",[])]);
524
+ return $1;
525
+ }
437
526
  }),
438
527
  smalltalk.Message);
439
528
 
@@ -442,10 +531,16 @@ smalltalk.addMethod(
442
531
  "_selector_arguments_",
443
532
  smalltalk.method({
444
533
  selector: "selector:arguments:",
445
- fn: function (aString, anArray){
534
+ fn: function (aString,anArray){
446
535
  var self=this;
447
- return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
448
- return self;}
536
+ var $2,$3,$1;
537
+ $2=smalltalk.send(self,"_new",[]);
538
+ smalltalk.send($2,"_selector_",[aString]);
539
+ smalltalk.send($2,"_arguments_",[anArray]);
540
+ $3=smalltalk.send($2,"_yourself",[]);
541
+ $1=$3;
542
+ return $1;
543
+ }
449
544
  }),
450
545
  smalltalk.Message.klass);
451
546
 
@@ -457,8 +552,10 @@ smalltalk.method({
457
552
  selector: "asString",
458
553
  fn: function (){
459
554
  var self=this;
460
- return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [" >> "]), "__comma", [smalltalk.send(self, "_selector", [])]);
461
- return self;}
555
+ var $1;
556
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self,"_receiver",[]),"_class",[]),"_printString",[]),"__comma",[" >> "]),"__comma",[smalltalk.send(self,"_selector",[])]);
557
+ return $1;
558
+ }
462
559
  }),
463
560
  smalltalk.MethodContext);
464
561
 
@@ -469,7 +566,20 @@ selector: "home",
469
566
  fn: function (){
470
567
  var self=this;
471
568
  return self.homeContext;
472
- return self;}
569
+ ;
570
+ return self}
571
+ }),
572
+ smalltalk.MethodContext);
573
+
574
+ smalltalk.addMethod(
575
+ "_pc",
576
+ smalltalk.method({
577
+ selector: "pc",
578
+ fn: function (){
579
+ var self=this;
580
+ return self.pc;
581
+ ;
582
+ return self}
473
583
  }),
474
584
  smalltalk.MethodContext);
475
585
 
@@ -479,8 +589,10 @@ smalltalk.method({
479
589
  selector: "printString",
480
590
  fn: function (){
481
591
  var self=this;
482
- return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.MethodContext.superclass || nil), "__comma", ["("]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [")"]);
483
- return self;}
592
+ var $1;
593
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self,"_printString",[],smalltalk.Object),"__comma",["("]),"__comma",[smalltalk.send(self,"_asString",[])]),"__comma",[")"]);
594
+ return $1;
595
+ }
484
596
  }),
485
597
  smalltalk.MethodContext);
486
598
 
@@ -491,7 +603,8 @@ selector: "receiver",
491
603
  fn: function (){
492
604
  var self=this;
493
605
  return self.receiver;
494
- return self;}
606
+ ;
607
+ return self}
495
608
  }),
496
609
  smalltalk.MethodContext);
497
610
 
@@ -502,7 +615,8 @@ selector: "selector",
502
615
  fn: function (){
503
616
  var self=this;
504
617
  return smalltalk.convertSelector(self.selector);
505
- return self;}
618
+ ;
619
+ return self}
506
620
  }),
507
621
  smalltalk.MethodContext);
508
622
 
@@ -513,7 +627,8 @@ selector: "temps",
513
627
  fn: function (){
514
628
  var self=this;
515
629
  return self.temps;
516
- return self;}
630
+ ;
631
+ return self}
517
632
  }),
518
633
  smalltalk.MethodContext);
519
634