Bug 767202 (part 1) - Don't export PopStatementBCE(). r=bhackett.

--HG--
extra : rebase_source : 07fd12e3ec15e2739bb7b72ff7063a6e50ded930
This commit is contained in:
Nicholas Nethercote 2012-06-14 21:03:43 -07:00
parent e360fa128a
commit 1cf6ba186c
2 changed files with 5 additions and 10 deletions

View File

@ -624,8 +624,11 @@ BackPatch(JSContext *cx, BytecodeEmitter *bce, ptrdiff_t last, jsbytecode *targe
return JS_TRUE;
}
JSBool
frontend::PopStatementBCE(JSContext *cx, BytecodeEmitter *bce)
// Like PopStatementTC(bce), also patch breaks and continues unless the top
// statement info record represents a try-catch-finally suite. May fail if a
// jump offset overflows.
static JSBool
PopStatementBCE(JSContext *cx, BytecodeEmitter *bce)
{
StmtInfo *stmt = bce->sc->topStmt;
if (!STMT_IS_TRYING(stmt) &&

View File

@ -220,14 +220,6 @@ Emit3(JSContext *cx, BytecodeEmitter *bce, JSOp op, jsbytecode op1, jsbytecode o
ptrdiff_t
EmitN(JSContext *cx, BytecodeEmitter *bce, JSOp op, size_t extra);
/*
* Like PopStatementTC(bce), also patch breaks and continues unless the top
* statement info record represents a try-catch-finally suite. May fail if a
* jump offset overflows.
*/
JSBool
PopStatementBCE(JSContext *cx, BytecodeEmitter *bce);
/*
* Define and lookup a primitive jsval associated with the const named by atom.
* DefineCompileTimeConstant analyzes the constant-folded initializer at pn