Skip to content

Commit

Permalink
Introducing Val.SetObjNoRefc(..)
Browse files Browse the repository at this point in the history
  • Loading branch information
pachanga committed Dec 27, 2024
1 parent 725781e commit aa8e045
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vm/val.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,14 @@ public void SetObj(object o, IType type)
_obj = o;
_refc = o as IValRefcounted;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetObjNoRefc(object o, IType type)
{
Reset();
this.type = type;
_obj = o;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetObj(IValRefcounted o, IType type)
Expand Down

0 comments on commit aa8e045

Please sign in to comment.