OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2133 } else { // Offset > 16 bits, use multiple instructions to load. | 2133 } else { // Offset > 16 bits, use multiple instructions to load. |
2134 LoadRegPlusOffsetToAt(src); | 2134 LoadRegPlusOffsetToAt(src); |
2135 GenInstrImmediate(LWC1, at, fd, 0); | 2135 GenInstrImmediate(LWC1, at, fd, 0); |
2136 } | 2136 } |
2137 } | 2137 } |
2138 | 2138 |
2139 | 2139 |
2140 void Assembler::ldc1(FPURegister fd, const MemOperand& src) { | 2140 void Assembler::ldc1(FPURegister fd, const MemOperand& src) { |
2141 // Workaround for non-8-byte alignment of HeapNumber, convert 64-bit | 2141 // Workaround for non-8-byte alignment of HeapNumber, convert 64-bit |
2142 // load to two 32-bit loads. | 2142 // load to two 32-bit loads. |
2143 DCHECK(!src.rm().is(at)); | |
2144 if (IsFp32Mode()) { // fp32 mode. | 2143 if (IsFp32Mode()) { // fp32 mode. |
2145 if (is_int16(src.offset_) && is_int16(src.offset_ + kIntSize)) { | 2144 if (is_int16(src.offset_) && is_int16(src.offset_ + kIntSize)) { |
2146 GenInstrImmediate(LWC1, src.rm(), fd, | 2145 GenInstrImmediate(LWC1, src.rm(), fd, |
2147 src.offset_ + Register::kMantissaOffset); | 2146 src.offset_ + Register::kMantissaOffset); |
2148 FPURegister nextfpreg; | 2147 FPURegister nextfpreg; |
2149 nextfpreg.setcode(fd.code() + 1); | 2148 nextfpreg.setcode(fd.code() + 1); |
2150 GenInstrImmediate(LWC1, src.rm(), nextfpreg, | 2149 GenInstrImmediate(LWC1, src.rm(), nextfpreg, |
2151 src.offset_ + Register::kExponentOffset); | 2150 src.offset_ + Register::kExponentOffset); |
2152 } else { // Offset > 16 bits, use multiple instructions to load. | 2151 } else { // Offset > 16 bits, use multiple instructions to load. |
2153 LoadRegPlusOffsetToAt(src); | 2152 LoadRegPlusOffsetToAt(src); |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3153 | 3152 |
3154 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3153 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3155 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3154 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
3156 } | 3155 } |
3157 } | 3156 } |
3158 | 3157 |
3159 } // namespace internal | 3158 } // namespace internal |
3160 } // namespace v8 | 3159 } // namespace v8 |
3161 | 3160 |
3162 #endif // V8_TARGET_ARCH_MIPS | 3161 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |