C# Class Kirikiri.Tjs2.InterCodeGenerator

TJS2 のバイトコードを生成する
Inheritance: SourceCodeAccessor
Afficher le fichier Open project: fantasydr/krkr-cs Class Usage Examples

Méthodes publiques

Свойство Type Description
ntBlock int
ntCatch int
ntDoWhile int
ntElse int
ntFor int
ntIf int
ntSwitch int
ntTry int
ntWhile int
ntWith int

Méthodes publiques

Méthode Description
AddFunctionDeclArg ( string varname, ExprNode node ) : void
AddFunctionDeclArgCollapse ( string varname ) : void
AddLocalVariable ( string name ) : void
AddLocalVariable ( string name, int init ) : void
CharacterCodeFrom ( Variant val ) : void
CharacterCodeOf ( Variant val ) : void
CodePosToSrcPos ( int codepos ) : int
Commit ( ) : void
CrateIfExprCode ( ExprNode node ) : void
CreateExprCode ( ExprNode node ) : void
CreateExtendsExprCode ( ExprNode node, bool hold ) : void
CreateExtendsExprProxyCode ( ExprNode node ) : void
CreateForExprCode ( ExprNode node ) : void
CreateSecond ( InterCodeObject obj ) : void
CreateWhileExprCode ( ExprNode node, bool doWhile ) : void
CreteCodeObject ( ScriptBlock block ) : InterCodeObject

生成一段阶目

DateReplace ( Compiler compiler ) : void

DaraArray の中の InterCodeGenerator を InterCodeObject に差し替える

DoBreak ( ) : void
DoContinue ( ) : void
DoDebugger ( ) : void
DumpClassStructure ( int nest ) : void
EnterBlock ( ) : void
EnterCatchCode ( string name ) : void
EnterElseCode ( ) : void
EnterForCode ( bool varcreate ) : void
EnterIfCode ( ) : void
EnterSwitchCode ( ExprNode node ) : void
EnterTryCode ( ) : void
EnterWhileCode ( bool doWhile ) : void
EnterWithCode ( ExprNode node ) : void
ExitBlock ( ) : void
ExitElseCode ( ) : void
ExitForCode ( ) : void
ExitIfCode ( ) : void
ExitSwitchCode ( ) : void
ExitTryCode ( ) : void
ExitWhileCode ( bool doWhile ) : void
ExitWidthCode ( ) : void
ExportByteCode ( Compiler block, ConstArrayData constarray ) : ByteBuffer

バイトコードを出力する

GenerateFuncCallArgCode ( ) : void
GetContextType ( ) : int
GetCurrentNode ( ) : ExprNode
GetLine ( int line ) : string
GetLineOffset ( ) : int
GetName ( ) : string
GetNodeToDeleteVectorCount ( ) : int
GetParent ( ) : InterCodeGenerator
GetScript ( ) : string
InitLocalFunction ( string name, int data ) : void
InitLocalVariable ( string name, ExprNode node ) : void
InterCodeGenerator ( InterCodeGenerator parent, string name, Compiler block, int type ) : System.Collections.Generic
IsClass ( ) : bool
MakeConstValNode ( Variant val ) : ExprNode
MakeNP0 ( int opecode ) : ExprNode
MakeNP1 ( int opecode, ExprNode node1 ) : ExprNode
MakeNP2 ( int opecode, ExprNode node1, ExprNode node2 ) : ExprNode
MakeNP3 ( int opecode, ExprNode node1, ExprNode node2, ExprNode node3 ) : ExprNode
PopCurrentNode ( ) : void
ProcessCaseCode ( ExprNode node ) : void
ProcessThrowCode ( ExprNode node ) : void
PushCurrentNode ( ExprNode node ) : void
ReturnFromFunc ( ExprNode node ) : void
SetForThirdExprCode ( ExprNode node ) : void
SetPropertyDeclArg ( string varname ) : void
SrcPosToLine ( int srcpos ) : int
ToJavaCode ( int start, int end ) : AList

Méthodes protégées

Méthode Description
FinalizeObject ( ) : void

Private Methods

Méthode Description
AddFuncArg ( int addr, int type ) : void
AddOmitArg ( ) : void
AddProperty ( string name, InterCodeGenerator val ) : void
ClearFrame ( IntWrapper frame ) : int
ClearFrame ( IntWrapper frame, int @base ) : int
ClearFrame ( int frame ) : int
ClearFrame ( int frame, int @base ) : int
ClearNodesToDelete ( ) : void
DoContinuePatch ( InterCodeGenerator nestdata ) : void
DoNestTopExitPatch ( ) : void
EndFuncArg ( ) : void
ErrorMsg ( string msg ) : void
ExpandCodeArea ( ) : void
FixCode ( ) : void
GenNodeCode ( IntWrapper frame, ExprNode node, int restype, int reqresaddr, InterCodeGenerator param ) : int
GetLexPos ( ) : int
GetProp ( ) : AList
OutputWarning ( string mes ) : void
OutputWarning ( string mes, int pos ) : void
PutData ( Variant val ) : int
PutSrcPos ( int pos ) : void
RegisterFunction ( ) : void
SortSourcePos ( ) : void
StartFuncArg ( ) : void

