Bug 1028745 - Avoid using foreign ASSERT() macro in JS code. r=bhackett

This commit is contained in:
Jan Beich 2014-06-23 07:16:51 +02:00
parent 76be6a9180
commit 679720da07
3 changed files with 5 additions and 5 deletions

View File

@ -1214,7 +1214,7 @@ VFPRegister::sintOverlay() const
JS_ASSERT(!_isInvalid);
if (kind == Double) {
// There are no corresponding float registers for d16-d31
ASSERT(_code < 16);
JS_ASSERT(_code < 16);
return VFPRegister(_code << 1, Int);
}
@ -1227,7 +1227,7 @@ VFPRegister::uintOverlay() const
JS_ASSERT(!_isInvalid);
if (kind == Double) {
// There are no corresponding float registers for d16-d31
ASSERT(_code < 16);
JS_ASSERT(_code < 16);
return VFPRegister(_code << 1, UInt);
}

View File

@ -326,7 +326,7 @@ JitRuntime::generateEnterJIT(JSContext *cx, EnterJitType type)
// We're using a load-double here. In order for that to work,
// the data needs to be stored in two consecutive registers,
// make sure this is the case
// ASSERT(JSReturnReg_Type.code() == JSReturnReg_Data.code()+1);
// JS_ASSERT(JSReturnReg_Type.code() == JSReturnReg_Data.code()+1);
// aasm->as_extdtr(IsStore, 64, true, Offset,
// JSReturnReg_Data, EDtrAddr(r5, EDtrOffImm(0)));

View File

@ -2128,8 +2128,8 @@ static bool
SaveSharedScriptData(ExclusiveContext *cx, Handle<JSScript *> script, SharedScriptData *ssd,
uint32_t nsrcnotes)
{
ASSERT(script != nullptr);
ASSERT(ssd != nullptr);
JS_ASSERT(script != nullptr);
JS_ASSERT(ssd != nullptr);
AutoLockForExclusiveAccess lock(cx);