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
This commit is contained in:
parent
05270212c3
commit
0f89c8b91d
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user