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

Unified Diff: src/hydrogen.cc

Issue 10538002: Skip canonicalization of packed arrays in HStoreKeyedFastDoubleElement (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 months 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 | src/hydrogen-instructions.h » ('j') | src/hydrogen-instructions.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index d880b02836df33384a97f3dd4cdaf53b0c2a92ae..3447101627d83592287d1d900c13c5722dcb866c 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -4480,9 +4480,11 @@ void HGraphBuilder::VisitArrayLiteral(ArrayLiteral* expr) {
break;
case FAST_DOUBLE_ELEMENTS:
case FAST_HOLEY_DOUBLE_ELEMENTS:
- AddInstruction(new(zone()) HStoreKeyedFastDoubleElement(elements,
- key,
- value));
+ AddInstruction(new(zone()) HStoreKeyedFastDoubleElement(
+ elements,
+ key,
+ value,
+ boilerplate_elements_kind));
break;
default:
UNREACHABLE();
@@ -5296,7 +5298,7 @@ HInstruction* HGraphBuilder::BuildFastElementAccess(HValue* elements,
case FAST_DOUBLE_ELEMENTS:
case FAST_HOLEY_DOUBLE_ELEMENTS:
return new(zone()) HStoreKeyedFastDoubleElement(
- elements, checked_key, val);
+ elements, checked_key, val, elements_kind);
case FAST_SMI_ELEMENTS:
case FAST_HOLEY_SMI_ELEMENTS:
// Smi-only arrays need a smi check.
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698