Commit a0dbf6da authored by Boris Zbarsky's avatar Boris Zbarsky
Browse files

Bug 815460. Always inline JS_THIS so that we don't run into performance...

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
parent a8de8277
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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];