| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 4404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4415 __ add(scratch, scratch, | 4415 __ add(scratch, scratch, |
| 4416 Operand(key_reg, LSL, kDoubleSizeLog2 - kSmiTagSize)); | 4416 Operand(key_reg, LSL, kDoubleSizeLog2 - kSmiTagSize)); |
| 4417 // scratch is now effective address of the double element | 4417 // scratch is now effective address of the double element |
| 4418 | 4418 |
| 4419 FloatingPointHelper::Destination destination; | 4419 FloatingPointHelper::Destination destination; |
| 4420 if (CpuFeatures::IsSupported(VFP3)) { | 4420 if (CpuFeatures::IsSupported(VFP3)) { |
| 4421 destination = FloatingPointHelper::kVFPRegisters; | 4421 destination = FloatingPointHelper::kVFPRegisters; |
| 4422 } else { | 4422 } else { |
| 4423 destination = FloatingPointHelper::kCoreRegisters; | 4423 destination = FloatingPointHelper::kCoreRegisters; |
| 4424 } | 4424 } |
| 4425 __ SmiUntag(value_reg, value_reg); | 4425 |
| 4426 Register untagged_value = receiver_reg; |
| 4427 __ SmiUntag(untagged_value, value_reg); |
| 4426 FloatingPointHelper::ConvertIntToDouble( | 4428 FloatingPointHelper::ConvertIntToDouble( |
| 4427 masm, value_reg, destination, | 4429 masm, |
| 4428 d0, mantissa_reg, exponent_reg, // These are: double_dst, dst1, dst2. | 4430 untagged_value, |
| 4429 scratch4, s2); // These are: scratch2, single_scratch. | 4431 destination, |
| 4432 d0, |
| 4433 mantissa_reg, |
| 4434 exponent_reg, |
| 4435 scratch4, |
| 4436 s2); |
| 4430 if (destination == FloatingPointHelper::kVFPRegisters) { | 4437 if (destination == FloatingPointHelper::kVFPRegisters) { |
| 4431 CpuFeatures::Scope scope(VFP3); | 4438 CpuFeatures::Scope scope(VFP3); |
| 4432 __ vstr(d0, scratch, 0); | 4439 __ vstr(d0, scratch, 0); |
| 4433 } else { | 4440 } else { |
| 4434 __ str(mantissa_reg, MemOperand(scratch, 0)); | 4441 __ str(mantissa_reg, MemOperand(scratch, 0)); |
| 4435 __ str(exponent_reg, MemOperand(scratch, Register::kSizeInBytes)); | 4442 __ str(exponent_reg, MemOperand(scratch, Register::kSizeInBytes)); |
| 4436 } | 4443 } |
| 4437 __ Ret(); | 4444 __ Ret(); |
| 4438 | 4445 |
| 4439 // Handle store cache miss, replacing the ic with the generic stub. | 4446 // Handle store cache miss, replacing the ic with the generic stub. |
| 4440 __ bind(&miss_force_generic); | 4447 __ bind(&miss_force_generic); |
| 4441 Handle<Code> ic = | 4448 Handle<Code> ic = |
| 4442 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); | 4449 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); |
| 4443 __ Jump(ic, RelocInfo::CODE_TARGET); | 4450 __ Jump(ic, RelocInfo::CODE_TARGET); |
| 4444 } | 4451 } |
| 4445 | 4452 |
| 4446 | 4453 |
| 4447 #undef __ | 4454 #undef __ |
| 4448 | 4455 |
| 4449 } } // namespace v8::internal | 4456 } } // namespace v8::internal |
| 4450 | 4457 |
| 4451 #endif // V8_TARGET_ARCH_ARM | 4458 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |