Bug 815460. Always inline JS_THIS so that we don't run into performance issues if the compiler decides not to inline it. r=waldo

This commit is contained in:
Boris Zbarsky 2012-11-26 21:16:05 -05:00
parent a8de827765
commit a0dbf6da95

View File

@ -3357,7 +3357,7 @@ extern JS_PUBLIC_API(jsval)
JS_ComputeThis(JSContext *cx, jsval *vp);
#undef JS_THIS
static inline jsval
static JS_ALWAYS_INLINE jsval
JS_THIS(JSContext *cx, jsval *vp)
{
return JSVAL_IS_PRIMITIVE(vp[1]) ? JS_ComputeThis(cx, vp) : vp[1];