If trees are not enabled, don't try to reuse state and param1.

This commit is contained in:
Andreas Gal 2008-07-30 21:40:21 -07:00
parent ad3e892e92
commit 86aa1f7ff7
2 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,7 @@ TraceRecorder::TraceRecorder(JSContext* cx, GuardRecord* _anchor,
lir = func_filter = new (&gc) FuncFilter(lir, *this);
lir->ins0(LIR_trace);
if (fragment->root == fragment) {
if (!nanojit::AvmCore::config.tree_opt || fragment->root == fragment) {
lirbuf->state = addName(lir->insParam(0), "state");
lirbuf->param1 = addName(lir->insParam(1), "param1");
}

View File

@ -322,6 +322,7 @@ namespace avmplus
verbose_live = 1;
show_stats = 1;
#endif
tree_opt = 0;
}
uint32_t tree_opt:1;