Improve IL interpreter. Ldobj knows what type it pushes.

This commit is contained in:
Matthijs ter Woord 2015-06-07 17:17:16 +02:00
parent bd93b5e272
commit 7c991e5ca6

View file

@ -97,6 +97,9 @@ namespace Cosmos.IL2CPU.ILOpCodes {
case Code.Initobj:
StackPopTypes[0] = typeof(void*);
return;
case Code.Ldobj:
StackPushTypes[0] = Value;
break;
case Code.Ldelema:
StackPopTypes[1] = Value.MakeArrayType();
StackPushTypes[0] = typeof(void*);