Fix broken aliasing annotations from bug 600016

This commit is contained in:
Bill McCloskey 2010-10-19 10:17:29 -07:00
Родитель 3e7f426a57
Коммит f5ca4dd467
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -11389,9 +11389,14 @@ roundReturningInt(jsdouble x, int32 *out)
return JSDOUBLE_IS_INT32(r, out);
}
JS_DEFINE_CALLINFO_2(static, BOOL, ceilReturningInt, DOUBLE, INT32PTR, 1, ACCSET_NONE)
JS_DEFINE_CALLINFO_2(static, BOOL, floorReturningInt, DOUBLE, INT32PTR, 1, ACCSET_NONE)
JS_DEFINE_CALLINFO_2(static, BOOL, roundReturningInt, DOUBLE, INT32PTR, 1, ACCSET_NONE)
/*
* These functions store into their second argument, so they need to
* be annotated accordingly. To be future-proof, we use ACCSET_STORE_ANY
* so that new callers don't have to remember to update the annotation.
*/
JS_DEFINE_CALLINFO_2(static, BOOL, ceilReturningInt, DOUBLE, INT32PTR, 0, ACCSET_STORE_ANY)
JS_DEFINE_CALLINFO_2(static, BOOL, floorReturningInt, DOUBLE, INT32PTR, 0, ACCSET_STORE_ANY)
JS_DEFINE_CALLINFO_2(static, BOOL, roundReturningInt, DOUBLE, INT32PTR, 0, ACCSET_STORE_ANY)
JS_REQUIRES_STACK RecordingStatus
TraceRecorder::callFloatReturningInt(uintN argc, const nanojit::CallInfo *ci)