JSString::mLengthAndFlags and mChars are not constant (585309, r=apierce).

This commit is contained in:
Andreas Gal 2010-08-07 20:01:02 -07:00
parent 35c318f12b
commit 5322ed0408

View File

@ -12473,7 +12473,7 @@ TraceRecorder::getStringLength(LIns* str_ins)
return addName(lir->ins2ImmI(LIR_rshup,
addName(lir->insLoad(LIR_ldp, str_ins,
offsetof(JSString, mLengthAndFlags),
ACCSET_OTHER, LOAD_CONST), "mLengthAndFlags"),
ACCSET_OTHER), "mLengthAndFlags"),
JSString::FLAGS_LENGTH_SHIFT), "length");
}
@ -12482,7 +12482,7 @@ TraceRecorder::getStringChars(LIns* str_ins)
{
return addName(lir->insLoad(LIR_ldp, str_ins,
offsetof(JSString, mChars),
ACCSET_OTHER, LOAD_CONST), "chars");
ACCSET_OTHER), "chars");
}
JS_REQUIRES_STACK LIns*
@ -12490,7 +12490,7 @@ TraceRecorder::getCharCodeAt(JSString *str, LIns* str_ins, LIns* idx_ins)
{
idx_ins = lir->insUI2P(makeNumberInt32(idx_ins));
LIns *length_ins = lir->insLoad(LIR_ldp, str_ins, offsetof(JSString, mLengthAndFlags),
ACCSET_OTHER, LOAD_CONST);
ACCSET_OTHER);
LIns *br = lir->insBranch(LIR_jt,
lir->insEqP_0(lir->ins2(LIR_andp,
length_ins,
@ -12515,7 +12515,7 @@ TraceRecorder::getCharAt(JSString *str, LIns* str_ins, LIns* idx_ins)
{
idx_ins = lir->insUI2P(makeNumberInt32(idx_ins));
LIns *length_ins = lir->insLoad(LIR_ldp, str_ins, offsetof(JSString, mLengthAndFlags),
ACCSET_OTHER, LOAD_CONST);
ACCSET_OTHER);
LIns *br = lir->insBranch(LIR_jt,
lir->insEqP_0(lir->ins2(LIR_andp,
length_ins,