mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
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:
parent
a8de827765
commit
a0dbf6da95
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user