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 3427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3438 Addu(scratch1, scratch1, scratch2); | 3438 Addu(scratch1, scratch1, scratch2); |
3439 // scratch1 is now effective address of the double element | 3439 // scratch1 is now effective address of the double element |
3440 | 3440 |
3441 FloatingPointHelper::Destination destination; | 3441 FloatingPointHelper::Destination destination; |
3442 if (CpuFeatures::IsSupported(FPU)) { | 3442 if (CpuFeatures::IsSupported(FPU)) { |
3443 destination = FloatingPointHelper::kFPURegisters; | 3443 destination = FloatingPointHelper::kFPURegisters; |
3444 } else { | 3444 } else { |
3445 destination = FloatingPointHelper::kCoreRegisters; | 3445 destination = FloatingPointHelper::kCoreRegisters; |
3446 } | 3446 } |
3447 | 3447 |
3448 Register untagged_value = receiver_reg; | 3448 Register untagged_value = elements_reg; |
3449 SmiUntag(untagged_value, value_reg); | 3449 SmiUntag(untagged_value, value_reg); |
3450 FloatingPointHelper::ConvertIntToDouble(this, | 3450 FloatingPointHelper::ConvertIntToDouble(this, |
3451 untagged_value, | 3451 untagged_value, |
3452 destination, | 3452 destination, |
3453 f0, | 3453 f0, |
3454 mantissa_reg, | 3454 mantissa_reg, |
3455 exponent_reg, | 3455 exponent_reg, |
3456 scratch4, | 3456 scratch4, |
3457 f2); | 3457 f2); |
3458 if (destination == FloatingPointHelper::kFPURegisters) { | 3458 if (destination == FloatingPointHelper::kFPURegisters) { |
(...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5481 opcode == BGTZL); | 5481 opcode == BGTZL); |
5482 opcode = (cond == eq) ? BEQ : BNE; | 5482 opcode = (cond == eq) ? BEQ : BNE; |
5483 instr = (instr & ~kOpcodeMask) | opcode; | 5483 instr = (instr & ~kOpcodeMask) | opcode; |
5484 masm_.emit(instr); | 5484 masm_.emit(instr); |
5485 } | 5485 } |
5486 | 5486 |
5487 | 5487 |
5488 } } // namespace v8::internal | 5488 } } // namespace v8::internal |
5489 | 5489 |
5490 #endif // V8_TARGET_ARCH_MIPS | 5490 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |