mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
Bug 1028745 - Avoid using foreign ASSERT() macro in JS code. r=bhackett
This commit is contained in:
parent
76be6a9180
commit
679720da07
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)));
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user