tclCompCmds.c File Reference#include "tclInt.h"
#include "tclCompile.h"
Go to the source code of this file.
|
Defines |
#define | CompileWord(envPtr, tokenPtr, interp, word) |
#define | DefineLineInformation |
#define | CompileBody(envPtr, tokenPtr, interp) |
#define | CompileTokens(envPtr, tokenPtr, interp) |
#define | PushLiteral(envPtr, string, length) TclEmitPush(TclRegisterNewLiteral((envPtr), (string), (length)), (envPtr)) |
#define | TokenAfter(tokenPtr) ((tokenPtr) + ((tokenPtr)->numComponents + 1)) |
#define | CurrentOffset(envPtr) ((envPtr)->codeNext - (envPtr)->codeStart) |
#define | DeclareExceptionRange(envPtr, type) (TclCreateExceptRange((type), (envPtr))) |
#define | ExceptionRangeStarts(envPtr, index) |
#define | ExceptionRangeEnds(envPtr, index) |
#define | ExceptionRangeTarget(envPtr, index, targetType) ((envPtr)->exceptArrayPtr[(index)].targetType = CurrentOffset(envPtr)) |
#define | TCL_CREATE_VAR 1 |
#define | TCL_NO_LARGE_INDEX 2 |
Functions |
int | TclCompileAppendCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileBreakCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileCatchCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileContinueCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileDictSetCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileDictIncrCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileDictGetCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileDictForCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileDictUpdateCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileDictAppendCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileDictLappendCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileExprCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileForCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileForeachCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileIfCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileIncrCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileLappendCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileLassignCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileLindexCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileListCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileLlengthCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileLsetCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileRegexpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileReturnCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
void | TclCompileSyntaxError (Tcl_Interp *interp, CompileEnv *envPtr) |
int | TclCompileSetCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileStringCmpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileStringEqualCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileStringIndexCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileStringMatchCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileStringLenCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileSwitchCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileWhileCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileInvertOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileNotOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileAddOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileMulOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileAndOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileOrOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileXorOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompilePowOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileLshiftOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileRshiftOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileModOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileNeqOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileStrneqOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileInOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileNiOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileLessOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileLeqOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileGreaterOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileGeqOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileEqOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileStreqOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileMinusOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileDivOpCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileUpvarCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileNamespaceCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileGlobalCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileVariableCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileEnsemble (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
int | TclCompileInfoExistsCmd (Tcl_Interp *interp, Tcl_Parse *parsePtr, Command *cmdPtr, CompileEnv *envPtr) |
Variables |
AuxDataType | tclForeachInfoType |
AuxDataType | tclJumptableInfoType |
AuxDataType | tclDictUpdateInfoType |
Define Documentation
#define CompileBody |
( |
envPtr, |
|
|
tokenPtr, |
|
|
interp |
|
) |
|
#define CompileTokens |
( |
envPtr, |
|
|
tokenPtr, |
|
|
interp |
|
) |
|
#define CompileWord |
( |
envPtr, |
|
|
tokenPtr, |
|
|
interp, |
|
|
word |
|
) |
|
Value:
Definition at line 29 of file tclCompCmds.c.
Referenced by TclCompileAppendCmd(), TclCompileDictAppendCmd(), TclCompileDictForCmd(), TclCompileDictGetCmd(), TclCompileDictIncrCmd(), TclCompileDictLappendCmd(), TclCompileDictSetCmd(), TclCompileDictUpdateCmd(), TclCompileDivOpCmd(), TclCompileGlobalCmd(), TclCompileLappendCmd(), TclCompileLassignCmd(), TclCompileLindexCmd(), TclCompileListCmd(), TclCompileLlengthCmd(), TclCompileLsetCmd(), TclCompileMinusOpCmd(), TclCompileNamespaceCmd(), TclCompilePowOpCmd(), TclCompileReturnCmd(), TclCompileSetCmd(), TclCompileStringCmpCmd(), TclCompileStringEqualCmd(), TclCompileStringIndexCmd(), TclCompileUpvarCmd(), and TclCompileVariableCmd().
#define CurrentOffset |
( |
envPtr |
|
) |
((envPtr)->codeNext - (envPtr)->codeStart) |
#define DeclareExceptionRange |
( |
envPtr, |
|
|
type |
|
) |
(TclCreateExceptRange((type), (envPtr))) |
#define DefineLineInformation |
Value: ExtCmdLoc *mapPtr = envPtr->extCmdMapPtr; \
int eclIndex = mapPtr->nuloc - 1
Definition at line 48 of file tclCompCmds.c.
Referenced by TclCompileAppendCmd(), TclCompileCatchCmd(), TclCompileDictAppendCmd(), TclCompileDictForCmd(), TclCompileDictGetCmd(), TclCompileDictIncrCmd(), TclCompileDictLappendCmd(), TclCompileDictSetCmd(), TclCompileDictUpdateCmd(), TclCompileDivOpCmd(), TclCompileForCmd(), TclCompileForeachCmd(), TclCompileGlobalCmd(), TclCompileIfCmd(), TclCompileIncrCmd(), TclCompileInfoExistsCmd(), TclCompileLappendCmd(), TclCompileLassignCmd(), TclCompileLindexCmd(), TclCompileListCmd(), TclCompileLlengthCmd(), TclCompileLsetCmd(), TclCompileMinusOpCmd(), TclCompileNamespaceCmd(), TclCompilePowOpCmd(), TclCompileRegexpCmd(), TclCompileReturnCmd(), TclCompileSetCmd(), TclCompileStringCmpCmd(), TclCompileStringEqualCmd(), TclCompileStringIndexCmd(), TclCompileStringLenCmd(), TclCompileStringMatchCmd(), TclCompileSwitchCmd(), TclCompileUpvarCmd(), TclCompileVariableCmd(), and TclCompileWhileCmd().
#define ExceptionRangeEnds |
( |
envPtr, |
|
|
index |
|
) |
|
#define ExceptionRangeStarts |
( |
envPtr, |
|
|
index |
|
) |
|
#define ExceptionRangeTarget |
( |
envPtr, |
|
|
index, |
|
|
targetType |
|
) |
((envPtr)->exceptArrayPtr[(index)].targetType = CurrentOffset(envPtr)) |
#define PushLiteral |
( |
envPtr, |
|
|
string, |
|
|
length |
|
) |
TclEmitPush(TclRegisterNewLiteral((envPtr), (string), (length)), (envPtr)) |
Definition at line 83 of file tclCompCmds.c.
Referenced by TclCompileCatchCmd(), TclCompileDictForCmd(), TclCompileDivOpCmd(), TclCompileForCmd(), TclCompileForeachCmd(), TclCompileGlobalCmd(), TclCompileIncrCmd(), TclCompileListCmd(), TclCompileNamespaceCmd(), TclCompilePowOpCmd(), TclCompileReturnCmd(), TclCompileStringLenCmd(), TclCompileStringMatchCmd(), TclCompileUpvarCmd(), TclCompileVariableCmd(), and TclCompileWhileCmd().
#define TCL_NO_LARGE_INDEX 2 |
#define TokenAfter |
( |
tokenPtr |
|
) |
((tokenPtr) + ((tokenPtr)->numComponents + 1)) |
Definition at line 93 of file tclCompCmds.c.
Referenced by TclCompileAppendCmd(), TclCompileCatchCmd(), TclCompileDictAppendCmd(), TclCompileDictForCmd(), TclCompileDictGetCmd(), TclCompileDictIncrCmd(), TclCompileDictLappendCmd(), TclCompileDictSetCmd(), TclCompileDictUpdateCmd(), TclCompileDivOpCmd(), TclCompileEnsemble(), TclCompileExprCmd(), TclCompileForCmd(), TclCompileForeachCmd(), TclCompileGlobalCmd(), TclCompileIfCmd(), TclCompileIncrCmd(), TclCompileInfoExistsCmd(), TclCompileLappendCmd(), TclCompileLassignCmd(), TclCompileLindexCmd(), TclCompileListCmd(), TclCompileLlengthCmd(), TclCompileLsetCmd(), TclCompileMinusOpCmd(), TclCompileNamespaceCmd(), TclCompilePowOpCmd(), TclCompileRegexpCmd(), TclCompileReturnCmd(), TclCompileSetCmd(), TclCompileStringCmpCmd(), TclCompileStringEqualCmd(), TclCompileStringIndexCmd(), TclCompileStringLenCmd(), TclCompileStringMatchCmd(), TclCompileSwitchCmd(), TclCompileUpvarCmd(), TclCompileVariableCmd(), and TclCompileWhileCmd().
Function Documentation
Definition at line 223 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_APPEND_ARRAY1, INST_APPEND_ARRAY4, INST_APPEND_ARRAY_STK, INST_APPEND_SCALAR1, INST_APPEND_SCALAR4, INST_APPEND_STK, Tcl_Parse::numWords, TCL_CREATE_VAR, TCL_ERROR, TCL_OK, TclCompileSetCmd(), TclEmitInstInt1, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 364 of file tclCompCmds.c.
References CATCH_EXCEPTION_RANGE, JumpFixup::codeOffset, CompileBody, CompileTokens, CurrentOffset, CompileEnv::currStackDepth, DeclareExceptionRange, DefineLineInformation, ExceptionRangeEnds, ExceptionRangeStarts, ExceptionRangeTarget, INST_BEGIN_CATCH4, INST_END_CATCH, INST_EVAL_STK, INST_OVER, INST_POP, INST_PUSH_RESULT, INST_PUSH_RETURN_CODE, INST_PUSH_RETURN_OPTIONS, INST_STORE_SCALAR1, INST_STORE_SCALAR4, CompileEnv::line, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, Tcl_Token::size, Tcl_Token::start, TCL_ERROR, TCL_OK, Tcl_Panic(), TCL_TOKEN_SIMPLE_WORD, TCL_UNCONDITIONAL_JUMP, TclEmitForwardJump(), TclEmitInstInt1, TclEmitInstInt4, TclEmitOpcode, TclFindCompiledLocal(), TclFixupForwardJumpToHere, TclIsLocalScalar(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 1167 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_CONCAT1, INST_DICT_APPEND, Tcl_Parse::numWords, CompileEnv::procPtr, Tcl_Token::size, Tcl_Token::start, TCL_ERROR, TCL_OK, TCL_TOKEN_SIMPLE_WORD, TclEmitInstInt1, TclEmitInstInt4, TclFindCompiledLocal(), TclIsLocalScalar(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 803 of file tclCompCmds.c.
References CATCH_EXCEPTION_RANGE, ckfree, CompileEnv::codeStart, CompileBody, CompileWord, CurrentOffset, CompileEnv::currStackDepth, DeclareExceptionRange, DefineLineInformation, ExceptionRangeEnds, ExceptionRangeStarts, ExceptionRangeTarget, INST_BEGIN_CATCH4, INST_DICT_DONE, INST_DICT_FIRST, INST_DICT_NEXT, INST_END_CATCH, INST_JUMP4, INST_JUMP_FALSE4, INST_JUMP_TRUE4, INST_POP, INST_PUSH_RESULT, INST_PUSH_RETURN_OPTIONS, INST_RETURN_STK, INST_STORE_SCALAR4, CompileEnv::line, LOOP_EXCEPTION_RANGE, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, Tcl_DStringAppend(), Tcl_DStringFree(), Tcl_DStringInit(), Tcl_DStringValue, TCL_ERROR, TCL_OK, Tcl_SplitList(), TCL_TOKEN_SIMPLE_WORD, TclEmitInstInt4, TclEmitOpcode, TclFindCompiledLocal(), TclIsLocalScalar(), TclUpdateInstInt4AtPc, TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 688 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_DICT_INCR_IMM, Tcl_Parse::numWords, CompileEnv::procPtr, Tcl_Token::size, Tcl_Token::start, TCL_ERROR, Tcl_IncrRefCount, Tcl_NewStringObj(), TCL_OK, TCL_TOKEN_SIMPLE_WORD, TclDecrRefCount, TclEmitInstInt4, TclEmitInt4, TclFindCompiledLocal(), TclGetIntFromObj, TclIsLocalScalar(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 1229 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_DICT_LAPPEND, Tcl_Parse::numWords, CompileEnv::procPtr, Tcl_Token::size, Tcl_Token::start, TCL_ERROR, TCL_OK, TCL_TOKEN_SIMPLE_WORD, TclEmitInstInt4, TclFindCompiledLocal(), TclIsLocalScalar(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 626 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_DICT_SET, Tcl_Parse::numWords, CompileEnv::procPtr, Tcl_Token::size, Tcl_Token::start, TCL_ERROR, TCL_OK, TCL_TOKEN_SIMPLE_WORD, TclEmitInstInt4, TclEmitInt4, TclFindCompiledLocal(), TclIsLocalScalar(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 1001 of file tclCompCmds.c.
References CATCH_EXCEPTION_RANGE, ckalloc, ckfree, JumpFixup::codeOffset, CompileBody, CompileWord, CurrentOffset, DeclareExceptionRange, DefineLineInformation, ExceptionRangeEnds, ExceptionRangeStarts, ExceptionRangeTarget, INST_BEGIN_CATCH4, INST_DICT_UPDATE_END, INST_DICT_UPDATE_START, INST_END_CATCH, INST_LIST, INST_PUSH_RESULT, INST_PUSH_RETURN_OPTIONS, INST_RETURN_STK, INST_REVERSE, DictUpdateInfo::length, Tcl_Parse::numWords, CompileEnv::procPtr, Tcl_Token::size, Tcl_Token::start, TCL_ERROR, TCL_OK, Tcl_Panic(), TCL_TOKEN_SIMPLE_WORD, TCL_UNCONDITIONAL_JUMP, TclCreateAuxData(), tclDictUpdateInfoType, TclEmitForwardJump(), TclEmitInstInt4, TclEmitInt4, TclEmitOpcode, TclFindCompiledLocal(), TclFixupForwardJumpToHere, TclIsLocalScalar(), TclStackAlloc(), TclStackFree(), TokenAfter, Tcl_Parse::tokenPtr, Tcl_Token::type, and DictUpdateInfo::varIndices.
Definition at line 5620 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_DIV, INST_REVERSE, Tcl_Parse::numWords, PushLiteral, TCL_ERROR, TCL_OK, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 6136 of file tclCompCmds.c.
References Command::compileProc, Tcl_Token::numComponents, Tcl_Parse::numTokens, Tcl_Parse::numWords, Tcl_Token::size, Tcl_Token::start, Tcl_DictObjDone(), Tcl_DictObjFirst(), Tcl_DictObjGet(), Tcl_DictObjNext(), TCL_ENSEMBLE_PREFIX, TCL_ERROR, Tcl_FreeParse(), Tcl_GetCommandFromObj(), Tcl_GetEnsembleFlags(), Tcl_GetEnsembleMappingDict(), Tcl_GetEnsembleSubcommandList(), Tcl_GetStringFromObj(), Tcl_IncrRefCount, Tcl_IsSafe(), Tcl_ListObjGetElements(), TCL_OK, TCL_TOKEN_SIMPLE_WORD, TCL_TOKEN_TEXT, TclDecrRefCount, TclGetString, TclGrowParseTokenArray, TclNewStringObj, TclParseInit(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Referenced by Tcl_CreateEnsemble(), and Tcl_SetEnsembleFlags().
Definition at line 1348 of file tclCompCmds.c.
References CompileEnv::extCmdMapPtr, CompileEnv::line, ECL::line, ExtCmdLoc::loc, ExtCmdLoc::nuloc, Tcl_Parse::numWords, TCL_ERROR, TCL_OK, TclCompileExprWords(), TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 1393 of file tclCompCmds.c.
References JumpFixup::codeOffset, ExceptionRange::codeOffset, CompileBody, ExceptionRange::continueOffset, CurrentOffset, CompileEnv::currStackDepth, DeclareExceptionRange, DefineLineInformation, CompileEnv::exceptArrayPtr, ExceptionRangeEnds, ExceptionRangeStarts, ExceptionRangeTarget, INST_JUMP_TRUE1, INST_JUMP_TRUE4, INST_POP, CompileEnv::line, LOOP_EXCEPTION_RANGE, Tcl_Parse::numWords, PushLiteral, TCL_ERROR, TCL_OK, TCL_TOKEN_SIMPLE_WORD, TCL_UNCONDITIONAL_JUMP, TclCompileExprWords(), TclCreateExceptRange(), TclEmitForwardJump(), TclEmitInstInt1, TclEmitInstInt4, TclEmitOpcode, TclFixupForwardJump(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 1559 of file tclCompCmds.c.
References ckalloc, ckfree, ExceptionRange::codeOffset, CompileEnv::codeStart, CompileBody, CompileTokens, ExceptionRange::continueOffset, CurrentOffset, CompileEnv::currStackDepth, DeclareExceptionRange, DefineLineInformation, CompileEnv::exceptArrayPtr, ExceptionRangeEnds, ExceptionRangeStarts, ExceptionRangeTarget, ForeachInfo::firstValueTemp, INST_FOREACH_START4, INST_FOREACH_STEP4, INST_JUMP1, INST_JUMP4, INST_POP, INST_STORE_SCALAR1, INST_STORE_SCALAR4, CompileEnv::line, LOOP_EXCEPTION_RANGE, ForeachInfo::loopCtTemp, ForeachInfo::numLists, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, Tcl_DStringAppend(), Tcl_DStringFree(), Tcl_DStringInit(), Tcl_DStringValue, TCL_ERROR, TCL_FALSE_JUMP, TCL_OK, Tcl_SplitList(), TCL_TOKEN_SIMPLE_WORD, TclCreateAuxData(), TclEmitForwardJump(), TclEmitInstInt1, TclEmitInstInt4, TclEmitOpcode, TclFindCompiledLocal(), TclFixupForwardJumpToHere, tclForeachInfoType, TclIsLocalScalar(), TclStackAlloc(), TclStackFree(), TclUpdateInstInt1AtPc, TclUpdateInstInt4AtPc, TokenAfter, Tcl_Parse::tokenPtr, Tcl_Token::type, and ForeachInfo::varLists.
Definition at line 5977 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_NSUPVAR, INST_POP, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, TCL_ERROR, TCL_OK, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 2340 of file tclCompCmds.c.
References CompileTokens, DefineLineInformation, INST_INCR_ARRAY1, INST_INCR_ARRAY1_IMM, INST_INCR_ARRAY_STK, INST_INCR_ARRAY_STK_IMM, INST_INCR_SCALAR1, INST_INCR_SCALAR1_IMM, INST_INCR_SCALAR_STK, INST_INCR_SCALAR_STK_IMM, INST_INCR_STK, INST_INCR_STK_IMM, CompileEnv::line, Tcl_Parse::numWords, PushLiteral, Tcl_Token::size, Tcl_Token::start, TCL_CREATE_VAR, TCL_ERROR, Tcl_IncrRefCount, Tcl_NewStringObj(), TCL_NO_LARGE_INDEX, TCL_OK, TCL_TOKEN_SIMPLE_WORD, TclDecrRefCount, TclEmitInstInt1, TclEmitInt1, TclEmitOpcode, TclGetIntFromObj, TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 6416 of file tclCompCmds.c.
References DefineLineInformation, INST_EXIST_ARRAY, INST_EXIST_ARRAY_STK, INST_EXIST_SCALAR, INST_EXIST_STK, CompileEnv::line, Tcl_Parse::numWords, TCL_ERROR, TCL_OK, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 2459 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_LAPPEND_ARRAY1, INST_LAPPEND_ARRAY4, INST_LAPPEND_ARRAY_STK, INST_LAPPEND_SCALAR1, INST_LAPPEND_SCALAR4, INST_LAPPEND_STK, Tcl_Parse::numWords, CompileEnv::procPtr, TCL_CREATE_VAR, TCL_ERROR, TCL_OK, TclEmitInstInt1, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 2568 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_DUP, INST_LIST_INDEX_IMM, INST_LIST_RANGE_IMM, INST_OVER, INST_POP, INST_STORE_ARRAY1, INST_STORE_ARRAY4, INST_STORE_ARRAY_STK, INST_STORE_SCALAR1, INST_STORE_SCALAR4, INST_STORE_SCALAR_STK, INST_STORE_STK, Tcl_Parse::numWords, TCL_CREATE_VAR, TCL_ERROR, TCL_OK, TclEmitInstInt1, TclEmitInstInt4, TclEmitInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 2683 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_LIST_INDEX, INST_LIST_INDEX_IMM, INST_LIST_INDEX_MULTI, Tcl_Parse::numWords, TCL_ERROR, Tcl_NewStringObj(), TCL_OK, TCL_TOKEN_SIMPLE_WORD, TclDecrRefCount, TclEmitInstInt4, TclEmitOpcode, TclGetIntFromObj, TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Definition at line 2780 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_LIST, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, TCL_ERROR, TCL_OK, TclEmitInstInt4, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 2906 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_LOAD_ARRAY1, INST_LOAD_ARRAY4, INST_LOAD_ARRAY_STK, INST_LOAD_SCALAR1, INST_LOAD_SCALAR4, INST_LOAD_SCALAR_STK, INST_LOAD_STK, INST_LSET_FLAT, INST_LSET_LIST, INST_OVER, INST_STORE_ARRAY1, INST_STORE_ARRAY4, INST_STORE_ARRAY_STK, INST_STORE_SCALAR1, INST_STORE_SCALAR4, INST_STORE_SCALAR_STK, INST_STORE_STK, Tcl_Parse::numWords, TCL_CREATE_VAR, TCL_ERROR, TCL_OK, TclEmitInstInt1, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 5580 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_REVERSE, INST_SUB, INST_UMINUS, Tcl_Parse::numWords, TCL_ERROR, TCL_OK, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 5885 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_NSUPVAR, INST_POP, CompileEnv::line, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, Tcl_Token::size, Tcl_Token::start, TCL_ERROR, TCL_OK, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 3226 of file tclCompCmds.c.
References CATCH_EXCEPTION_RANGE, ExceptionRange::catchOffset, CompileWord, DefineLineInformation, CompileEnv::exceptArrayNext, CompileEnv::exceptArrayPtr, INST_DONE, INST_RETURN_IMM, INST_RETURN_STK, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, Tcl_Token::size, Tcl_DecrRefCount, Tcl_DictObjSize(), TCL_ERROR, Tcl_IncrRefCount, Tcl_NewObj(), TCL_OK, Tcl_ResetResult(), TCL_TOKEN_SIMPLE_WORD, TclDecrRefCount, TclEmitOpcode, TclMergeReturnOptions(), TclStackAlloc(), TclStackFree(), TclWordKnownAtCompileTime(), TokenAfter, Tcl_Parse::tokenPtr, Tcl_Token::type, and ExceptionRange::type.
Definition at line 3419 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_LOAD_ARRAY1, INST_LOAD_ARRAY4, INST_LOAD_ARRAY_STK, INST_LOAD_SCALAR1, INST_LOAD_SCALAR4, INST_LOAD_SCALAR_STK, INST_LOAD_STK, INST_STORE_ARRAY1, INST_STORE_ARRAY4, INST_STORE_ARRAY_STK, INST_STORE_SCALAR1, INST_STORE_SCALAR4, INST_STORE_SCALAR_STK, INST_STORE_STK, Tcl_Parse::numWords, TCL_CREATE_VAR, TCL_ERROR, TCL_OK, TclEmitInstInt1, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Referenced by TclCompileAppendCmd().
Definition at line 3767 of file tclCompCmds.c.
References CompileTokens, DefineLineInformation, INST_STR_LEN, CompileEnv::line, Tcl_Parse::numWords, PushLiteral, TCL_ERROR, TCL_INTEGER_SPACE, Tcl_NumUtfChars(), TCL_OK, TCL_TOKEN_SIMPLE_WORD, TclEmitOpcode, TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Referenced by TclInitStringCmd().
Definition at line 3667 of file tclCompCmds.c.
References CompileTokens, DefineLineInformation, CompileEnv::line, Tcl_Parse::numWords, PushLiteral, Tcl_Token::size, Tcl_Token::start, TCL_ERROR, Tcl_IncrRefCount, Tcl_NewStringObj(), TCL_TOKEN_SIMPLE_WORD, TclDecrRefCount, TclGetString, TclMatchIsTrivial, TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Referenced by TclInitStringCmd().
Definition at line 3826 of file tclCompCmds.c.
References ckalloc, ckfree, CompileEnv::currStackDepth, DefineLineInformation, Tcl_Token::numComponents, Tcl_Parse::numWords, Tcl_Token::size, Tcl_Token::start, Tcl_DStringAppend(), Tcl_DStringFree(), Tcl_DStringInit(), Tcl_DStringValue, TCL_ERROR, TCL_OK, Tcl_SplitList(), TCL_TOKEN_SIMPLE_WORD, TCL_TOKEN_TEXT, TclAdvanceLines(), TokenAfter, Tcl_Parse::tokenPtr, Tcl_Token::type, and UCHAR.
Definition at line 5774 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_POP, INST_UPVAR, CompileEnv::line, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, Tcl_DecrRefCount, TCL_ERROR, Tcl_NewObj(), TCL_OK, TclEmitInstInt4, TclEmitOpcode, TclObjGetFrame(), TclWordKnownAtCompileTime(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Obj::typePtr.
Definition at line 6052 of file tclCompCmds.c.
References CompileWord, DefineLineInformation, INST_POP, INST_STORE_SCALAR4, INST_VARIABLE, Tcl_Parse::numWords, CompileEnv::procPtr, PushLiteral, TCL_ERROR, TCL_OK, TclEmitInstInt4, TclEmitOpcode, TokenAfter, and Tcl_Parse::tokenPtr.
Definition at line 4687 of file tclCompCmds.c.
References CompileEnv::atCmdStart, JumpFixup::codeOffset, ExceptionRange::codeOffset, CompileBody, ExceptionRange::continueOffset, CurrentOffset, CompileEnv::currStackDepth, DeclareExceptionRange, DefineLineInformation, CompileEnv::exceptArrayPtr, ExceptionRangeEnds, ExceptionRangeStarts, ExceptionRangeTarget, INST_JUMP1, INST_JUMP4, INST_JUMP_TRUE1, INST_JUMP_TRUE4, INST_POP, CompileEnv::line, LOOP_EXCEPTION_RANGE, Tcl_Parse::numWords, PushLiteral, TCL_ERROR, Tcl_GetBooleanFromObj(), Tcl_IncrRefCount, Tcl_NewStringObj(), TCL_OK, TCL_TOKEN_SIMPLE_WORD, TCL_UNCONDITIONAL_JUMP, TclCompileExprWords(), TclDecrRefCount, TclEmitForwardJump(), TclEmitInstInt1, TclEmitInstInt4, TclEmitOpcode, TclFixupForwardJump(), TokenAfter, Tcl_Parse::tokenPtr, and Tcl_Token::type.
Variable Documentation
Generated on Wed Mar 12 12:18:28 2008 by
1.5.1
|