Backed out changeset 65836af09dac - compilation errors

This commit is contained in:
Igor Bukanov 2008-07-27 23:05:52 +02:00
Родитель e0e39c56dc
Коммит 10b11d0ab0
7 изменённых файлов: 2741 добавлений и 137 удалений

Просмотреть файл

@ -1236,7 +1236,7 @@ SrcNotes(JSContext *cx, JSScript *script)
} }
} }
fprintf(gOutFile, "%3u: %5u [%4u] %-8s", fprintf(gOutFile, "%3u: %5u [%4u] %-8s",
(uintN) PTRDIFF(sn, notes, jssrcnote), offset, delta, name); PTRDIFF(sn, notes, jssrcnote), offset, delta, name);
switch (type) { switch (type) {
case SRC_SETLINE: case SRC_SETLINE:
fprintf(gOutFile, " lineno %u", (uintN) js_GetSrcNoteOffset(sn, 0)); fprintf(gOutFile, " lineno %u", (uintN) js_GetSrcNoteOffset(sn, 0));

Просмотреть файл

@ -741,8 +741,6 @@ JS_NewRuntime(uint32 maxbytes)
JS_INIT_CLIST(&rt->trapList); JS_INIT_CLIST(&rt->trapList);
JS_INIT_CLIST(&rt->watchPointList); JS_INIT_CLIST(&rt->watchPointList);
if (!js_InitDtoa())
goto bad;
if (!js_InitGC(rt, maxbytes)) if (!js_InitGC(rt, maxbytes))
goto bad; goto bad;
if (!js_InitAtomState(rt)) if (!js_InitAtomState(rt))

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -123,8 +123,7 @@ JS_dtobasestr(int base, double d);
* Clean up any persistent RAM allocated during the execution of DtoA * Clean up any persistent RAM allocated during the execution of DtoA
* routines, and remove any locks that might have been created. * routines, and remove any locks that might have been created.
*/ */
JS_FRIEND_API(JSBool) js_InitDtoa(void); extern void js_FinishDtoa(void);
JS_FRIEND_API(void) js_FinishDtoa(void);
JS_END_EXTERN_C JS_END_EXTERN_C

Просмотреть файл

@ -2120,7 +2120,7 @@ js_TraceOpcode(JSContext *cx, jsint len)
JS_free(cx, bytes); JS_free(cx, bytes);
} }
} }
fprintf(tracefp, " @ %u\n", (uintN) (regs->sp - StackBase(fp))); fprintf(tracefp, " @ %d\n", regs->sp - StackBase(fp));
} }
fprintf(tracefp, " stack: "); fprintf(tracefp, " stack: ");
for (siter = StackBase(fp); siter < regs->sp; siter++) { for (siter = StackBase(fp); siter < regs->sp; siter++) {
@ -2151,7 +2151,7 @@ js_TraceOpcode(JSContext *cx, jsint len)
JS_free(cx, bytes); JS_free(cx, bytes);
} }
} }
fprintf(tracefp, " @ %u\n", (uintN) (regs->sp - StackBase(fp))); fprintf(tracefp, " @ %d\n", regs->sp - StackBase(fp));
} }
} }

Просмотреть файл

@ -1015,10 +1015,18 @@ js_strtod(JSContext *cx, const jschar *s, const jschar *send,
} else { } else {
int err; int err;
d = JS_strtod(cstr, &estr, &err); d = JS_strtod(cstr, &estr, &err);
if (d == HUGE_VAL) if (err == JS_DTOA_ENOMEM) {
d = *cx->runtime->jsPositiveInfinity; JS_ReportOutOfMemory(cx);
else if (d == -HUGE_VAL) if (cstr != cbuf)
d = *cx->runtime->jsNegativeInfinity; JS_free(cx, cstr);
return JS_FALSE;
}
if (err == JS_DTOA_ERANGE) {
if (d == HUGE_VAL)
d = *cx->runtime->jsPositiveInfinity;
else if (d == -HUGE_VAL)
d = *cx->runtime->jsNegativeInfinity;
}
#ifdef HPUX #ifdef HPUX
if (d == 0.0 && negative) { if (d == 0.0 && negative) {
/* /*

Просмотреть файл

@ -297,7 +297,7 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbytecode *pc,
case JOF_JUMP: case JOF_JUMP:
case JOF_JUMPX: case JOF_JUMPX:
off = GetJumpOffset(pc, pc); off = GetJumpOffset(pc, pc);
fprintf(fp, " %u (%d)", loc + (intN) off, (intN) off); fprintf(fp, " %u (%d)", loc + off, off);
break; break;
case JOF_ATOM: case JOF_ATOM:
@ -344,10 +344,10 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbytecode *pc,
pc2 += JUMP_OFFSET_LEN; pc2 += JUMP_OFFSET_LEN;
high = GET_JUMP_OFFSET(pc2); high = GET_JUMP_OFFSET(pc2);
pc2 += JUMP_OFFSET_LEN; pc2 += JUMP_OFFSET_LEN;
fprintf(fp, " defaultOffset %d low %d high %d", (intN) off, low, high); fprintf(fp, " defaultOffset %d low %d high %d", off, low, high);
for (i = low; i <= high; i++) { for (i = low; i <= high; i++) {
off = GetJumpOffset(pc, pc2); off = GetJumpOffset(pc, pc2);
fprintf(fp, "\n\t%d: %d", i, (intN) off); fprintf(fp, "\n\t%d: %d", i, off);
pc2 += jmplen; pc2 += jmplen;
} }
len = 1 + pc2 - pc; len = 1 + pc2 - pc;
@ -367,7 +367,7 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbytecode *pc,
pc2 += jmplen; pc2 += jmplen;
npairs = GET_UINT16(pc2); npairs = GET_UINT16(pc2);
pc2 += UINT16_LEN; pc2 += UINT16_LEN;
fprintf(fp, " offset %d npairs %u", (intN) off, (uintN) npairs); fprintf(fp, " offset %d npairs %u", off, (uintN) npairs);
while (npairs) { while (npairs) {
JS_GET_SCRIPT_ATOM(script, GET_INDEX(pc2), atom); JS_GET_SCRIPT_ATOM(script, GET_INDEX(pc2), atom);
pc2 += INDEX_LEN; pc2 += INDEX_LEN;
@ -377,7 +377,7 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbytecode *pc,
bytes = ToDisassemblySource(cx, ATOM_KEY(atom)); bytes = ToDisassemblySource(cx, ATOM_KEY(atom));
if (!bytes) if (!bytes)
return 0; return 0;
fprintf(fp, "\n\t%s: %d", bytes, (intN) off); fprintf(fp, "\n\t%s: %d", bytes, off);
npairs--; npairs--;
} }
len = 1 + pc2 - pc; len = 1 + pc2 - pc;