mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +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:
|
||||
StackPopTypes[0] = typeof(void*);
|
||||
return;
|
||||
case Code.Ldobj:
|
||||
StackPushTypes[0] = Value;
|
||||
break;
|
||||
case Code.Ldelema:
|
||||
StackPopTypes[1] = Value.MakeArrayType();
|
||||
StackPushTypes[0] = typeof(void*);
|
||||
|
|
|
|||
Loading…
Reference in a new issue