2009-05-05 17:01:55 -04:00
|
|
|
$OpenBSD: patch-src_jsopcode_c,v 1.3 2009/05/05 21:01:55 martynas Exp $
|
|
|
|
--- src/jsopcode.c.orig Thu Sep 27 21:30:18 2007
|
|
|
|
+++ src/jsopcode.c Sun May 3 23:07:02 2009
|
|
|
|
@@ -208,7 +208,7 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbyt
|
2006-10-01 19:02:12 -04:00
|
|
|
case JOF_JUMP:
|
|
|
|
case JOF_JUMPX:
|
|
|
|
off = GetJumpOffset(pc, pc);
|
|
|
|
- fprintf(fp, " %u (%d)", loc + off, off);
|
|
|
|
+ fprintf(fp, " %tu (%td)", loc + off, off);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case JOF_CONST:
|
2009-05-05 17:01:55 -04:00
|
|
|
@@ -239,10 +239,10 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbyt
|
2006-10-01 19:02:12 -04:00
|
|
|
pc2 += JUMP_OFFSET_LEN;
|
|
|
|
high = GET_JUMP_OFFSET(pc2);
|
|
|
|
pc2 += JUMP_OFFSET_LEN;
|
|
|
|
- fprintf(fp, " defaultOffset %d low %d high %d", off, low, high);
|
|
|
|
+ fprintf(fp, " defaultOffset %td low %d high %d", off, low, high);
|
|
|
|
for (i = low; i <= high; i++) {
|
|
|
|
off = GetJumpOffset(pc, pc2);
|
|
|
|
- fprintf(fp, "\n\t%d: %d", i, off);
|
|
|
|
+ fprintf(fp, "\n\t%d: %td", i, off);
|
|
|
|
pc2 += jmplen;
|
|
|
|
}
|
|
|
|
len = 1 + pc2 - pc;
|
2009-05-05 17:01:55 -04:00
|
|
|
@@ -262,7 +262,7 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbyt
|
2006-10-01 19:02:12 -04:00
|
|
|
pc2 += jmplen;
|
|
|
|
npairs = GET_ATOM_INDEX(pc2);
|
|
|
|
pc2 += ATOM_INDEX_LEN;
|
|
|
|
- fprintf(fp, " offset %d npairs %u", off, (uintN) npairs);
|
|
|
|
+ fprintf(fp, " offset %td npairs %u", off, (uintN) npairs);
|
|
|
|
while (npairs) {
|
|
|
|
atom = GET_ATOM(cx, script, pc2);
|
|
|
|
pc2 += ATOM_INDEX_LEN;
|