Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index cb2fa26a018c6d9d400dd176d0c1c97ad20ebe45..4cd94b9738740f71c172a877537c8da42f03bf09 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -390,7 +390,7 @@ OS::MemCopyFunction CreateMemCopyFunction() { |
void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( |
- MacroAssembler* masm) { |
+ MacroAssembler* masm, Label* allocation_site_info_found) { |
// ----------- S t a t e ------------- |
// -- eax : value |
// -- ebx : target map |
@@ -398,6 +398,12 @@ void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( |
// -- edx : receiver |
// -- esp[0] : return address |
// ----------------------------------- |
+ if (FLAG_track_allocation_sites && |
+ allocation_site_info_found != NULL) { |
+ masm->TestJSArrayForAllocationSiteInfo(edx, edi, |
+ allocation_site_info_found); |
+ } |
+ |
// Set transitioned map. |
__ mov(FieldOperand(edx, HeapObject::kMapOffset), ebx); |
__ RecordWriteField(edx, |