Revision: 19058
Author:   [email protected]
Date:     Tue Feb  4 10:59:40 2014 UTC
Log:      Fix in array instance type initialization.

[email protected]

Review URL: https://codereview.chromium.org/134713004
http://code.google.com/p/v8/source/detail?r=19058

Modified:
 /branches/bleeding_edge/src/hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Tue Feb  4 10:48:49 2014 UTC
+++ /branches/bleeding_edge/src/hydrogen.cc     Tue Feb  4 10:59:40 2014 UTC
@@ -8651,18 +8651,17 @@
         HObjectAccess::ForJSTypedArrayLength(),
         length);

+    Handle<Map> external_array_map(
+        isolate()->heap()->MapForExternalArrayType(array_type));
+
     HValue* elements =
         Add<HAllocate>(
             Add<HConstant>(ExternalArray::kAlignedSize),
             HType::JSArray(),
             NOT_TENURED,
- static_cast<InstanceType>(FIRST_EXTERNAL_ARRAY_TYPE + array_type));
+            external_array_map->instance_type());

-    Handle<Map> external_array_map(
-        isolate()->heap()->MapForExternalArrayType(array_type));
-    Add<HStoreNamedField>(elements,
-        HObjectAccess::ForMap(),
-        Add<HConstant>(external_array_map));
+    AddStoreMapConstant(elements, external_array_map);

     HValue* backing_store = Add<HLoadNamedField>(
         buffer, static_cast<HValue*>(NULL),

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to