Don't use a builtin for this. For functions its interned in the native frame. For global this we read from fp->thisp. Restore jsinterp.cpp and jsinterp.h (no longer need COMPUTE_THIS exposed).

This commit is contained in:
Andreas Gal
2008-07-16 14:36:50 -07:00
parent 9ecaba748c
commit 9dbaa069a2
6 changed files with 56 additions and 50 deletions

View File

@@ -154,15 +154,6 @@ jsdouble FASTCALL builtin_Math_sqrt(jsdouble d)
return sqrt(d);
}
JSObject* FASTCALL builtin_get_this(JSContext* cx)
{
JSObject *obj;
JS_COMPUTE_THIS(cx, cx->fp, obj);
return obj;
error:
return NULL; /* XXX error */
}
#define LO ARGSIZE_LO
#define F ARGSIZE_F
#define Q ARGSIZE_Q