Method Details

AddFunctionDeclArg() public méthode

public AddFunctionDeclArg ( string varname, ExprNode node ) : void
varname string
node ExprNode
Résultat void

AddFunctionDeclArgCollapse() public méthode

public AddFunctionDeclArgCollapse ( string varname ) : void
varname string
Résultat void

AddLocalVariable() public méthode

public AddLocalVariable ( string name ) : void
name string
Résultat void

AddLocalVariable() public méthode

public AddLocalVariable ( string name, int init ) : void
name string
init int
Résultat void

CharacterCodeFrom() public static méthode

public static CharacterCodeFrom ( Variant val ) : void
val Variant
Résultat void

CharacterCodeOf() public static méthode

public static CharacterCodeOf ( Variant val ) : void
val Variant
Résultat void

CodePosToSrcPos() public méthode

public CodePosToSrcPos ( int codepos ) : int
codepos int
Résultat int

Commit() public méthode

public Commit ( ) : void
Résultat void

CrateIfExprCode() public méthode

public CrateIfExprCode ( ExprNode node ) : void
node ExprNode
Résultat void

CreateExprCode() public méthode

public CreateExprCode ( ExprNode node ) : void
node ExprNode
Résultat void

CreateExtendsExprCode() public méthode

public CreateExtendsExprCode ( ExprNode node, bool hold ) : void
node ExprNode
hold bool
Résultat void

CreateExtendsExprProxyCode() public méthode

public CreateExtendsExprProxyCode ( ExprNode node ) : void
node ExprNode
Résultat void

CreateForExprCode() public méthode

public CreateForExprCode ( ExprNode node ) : void
node ExprNode
Résultat void

CreateSecond() public méthode

public CreateSecond ( InterCodeObject obj ) : void
obj InterCodeObject
Résultat void

CreateWhileExprCode() public méthode

public CreateWhileExprCode ( ExprNode node, bool doWhile ) : void
node ExprNode
doWhile bool
Résultat void

CreteCodeObject() public méthode

生成一段阶目
public CreteCodeObject ( ScriptBlock block ) : InterCodeObject
block ScriptBlock
Résultat InterCodeObject

DateReplace() public méthode

DaraArray の中の InterCodeGenerator を InterCodeObject に差し替える
public DateReplace ( Compiler compiler ) : void
compiler Compiler
Résultat void

DoBreak() public méthode

public DoBreak ( ) : void
Résultat void

DoContinue() public méthode

public DoContinue ( ) : void
Résultat void

DoDebugger() public méthode

public DoDebugger ( ) : void
Résultat void

DumpClassStructure() public méthode

public DumpClassStructure ( int nest ) : void
nest int
Résultat void

EnterBlock() public méthode

public EnterBlock ( ) : void
Résultat void

EnterCatchCode() public méthode

public EnterCatchCode ( string name ) : void
name string
Résultat void

EnterElseCode() public méthode

public EnterElseCode ( ) : void
Résultat void

EnterForCode() public méthode

public EnterForCode ( bool varcreate ) : void
varcreate bool
Résultat void

EnterIfCode() public méthode

public EnterIfCode ( ) : void
Résultat void

EnterSwitchCode() public méthode

public EnterSwitchCode ( ExprNode node ) : void
node ExprNode
Résultat void

EnterTryCode() public méthode

public EnterTryCode ( ) : void
Résultat void

EnterWhileCode() public méthode

public EnterWhileCode ( bool doWhile ) : void
doWhile bool
Résultat void

EnterWithCode() public méthode

public EnterWithCode ( ExprNode node ) : void
node ExprNode
Résultat void

ExitBlock() public méthode

public ExitBlock ( ) : void
Résultat void

ExitElseCode() public méthode

public ExitElseCode ( ) : void
Résultat void

ExitForCode() public méthode

public ExitForCode ( ) : void
Résultat void

ExitIfCode() public méthode

public ExitIfCode ( ) : void
Résultat void

ExitSwitchCode() public méthode

public ExitSwitchCode ( ) : void
Résultat void

ExitTryCode() public méthode

public ExitTryCode ( ) : void
Résultat void

ExitWhileCode() public méthode

