From aca6a8d43bb73abff65a383cfa9eef5a468de43f Mon Sep 17 00:00:00 2001 From: Jeff Walden Date: Tue, 31 Jan 2012 16:32:02 -0800 Subject: [PATCH] Backed out changeset f87d25461d6c -- seems js_DumpString (at least) is only exposed in vm/String.cpp #ifdef DEBUG. Still no bug, r=bustage --- js/src/jsobj.cpp | 6 ------ js/src/jsobj.h | 3 --- js/src/vm/String.cpp | 29 ----------------------------- js/src/vm/String.h | 7 ------- 4 files changed, 45 deletions(-) diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index 5cbc7a49a38..3a36ef4af61 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -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) { diff --git a/js/src/jsobj.h b/js/src/jsobj.h index ae37f5909a7..92e148de4f4 100644 --- a/js/src/jsobj.h +++ b/js/src/jsobj.h @@ -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(); }; /* diff --git a/js/src/vm/String.cpp b/js/src/vm/String.cpp index 346c8b15957..362fd0c2832 100644 --- a/js/src/vm/String.cpp +++ b/js/src/vm/String.cpp @@ -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). diff --git a/js/src/vm/String.h b/js/src/vm/String.h index b52d60e41f1..73d3c5c8693 100644 --- a/js/src/vm/String.h +++ b/js/src/vm/String.h @@ -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();