Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 184d2ff4d874709669517cbbc2780c8e470e17df..d7aed1cd8e68ba71746e888218b245a8aee570b6 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8196,8 +8196,9 @@ HInstruction* HOptimizedGraphBuilder::BuildFastLiteral( |
int object_size = boilerplate_object->map()->instance_size(); |
int object_offset = object_size; |
+ InstanceType instance_type = boilerplate_object->map()->instance_type(); |
bool create_allocation_site_info = mode == TRACK_ALLOCATION_SITE && |
- AllocationSite::CanTrack(boilerplate_object->map()->instance_type()); |
+ AllocationSite::CanTrack(instance_type); |
// If using allocation sites, then the payload on the site should already |
// be filled in as a valid (boilerplate) array. |
@@ -8210,7 +8211,7 @@ HInstruction* HOptimizedGraphBuilder::BuildFastLiteral( |
HValue* object_size_constant = Add<HConstant>(object_size); |
HInstruction* object = Add<HAllocate>(object_size_constant, HType::JSObject(), |
Hannes Payer (out of office)
2013/09/18 14:03:16
can we also change that to HType::JSArray()?
|
- isolate()->heap()->GetPretenureMode(), JS_OBJECT_TYPE); |
+ isolate()->heap()->GetPretenureMode(), instance_type); |
BuildEmitObjectHeader(boilerplate_object, object); |