mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 684111 - remove an unused parameter from EmitCheck. r=cdleary.
This commit is contained in:
parent
43f0a42c79
commit
382d6589f2
@ -158,7 +158,7 @@ JSCodeGenerator::~JSCodeGenerator()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ptrdiff_t
|
static ptrdiff_t
|
||||||
EmitCheck(JSContext *cx, JSCodeGenerator *cg, JSOp op, ptrdiff_t delta)
|
EmitCheck(JSContext *cx, JSCodeGenerator *cg, ptrdiff_t delta)
|
||||||
{
|
{
|
||||||
jsbytecode *base, *limit, *next;
|
jsbytecode *base, *limit, *next;
|
||||||
ptrdiff_t offset, length;
|
ptrdiff_t offset, length;
|
||||||
@ -263,7 +263,7 @@ UpdateDecomposeLength(JSCodeGenerator *cg, uintN start)
|
|||||||
ptrdiff_t
|
ptrdiff_t
|
||||||
js_Emit1(JSContext *cx, JSCodeGenerator *cg, JSOp op)
|
js_Emit1(JSContext *cx, JSCodeGenerator *cg, JSOp op)
|
||||||
{
|
{
|
||||||
ptrdiff_t offset = EmitCheck(cx, cg, op, 1);
|
ptrdiff_t offset = EmitCheck(cx, cg, 1);
|
||||||
|
|
||||||
if (offset >= 0) {
|
if (offset >= 0) {
|
||||||
*CG_NEXT(cg)++ = (jsbytecode)op;
|
*CG_NEXT(cg)++ = (jsbytecode)op;
|
||||||
@ -275,7 +275,7 @@ js_Emit1(JSContext *cx, JSCodeGenerator *cg, JSOp op)
|
|||||||
ptrdiff_t
|
ptrdiff_t
|
||||||
js_Emit2(JSContext *cx, JSCodeGenerator *cg, JSOp op, jsbytecode op1)
|
js_Emit2(JSContext *cx, JSCodeGenerator *cg, JSOp op, jsbytecode op1)
|
||||||
{
|
{
|
||||||
ptrdiff_t offset = EmitCheck(cx, cg, op, 2);
|
ptrdiff_t offset = EmitCheck(cx, cg, 2);
|
||||||
|
|
||||||
if (offset >= 0) {
|
if (offset >= 0) {
|
||||||
jsbytecode *next = CG_NEXT(cg);
|
jsbytecode *next = CG_NEXT(cg);
|
||||||
@ -291,7 +291,7 @@ ptrdiff_t
|
|||||||
js_Emit3(JSContext *cx, JSCodeGenerator *cg, JSOp op, jsbytecode op1,
|
js_Emit3(JSContext *cx, JSCodeGenerator *cg, JSOp op, jsbytecode op1,
|
||||||
jsbytecode op2)
|
jsbytecode op2)
|
||||||
{
|
{
|
||||||
ptrdiff_t offset = EmitCheck(cx, cg, op, 3);
|
ptrdiff_t offset = EmitCheck(cx, cg, 3);
|
||||||
|
|
||||||
if (offset >= 0) {
|
if (offset >= 0) {
|
||||||
jsbytecode *next = CG_NEXT(cg);
|
jsbytecode *next = CG_NEXT(cg);
|
||||||
@ -307,7 +307,7 @@ js_Emit3(JSContext *cx, JSCodeGenerator *cg, JSOp op, jsbytecode op1,
|
|||||||
ptrdiff_t
|
ptrdiff_t
|
||||||
js_Emit5(JSContext *cx, JSCodeGenerator *cg, JSOp op, uint16 op1, uint16 op2)
|
js_Emit5(JSContext *cx, JSCodeGenerator *cg, JSOp op, uint16 op1, uint16 op2)
|
||||||
{
|
{
|
||||||
ptrdiff_t offset = EmitCheck(cx, cg, op, 5);
|
ptrdiff_t offset = EmitCheck(cx, cg, 5);
|
||||||
|
|
||||||
if (offset >= 0) {
|
if (offset >= 0) {
|
||||||
jsbytecode *next = CG_NEXT(cg);
|
jsbytecode *next = CG_NEXT(cg);
|
||||||
@ -326,7 +326,7 @@ ptrdiff_t
|
|||||||
js_EmitN(JSContext *cx, JSCodeGenerator *cg, JSOp op, size_t extra)
|
js_EmitN(JSContext *cx, JSCodeGenerator *cg, JSOp op, size_t extra)
|
||||||
{
|
{
|
||||||
ptrdiff_t length = 1 + (ptrdiff_t)extra;
|
ptrdiff_t length = 1 + (ptrdiff_t)extra;
|
||||||
ptrdiff_t offset = EmitCheck(cx, cg, op, length);
|
ptrdiff_t offset = EmitCheck(cx, cg, length);
|
||||||
|
|
||||||
if (offset >= 0) {
|
if (offset >= 0) {
|
||||||
jsbytecode *next = CG_NEXT(cg);
|
jsbytecode *next = CG_NEXT(cg);
|
||||||
|
Loading…
Reference in New Issue
Block a user