Bug 1074911 - Replace JS_ASSERT by MOZ_ASSERT. r=jorendorff

Apply the following script

sed -i '
   /JS_ASSERT(/ {
     s/JS_ASSERT(/MOZ_ASSERT(/;
     :b;
     s/ \\$/\\/;
     /;/ { p; d; };
     n;
     s/^/ /;
     b b;
  };
  s/JS_ASSERT (/MOZ_ASSERT(/;
'

Except where the JS_ASSERT macro does not end with a semi-colon, where empty
lines are in the middle of the macro, and where the backslahes are always the
same-length after the expression.
This commit is contained in:
Nicolas B. Pierron
2014-10-01 19:17:51 +02:00
parent 67294e3798
commit cb753ff627
385 changed files with 8439 additions and 8439 deletions

View File

@@ -148,7 +148,7 @@ JSRuntime::initializeAtoms(JSContext *cx)
return false;
names->init(atom->asPropertyName());
}
JS_ASSERT(uintptr_t(names) == uintptr_t(commonNames + 1));
MOZ_ASSERT(uintptr_t(names) == uintptr_t(commonNames + 1));
emptyString = commonNames->empty;
@@ -267,12 +267,12 @@ JSRuntime::sweepAtoms()
bool
JSRuntime::transformToPermanentAtoms()
{
JS_ASSERT(!parentRuntime);
MOZ_ASSERT(!parentRuntime);
// All static strings were created as permanent atoms, now move the contents
// of the atoms table into permanentAtoms and mark each as permanent.
JS_ASSERT(permanentAtoms && permanentAtoms->empty());
MOZ_ASSERT(permanentAtoms && permanentAtoms->empty());
AtomSet *temp = atoms_;
atoms_ = permanentAtoms;
@@ -385,9 +385,9 @@ js::AtomizeString(ExclusiveContext *cx, JSString *str,
AutoLockForExclusiveAccess lock(cx);
p = cx->atoms().lookup(lookup);
JS_ASSERT(p); /* Non-static atom must exist in atom state set. */
JS_ASSERT(p->asPtr() == &atom);
JS_ASSERT(ib == InternAtom);
MOZ_ASSERT(p); /* Non-static atom must exist in atom state set. */
MOZ_ASSERT(p->asPtr() == &atom);
MOZ_ASSERT(ib == InternAtom);
p->setTagged(bool(ib));
return &atom;
}
@@ -435,7 +435,7 @@ js::AtomizeChars(ExclusiveContext *cx, const char16_t *chars, size_t length, Int
bool
js::IndexToIdSlow(ExclusiveContext *cx, uint32_t index, MutableHandleId idp)
{
JS_ASSERT(index > JSID_INT_MAX);
MOZ_ASSERT(index > JSID_INT_MAX);
char16_t buf[UINT32_CHAR_BUFFER_LENGTH];
RangedPtr<char16_t> end(ArrayEnd(buf), buf, ArrayEnd(buf));
@@ -453,7 +453,7 @@ template <AllowGC allowGC>
static JSAtom *
ToAtomSlow(ExclusiveContext *cx, typename MaybeRooted<Value, allowGC>::HandleType arg)
{
JS_ASSERT(!arg.isString());
MOZ_ASSERT(!arg.isString());
Value v = arg;
if (!v.isPrimitive()) {