Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ValueTypeCopyInstruction.cs
Go to the documentation of this file.
1
using
System.Runtime.CompilerServices
;
2
3
namespace
System.Linq.Expressions.Interpreter
;
4
5
internal
sealed
class
ValueTypeCopyInstruction
:
Instruction
6
{
7
public
static
readonly
ValueTypeCopyInstruction
Instruction
=
new
ValueTypeCopyInstruction
();
8
9
public
override
int
ConsumedStack
=> 1;
10
11
public
override
int
ProducedStack
=> 1;
12
13
public
override
string
InstructionName
=>
"ValueTypeCopy"
;
14
15
public
override
int
Run
(
InterpretedFrame
frame)
16
{
17
object
obj
= frame.
Pop
();
18
frame.
Push
((
obj
==
null
) ?
obj
:
RuntimeHelpers
.
GetObjectValue
(
obj
));
19
return
1;
20
}
21
}
System.Linq.Expressions.Interpreter.Instruction
Definition
Instruction.cs:6
System.Linq.Expressions.Interpreter.InterpretedFrame.Pop
object Pop()
Definition
InterpretedFrame.cs:90
System.Linq.Expressions.Interpreter.InterpretedFrame.Push
void Push(object value)
Definition
InterpretedFrame.cs:55
System.Linq.Expressions.Interpreter.InterpretedFrame
Definition
InterpretedFrame.cs:7
System.Linq.Expressions.Interpreter.ValueTypeCopyInstruction.InstructionName
override string InstructionName
Definition
ValueTypeCopyInstruction.cs:13
System.Linq.Expressions.Interpreter.ValueTypeCopyInstruction.ConsumedStack
override int ConsumedStack
Definition
ValueTypeCopyInstruction.cs:9
System.Linq.Expressions.Interpreter.ValueTypeCopyInstruction.Run
override int Run(InterpretedFrame frame)
Definition
ValueTypeCopyInstruction.cs:15
System.Linq.Expressions.Interpreter.ValueTypeCopyInstruction.ProducedStack
override int ProducedStack
Definition
ValueTypeCopyInstruction.cs:11
System.Linq.Expressions.Interpreter.ValueTypeCopyInstruction
Definition
ValueTypeCopyInstruction.cs:6
System.Runtime.CompilerServices.RuntimeHelpers.GetObjectValue
static ? object GetObjectValue(object? obj)
System.Runtime.CompilerServices.RuntimeHelpers
Definition
RuntimeHelpers.cs:12
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.ExceptionArgument.obj
@ obj
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
ValueTypeCopyInstruction.cs
Generated by
1.10.0