Bug 1165392, Bug 1165463 - Various unboxed array fixes and optimizations, r=jandem.

This commit is contained in:
Brian Hackett
2015-05-26 16:29:19 -06:00
parent b8ee40228a
commit 4aca762e56
18 changed files with 594 additions and 279 deletions

View File

@@ -2810,6 +2810,12 @@ js::LookupPropertyPure(ExclusiveContext* cx, JSObject* obj, jsid id, JSObject**
MarkNonNativePropertyFound<NoGC>(propp);
return true;
}
} else if (obj->is<UnboxedArrayObject>()) {
if (obj->as<UnboxedArrayObject>().containsProperty(cx, id)) {
*objp = obj;
MarkNonNativePropertyFound<NoGC>(propp);
return true;
}
} else if (obj->is<TypedObject>()) {
if (obj->as<TypedObject>().typeDescr().hasProperty(cx->names(), id)) {
*objp = obj;