Commit 3586c074 authored by verwaest@chromium.org's avatar verwaest@chromium.org

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
parent 60df9dab
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment