summaryrefslogtreecommitdiff
path: root/lang/spidermonkey/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'lang/spidermonkey/patches/patch-ai')
-rw-r--r--lang/spidermonkey/patches/patch-ai20
1 files changed, 10 insertions, 10 deletions
diff --git a/lang/spidermonkey/patches/patch-ai b/lang/spidermonkey/patches/patch-ai
index d2054375358..7b8daf8979b 100644
--- a/lang/spidermonkey/patches/patch-ai
+++ b/lang/spidermonkey/patches/patch-ai
@@ -1,8 +1,8 @@
-$NetBSD: patch-ai,v 1.1 2007/08/12 03:04:34 wiz Exp $
+$NetBSD: patch-ai,v 1.2 2010/12/23 12:36:02 fhajny Exp $
---- jsopcode.c.orig 2006-11-29 19:34:45.000000000 -0500
+--- jsopcode.c.orig 2009-02-03 09:25:56.000000000 +0000
+++ jsopcode.c
-@@ -183,7 +183,7 @@ js_Disassemble1(JSContext *cx, JSScript
+@@ -251,7 +251,7 @@ js_Disassemble1(JSContext *cx, JSScript
case JOF_JUMP:
case JOF_JUMPX:
off = GetJumpOffset(pc, pc);
@@ -10,8 +10,8 @@ $NetBSD: patch-ai,v 1.1 2007/08/12 03:04:34 wiz Exp $
+ fprintf(fp, " %tu (%td)", loc + off, off);
break;
- case JOF_CONST:
-@@ -214,10 +214,10 @@ js_Disassemble1(JSContext *cx, JSScript
+ case JOF_ATOM:
+@@ -298,10 +298,10 @@ js_Disassemble1(JSContext *cx, JSScript
pc2 += JUMP_OFFSET_LEN;
high = GET_JUMP_OFFSET(pc2);
pc2 += JUMP_OFFSET_LEN;
@@ -24,12 +24,12 @@ $NetBSD: patch-ai,v 1.1 2007/08/12 03:04:34 wiz Exp $
pc2 += jmplen;
}
len = 1 + pc2 - pc;
-@@ -237,7 +237,7 @@ js_Disassemble1(JSContext *cx, JSScript
+@@ -321,7 +321,7 @@ js_Disassemble1(JSContext *cx, JSScript
pc2 += jmplen;
- npairs = GET_ATOM_INDEX(pc2);
- pc2 += ATOM_INDEX_LEN;
+ npairs = GET_UINT16(pc2);
+ pc2 += UINT16_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;
+ JS_GET_SCRIPT_ATOM(script, GET_INDEX(pc2), atom);
+ pc2 += INDEX_LEN;