mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 14:32:51 -06:00
an optimization in the jitter for generating more compact code
This commit is contained in:
@@ -40,7 +40,7 @@ struct PgfExprState {
|
||||
|
||||
typedef struct {
|
||||
// base must be the first field in order to be able to cast
|
||||
// from PgfCombine2State to PgfReasonerState
|
||||
// from PgfCombine1State to PgfReasonerState
|
||||
PgfReasonerState base;
|
||||
GuBuf* exprs;
|
||||
PgfExprState* parent;
|
||||
@@ -331,6 +331,13 @@ pgf_complete(PgfReasoner* rs, PgfExprState* st)
|
||||
nst->base.continuation(rs, &nst->base);
|
||||
}
|
||||
|
||||
void
|
||||
pgf_try_constant(PgfReasoner* rs, PgfExprState* prev, PgfAbsFun* absfun)
|
||||
{
|
||||
pgf_try_else(rs, prev, absfun);
|
||||
pgf_complete(rs, prev);
|
||||
}
|
||||
|
||||
static PgfExprProb*
|
||||
pgf_reasoner_next(PgfReasoner* rs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user