Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(878)

Unified Diff: src/ic/keyed-store-generic.cc

Issue 2492783004: [ic] Fix elements conversion in KeyedStoreGeneric (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-664469.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/keyed-store-generic.cc
diff --git a/src/ic/keyed-store-generic.cc b/src/ic/keyed-store-generic.cc
index c068b9bed4d30d0d82fced9d0f7b49f3734d7349..30faba85e949ba4d5d758e1a068111720fa5d7ea 100644
--- a/src/ic/keyed-store-generic.cc
+++ b/src/ic/keyed-store-generic.cc
@@ -139,7 +139,7 @@ void KeyedStoreGenericAssembler::TryRewriteElements(
{
if (IsFastDoubleElementsKind(from_kind) !=
IsFastDoubleElementsKind(to_kind)) {
- Node* capacity = LoadFixedArrayBaseLength(elements);
+ Node* capacity = SmiUntag(LoadFixedArrayBaseLength(elements));
GrowElementsCapacity(receiver, elements, from_kind, to_kind, capacity,
capacity, INTPTR_PARAMETERS, bailout);
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-664469.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698