public ExitWhileCode ( bool doWhile ) : void
doWhile bool
Résultat void

ExitWidthCode() public méthode

public ExitWidthCode ( ) : void
Résultat void

ExportByteCode() public méthode

バイトコードを出力する
public ExportByteCode ( Compiler block, ConstArrayData constarray ) : ByteBuffer
block Compiler
constarray ConstArrayData
Résultat Sharpen.ByteBuffer

FinalizeObject() protected méthode

protected FinalizeObject ( ) : void
Résultat void

GenerateFuncCallArgCode() public méthode

public GenerateFuncCallArgCode ( ) : void
Résultat void

GetContextType() public méthode

public GetContextType ( ) : int
Résultat int

GetCurrentNode() public méthode

public GetCurrentNode ( ) : ExprNode
Résultat ExprNode

GetLine() public méthode

public GetLine ( int line ) : string
line int
Résultat string

GetLineOffset() public méthode

public GetLineOffset ( ) : int
Résultat int

GetName() public méthode

public GetName ( ) : string
Résultat string

GetNodeToDeleteVectorCount() public méthode

public GetNodeToDeleteVectorCount ( ) : int
Résultat int

GetParent() public méthode

public GetParent ( ) : InterCodeGenerator
Résultat InterCodeGenerator

GetScript() public méthode

public GetScript ( ) : string
Résultat string

InitLocalFunction() public méthode

public InitLocalFunction ( string name, int data ) : void
name string
data int
Résultat void

InitLocalVariable() public méthode

public InitLocalVariable ( string name, ExprNode node ) : void
name string
node ExprNode
Résultat void

InterCodeGenerator() public méthode

public InterCodeGenerator ( InterCodeGenerator parent, string name, Compiler block, int type ) : System.Collections.Generic
parent InterCodeGenerator
name string
block Compiler
type int
Résultat System.Collections.Generic

IsClass() public méthode

public IsClass ( ) : bool
Résultat bool

MakeConstValNode() public méthode

public MakeConstValNode ( Variant val ) : ExprNode
val Variant
Résultat ExprNode

MakeNP0() public méthode

public MakeNP0 ( int opecode ) : ExprNode
opecode int
Résultat ExprNode

MakeNP1() public méthode

public MakeNP1 ( int opecode, ExprNode node1 ) : ExprNode
opecode int
node1 ExprNode
Résultat ExprNode

MakeNP2() public méthode

public MakeNP2 ( int opecode, ExprNode node1, ExprNode node2 ) : ExprNode
opecode int
node1 ExprNode
node2 ExprNode
Résultat ExprNode

MakeNP3() public méthode

public MakeNP3 ( int opecode, ExprNode node1, ExprNode node2, ExprNode node3 ) : ExprNode
opecode int
node1 ExprNode
node2 ExprNode
node3 ExprNode
Résultat ExprNode

PopCurrentNode() public méthode

public PopCurrentNode ( ) : void
Résultat void

ProcessCaseCode() public méthode

public ProcessCaseCode ( ExprNode node ) : void
node ExprNode
Résultat void

ProcessThrowCode() public méthode

public ProcessThrowCode ( ExprNode node ) : void
node ExprNode
Résultat void

PushCurrentNode() public méthode

public PushCurrentNode ( ExprNode node ) : void
node ExprNode
Résultat void

ReturnFromFunc() public méthode

public ReturnFromFunc ( ExprNode node ) : void
node ExprNode
Résultat void

SetForThirdExprCode() public méthode

public SetForThirdExprCode ( ExprNode node ) : void
node ExprNode
Résultat void

SetPropertyDeclArg() public méthode

public SetPropertyDeclArg ( string varname ) : void
varname string
Résultat void

SrcPosToLine() public méthode

public SrcPosToLine ( int srcpos ) : int
srcpos int
Résultat int

ToJavaCode() public méthode

public ToJavaCode ( int start, int end ) : AList
start int
end int
Résultat AList

Property Details

ntBlock public_oe static_oe property

public static int ntBlock
Résultat int

ntCatch public_oe static_oe property

public static int ntCatch
Résultat int

ntDoWhile public_oe static_oe property

public static int ntDoWhile
Résultat int

ntElse public_oe static_oe property

public static int ntElse
Résultat int

ntFor public_oe static_oe property

public static int ntFor
Résultat int

ntIf public_oe static_oe property

public static int ntIf
Résultat int

ntSwitch public_oe static_oe property

public static int ntSwitch
Résultat int

ntTry public_oe static_oe property

public static int ntTry
Résultat int

ntWhile public_oe static_oe property

public static int ntWhile
Résultat int

ntWith public_oe static_oe property

public static int ntWith
Résultat int