mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
Improve IL interpreter. Ldobj knows what type it pushes.
This commit is contained in:
parent
bd93b5e272
commit
7c991e5ca6
1 changed files with 3 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ namespace Cosmos.IL2CPU.ILOpCodes {
|
||||||
case Code.Initobj:
|
case Code.Initobj:
|
||||||
StackPopTypes[0] = typeof(void*);
|
StackPopTypes[0] = typeof(void*);
|
||||||
return;
|
return;
|
||||||
|
case Code.Ldobj:
|
||||||
|
StackPushTypes[0] = Value;
|
||||||
|
break;
|
||||||
case Code.Ldelema:
|
case Code.Ldelema:
|
||||||
StackPopTypes[1] = Value.MakeArrayType();
|
StackPopTypes[1] = Value.MakeArrayType();
|
||||||
StackPushTypes[0] = typeof(void*);
|
StackPushTypes[0] = typeof(void*);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue