mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-07 16:52:50 +00:00
This commit is contained in:
parent
b36d351023
commit
4067b02db9
1 changed files with 32 additions and 29 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue