mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-17 01:11:18 +00:00
should make non locals-marshalling/overlaptemps much faster
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1706 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
811d31569e
commit
9776d00e71
1 changed files with 7 additions and 1 deletions
|
@ -937,7 +937,7 @@ static QCC_def_t *QCC_GetTemp(QCC_type_t *type)
|
|||
var_c->temp = t;
|
||||
t->lastfunc = pr_scope;
|
||||
}
|
||||
else
|
||||
else if (opt_locals_marshalling)
|
||||
{
|
||||
//allocate a new one
|
||||
t = qccHunkAlloc(sizeof(temp_t));
|
||||
|
@ -954,6 +954,12 @@ static QCC_def_t *QCC_GetTemp(QCC_type_t *type)
|
|||
var_c->temp = t;
|
||||
t->lastfunc = pr_scope;
|
||||
}
|
||||
else
|
||||
{
|
||||
// we're not going to reallocate any temps so allocate permanently
|
||||
var_c->ofs = QCC_GetFreeOffsetSpace(type->size);
|
||||
numtemps+=type->size;
|
||||
}
|
||||
|
||||
var_c->s_file = s_file;
|
||||
var_c->s_line = pr_source_line;
|
||||
|
|
Loading…
Reference in a new issue