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 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2343 GenInstrRegister(COP1, S, f0, fs, fd, SQRT_S); | 2343 GenInstrRegister(COP1, S, f0, fs, fd, SQRT_S); |
2344 } | 2344 } |
2345 | 2345 |
2346 | 2346 |
2347 void Assembler::sqrt_d(FPURegister fd, FPURegister fs) { | 2347 void Assembler::sqrt_d(FPURegister fd, FPURegister fs) { |
2348 GenInstrRegister(COP1, D, f0, fs, fd, SQRT_D); | 2348 GenInstrRegister(COP1, D, f0, fs, fd, SQRT_D); |
2349 } | 2349 } |
2350 | 2350 |
2351 | 2351 |
2352 void Assembler::rsqrt_s(FPURegister fd, FPURegister fs) { | 2352 void Assembler::rsqrt_s(FPURegister fd, FPURegister fs) { |
| 2353 DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
2353 GenInstrRegister(COP1, S, f0, fs, fd, RSQRT_S); | 2354 GenInstrRegister(COP1, S, f0, fs, fd, RSQRT_S); |
2354 } | 2355 } |
2355 | 2356 |
2356 | 2357 |
2357 void Assembler::rsqrt_d(FPURegister fd, FPURegister fs) { | 2358 void Assembler::rsqrt_d(FPURegister fd, FPURegister fs) { |
| 2359 DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
2358 GenInstrRegister(COP1, D, f0, fs, fd, RSQRT_D); | 2360 GenInstrRegister(COP1, D, f0, fs, fd, RSQRT_D); |
2359 } | 2361 } |
2360 | 2362 |
2361 | 2363 |
2362 void Assembler::recip_d(FPURegister fd, FPURegister fs) { | 2364 void Assembler::recip_d(FPURegister fd, FPURegister fs) { |
| 2365 DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
2363 GenInstrRegister(COP1, D, f0, fs, fd, RECIP_D); | 2366 GenInstrRegister(COP1, D, f0, fs, fd, RECIP_D); |
2364 } | 2367 } |
2365 | 2368 |
2366 | 2369 |
2367 void Assembler::recip_s(FPURegister fd, FPURegister fs) { | 2370 void Assembler::recip_s(FPURegister fd, FPURegister fs) { |
| 2371 DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
2368 GenInstrRegister(COP1, S, f0, fs, fd, RECIP_S); | 2372 GenInstrRegister(COP1, S, f0, fs, fd, RECIP_S); |
2369 } | 2373 } |
2370 | 2374 |
2371 | 2375 |
2372 // Conversions. | 2376 // Conversions. |
2373 | 2377 |
2374 void Assembler::cvt_w_s(FPURegister fd, FPURegister fs) { | 2378 void Assembler::cvt_w_s(FPURegister fd, FPURegister fs) { |
2375 GenInstrRegister(COP1, S, f0, fs, fd, CVT_W_S); | 2379 GenInstrRegister(COP1, S, f0, fs, fd, CVT_W_S); |
2376 } | 2380 } |
2377 | 2381 |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3089 if (patched) { | 3093 if (patched) { |
3090 CpuFeatures::FlushICache(pc + 2, sizeof(Address)); | 3094 CpuFeatures::FlushICache(pc + 2, sizeof(Address)); |
3091 } | 3095 } |
3092 } | 3096 } |
3093 | 3097 |
3094 | 3098 |
3095 } // namespace internal | 3099 } // namespace internal |
3096 } // namespace v8 | 3100 } // namespace v8 |
3097 | 3101 |
3098 #endif // V8_TARGET_ARCH_MIPS | 3102 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |