| Index: src/ia32/codegen-ia32.cc
|
| diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc
|
| index cb2fa26a018c6d9d400dd176d0c1c97ad20ebe45..f964b4131c83ec72338fb2422fd7d670932b1f32 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* fail) {
|
| // ----------- S t a t e -------------
|
| // -- eax : value
|
| // -- ebx : target map
|
| @@ -398,6 +398,10 @@ void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
|
| // -- edx : receiver
|
| // -- esp[0] : return address
|
| // -----------------------------------
|
| + if (FLAG_track_allocation_sites && fail != NULL) {
|
| + masm->TestJSArrayForAllocationSiteInfo(edx, edi, fail);
|
| + }
|
| +
|
| // Set transitioned map.
|
| __ mov(FieldOperand(edx, HeapObject::kMapOffset), ebx);
|
| __ RecordWriteField(edx,
|
|
|