| Index: src/x64/codegen-x64.cc
|
| diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc
|
| index 0b2480ab45fbaced9c38ca266810f66641b4b149..1c545e1a4157f6898d54244f1faf6d22f86e0d97 100644
|
| --- a/src/x64/codegen-x64.cc
|
| +++ b/src/x64/codegen-x64.cc
|
| @@ -251,7 +251,7 @@ ModuloFunction CreateModuloFunction() {
|
| #define __ ACCESS_MASM(masm)
|
|
|
| void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
|
| - MacroAssembler* masm) {
|
| + MacroAssembler* masm, Label* allocation_site_info_found) {
|
| // ----------- S t a t e -------------
|
| // -- rax : value
|
| // -- rbx : target map
|
| @@ -259,6 +259,12 @@ void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
|
| // -- rdx : receiver
|
| // -- rsp[0] : return address
|
| // -----------------------------------
|
| + if (FLAG_track_allocation_sites &&
|
| + allocation_site_info_found != NULL) {
|
| + masm->TestJSArrayForAllocationSiteInfo(rdx, rdi,
|
| + allocation_site_info_found);
|
| + }
|
| +
|
| // Set transitioned map.
|
| __ movq(FieldOperand(rdx, HeapObject::kMapOffset), rbx);
|
| __ RecordWriteField(rdx,
|
|
|