mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Style drive-by (no bug, r=me).
This commit is contained in:
parent
c36e0f89e0
commit
e348beac64
@ -1023,7 +1023,7 @@ ion::CanEnterAtBranch(JSContext *cx, JSScript *script, StackFrame *fp, jsbytecod
|
||||
MethodStatus status = Compile(cx, script, fp, pc);
|
||||
if (status != Method_Compiled) {
|
||||
if (status == Method_CantCompile)
|
||||
ion::forbidIonCompilation(script);
|
||||
ForbidCompilation(script);
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -1068,7 +1068,7 @@ ion::CanEnter(JSContext *cx, JSScript *script, StackFrame *fp, bool newType)
|
||||
MethodStatus status = Compile(cx, script, fp, NULL);
|
||||
if (status != Method_Compiled) {
|
||||
if (status == Method_CantCompile)
|
||||
ion::forbidIonCompilation(script);
|
||||
ForbidCompilation(script);
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -1392,11 +1392,13 @@ ion::MarkFromIon(JSCompartment *comp, Value *vp)
|
||||
gc::MarkValueUnbarriered(comp->barrierTracer(), vp, "write barrier");
|
||||
}
|
||||
|
||||
int js::ion::LabelBase::id_count = 0;
|
||||
|
||||
void ion::forbidIonCompilation(JSScript *script)
|
||||
void
|
||||
ion::ForbidCompilation(JSScript *script)
|
||||
{
|
||||
IonSpew(IonSpew_Abort, "Disabling Ion compilation of script %s:%d",
|
||||
script->filename, script->lineno);
|
||||
script->ion = ION_DISABLED_SCRIPT;
|
||||
}
|
||||
|
||||
int js::ion::LabelBase::id_count = 0;
|
||||
|
||||
|
@ -263,7 +263,7 @@ static inline bool IsEnabled(JSContext *cx)
|
||||
return cx->hasRunOption(JSOPTION_ION) && cx->typeInferenceEnabled();
|
||||
}
|
||||
|
||||
void forbidIonCompilation(JSScript *script);
|
||||
void ForbidCompilation(JSScript *script);
|
||||
|
||||
} // namespace ion
|
||||
} // namespace js
|
||||
|
@ -128,7 +128,7 @@ fun_getProperty(JSContext *cx, HandleObject obj_, HandleId id, Value *vp)
|
||||
// detecting its use early.
|
||||
JSScript *script = iter.script();
|
||||
if (!script->hasIonScript())
|
||||
ion::forbidIonCompilation(script);
|
||||
ion::ForbidCompilation(script);
|
||||
#endif
|
||||
|
||||
*vp = ObjectValue(*argsobj);
|
||||
|
Loading…
Reference in New Issue
Block a user