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

Unified Diff: src/hydrogen.cc

Issue 35133002: Enable double alignment for constructed arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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 | no next file » | no next file with comments »
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 9d990bf93cc857ba325f11163fac940f84cc5c46..ddf82a11ee11207e0706f5b479deb20a2d2f0c55 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -2122,9 +2122,11 @@ HValue* HGraphBuilder::JSArrayBuilder::AllocateArray(HValue* size_in_bytes,
Representation::Smi());
length_field = builder()->Add<HForceRepresentation>(length_field,
Representation::Smi());
+ InstanceType instance_type = IsFastDoubleElementsKind(kind_)
+ ? FIXED_DOUBLE_ARRAY_TYPE : JS_ARRAY_TYPE;
// Allocate (dealing with failure appropriately)
HAllocate* new_object = builder()->Add<HAllocate>(size_in_bytes,
- HType::JSArray(), NOT_TENURED, JS_ARRAY_TYPE);
+ HType::JSArray(), NOT_TENURED, instance_type);
Hannes Payer (out of office) 2013/10/23 09:49:34 This is not correct. JS_ARRAY refers to the array
dusmil 2013/10/23 13:27:35 Yes, the problem there is that allocation of array
dusmil 2013/10/23 13:55:20 Done.
// Fill in the fields: map, properties, length
HValue* map;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698