This commit is contained in:
mterwoord_cp 2009-09-13 13:18:24 +00:00
parent b36d351023
commit 4067b02db9

View file

@ -182,15 +182,17 @@ namespace Cosmos.IL2CPU {
if (xItem is MethodBase) { if (xItem is MethodBase) {
var xMethod = (MethodBase)xItem; var xMethod = (MethodBase)xItem;
//if (xMethod.Type != MethodInfo.TypeEnum.NeedsPlug) { //if (xMethod.Type != MethodInfo.TypeEnum.NeedsPlug) {
// ScanMethod(xMethod); // mAsmblr.ProcessMethod(xMethod);
//} else { //} else {
// // todo: make this nicer // // todo: make this nicer
// // methods will call the old name, while it's not emitted. that's why we emit a "forwarding label" here. // // methods will call the old name, while it's not emitted. that's why we emit a "forwarding label" here.
// mAsmblr.GenerateMethodForward(xMethod, xMethod.PlugMethod); // mAsmblr.GenerateMethodForward(xMethod, xMethod.PlugMethod);
} //}
//mAsmblr.ProcessMethod(xMethod,
} }
// mAsmblr.GenerateVMTCode(mTypes, mTypesSet, mKnownMethods); // mAsmblr.GenerateVMTCode(mTypes, mTypesSet, mKnownMethods);
} }
}
public void Dispose() { public void Dispose() {
if (mLogEnabled) { if (mLogEnabled) {
@ -383,6 +385,7 @@ namespace Cosmos.IL2CPU {
Queue(xOpField.Value.DeclaringType, aMethod, "OpCode Value"); Queue(xOpField.Value.DeclaringType, aMethod, "OpCode Value");
if (xOpField.Value.IsStatic) { if (xOpField.Value.IsStatic) {
//TODO: Why do we add static fields, but not instance? //TODO: Why do we add static fields, but not instance?
// AW: instance fields are "added" always, as part of a type, but for static fields, we need to emit a datamember
// TODO: Add fields // TODO: Add fields
} }
} }