OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3482 if (CpuFeatures::IsSupported(FPU)) { | 3482 if (CpuFeatures::IsSupported(FPU)) { |
3483 destination = FloatingPointHelper::kFPURegisters; | 3483 destination = FloatingPointHelper::kFPURegisters; |
3484 } else { | 3484 } else { |
3485 destination = FloatingPointHelper::kCoreRegisters; | 3485 destination = FloatingPointHelper::kCoreRegisters; |
3486 } | 3486 } |
3487 FloatingPointHelper::ConvertIntToDouble( | 3487 FloatingPointHelper::ConvertIntToDouble( |
3488 masm, t1, destination, | 3488 masm, t1, destination, |
3489 f0, t2, t3, // These are: double_dst, dst_mantissa, dst_exponent. | 3489 f0, t2, t3, // These are: double_dst, dst_mantissa, dst_exponent. |
3490 t0, f2); // These are: scratch2, single_scratch. | 3490 t0, f2); // These are: scratch2, single_scratch. |
3491 if (destination == FloatingPointHelper::kFPURegisters) { | 3491 if (destination == FloatingPointHelper::kFPURegisters) { |
3492 CpuFeatureScope scope(masm(), FPU); | 3492 CpuFeatureScope scope(masm, FPU); |
3493 __ sdc1(f0, MemOperand(a3, 0)); | 3493 __ sdc1(f0, MemOperand(a3, 0)); |
3494 } else { | 3494 } else { |
3495 __ sw(t2, MemOperand(a3, 0)); | 3495 __ sw(t2, MemOperand(a3, 0)); |
3496 __ sw(t3, MemOperand(a3, Register::kSizeInBytes)); | 3496 __ sw(t3, MemOperand(a3, Register::kSizeInBytes)); |
3497 } | 3497 } |
3498 break; | 3498 break; |
3499 case FAST_ELEMENTS: | 3499 case FAST_ELEMENTS: |
3500 case FAST_SMI_ELEMENTS: | 3500 case FAST_SMI_ELEMENTS: |
3501 case FAST_DOUBLE_ELEMENTS: | 3501 case FAST_DOUBLE_ELEMENTS: |
3502 case FAST_HOLEY_ELEMENTS: | 3502 case FAST_HOLEY_ELEMENTS: |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4111 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4111 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4112 } | 4112 } |
4113 } | 4113 } |
4114 | 4114 |
4115 | 4115 |
4116 #undef __ | 4116 #undef __ |
4117 | 4117 |
4118 } } // namespace v8::internal | 4118 } } // namespace v8::internal |
4119 | 4119 |
4120 #endif // V8_TARGET_ARCH_MIPS | 4120 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |