Commit 0f89c8b9 authored by ishell@chromium.org's avatar ishell@chromium.org

Fix in array instance type initialization.

R=dslomov@chromium.org

Review URL: https://codereview.chromium.org/134713004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19058 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 05270212
...@@ -8651,18 +8651,17 @@ void HOptimizedGraphBuilder::VisitTypedArrayInitialize( ...@@ -8651,18 +8651,17 @@ void HOptimizedGraphBuilder::VisitTypedArrayInitialize(
HObjectAccess::ForJSTypedArrayLength(), HObjectAccess::ForJSTypedArrayLength(),
length); length);
Handle<Map> external_array_map(
isolate()->heap()->MapForExternalArrayType(array_type));
HValue* elements = HValue* elements =
Add<HAllocate>( Add<HAllocate>(
Add<HConstant>(ExternalArray::kAlignedSize), Add<HConstant>(ExternalArray::kAlignedSize),
HType::JSArray(), HType::JSArray(),
NOT_TENURED, NOT_TENURED,
static_cast<InstanceType>(FIRST_EXTERNAL_ARRAY_TYPE + array_type)); external_array_map->instance_type());
Handle<Map> external_array_map( AddStoreMapConstant(elements, external_array_map);
isolate()->heap()->MapForExternalArrayType(array_type));
Add<HStoreNamedField>(elements,
HObjectAccess::ForMap(),
Add<HConstant>(external_array_map));
HValue* backing_store = Add<HLoadNamedField>( HValue* backing_store = Add<HLoadNamedField>(
buffer, static_cast<HValue*>(NULL), buffer, static_cast<HValue*>(NULL),
......
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