Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE
This commit is contained in:
@@ -392,15 +392,15 @@ JOF_OPTYPE(JSOp op)
|
||||
#pragma warning(disable:4100)
|
||||
#endif
|
||||
|
||||
namespace js {
|
||||
|
||||
/*
|
||||
* Return a GC'ed string containing the chars in str, with any non-printing
|
||||
* chars or quotes (' or " as specified by the quote argument) escaped, and
|
||||
* with the quote character at the beginning and end of the result string.
|
||||
*/
|
||||
extern JSString *
|
||||
js_QuoteString(js::ExclusiveContext *cx, JSString *str, char16_t quote);
|
||||
|
||||
namespace js {
|
||||
QuoteString(ExclusiveContext *cx, JSString *str, char16_t quote);
|
||||
|
||||
static inline bool
|
||||
IsJumpOpcode(JSOp op)
|
||||
@@ -535,13 +535,13 @@ ReconstructStackDepth(JSContext *cx, JSScript *script, jsbytecode *pc, uint32_t
|
||||
#define JSDVG_IGNORE_STACK 0
|
||||
#define JSDVG_SEARCH_STACK 1
|
||||
|
||||
namespace js {
|
||||
|
||||
/*
|
||||
* Get the length of variable-length bytecode like JSOP_TABLESWITCH.
|
||||
*/
|
||||
extern size_t
|
||||
js_GetVariableBytecodeLength(jsbytecode *pc);
|
||||
|
||||
namespace js {
|
||||
GetVariableBytecodeLength(jsbytecode *pc);
|
||||
|
||||
/*
|
||||
* Find the source expression that resulted in v, and return a newly allocated
|
||||
@@ -676,7 +676,7 @@ GetBytecodeLength(jsbytecode *pc)
|
||||
|
||||
if (js_CodeSpec[op].length != -1)
|
||||
return js_CodeSpec[op].length;
|
||||
return js_GetVariableBytecodeLength(pc);
|
||||
return GetVariableBytecodeLength(pc);
|
||||
}
|
||||
|
||||
static inline bool
|
||||
@@ -985,25 +985,22 @@ GetNextPc(jsbytecode *pc)
|
||||
return pc + GetBytecodeLength(pc);
|
||||
}
|
||||
|
||||
} /* namespace js */
|
||||
|
||||
#if defined(DEBUG)
|
||||
/*
|
||||
* Disassemblers, for debugging only.
|
||||
*/
|
||||
bool
|
||||
js_Disassemble(JSContext *cx, JS::Handle<JSScript*> script, bool lines, js::Sprinter *sp);
|
||||
Disassemble(JSContext *cx, JS::Handle<JSScript*> script, bool lines, Sprinter *sp);
|
||||
|
||||
unsigned
|
||||
js_Disassemble1(JSContext *cx, JS::Handle<JSScript*> script, jsbytecode *pc, unsigned loc,
|
||||
bool lines, js::Sprinter *sp);
|
||||
Disassemble1(JSContext *cx, JS::Handle<JSScript*> script, jsbytecode *pc, unsigned loc,
|
||||
bool lines, Sprinter *sp);
|
||||
|
||||
#endif
|
||||
|
||||
void
|
||||
js_DumpPCCounts(JSContext *cx, JS::Handle<JSScript*> script, js::Sprinter *sp);
|
||||
DumpPCCounts(JSContext *cx, JS::Handle<JSScript*> script, Sprinter *sp);
|
||||
|
||||
namespace js {
|
||||
namespace jit { struct IonScriptCounts; }
|
||||
void
|
||||
DumpIonScriptCounts(js::Sprinter *sp, jit::IonScriptCounts *ionCounts);
|
||||
|
||||
Reference in New Issue
Block a user