Smi arrays are only guaranteed to be initialized in non-holey case

BUG=
R=ishell@chromium.org

Review URL: https://codereview.chromium.org/413393004

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22617 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
verwaest@chromium.org 2014-07-25 12:27:55 +00:00
parent 60df9dabad
commit 3586c074d4

View File

@ -6981,10 +6981,12 @@ class HStoreKeyed V8_FINAL
return Representation::Double();
}
if (kind == FAST_SMI_ELEMENTS && SmiValuesAre32Bits() &&
mode == STORE_TO_INITIALIZED_ENTRY) {
return Representation::Integer32();
}
if (IsFastSmiElementsKind(kind)) {
if (SmiValuesAre32Bits() && mode == STORE_TO_INITIALIZED_ENTRY) {
return Representation::Integer32();
}
return Representation::Smi();
}