Bug 1146597 - Remove redundant check for unboxed object/array runtime option.

This commit is contained in:
Brian Hackett 2015-05-03 17:19:02 -07:00
parent cd294539d3
commit f540b032f3

View File

@ -1829,10 +1829,6 @@ js::TryConvertToUnboxedLayout(ExclusiveContext* cx, Shape* templateShape,
bool isArray = !templateShape;
const JS::RuntimeOptions& options = group->runtimeFromAnyThread()->options();
if (isArray ? !options.unboxedArrays() : !options.unboxedObjects())
return true;
if (group->runtimeFromAnyThread()->isSelfHostingGlobal(cx->global()))
return true;