Bug 364809: Patch from Seno.Aiko@gmail.com to remove no longer used JSContext.jsop_*. r=myself

This commit is contained in:
igor.bukanov%gmail.com 2007-01-17 11:02:11 +00:00
parent cfd265046f
commit 7d2008a7b1
3 changed files with 5 additions and 9 deletions

View File

@ -234,8 +234,6 @@ js_NewContext(JSRuntime *rt, size_t stackChunkSize)
* done by js_DestroyContext). * done by js_DestroyContext).
*/ */
cx->version = JSVERSION_DEFAULT; cx->version = JSVERSION_DEFAULT;
cx->jsop_eq = JSOP_EQ;
cx->jsop_ne = JSOP_NE;
JS_InitArenaPool(&cx->stackPool, "stack", stackChunkSize, sizeof(jsval)); JS_InitArenaPool(&cx->stackPool, "stack", stackChunkSize, sizeof(jsval));
JS_InitArenaPool(&cx->tempPool, "temp", 1024, sizeof(jsdouble)); JS_InitArenaPool(&cx->tempPool, "temp", 1024, sizeof(jsdouble));

View File

@ -655,11 +655,6 @@ struct JSContext {
/* Limit pointer for checking stack consumption during recursion. */ /* Limit pointer for checking stack consumption during recursion. */
jsuword stackLimit; jsuword stackLimit;
/* Runtime version control identifier and equality operators. */
uint16 version;
jsbytecode jsop_eq;
jsbytecode jsop_ne;
/* Data shared by threads in an address space. */ /* Data shared by threads in an address space. */
JSRuntime *runtime; JSRuntime *runtime;
@ -758,6 +753,9 @@ struct JSContext {
/* Flag to indicate that we run inside gcCallback(cx, JSGC_MARK_END). */ /* Flag to indicate that we run inside gcCallback(cx, JSGC_MARK_END). */
JSPackedBool insideGCMarkCallback; JSPackedBool insideGCMarkCallback;
/* Runtime version control identifier. */
uint16 version;
/* Per-context options. */ /* Per-context options. */
uint32 options; /* see jsapi.h for JSOPTION_* */ uint32 options; /* see jsapi.h for JSOPTION_* */

View File

@ -1581,7 +1581,7 @@ retry:
case '=': case '=':
if (MatchChar(ts, c)) { if (MatchChar(ts, c)) {
tp->t_op = MatchChar(ts, c) ? JSOP_STRICTEQ : (JSOp)cx->jsop_eq; tp->t_op = MatchChar(ts, c) ? JSOP_STRICTEQ : JSOP_EQ;
tt = TOK_EQOP; tt = TOK_EQOP;
} else { } else {
tp->t_op = JSOP_NOP; tp->t_op = JSOP_NOP;
@ -1591,7 +1591,7 @@ retry:
case '!': case '!':
if (MatchChar(ts, '=')) { if (MatchChar(ts, '=')) {
tp->t_op = MatchChar(ts, '=') ? JSOP_STRICTNE : (JSOp)cx->jsop_ne; tp->t_op = MatchChar(ts, '=') ? JSOP_STRICTNE : JSOP_NE;
tt = TOK_EQOP; tt = TOK_EQOP;
} else { } else {
tp->t_op = JSOP_NOT; tp->t_op = JSOP_NOT;