mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
Fixed AMD64 accidentally treating the shape as a 64-bit integer.
This commit is contained in:
parent
9c97f1af57
commit
736e0f3032
@ -2547,7 +2547,7 @@ TraceRecorder::test_property_cache(JSObject* obj, LIns* obj_ins, JSObject*& obj2
|
|||||||
|
|
||||||
if (PCVCAP_TAG(entry->vcap) <= 1) {
|
if (PCVCAP_TAG(entry->vcap) <= 1) {
|
||||||
if (aobj != globalObj) {
|
if (aobj != globalObj) {
|
||||||
LIns* shape_ins = addName(lir->insLoad(LIR_ldp, map_ins, offsetof(JSScope, shape)), "shape");
|
LIns* shape_ins = addName(lir->insLoad(LIR_ld, map_ins, offsetof(JSScope, shape)), "shape");
|
||||||
guard(true, addName(lir->ins2i(LIR_eq, shape_ins, entry->kshape), "guard(shape)"),
|
guard(true, addName(lir->ins2i(LIR_eq, shape_ins, entry->kshape), "guard(shape)"),
|
||||||
MISMATCH_EXIT);
|
MISMATCH_EXIT);
|
||||||
}
|
}
|
||||||
@ -2567,7 +2567,7 @@ TraceRecorder::test_property_cache(JSObject* obj, LIns* obj_ins, JSObject*& obj2
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
LIns* shape_ins = addName(lir->insLoad(LIR_ldp, map_ins, offsetof(JSScope, shape)), "shape");
|
LIns* shape_ins = addName(lir->insLoad(LIR_ld, map_ins, offsetof(JSScope, shape)), "shape");
|
||||||
guard(true,
|
guard(true,
|
||||||
addName(lir->ins2i(LIR_eq, shape_ins, PCVCAP_SHAPE(entry->vcap)),
|
addName(lir->ins2i(LIR_eq, shape_ins, PCVCAP_SHAPE(entry->vcap)),
|
||||||
"guard(vcap_shape)"),
|
"guard(vcap_shape)"),
|
||||||
@ -3431,7 +3431,7 @@ TraceRecorder::record_JSOP_SETPROP()
|
|||||||
|
|
||||||
// The global object's shape is guarded at trace entry.
|
// The global object's shape is guarded at trace entry.
|
||||||
if (obj != globalObj) {
|
if (obj != globalObj) {
|
||||||
LIns* shape_ins = addName(lir->insLoad(LIR_ldp, map_ins, offsetof(JSScope, shape)), "shape");
|
LIns* shape_ins = addName(lir->insLoad(LIR_ld, map_ins, offsetof(JSScope, shape)), "shape");
|
||||||
guard(true, addName(lir->ins2i(LIR_eq, shape_ins, kshape), "guard(shape)"),
|
guard(true, addName(lir->ins2i(LIR_eq, shape_ins, kshape), "guard(shape)"),
|
||||||
MISMATCH_EXIT);
|
MISMATCH_EXIT);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user