Fix static analysis. It is ok for ComputeThis_tn to see a stale cx->fp since we just want to ensure the global object is wrapped.
Fix static analysis. It is ok for ComputeThis_tn to see a stale cx->fp since we just want to ensure the global object is wrapped.
--- a/js/src/jstracer.cpp
+++ b/js/src/jstracer.cpp
@@ -6230,16 +6230,18 @@ TraceRecorder::unbox_jsval(jsval v, LIns
v_ins = lir->ins2(LIR_piand, v_ins, INS_CONST(~JSVAL_TAGMASK));
return;
}
}
static JSObject*
ComputeThis_tn(JSContext* cx)
{
+ VOUCH_DOES_NOT_REQUIRE_STACK();
+
return js_ComputeThisForFrame(cx, cx->fp);
}
JS_DEFINE_CALLINFO_1(static, OBJECT, ComputeThis_tn, CONTEXT, 1, 1) /* safe to CSE */
JS_REQUIRES_STACK bool
TraceRecorder::getThis(LIns*& this_ins)
{