mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset f87d25461d6c -- seems js_DumpString (at least) is only exposed in vm/String.cpp #ifdef DEBUG. Still no bug, r=bustage
This commit is contained in:
parent
020dae920a
commit
aca6a8d43b
@ -6709,12 +6709,6 @@ DumpProperty(JSObject *obj, const Shape &shape)
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
|
||||
void
|
||||
JSObject::dump()
|
||||
{
|
||||
js_DumpObject(this);
|
||||
}
|
||||
|
||||
JS_FRIEND_API(void)
|
||||
js_DumpObject(JSObject *obj)
|
||||
{
|
||||
|
@ -1474,9 +1474,6 @@ struct JSObject : js::gc::Cell
|
||||
JS_STATIC_ASSERT(offsetof(JSObject, type_) == offsetof(js::shadow::Object, type));
|
||||
JS_STATIC_ASSERT(sizeof(JSObject) == sizeof(js::shadow::Object));
|
||||
}
|
||||
|
||||
/* For debugging purposes only! */
|
||||
void dump();
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -114,29 +114,6 @@ JSString::sizeOfExcludingThis(JSMallocSizeOfFun mallocSizeOf)
|
||||
return mallocSizeOf(fixed.chars());
|
||||
}
|
||||
|
||||
void
|
||||
JSString::dump()
|
||||
{
|
||||
js_DumpString(this);
|
||||
}
|
||||
|
||||
bool
|
||||
JSString::equals(const char *s)
|
||||
{
|
||||
const jschar *c = getChars(NULL);
|
||||
if (!c) {
|
||||
fprintf(stderr, "OOM in JSString::equals!\n");
|
||||
return false;
|
||||
}
|
||||
while (*c && *s) {
|
||||
if (*c != *s)
|
||||
return false;
|
||||
c++;
|
||||
s++;
|
||||
}
|
||||
return *c == *s;
|
||||
}
|
||||
|
||||
static JS_ALWAYS_INLINE bool
|
||||
AllocChars(JSContext *maybecx, size_t length, jschar **chars, size_t *capacity)
|
||||
{
|
||||
@ -413,12 +390,6 @@ JSFlatString::isIndex(uint32_t *indexp) const
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
JSAtom::dump()
|
||||
{
|
||||
js_DumpAtom(this);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set up some tools to make it easier to generate large tables. After constant
|
||||
* folding, for each n, Rn(0) is the comma-separated list R(0), R(1), ..., R(2^n-1).
|
||||
|
@ -198,10 +198,6 @@ class JSString : public js::gc::Cell
|
||||
};
|
||||
} d;
|
||||
|
||||
/* These are for debugging purposes only! */
|
||||
void dump();
|
||||
bool equals(const char *s);
|
||||
|
||||
public:
|
||||
/* Flags exposed only for jits */
|
||||
|
||||
@ -697,9 +693,6 @@ class JSAtom : public JSFixedString
|
||||
bool isAtom() const MOZ_DELETE;
|
||||
JSAtom &asAtom() const MOZ_DELETE;
|
||||
|
||||
/* This is for debugging purposes only! */
|
||||
void dump();
|
||||
|
||||
public:
|
||||
/* Returns the PropertyName for this. isIndex() must be false. */
|
||||
inline js::PropertyName *asPropertyName();
|
||||
|
Loading…
Reference in New Issue
Block a user