1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081 |
- smalltalk.addPackage('Compiler-Interpreter', {});
- smalltalk.addClass('AIContext', smalltalk.NodeVisitor, ['outerContext', 'pc', 'locals', 'selector'], 'Compiler-Interpreter');
- smalltalk.addMethod(
- "_initializeFromMethodContext_",
- smalltalk.method({
- selector: "initializeFromMethodContext:",
- category: 'initialization',
- fn: function (aMethodContext){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- _st(self)._pc_(_st(aMethodContext)._pc());
- _st(self)._receiver_(_st(aMethodContext)._receiver());
- _st(self)._selector_(_st(aMethodContext)._selector());
- $1=_st(aMethodContext)._outerContext();
- if(($receiver = $1) == nil || $receiver == undefined){
- $1;
- } else {
- _st(self)._outerContext_(_st(_st(self)._class())._fromMethodContext_(_st(aMethodContext)._outerContext()));
- };
- _st(_st(aMethodContext)._locals())._keysAndValuesDo_((function(key,value){
- return smalltalk.withContext(function($ctx2) {
return _st(_st(self)._locals())._at_put_(key,value);
- }, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"initializeFromMethodContext:",{aMethodContext:aMethodContext}, smalltalk.AIContext)})},
- args: ["aMethodContext"],
- source: "initializeFromMethodContext: aMethodContext\x0a\x09self pc: aMethodContext pc.\x0a self receiver: aMethodContext receiver.\x0a self selector: aMethodContext selector.\x0a aMethodContext outerContext ifNotNil: [\x0a\x09\x09self outerContext: (self class fromMethodContext: aMethodContext outerContext) ].\x0a aMethodContext locals keysAndValuesDo: [ :key :value |\x0a \x09self locals at: key put: value ]\x0a ",
- messageSends: ["pc:", "pc", "receiver:", "receiver", "selector:", "selector", "ifNotNil:", "outerContext:", "fromMethodContext:", "outerContext", "class", "keysAndValuesDo:", "at:put:", "locals"],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_localAt_",
- smalltalk.method({
- selector: "localAt:",
- category: 'accessing',
- fn: function (aString){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(_st(self)._locals())._at_ifAbsent_(aString,(function(){
- return smalltalk.withContext(function($ctx2) {
return nil;
- }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"localAt:",{aString:aString}, smalltalk.AIContext)})},
- args: ["aString"],
- source: "localAt: aString\x0a\x09^ self locals at: aString ifAbsent: [ nil ]",
- messageSends: ["at:ifAbsent:", "locals"],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_localAt_put_",
- smalltalk.method({
- selector: "localAt:put:",
- category: 'accessing',
- fn: function (aString,anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(_st(self)._locals())._at_put_(aString,anObject);
- return self}, function($ctx1) {$ctx1.fill(self,"localAt:put:",{aString:aString,anObject:anObject}, smalltalk.AIContext)})},
- args: ["aString", "anObject"],
- source: "localAt: aString put: anObject\x0a\x09self locals at: aString put: anObject",
- messageSends: ["at:put:", "locals"],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_locals",
- smalltalk.method({
- selector: "locals",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $2,$1;
- $2=self["@locals"];
- if(($receiver = $2) == nil || $receiver == undefined){
- self["@locals"]=_st((smalltalk.Dictionary || Dictionary))._new();
- $1=self["@locals"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"locals",{}, smalltalk.AIContext)})},
- args: [],
- source: "locals\x0a\x09^ locals ifNil: [ locals := Dictionary new ]",
- messageSends: ["ifNil:", "new"],
- referencedClasses: ["Dictionary"]
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_outerContext",
- smalltalk.method({
- selector: "outerContext",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=self["@outerContext"];
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"outerContext",{}, smalltalk.AIContext)})},
- args: [],
- source: "outerContext\x0a\x09^ outerContext",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_outerContext_",
- smalltalk.method({
- selector: "outerContext:",
- category: 'accessing',
- fn: function (anAIContext){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
self["@outerContext"]=anAIContext;
- return self}, function($ctx1) {$ctx1.fill(self,"outerContext:",{anAIContext:anAIContext}, smalltalk.AIContext)})},
- args: ["anAIContext"],
- source: "outerContext: anAIContext\x0a\x09outerContext := anAIContext",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_pc",
- smalltalk.method({
- selector: "pc",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $2,$1;
- $2=self["@pc"];
- if(($receiver = $2) == nil || $receiver == undefined){
- self["@pc"]=(0);
- $1=self["@pc"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"pc",{}, smalltalk.AIContext)})},
- args: [],
- source: "pc\x0a\x09^ pc ifNil: [ pc := 0 ]",
- messageSends: ["ifNil:"],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_pc_",
- smalltalk.method({
- selector: "pc:",
- category: 'accessing',
- fn: function (anInteger){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
self["@pc"]=anInteger;
- return self}, function($ctx1) {$ctx1.fill(self,"pc:",{anInteger:anInteger}, smalltalk.AIContext)})},
- args: ["anInteger"],
- source: "pc: anInteger\x0a\x09pc := anInteger",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_receiver",
- smalltalk.method({
- selector: "receiver",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(self)._localAt_("self");
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"receiver",{}, smalltalk.AIContext)})},
- args: [],
- source: "receiver\x0a\x09^ self localAt: 'self'",
- messageSends: ["localAt:"],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addMethod(
- "_receiver_",
- smalltalk.method({
- selector: "receiver:",
- category: 'accessing',
- fn: function (anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._localAt_put_("self",anObject);
- return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{anObject:anObject}, smalltalk.AIContext)})},
- args: ["anObject"],
- source: "receiver: anObject\x0a\x09self localAt: 'self' put: anObject",
- messageSends: ["localAt:put:"],
- referencedClasses: []
- }),
- smalltalk.AIContext);
- smalltalk.addClass('ASTInterpreter', smalltalk.Object, ['currentNode', 'context', 'shouldReturn', 'result'], 'Compiler-Interpreter');
- smalltalk.ASTInterpreter.comment="ASTIntepreter is like a `NodeVisitor`, interpreting nodes one after each other.\x0aIt is built using Continuation Passing Style for stepping purposes."
- smalltalk.addMethod(
- "_assign_to_",
- smalltalk.method({
- selector: "assign:to:",
- category: 'private',
- fn: function (aNode,anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $2,$1;
- $2=_st(_st(aNode)._binding())._isInstanceVar();
- if(smalltalk.assert($2)){
- $1=_st(_st(_st(self)._context())._receiver())._instVarAt_put_(_st(aNode)._value(),anObject);
- } else {
- $1=_st(_st(self)._context())._localAt_put_(_st(aNode)._value(),anObject);
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"assign:to:",{aNode:aNode,anObject:anObject}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "anObject"],
- source: "assign: aNode to: anObject\x0a\x09^ aNode binding isInstanceVar \x0a \x09ifTrue: [ self context receiver instVarAt: aNode value put: anObject ]\x0a \x09ifFalse: [ self context localAt: aNode value put: anObject ]",
- messageSends: ["ifTrue:ifFalse:", "instVarAt:put:", "value", "receiver", "context", "localAt:put:", "isInstanceVar", "binding"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_context",
- smalltalk.method({
- selector: "context",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $2,$1;
- $2=self["@context"];
- if(($receiver = $2) == nil || $receiver == undefined){
- self["@context"]=_st((smalltalk.AIContext || AIContext))._new();
- $1=self["@context"];
- } else {
- $1=$2;
- };
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"context",{}, smalltalk.ASTInterpreter)})},
- args: [],
- source: "context\x0a\x09^ context ifNil: [ context := AIContext new ]",
- messageSends: ["ifNil:", "new"],
- referencedClasses: ["AIContext"]
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_context_",
- smalltalk.method({
- selector: "context:",
- category: 'accessing',
- fn: function (anAIContext){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
self["@context"]=anAIContext;
- return self}, function($ctx1) {$ctx1.fill(self,"context:",{anAIContext:anAIContext}, smalltalk.ASTInterpreter)})},
- args: ["anAIContext"],
- source: "context: anAIContext\x0a\x09context := anAIContext",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_continue_value_",
- smalltalk.method({
- selector: "continue:value:",
- category: 'private',
- fn: function (aBlock,anObject){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
self["@result"]=anObject;
- _st(aBlock)._value_(anObject);
- return self}, function($ctx1) {$ctx1.fill(self,"continue:value:",{aBlock:aBlock,anObject:anObject}, smalltalk.ASTInterpreter)})},
- args: ["aBlock", "anObject"],
- source: "continue: aBlock value: anObject\x0a\x09result := anObject.\x0a aBlock value: anObject",
- messageSends: ["value:"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_eval_",
- smalltalk.method({
- selector: "eval:",
- category: 'private',
- fn: function (aString){
- var self=this;
- var source,function_;
- return smalltalk.withContext(function($ctx1) {
var $1,$2,$3;
- source=_st((smalltalk.String || String))._streamContents_((function(str){
- return smalltalk.withContext(function($ctx2) {
_st(str)._nextPutAll_("(function(");
- _st(_st(_st(_st(self)._context())._locals())._keys())._do_separatedBy_((function(each){
- return smalltalk.withContext(function($ctx3) {
return _st(str)._nextPutAll_(each);
- }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}),(function(){
- return smalltalk.withContext(function($ctx3) {
return _st(str)._nextPutAll_(",");
- }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
- $1=str;
- _st($1)._nextPutAll_("){ return (function() {");
- _st($1)._nextPutAll_(aString);
- $2=_st($1)._nextPutAll_("})() })");
- return $2;
- }, function($ctx2) {$ctx2.fillBlock({str:str},$ctx1)})}));
- function_=_st(_st((smalltalk.Compiler || Compiler))._new())._eval_(source);
- $3=_st(function_)._valueWithPossibleArguments_(_st(_st(_st(self)._context())._locals())._values());
- return $3;
- }, function($ctx1) {$ctx1.fill(self,"eval:",{aString:aString,source:source,function_:function_}, smalltalk.ASTInterpreter)})},
- args: ["aString"],
- source: "eval: aString\x0a\x09\x22Evaluate aString as JS source inside an JS function. \x0a aString is not sandboxed.\x22\x0a \x0a | source function |\x0a \x0a source := String streamContents: [ :str |\x0a \x09str nextPutAll: '(function('.\x0a self context locals keys \x0a \x09do: [ :each | str nextPutAll: each ]\x0a \x09separatedBy: [ str nextPutAll: ',' ].\x0a str \x0a \x09nextPutAll: '){ return (function() {';\x0a \x09nextPutAll: aString;\x0a nextPutAll: '})() })' ].\x0a \x0a\x09function := Compiler new eval: source.\x0a \x0a\x09^ function valueWithPossibleArguments: self context locals values",
- messageSends: ["streamContents:", "nextPutAll:", "do:separatedBy:", "keys", "locals", "context", "eval:", "new", "valueWithPossibleArguments:", "values"],
- referencedClasses: ["String", "Compiler"]
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_initialize",
- smalltalk.method({
- selector: "initialize",
- category: 'initialization',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
- self["@shouldReturn"]=false;
- return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.ASTInterpreter)})},
- args: [],
- source: "initialize\x0a\x09super initialize.\x0a shouldReturn := false",
- messageSends: ["initialize"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpret_",
- smalltalk.method({
- selector: "interpret:",
- category: 'interpreting',
- fn: function (aNode){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
self["@shouldReturn"]=false;
- _st(self)._interpret_continue_(aNode,(function(value){
- return smalltalk.withContext(function($ctx2) {
self["@result"]=value;
- return self["@result"];
- }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpret:",{aNode:aNode}, smalltalk.ASTInterpreter)})},
- args: ["aNode"],
- source: "interpret: aNode\x0a\x09shouldReturn := false.\x0a self interpret: aNode continue: [ :value |\x0a \x09result := value ]",
- messageSends: ["interpret:continue:"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpret_continue_",
- smalltalk.method({
- selector: "interpret:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1,$2,$3;
- $1=self["@shouldReturn"];
- if(smalltalk.assert($1)){
- $2=self;
- return $2;
- };
- $3=_st(aNode)._isNode();
- if(smalltalk.assert($3)){
- self["@currentNode"]=aNode;
- self["@currentNode"];
- _st(self)._interpretNode_continue_(aNode,(function(value){
- return smalltalk.withContext(function($ctx2) {
return _st(self)._continue_value_(aBlock,value);
- }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
- } else {
- _st(self)._continue_value_(aBlock,aNode);
- };
- return self}, function($ctx1) {$ctx1.fill(self,"interpret:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpret: aNode continue: aBlock\x0a\x09shouldReturn ifTrue: [ ^ self ].\x0a\x0a\x09aNode isNode \x0a \x09ifTrue: [ \x09\x0a \x09currentNode := aNode.\x0a self interpretNode: aNode continue: [ :value |\x0a \x09\x09\x09\x09self continue: aBlock value: value] ]\x0a ifFalse: [ self continue: aBlock value: aNode ]",
- messageSends: ["ifTrue:", "ifTrue:ifFalse:", "interpretNode:continue:", "continue:value:", "isNode"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretAll_continue_",
- smalltalk.method({
- selector: "interpretAll:continue:",
- category: 'private',
- fn: function (aCollection,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpretAll_continue_result_(aCollection,aBlock,_st((smalltalk.OrderedCollection || OrderedCollection))._new());
- return self}, function($ctx1) {$ctx1.fill(self,"interpretAll:continue:",{aCollection:aCollection,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aCollection", "aBlock"],
- source: "interpretAll: aCollection continue: aBlock\x0a\x09self \x0a \x09interpretAll: aCollection \x0a continue: aBlock \x0a result: OrderedCollection new",
- messageSends: ["interpretAll:continue:result:", "new"],
- referencedClasses: ["OrderedCollection"]
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretAll_continue_result_",
- smalltalk.method({
- selector: "interpretAll:continue:result:",
- category: 'private',
- fn: function (nodes,aBlock,aCollection){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(nodes)._isEmpty();
- if(smalltalk.assert($1)){
- _st(aBlock)._value_(aCollection);
- } else {
- _st(self)._interpret_continue_(_st(nodes)._first(),(function(value){
- return smalltalk.withContext(function($ctx2) {
return _st(self)._interpretAll_continue_result_(_st(nodes)._allButFirst(),aBlock,_st(aCollection).__comma([value]));
- }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
- };
- return self}, function($ctx1) {$ctx1.fill(self,"interpretAll:continue:result:",{nodes:nodes,aBlock:aBlock,aCollection:aCollection}, smalltalk.ASTInterpreter)})},
- args: ["nodes", "aBlock", "aCollection"],
- source: "interpretAll: nodes continue: aBlock result: aCollection\x0a\x09nodes isEmpty \x0a \x09ifTrue: [ aBlock value: aCollection ]\x0a \x09ifFalse: [\x0a \x09\x09self interpret: nodes first continue: [:value |\x0a \x09\x09\x09self \x0a \x09interpretAll: nodes allButFirst \x0a continue: aBlock\x0a \x09\x09\x09\x09\x09result: aCollection, { value } ] ]",
- messageSends: ["ifTrue:ifFalse:", "value:", "interpret:continue:", "first", "interpretAll:continue:result:", "allButFirst", ",", "isEmpty"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretAssignmentNode_continue_",
- smalltalk.method({
- selector: "interpretAssignmentNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpret_continue_(_st(aNode)._right(),(function(value){
- return smalltalk.withContext(function($ctx2) {
return _st(self)._continue_value_(aBlock,_st(self)._assign_to_(_st(aNode)._left(),value));
- }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretAssignmentNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretAssignmentNode: aNode continue: aBlock\x0a\x09self interpret: aNode right continue: [ :value |\x0a \x09self \x0a \x09continue: aBlock\x0a value: (self assign: aNode left to: value) ]",
- messageSends: ["interpret:continue:", "right", "continue:value:", "assign:to:", "left"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretBlockNode_continue_",
- smalltalk.method({
- selector: "interpretBlockNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1,$2;
- _st(self)._continue_value_(aBlock,(function(){
- return smalltalk.withContext(function($ctx2) {
$1=self;
- _st($1)._interpret_(_st(_st(aNode)._nodes())._first());
- $2=_st($1)._result();
- return $2;
- }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretBlockNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretBlockNode: aNode continue: aBlock\x0a\x09\x22TODO: Context should be set\x22\x0a \x0a self \x0a \x09continue: aBlock \x0a value: [ self interpret: aNode nodes first; result ]",
- messageSends: ["continue:value:", "interpret:", "first", "nodes", "result"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretBlockSequenceNode_continue_",
- smalltalk.method({
- selector: "interpretBlockSequenceNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpretSequenceNode_continue_(aNode,aBlock);
- return self}, function($ctx1) {$ctx1.fill(self,"interpretBlockSequenceNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretBlockSequenceNode: aNode continue: aBlock\x0a\x09self interpretSequenceNode: aNode continue: aBlock",
- messageSends: ["interpretSequenceNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretCascadeNode_continue_",
- smalltalk.method({
- selector: "interpretCascadeNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpret_continue_(_st(aNode)._receiver(),(function(receiver){
- return smalltalk.withContext(function($ctx2) {
_st(_st(aNode)._nodes())._do_((function(each){
- return smalltalk.withContext(function($ctx3) {
return _st(each)._receiver_(receiver);
- }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
- return _st(self)._interpretAll_continue_(_st(_st(aNode)._nodes())._allButLast(),(function(){
- return smalltalk.withContext(function($ctx3) {
return _st(self)._interpret_continue_(_st(_st(aNode)._nodes())._last(),(function(val){
- return smalltalk.withContext(function($ctx4) {
return _st(self)._continue_value_(aBlock,val);
- }, function($ctx4) {$ctx4.fillBlock({val:val},$ctx1)})}));
- }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
- }, function($ctx2) {$ctx2.fillBlock({receiver:receiver},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretCascadeNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretCascadeNode: aNode continue: aBlock\x0a\x09\x22TODO: Handle super sends\x22\x0a\x09\x0a self interpret: aNode receiver continue: [ :receiver |\x0a\x09\x09\x22Only interpret the receiver once\x22\x0a aNode nodes do: [ :each | each receiver: receiver ].\x0a \x0a \x09self \x0a \x09interpretAll: aNode nodes allButLast\x0a \x09\x09continue: [\x0a \x09self \x0a \x09interpret: aNode nodes last\x0a \x09continue: [ :val | self continue: aBlock value: val ] ] ]",
- messageSends: ["interpret:continue:", "receiver", "do:", "receiver:", "nodes", "interpretAll:continue:", "allButLast", "last", "continue:value:"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretClassReferenceNode_continue_",
- smalltalk.method({
- selector: "interpretClassReferenceNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._continue_value_(aBlock,_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._at_(_st(aNode)._value()));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretClassReferenceNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretClassReferenceNode: aNode continue: aBlock\x0a\x09self continue: aBlock value: (Smalltalk current at: aNode value)",
- messageSends: ["continue:value:", "at:", "value", "current"],
- referencedClasses: ["Smalltalk"]
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretDynamicArrayNode_continue_",
- smalltalk.method({
- selector: "interpretDynamicArrayNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
- return smalltalk.withContext(function($ctx2) {
return _st(self)._continue_value_(aBlock,array);
- }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretDynamicArrayNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretDynamicArrayNode: aNode continue: aBlock\x0a\x09self interpretAll: aNode nodes continue: [ :array |\x0a \x09self \x0a \x09continue: aBlock\x0a\x09\x09\x09value: array ]",
- messageSends: ["interpretAll:continue:", "nodes", "continue:value:"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretDynamicDictionaryNode_continue_",
- smalltalk.method({
- selector: "interpretDynamicDictionaryNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
- var hashedCollection;
- return smalltalk.withContext(function($ctx2) {
hashedCollection=_st((smalltalk.HashedCollection || HashedCollection))._new();
- hashedCollection;
- _st(array)._do_((function(each){
- return smalltalk.withContext(function($ctx3) {
return _st(hashedCollection)._add_(each);
- }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
- return _st(self)._continue_value_(aBlock,hashedCollection);
- }, function($ctx2) {$ctx2.fillBlock({array:array,hashedCollection:hashedCollection},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretDynamicDictionaryNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretDynamicDictionaryNode: aNode continue: aBlock\x0a self interpretAll: aNode nodes continue: [ :array | | hashedCollection |\x0a \x09hashedCollection := HashedCollection new.\x0a array do: [ :each | hashedCollection add: each ].\x0a self \x09\x0a \x09continue: aBlock\x0a value: hashedCollection ]",
- messageSends: ["interpretAll:continue:", "nodes", "new", "do:", "add:", "continue:value:"],
- referencedClasses: ["HashedCollection"]
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretJSStatementNode_continue_",
- smalltalk.method({
- selector: "interpretJSStatementNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
self["@shouldReturn"]=true;
- _st(self)._continue_value_(aBlock,_st(self)._eval_(_st(aNode)._source()));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretJSStatementNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretJSStatementNode: aNode continue: aBlock\x0a\x09shouldReturn := true.\x0a\x09self continue: aBlock value: (self eval: aNode source)",
- messageSends: ["continue:value:", "eval:", "source"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretMethodNode_continue_",
- smalltalk.method({
- selector: "interpretMethodNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
- return smalltalk.withContext(function($ctx2) {
return _st(self)._continue_value_(aBlock,_st(array)._first());
- }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretMethodNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretMethodNode: aNode continue: aBlock\x0a\x09self interpretAll: aNode nodes continue: [ :array |\x0a \x09self continue: aBlock value: array first ]",
- messageSends: ["interpretAll:continue:", "nodes", "continue:value:", "first"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretNode_continue_",
- smalltalk.method({
- selector: "interpretNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(aNode)._interpreter_continue_(self,aBlock);
- return self}, function($ctx1) {$ctx1.fill(self,"interpretNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretNode: aNode continue: aBlock\x0a aNode interpreter: self continue: aBlock",
- messageSends: ["interpreter:continue:"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretReturnNode_continue_",
- smalltalk.method({
- selector: "interpretReturnNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpret_continue_(_st(_st(aNode)._nodes())._first(),(function(value){
- return smalltalk.withContext(function($ctx2) {
self["@shouldReturn"]=true;
- self["@shouldReturn"];
- return _st(self)._continue_value_(aBlock,value);
- }, function($ctx2) {$ctx2.fillBlock({value:value},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretReturnNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretReturnNode: aNode continue: aBlock\x0a self interpret: aNode nodes first continue: [ :value |\x0a \x09shouldReturn := true.\x0a\x09\x09self continue: aBlock value: value ]",
- messageSends: ["interpret:continue:", "first", "nodes", "continue:value:"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretSendNode_continue_",
- smalltalk.method({
- selector: "interpretSendNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpret_continue_(_st(aNode)._receiver(),(function(receiver){
- return smalltalk.withContext(function($ctx2) {
return _st(self)._messageFromSendNode_do_(aNode,(function(message){
- return smalltalk.withContext(function($ctx3) {
_st(_st(self)._context())._pc_(_st(_st(_st(self)._context())._pc()).__plus((1)));
- return _st(self)._continue_value_(aBlock,_st(message)._sendTo_(receiver));
- }, function($ctx3) {$ctx3.fillBlock({message:message},$ctx1)})}));
- }, function($ctx2) {$ctx2.fillBlock({receiver:receiver},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretSendNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretSendNode: aNode continue: aBlock\x0a\x09\x22TODO: Handle super sends\x22\x0a \x0a self interpret: aNode receiver continue: [ :receiver |\x0a \x09self messageFromSendNode: aNode do: [ :message |\x0a \x09self context pc: self context pc + 1.\x0a \x09self \x0a \x09continue: aBlock \x0a value: (message sendTo: receiver) ] ]",
- messageSends: ["interpret:continue:", "receiver", "messageFromSendNode:do:", "pc:", "+", "pc", "context", "continue:value:", "sendTo:"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretSequenceNode_continue_",
- smalltalk.method({
- selector: "interpretSequenceNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._interpretAll_continue_(_st(aNode)._nodes(),(function(array){
- return smalltalk.withContext(function($ctx2) {
return _st(self)._continue_value_(aBlock,_st(array)._last());
- }, function($ctx2) {$ctx2.fillBlock({array:array},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"interpretSequenceNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretSequenceNode: aNode continue: aBlock\x0a\x09self interpretAll: aNode nodes continue: [ :array |\x0a \x09self continue: aBlock value: array last ]",
- messageSends: ["interpretAll:continue:", "nodes", "continue:value:", "last"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretValueNode_continue_",
- smalltalk.method({
- selector: "interpretValueNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self)._continue_value_(aBlock,_st(aNode)._value());
- return self}, function($ctx1) {$ctx1.fill(self,"interpretValueNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretValueNode: aNode continue: aBlock\x0a\x09self continue: aBlock value: aNode value",
- messageSends: ["continue:value:", "value"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_interpretVariableNode_continue_",
- smalltalk.method({
- selector: "interpretVariableNode:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1,$2,$4,$3;
- $1=self;
- $2=aBlock;
- $4=_st(_st(aNode)._binding())._isInstanceVar();
- if(smalltalk.assert($4)){
- $3=_st(_st(_st(self)._context())._receiver())._instVarAt_(_st(aNode)._value());
- } else {
- $3=_st(_st(self)._context())._localAt_(_st(aNode)._value());
- };
- _st($1)._continue_value_($2,$3);
- return self}, function($ctx1) {$ctx1.fill(self,"interpretVariableNode:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aNode", "aBlock"],
- source: "interpretVariableNode: aNode continue: aBlock\x0a self \x0a \x09continue: aBlock\x0a value: (aNode binding isInstanceVar\x0a\x09\x09\x09ifTrue: [ self context receiver instVarAt: aNode value ]\x0a\x09\x09\x09ifFalse: [ self context localAt: aNode value ])",
- messageSends: ["continue:value:", "ifTrue:ifFalse:", "instVarAt:", "value", "receiver", "context", "localAt:", "isInstanceVar", "binding"],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_messageFromSendNode_do_",
- smalltalk.method({
- selector: "messageFromSendNode:do:",
- category: 'private',
- fn: function (aSendNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1,$2;
- _st(self)._interpretAll_continue_(_st(aSendNode)._arguments(),(function(args){
- return smalltalk.withContext(function($ctx2) {
$1=_st((smalltalk.Message || Message))._new();
- _st($1)._selector_(_st(aSendNode)._selector());
- _st($1)._arguments_(args);
- $2=_st($1)._yourself();
- return _st(aBlock)._value_($2);
- }, function($ctx2) {$ctx2.fillBlock({args:args},$ctx1)})}));
- return self}, function($ctx1) {$ctx1.fill(self,"messageFromSendNode:do:",{aSendNode:aSendNode,aBlock:aBlock}, smalltalk.ASTInterpreter)})},
- args: ["aSendNode", "aBlock"],
- source: "messageFromSendNode: aSendNode do: aBlock\x0a\x09self interpretAll: aSendNode arguments continue: [ :args |\x0a \x09aBlock value: (Message new\x0a \x09\x09selector: aSendNode selector;\x0a \x09arguments: args;\x0a \x09yourself) ]",
- messageSends: ["interpretAll:continue:", "arguments", "value:", "selector:", "selector", "new", "arguments:", "yourself"],
- referencedClasses: ["Message"]
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addMethod(
- "_result",
- smalltalk.method({
- selector: "result",
- category: 'accessing',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=self["@result"];
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"result",{}, smalltalk.ASTInterpreter)})},
- args: [],
- source: "result\x0a\x09^ result",
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.ASTInterpreter);
- smalltalk.addClass('ASTDebugger', smalltalk.ASTInterpreter, ['continuation'], 'Compiler-Interpreter');
- smalltalk.addMethod(
- "_initialize",
- smalltalk.method({
- selector: "initialize",
- category: 'initialization',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
smalltalk.ASTInterpreter.fn.prototype._initialize.apply(_st(self), []);
- self["@continuation"]=(function(){
- return smalltalk.withContext(function($ctx2) {
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
- return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.ASTDebugger)})},
- args: [],
- source: "initialize\x0a\x09super initialize.\x0a continuation := [ ]",
- messageSends: ["initialize"],
- referencedClasses: []
- }),
- smalltalk.ASTDebugger);
- smalltalk.addMethod(
- "_interpret_continue_",
- smalltalk.method({
- selector: "interpret:continue:",
- category: 'interpreting',
- fn: function (aNode,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
self["@continuation"]=(function(){
- return smalltalk.withContext(function($ctx2) {
return smalltalk.ASTInterpreter.fn.prototype._interpret_continue_.apply(_st(self), [aNode,aBlock]);
- }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
- return self}, function($ctx1) {$ctx1.fill(self,"interpret:continue:",{aNode:aNode,aBlock:aBlock}, smalltalk.ASTDebugger)})},
- args: ["aNode", "aBlock"],
- source: "interpret: aNode continue: aBlock\x0a\x09continuation := [ super interpret: aNode continue: aBlock ]",
- messageSends: ["interpret:continue:"],
- referencedClasses: []
- }),
- smalltalk.ASTDebugger);
- smalltalk.addMethod(
- "_stepOver",
- smalltalk.method({
- selector: "stepOver",
- category: 'stepping',
- fn: function (){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
_st(self["@continuation"])._value();
- return self}, function($ctx1) {$ctx1.fill(self,"stepOver",{}, smalltalk.ASTDebugger)})},
- args: [],
- source: "stepOver\x0a\x09continuation value",
- messageSends: ["value"],
- referencedClasses: []
- }),
- smalltalk.ASTDebugger);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.Node)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretNode: self continue: aBlock",
- messageSends: ["interpretNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.Node);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretAssignmentNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.AssignmentNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretAssignmentNode: self continue: aBlock",
- messageSends: ["interpretAssignmentNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.AssignmentNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretBlockNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.BlockNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretBlockNode: self continue: aBlock",
- messageSends: ["interpretBlockNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.BlockNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretCascadeNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.CascadeNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretCascadeNode: self continue: aBlock",
- messageSends: ["interpretCascadeNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.CascadeNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretDynamicArrayNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.DynamicArrayNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretDynamicArrayNode: self continue: aBlock",
- messageSends: ["interpretDynamicArrayNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.DynamicArrayNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretDynamicDictionaryNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.DynamicDictionaryNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretDynamicDictionaryNode: self continue: aBlock",
- messageSends: ["interpretDynamicDictionaryNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.DynamicDictionaryNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretJSStatementNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.JSStatementNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretJSStatementNode: self continue: aBlock",
- messageSends: ["interpretJSStatementNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.JSStatementNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretMethodNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.MethodNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretMethodNode: self continue: aBlock",
- messageSends: ["interpretMethodNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.MethodNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretReturnNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.ReturnNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretReturnNode: self continue: aBlock",
- messageSends: ["interpretReturnNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.ReturnNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretSendNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.SendNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretSendNode: self continue: aBlock",
- messageSends: ["interpretSendNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.SendNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretSequenceNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.SequenceNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretSequenceNode: self continue: aBlock",
- messageSends: ["interpretSequenceNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.SequenceNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretBlockSequenceNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.BlockSequenceNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretBlockSequenceNode: self continue: aBlock",
- messageSends: ["interpretBlockSequenceNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.BlockSequenceNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretValueNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.ValueNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretValueNode: self continue: aBlock",
- messageSends: ["interpretValueNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.ValueNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretVariableNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.VariableNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretVariableNode: self continue: aBlock",
- messageSends: ["interpretVariableNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.VariableNode);
- smalltalk.addMethod(
- "_interpreter_continue_",
- smalltalk.method({
- selector: "interpreter:continue:",
- category: '*Compiler-Interpreter',
- fn: function (anInterpreter,aBlock){
- var self=this;
- return smalltalk.withContext(function($ctx1) {
var $1;
- $1=_st(anInterpreter)._interpretClassReferenceNode_continue_(self,aBlock);
- return $1;
- }, function($ctx1) {$ctx1.fill(self,"interpreter:continue:",{anInterpreter:anInterpreter,aBlock:aBlock}, smalltalk.ClassReferenceNode)})},
- args: ["anInterpreter", "aBlock"],
- source: "interpreter: anInterpreter continue: aBlock\x0a\x09^ anInterpreter interpretClassReferenceNode: self continue: aBlock",
- messageSends: ["interpretClassReferenceNode:continue:"],
- referencedClasses: []
- }),
- smalltalk.ClassReferenceNode);
|