|
@@ -727,10 +727,15 @@ function SmalltalkMethodContext(home, setup) {
|
|
this.homeContext = home;
|
|
this.homeContext = home;
|
|
this.setup = setup || function() {};
|
|
this.setup = setup || function() {};
|
|
this.pc = 0;
|
|
this.pc = 0;
|
|
- this.locals = {};
|
|
|
|
- this.args = [];
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// Fallbacks
|
|
|
|
+SmalltalkMethodContext.prototype.args = [];
|
|
|
|
+SmalltalkMethodContext.prototype.locals = {};
|
|
|
|
+SmalltalkMethodContext.prototype.receiver = null;
|
|
|
|
+SmalltalkMethodContext.prototype.selector = null;
|
|
|
|
+SmalltalkMethodContext.prototype.lookupClass = null;
|
|
|
|
+
|
|
inherits(SmalltalkMethodContext, SmalltalkObject);
|
|
inherits(SmalltalkMethodContext, SmalltalkObject);
|
|
|
|
|
|
SmalltalkMethodContext.prototype.fill = function(receiver, selector, args, locals, lookupClass) {
|
|
SmalltalkMethodContext.prototype.fill = function(receiver, selector, args, locals, lookupClass) {
|
|
@@ -742,11 +747,8 @@ SmalltalkMethodContext.prototype.fill = function(receiver, selector, args, local
|
|
};
|
|
};
|
|
|
|
|
|
SmalltalkMethodContext.prototype.fillBlock = function(args, locals) {
|
|
SmalltalkMethodContext.prototype.fillBlock = function(args, locals) {
|
|
- this.receiver = null;
|
|
|
|
- this.selector = null;
|
|
|
|
this.args = args || [];
|
|
this.args = args || [];
|
|
this.locals = locals || {};
|
|
this.locals = locals || {};
|
|
- this.lookupClass = null;
|
|
|
|
};
|
|
};
|
|
|
|
|
|
SmalltalkMethodContext.prototype.init = function() {
|
|
SmalltalkMethodContext.prototype.init = function() {
|