Browse Source

Revert "wrapping MethodContext before loading"

This reverts commit 59b62d4500551017fd36ce77542a338e56d1b5d8.
Herbert Vojčík 11 years ago
parent
commit
f3c905358f
1 changed files with 9 additions and 24 deletions
  1. 9 24
      support/boot.js

+ 9 - 24
support/boot.js

@@ -787,30 +787,16 @@ function PrimitivesBrik(brikz, st) {
 
 }
 
-function PrepareRuntimeBrik(brikz, st) {
-
-	brikz.ensure("root");
-
-	function SmalltalkMethodContext(home, setup) {
-		this.construct.apply(this, arguments);
-	}
-
-	inherits(SmalltalkMethodContext, SmalltalkObject);
-
-	this.__init__ = function () {
-		st.wrapClassName("MethodContext", "Kernel-Methods", SmalltalkMethodContext, st.Object, false);
-	};
-
-	this.MethodContext = SmalltalkMethodContext;
-}
-
 function RuntimeBrik(brikz, st) {
 
 	brikz.ensure("selectorConversion");
-	brikz.ensure("prepRuntime");
 	var nil = brikz.ensure("root").nil;
 
-	var SmalltalkMethodContext = brikz.prepRuntime.MethodContext;
+	function SmalltalkMethodContext(home, setup) {
+		this.homeContext = home;
+		this.setup       = setup || function() {};
+		this.pc          = 0;
+	}
 
 // Fallbacks
 	SmalltalkMethodContext.prototype.locals = {};
@@ -818,10 +804,10 @@ function RuntimeBrik(brikz, st) {
 	SmalltalkMethodContext.prototype.selector = null;
 	SmalltalkMethodContext.prototype.lookupClass = null;
 
-	SmalltalkMethodContext.prototype.construct  = function (home, setup) {
-		this.homeContext = home;
-		this.setup       = setup || function() {};
-		this.pc          = 0;
+	inherits(SmalltalkMethodContext, SmalltalkObject);
+
+	this.__init__ = function () {
+		st.wrapClassName("MethodContext", "Kernel-Methods", SmalltalkMethodContext, st.Object, false);
 	};
 
 	SmalltalkMethodContext.prototype.fill = function(receiver, selector, locals, lookupClass) {
@@ -1069,7 +1055,6 @@ brikz.classes = ClassesBrik;
 brikz.methods = MethodsBrik;
 brikz.stInit = SmalltalkInitBrik;
 brikz.augments = AugmentsBrik;
-brikz.prepRuntime = PrepareRuntimeBrik;
 
 brikz.rebuild();