Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LoadLocalFromClosureBoxedInstruction.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
LoadLocalFromClosureBoxedInstruction
:
LocalAccessInstruction
6
{
7
public
override
int
ProducedStack
=> 1;
8
9
public
override
string
InstructionName
=>
"LoadLocal"
;
10
11
internal
LoadLocalFromClosureBoxedInstruction
(
int
index
)
12
: base(
index
)
13
{
14
}
15
16
public
override
int
Run
(
InterpretedFrame
frame)
17
{
18
IStrongBox
strongBox = frame.
Closure
[
_index
];
19
frame.
Data
[frame.
StackIndex
++] = strongBox;
20
return
1;
21
}
22
}
System.Linq.Expressions.Interpreter.InterpretedFrame.Closure
readonly IStrongBox[] Closure
Definition
InterpretedFrame.cs:25
System.Linq.Expressions.Interpreter.InterpretedFrame.Data
readonly object[] Data
Definition
InterpretedFrame.cs:23
System.Linq.Expressions.Interpreter.InterpretedFrame.StackIndex
int StackIndex
Definition
InterpretedFrame.cs:27
System.Linq.Expressions.Interpreter.InterpretedFrame
Definition
InterpretedFrame.cs:7
System.Linq.Expressions.Interpreter.LoadLocalFromClosureBoxedInstruction.Run
override int Run(InterpretedFrame frame)
Definition
LoadLocalFromClosureBoxedInstruction.cs:16
System.Linq.Expressions.Interpreter.LoadLocalFromClosureBoxedInstruction.LoadLocalFromClosureBoxedInstruction
LoadLocalFromClosureBoxedInstruction(int index)
Definition
LoadLocalFromClosureBoxedInstruction.cs:11
System.Linq.Expressions.Interpreter.LoadLocalFromClosureBoxedInstruction.ProducedStack
override int ProducedStack
Definition
LoadLocalFromClosureBoxedInstruction.cs:7
System.Linq.Expressions.Interpreter.LoadLocalFromClosureBoxedInstruction.InstructionName
override string InstructionName
Definition
LoadLocalFromClosureBoxedInstruction.cs:9
System.Linq.Expressions.Interpreter.LoadLocalFromClosureBoxedInstruction
Definition
LoadLocalFromClosureBoxedInstruction.cs:6
System.Linq.Expressions.Interpreter.LocalAccessInstruction._index
readonly int _index
Definition
LocalAccessInstruction.cs:7
System.Linq.Expressions.Interpreter.LocalAccessInstruction
Definition
LocalAccessInstruction.cs:6
System.Runtime.CompilerServices.IStrongBox
Definition
IStrongBox.cs:4
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Linq.ExceptionArgument.index
@ index
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
LoadLocalFromClosureBoxedInstruction.cs
Generated by
1.10.0