Bug 1003918 followup - Fix non-unified builds. r=red

This commit is contained in:
Jan de Mooij 2014-05-01 12:03:38 +02:00
parent a232f60649
commit e27c4720a3
2 changed files with 9 additions and 1 deletions

View File

@ -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)

View File

@ -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();
}
};