1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Simplify the bytecode generation for SQL function calls such that the

OP_Function or OP_PureFunc opcodes are coded directly, rather than using
the intermediate OP_Function0 or OP_PureFunc0 - opcodes that are now removed.

FossilOrigin-Name: 84e02d773d60cffe619104991d21d7f0c68616c0f6bb99686bf54f5306c756d0
This commit is contained in:
drh
2019-10-30 16:29:02 +00:00
parent 9ee94147f0
commit 920cf596e6
8 changed files with 121 additions and 95 deletions

View File

@@ -4032,9 +4032,8 @@ expr_code_doover:
}else
#endif
{
sqlite3VdbeAddOp4(v, pParse->iSelfTab ? OP_PureFunc0 : OP_Function0,
constMask, r1, target, (char*)pDef, P4_FUNCDEF);
sqlite3VdbeChangeP5(v, (u8)nFarg);
sqlite3VdbeAddFunctionCall(pParse, constMask, r1, target, nFarg,
pDef, pParse->iSelfTab);
}
if( nFarg && constMask==0 ){
sqlite3ReleaseTempRange(pParse, r1, nFarg);