| Index: src/ia32/ic-ia32.cc
|
| diff --git a/src/ia32/ic-ia32.cc b/src/ia32/ic-ia32.cc
|
| index bf0c80b2b4682655f6931857936226c72e38cdb1..1e9146847bce2aa03f58b8d6df74553de917a5ef 100644
|
| --- a/src/ia32/ic-ia32.cc
|
| +++ b/src/ia32/ic-ia32.cc
|
| @@ -1591,6 +1591,61 @@ void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| +void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) {
|
| + // ----------- S t a t e -------------
|
| + // -- ebx : target map
|
| + // -- edx : receiver
|
| + // -- esp[0] : return address
|
| + // -----------------------------------
|
| + // Must return the modified receiver in eax.
|
| + if (!FLAG_trace_elements_transitions) {
|
| + Label fail;
|
| + AllocationSiteMode mode = AllocationSite::GetMode(FAST_SMI_ELEMENTS,
|
| + FAST_DOUBLE_ELEMENTS);
|
| + ElementsTransitionGenerator::GenerateSmiToDouble(masm, mode, &fail);
|
| + __ mov(eax, edx);
|
| + __ Ret();
|
| + __ bind(&fail);
|
| + }
|
| +
|
| + __ pop(ebx);
|
| + __ push(edx);
|
| + __ push(ebx); // return address
|
| + // Leaving the code managed by the register allocator and return to the
|
| + // convention of using esi as context register.
|
| + __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
|
| + __ TailCallRuntime(Runtime::kTransitionElementsSmiToDouble, 1, 1);
|
| +}
|
| +
|
| +
|
| +void KeyedStoreIC::GenerateTransitionElementsDoubleToObject(
|
| + MacroAssembler* masm) {
|
| + // ----------- S t a t e -------------
|
| + // -- ebx : target map
|
| + // -- edx : receiver
|
| + // -- esp[0] : return address
|
| + // -----------------------------------
|
| + // Must return the modified receiver in eax.
|
| + if (!FLAG_trace_elements_transitions) {
|
| + Label fail;
|
| + AllocationSiteMode mode = AllocationSite::GetMode(FAST_DOUBLE_ELEMENTS,
|
| + FAST_ELEMENTS);
|
| + ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, &fail);
|
| + __ mov(eax, edx);
|
| + __ Ret();
|
| + __ bind(&fail);
|
| + }
|
| +
|
| + __ pop(ebx);
|
| + __ push(edx);
|
| + __ push(ebx); // return address
|
| + // Leaving the code managed by the register allocator and return to the
|
| + // convention of using esi as context register.
|
| + __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
|
| + __ TailCallRuntime(Runtime::kTransitionElementsDoubleToObject, 1, 1);
|
| +}
|
| +
|
| +
|
| #undef __
|
|
|
|
|
|
|