Property | Type | Description | |
---|---|---|---|
codeStream | Stream | ||
linker | |||
patches | List |
Method | Description | |
---|---|---|
Emit ( OpcodeEncoder opcode ) : void |
Emits the specified opcode.
|
|
Emit ( OpcodeEncoder opcode, |
||
GetPosition ( int label ) : int |
Gets the position.
|
|
Initialize ( string methodName, |
Initializes a new instance of BaseCodeEmitter.
|
|
Label ( int label ) : void |
Emits a label into the code stream.
|
|
ResolvePatches ( ) : void | ||
Write ( byte buffer, int offset, int count ) : void |
Writes the byte.
|
|
WriteByte ( byte data ) : void |
Writes the byte.
|
Method | Description | |
---|---|---|
AddPatch ( int label, int position ) : void | ||
TryGetLabel ( int label, int &position ) : bool |
protected AddPatch ( int label, int position ) : void | ||
label | int | |
position | int | |
return | void |
public Emit ( OpcodeEncoder opcode ) : void | ||
opcode | OpcodeEncoder | The opcode. |
return | void |
public Emit ( OpcodeEncoder opcode, |
||
opcode | OpcodeEncoder | |
symbolOperand | ||
patchOffset | int | |
referenceOffset | int | |
return | void |
public Initialize ( string methodName, |
||
methodName | string | Name of the method. |
linker | The linker. | |
codeStream | Stream | The stream the machine code is written to. |
return | void |
public Label ( int label ) : void | ||
label | int | The label name to emit. |
return | void |
protected TryGetLabel ( int label, int &position ) : bool | ||
label | int | |
position | int | |
return | bool |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer. |
offset | int | The offset. |
count | int | The count. |
return | void |
protected BaseLinker,Mosa.Compiler.Linker linker | ||
return |