| Index: src/arm/codegen-arm.cc
|
| diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc
|
| index e19c5abb00393c67837d488f4d8fcd488a6744e1..717f286315e0840b83d142967e8185b9ddc7536b 100644
|
| --- a/src/arm/codegen-arm.cc
|
| +++ b/src/arm/codegen-arm.cc
|
| @@ -402,8 +402,7 @@ void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
|
| // -----------------------------------
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| ASSERT(allocation_memento_found != NULL);
|
| - __ TestJSArrayForAllocationMemento(r2, r4);
|
| - __ b(eq, allocation_memento_found);
|
| + __ JumpIfJSArrayHasAllocationMemento(r2, r4, allocation_memento_found);
|
| }
|
|
|
| // Set transitioned map.
|
| @@ -432,8 +431,7 @@ void ElementsTransitionGenerator::GenerateSmiToDouble(
|
| Label loop, entry, convert_hole, gc_required, only_change_map, done;
|
|
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| - __ TestJSArrayForAllocationMemento(r2, r4);
|
| - __ b(eq, fail);
|
| + __ JumpIfJSArrayHasAllocationMemento(r2, r4, fail);
|
| }
|
|
|
| // Check for empty arrays, which only require a map transition and no changes
|
| @@ -559,8 +557,7 @@ void ElementsTransitionGenerator::GenerateDoubleToObject(
|
| Label entry, loop, convert_hole, gc_required, only_change_map;
|
|
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| - __ TestJSArrayForAllocationMemento(r2, r4);
|
| - __ b(eq, fail);
|
| + __ JumpIfJSArrayHasAllocationMemento(r2, r4, fail);
|
| }
|
|
|
| // Check for empty arrays, which only require a map transition and no changes
|
|
|