Skip to content

Commit

Permalink
Fixed issue 114 and recompiled all js files
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasPetton committed Jan 15, 2012
1 parent 1c4d355 commit 4867b86
Show file tree
Hide file tree
Showing 16 changed files with 978 additions and 988 deletions.
28 changes: 14 additions & 14 deletions js/Benchfib.deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ smalltalk.addPackage('Benchfib', {});
smalltalk.addClass('Benchfib', smalltalk.Object, [], 'Benchfib');

smalltalk.addMethod(
'_main',
unescape('_main'),
smalltalk.method({
selector: 'main',
selector: unescape('main'),
fn: function (){
var self=this;
var result=nil;
Expand All @@ -16,9 +16,9 @@ smalltalk.Benchfib.klass);


smalltalk.addMethod(
'_benchFib',
unescape('_benchFib'),
smalltalk.method({
selector: 'benchFib',
selector: unescape('benchFib'),
fn: function (){
var self=this;
return ((($receiver = self < (2)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (1);})() : (function(){return ((($receiver = ((($receiver = smalltalk.send(self - (1), "_benchFib", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(self - (2), "_benchFib", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(self - (2), "_benchFib", [])]))).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (1);}), (function(){return ((($receiver = ((($receiver = smalltalk.send(self - (1), "_benchFib", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(self - (2), "_benchFib", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(self - (2), "_benchFib", [])]))).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})]));
Expand All @@ -27,9 +27,9 @@ return self;}
smalltalk.Number);

smalltalk.addMethod(
'_benchmark',
unescape('_benchmark'),
smalltalk.method({
selector: 'benchmark',
selector: unescape('benchmark'),
fn: function (){
var self=this;
var size=nil;
Expand All @@ -45,9 +45,9 @@ return self;}
smalltalk.Number);

smalltalk.addMethod(
'_tinyBenchmarks',
unescape('_tinyBenchmarks'),
smalltalk.method({
selector: 'tinyBenchmarks',
selector: unescape('tinyBenchmarks'),
fn: function (){
var self=this;
var t1=nil;
Expand All @@ -65,9 +65,9 @@ return self;}
smalltalk.Number);

smalltalk.addMethod(
'_jsbenchFib',
unescape('_jsbenchFib'),
smalltalk.method({
selector: 'jsbenchFib',
selector: unescape('jsbenchFib'),
fn: function (){
var self=this;
if (this < 2) {
Expand All @@ -79,9 +79,9 @@ return self;}
smalltalk.Number);

smalltalk.addMethod(
'_jsbenchmark',
unescape('_jsbenchmark'),
smalltalk.method({
selector: 'jsbenchmark',
selector: unescape('jsbenchmark'),
fn: function (){
var self=this;

Expand Down Expand Up @@ -111,9 +111,9 @@ return self;}
smalltalk.Number);

smalltalk.addMethod(
'_jstinyBenchmarks',
unescape('_jstinyBenchmarks'),
smalltalk.method({
selector: 'jstinyBenchmarks',
selector: unescape('jstinyBenchmarks'),
fn: function (){
var self=this;
var t1=nil;
Expand Down
598 changes: 299 additions & 299 deletions js/Compiler.deploy.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions js/Compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,11 @@ selector: unescape('exportMethod%3Aof%3Aon%3A'),
category: 'private',
fn: function (aMethod, aClass, aStream){
var self=this;
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20%27"), "__comma", [smalltalk.send(aMethod, "_selector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);
return self;},
args: ["aMethod", "aClass", "aStream"],
source: unescape('exportMethod%3A%20aMethod%20of%3A%20aClass%20on%3A%20aStream%0A%09aStream%20%0A%09%09nextPutAll%3A%20%27smalltalk.addMethod%28%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27%27%27%27%2C%20aMethod%20selector%20asSelector%2C%20%27%27%27%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27smalltalk.method%28%7B%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27selector%3A%20%27%27%27%2C%20aMethod%20selector%2C%20%27%27%27%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27fn%3A%20%27%2C%20aMethod%20fn%20compiledSource%3Blf%3B%0A%09%09nextPutAll%3A%20%27%7D%29%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27smalltalk.%27%2C%20%28self%20classNameFor%3A%20aClass%29%3B%0A%09%09nextPutAll%3A%20%27%29%3B%27%3Blf%3Blf'),
messageSends: ["nextPutAll:", "lf", unescape("%2C"), "asSelector", "selector", "compiledSource", "fn", "classNameFor:"],
source: unescape('exportMethod%3A%20aMethod%20of%3A%20aClass%20on%3A%20aStream%0A%09aStream%20%0A%09%09nextPutAll%3A%20%27smalltalk.addMethod%28%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27unescape%28%27%27%27%2C%20aMethod%20selector%20asSelector%20escaped%2C%20%27%27%27%29%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27smalltalk.method%28%7B%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27selector%3A%20unescape%28%27%27%27%2C%20aMethod%20selector%20escaped%2C%20%27%27%27%29%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27fn%3A%20%27%2C%20aMethod%20fn%20compiledSource%3Blf%3B%0A%09%09nextPutAll%3A%20%27%7D%29%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27smalltalk.%27%2C%20%28self%20classNameFor%3A%20aClass%29%3B%0A%09%09nextPutAll%3A%20%27%29%3B%27%3Blf%3Blf'),
messageSends: ["nextPutAll:", "lf", unescape("%2C"), "escaped", "asSelector", "selector", "compiledSource", "fn", "classNameFor:"],
referencedClasses: []
}),
smalltalk.StrippedExporter);
Expand Down
16 changes: 8 additions & 8 deletions js/Examples.deploy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
smalltalk.addPackage('Examples', {});
smalltalk.addClass('Counter', smalltalk.Widget, ['count', 'header'], 'Examples');
smalltalk.addMethod(
'_increase',
unescape('_increase'),
smalltalk.method({
selector: 'increase',
selector: unescape('increase'),
fn: function (){
var self=this;
(self['@count']=((($receiver = self['@count']).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
Expand All @@ -13,9 +13,9 @@ return self;}
smalltalk.Counter);

smalltalk.addMethod(
'_decrease',
unescape('_decrease'),
smalltalk.method({
selector: 'decrease',
selector: unescape('decrease'),
fn: function (){
var self=this;
(self['@count']=((($receiver = self['@count']).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])));
Expand All @@ -25,9 +25,9 @@ return self;}
smalltalk.Counter);

smalltalk.addMethod(
'_initialize',
unescape('_initialize'),
smalltalk.method({
selector: 'initialize',
selector: unescape('initialize'),
fn: function (){
var self=this;
smalltalk.send(self, "_initialize", [], smalltalk.Widget);
Expand All @@ -37,9 +37,9 @@ return self;}
smalltalk.Counter);

smalltalk.addMethod(
'_renderOn_',
unescape('_renderOn_'),
smalltalk.method({
selector: 'renderOn:',
selector: unescape('renderOn%3A'),
fn: function (html){
var self=this;
(self['@header']=(function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(self['@count'], "_asString", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_h1", [])));
Expand Down
Loading

0 comments on commit 4867b86

Please sign in to comment.