1 write to _emitState
Microsoft.CodeAnalysis (1)
CodeGen\ILBuilder.cs (1)
76
_emitState
= default(EmitState);
23 references to _emitState
Microsoft.CodeAnalysis (23)
CodeGen\ILBuilder.cs (6)
240
internal ushort MaxStack => (ushort)
_emitState
.MaxStack;
252
internal int InstructionsEmitted =>
_emitState
.InstructionsEmitted;
1094
Debug.Assert(
_emitState
.CurStack == 0);
1100
Debug.Assert(
_emitState
.InstructionsEmitted >= _instructionCountAtLastLabel);
1101
return
_emitState
.InstructionsEmitted == _instructionCountAtLastLabel;
1118
_instructionCountAtLastLabel =
_emitState
.InstructionsEmitted;
CodeGen\ILBuilderEmit.cs (17)
19
_emitState
.AdjustStack(stackAdjustment);
24
get { return
_emitState
.CurStack == 0; }
39
_emitState
.AdjustStack(stackAdjustment);
40
_emitState
.InstructionAdded();
138
var curStack =
_emitState
.CurStack;
166
var curStack =
_emitState
.CurStack;
170
_instructionCountAtLastLabel =
_emitState
.InstructionsEmitted;
181
_emitState
.AdjustStack(code.NetStackBehavior());
188
_labelInfos.Add(label, new LabelInfo(
_emitState
.CurStack, isConditional));
192
Debug.Assert(labelInfo.stack ==
_emitState
.CurStack, "branches to same label with different stacks");
205
_emitState
.InstructionAdded();
280
_emitState
.AdjustStack(-1);
281
int curStack =
_emitState
.CurStack;
313
_emitState
.AdjustStack(-1);
319
_emitState
.InstructionAdded();
333
_emitState
.AdjustStack(-1);
336
_emitState
.InstructionAdded();