Index: src/arm/ic-arm.cc |
diff --git a/src/arm/ic-arm.cc b/src/arm/ic-arm.cc |
index 5e17694b76ccc57f5fcf9fab9bfe61eaae34e0f8..0db63e75b7c7b4c994a84b44418f1addfa587c3d 100644 |
--- a/src/arm/ic-arm.cc |
+++ b/src/arm/ic-arm.cc |
@@ -1249,7 +1249,9 @@ void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) { |
// Must return the modified receiver in r0. |
if (!FLAG_trace_elements_transitions) { |
Label fail; |
- ElementsTransitionGenerator::GenerateSmiToDouble(masm, &fail); |
+ AllocationSiteMode mode = AllocationSiteInfo::GetMode(FAST_SMI_ELEMENTS, |
+ FAST_DOUBLE_ELEMENTS); |
+ ElementsTransitionGenerator::GenerateSmiToDouble(masm, mode, &fail); |
__ mov(r0, r2); |
__ Ret(); |
__ bind(&fail); |
@@ -1270,7 +1272,9 @@ void KeyedStoreIC::GenerateTransitionElementsDoubleToObject( |
// Must return the modified receiver in r0. |
if (!FLAG_trace_elements_transitions) { |
Label fail; |
- ElementsTransitionGenerator::GenerateDoubleToObject(masm, &fail); |
+ AllocationSiteMode mode = AllocationSiteInfo::GetMode(FAST_DOUBLE_ELEMENTS, |
+ FAST_ELEMENTS); |
+ ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, &fail); |
__ mov(r0, r2); |
__ Ret(); |
__ bind(&fail); |
@@ -1406,7 +1410,9 @@ static void KeyedStoreGenerateGenericHelper( |
r4, |
slow); |
ASSERT(receiver_map.is(r3)); // Transition code expects map in r3 |
- ElementsTransitionGenerator::GenerateSmiToDouble(masm, slow); |
+ AllocationSiteMode mode = AllocationSiteInfo::GetMode(FAST_SMI_ELEMENTS, |
+ FAST_DOUBLE_ELEMENTS); |
+ ElementsTransitionGenerator::GenerateSmiToDouble(masm, mode, slow); |
__ ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); |
__ jmp(&fast_double_without_map_check); |
@@ -1418,7 +1424,9 @@ static void KeyedStoreGenerateGenericHelper( |
r4, |
slow); |
ASSERT(receiver_map.is(r3)); // Transition code expects map in r3 |
- ElementsTransitionGenerator::GenerateMapChangeElementsTransition(masm); |
+ mode = AllocationSiteInfo::GetMode(FAST_SMI_ELEMENTS, FAST_ELEMENTS); |
+ ElementsTransitionGenerator::GenerateMapChangeElementsTransition(masm, mode, |
+ slow); |
__ ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); |
__ jmp(&finish_object_store); |
@@ -1432,7 +1440,8 @@ static void KeyedStoreGenerateGenericHelper( |
r4, |
slow); |
ASSERT(receiver_map.is(r3)); // Transition code expects map in r3 |
- ElementsTransitionGenerator::GenerateDoubleToObject(masm, slow); |
+ mode = AllocationSiteInfo::GetMode(FAST_DOUBLE_ELEMENTS, FAST_ELEMENTS); |
+ ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, slow); |
__ ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); |
__ jmp(&finish_object_store); |
} |