mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-06 08:12:14 +00:00
Scans additional types again.
This commit is contained in:
parent
5c03d86d49
commit
f9b89c3e80
1 changed files with 10 additions and 12 deletions
|
|
@ -107,6 +107,7 @@ namespace Cosmos.IL2CPU {
|
||||||
if (xOpCode is ILOpCodes.OpMethod) {
|
if (xOpCode is ILOpCodes.OpMethod) {
|
||||||
QueueMethod(((ILOpCodes.OpMethod)xOpCode).Value);
|
QueueMethod(((ILOpCodes.OpMethod)xOpCode).Value);
|
||||||
} else if (xOpCode is ILOpCodes.OpType) {
|
} else if (xOpCode is ILOpCodes.OpType) {
|
||||||
|
QueueType(((ILOpCodes.OpType)xOpCode).Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
ConstructorInfo xCtor;
|
ConstructorInfo xCtor;
|
||||||
|
|
@ -116,8 +117,6 @@ namespace Cosmos.IL2CPU {
|
||||||
} else {
|
} else {
|
||||||
xCtor = mILOpsHi[xOpCodeVal & 0xFF];
|
xCtor = mILOpsHi[xOpCodeVal & 0xFF];
|
||||||
}
|
}
|
||||||
// TODO: Remove this if when all shortcut expansions are completed
|
|
||||||
if (xCtor != null) {
|
|
||||||
var xILOp = xCtor.Invoke(new object[] { xOpCode });
|
var xILOp = xCtor.Invoke(new object[] { xOpCode });
|
||||||
// What to pass to Execute method? Passing whole scanner is inappropriate
|
// What to pass to Execute method? Passing whole scanner is inappropriate
|
||||||
// Op needs info about branch targets for example
|
// Op needs info about branch targets for example
|
||||||
|
|
@ -130,7 +129,6 @@ namespace Cosmos.IL2CPU {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
protected void QueueMethod(MethodBase aMethod) {
|
protected void QueueMethod(MethodBase aMethod) {
|
||||||
if (!mMethodsSet.Contains(aMethod)) {
|
if (!mMethodsSet.Contains(aMethod)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue