Bug 718969 - Perform an exorcism; remove the decompiler. r=luke

--HG--
extra : rebase_source : 64df8f9a7ac230e1462a8f6e134ac3e86258d6f8
This commit is contained in:
Benjamin Peterson 2013-02-01 00:19:00 -05:00
parent b1908446d0
commit ba2bb88b35
2 changed files with 9 additions and 4613 deletions

File diff suppressed because it is too large Load Diff

View File

@ -238,33 +238,6 @@ extern const char js_EscapeMap[];
extern JSString *
js_QuoteString(JSContext *cx, JSString *str, jschar quote);
/*
* JSPrinter operations, for printf style message formatting. The return
* value from js_GetPrinterOutput() is the printer's cumulative output, in
* a GC'ed string.
*
* strict is true if the context in which the output will appear has
* already been marked as strict, thus indicating that nested
* functions need not be re-marked with a strict directive. It should
* be false in the outermost printer.
*/
extern JSPrinter *
js_NewPrinter(JSContext *cx, const char *name, JSFunction *fun,
unsigned indent, JSBool pretty, JSBool grouped, JSBool strict);
extern void
js_DestroyPrinter(JSPrinter *jp);
extern JSString *
js_GetPrinterOutput(JSPrinter *jp);
extern int
js_printf(JSPrinter *jp, const char *format, ...);
extern JSBool
js_puts(JSPrinter *jp, const char *s);
#define GET_ATOM_FROM_BYTECODE(script, pc, pcoff, atom) \
JS_BEGIN_MACRO \
JS_ASSERT(js_CodeSpec[*(pc)].format & JOF_ATOM); \
@ -289,24 +262,6 @@ StackDefs(JSScript *script, jsbytecode *pc);
} /* namespace js */
/*
* Decompilers, for script, function, and expression pretty-printing.
*/
/*
* Some C++ compilers treat the language linkage (extern "C" vs.
* extern "C++") as part of function (and thus pointer-to-function)
* types. The use of this typedef (defined in "C") ensures that
* js_DecompileToString's definition (in "C++") gets matched up with
* this declaration.
*/
typedef JSBool (* JSDecompilerPtr)(JSPrinter *);
extern JSString *
js_DecompileToString(JSContext *cx, const char *name, JSFunction *fun,
unsigned indent, JSBool pretty, JSBool grouped, JSBool strict,
JSDecompilerPtr decompiler);
/*
* Given bytecode address pc in script's main program code, return the operand
* stack depth just before (JSOp) *pc executes.