diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index f06dd123c2b..c974f40043c 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -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) && diff --git a/js/src/frontend/BytecodeEmitter.h b/js/src/frontend/BytecodeEmitter.h index 2f1a3fc8079..55879a38407 100644 --- a/js/src/frontend/BytecodeEmitter.h +++ b/js/src/frontend/BytecodeEmitter.h @@ -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