mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1003918 followup - Fix non-unified builds. r=red
This commit is contained in:
parent
a232f60649
commit
e27c4720a3
@ -1096,6 +1096,12 @@ SetDenseElement(JSContext *cx, HandleObject obj, int32_t index, HandleValue valu
|
||||
return SetObjectElement(cx, obj, indexVal, value, strict);
|
||||
}
|
||||
|
||||
void
|
||||
AutoDetectInvalidation::setReturnOverride()
|
||||
{
|
||||
cx_->runtime()->jitRuntime()->setIonReturnOverride(*rval_);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
AssertValidObjectPtr(JSContext *cx, JSObject *obj)
|
||||
|
@ -556,6 +556,8 @@ class AutoDetectInvalidation
|
||||
Value *rval_;
|
||||
bool disabled_;
|
||||
|
||||
void setReturnOverride();
|
||||
|
||||
public:
|
||||
AutoDetectInvalidation(JSContext *cx, Value *rval, IonScript *ionScript = nullptr);
|
||||
|
||||
@ -566,7 +568,7 @@ class AutoDetectInvalidation
|
||||
|
||||
~AutoDetectInvalidation() {
|
||||
if (!disabled_ && ionScript_->invalidated())
|
||||
cx_->runtime()->jitRuntime()->setIonReturnOverride(*rval_);
|
||||
setReturnOverride();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user