This commit is contained in:
Brendan Eich
2008-08-08 16:40:45 -07:00
5 changed files with 59 additions and 37 deletions

View File

@@ -304,20 +304,13 @@ builtin_CloseIterator(JSContext* cx, jsval v)
}
GuardRecord* FASTCALL
builtin_CallTree(InterpState* outer, Fragment* f)
builtin_CallTree(InterpState* state, Fragment* f)
{
/* current we can't deal with inner trees that have globals so report an error */
if (((TreeInfo*)f->vmprivate)->globalSlots.length())
return NULL;
InterpState state;
state.ip = f->ip;
state.sp = outer->sp;
state.rp = outer->rp;
state.gp = outer->gp;
state.cx = outer->cx;
JS_ASSERT(!((TreeInfo*)f->vmprivate)->globalSlots.length());
union { NIns *code; GuardRecord* (FASTCALL *func)(InterpState*, Fragment*); } u;
u.code = f->code();
return u.func(&state, NULL);
return u.func(state, NULL);
}
JSObject* FASTCALL