| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 119     return; | 119     return; | 
| 120   } | 120   } | 
| 121 | 121 | 
| 122   // If the compiler is allowed to use fpu then we can use fpu too in our | 122   // If the compiler is allowed to use fpu then we can use fpu too in our | 
| 123   // code generation. | 123   // code generation. | 
| 124 #if !defined(__mips__) | 124 #if !defined(__mips__) | 
| 125   // For the simulator build, use FPU. | 125   // For the simulator build, use FPU. | 
| 126   supported_ |= static_cast<uint64_t>(1) << FPU; | 126   supported_ |= static_cast<uint64_t>(1) << FPU; | 
| 127 #else | 127 #else | 
| 128   // Probe for additional features not already known to be available. | 128   // Probe for additional features not already known to be available. | 
| 129   if (OS::MipsCpuHasFeature(FPU)) { | 129   CPU cpu; | 
|  | 130   if (cpu.has_fpu()) { | 
| 130     // This implementation also sets the FPU flags if | 131     // This implementation also sets the FPU flags if | 
| 131     // runtime detection of FPU returns true. | 132     // runtime detection of FPU returns true. | 
| 132     supported_ |= static_cast<uint64_t>(1) << FPU; | 133     supported_ |= static_cast<uint64_t>(1) << FPU; | 
| 133     found_by_runtime_probing_only_ |= static_cast<uint64_t>(1) << FPU; | 134     found_by_runtime_probing_only_ |= static_cast<uint64_t>(1) << FPU; | 
| 134   } | 135   } | 
| 135 #endif | 136 #endif | 
| 136 } | 137 } | 
| 137 | 138 | 
| 138 | 139 | 
| 139 int ToNumber(Register reg) { | 140 int ToNumber(Register reg) { | 
| (...skipping 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2294   } | 2295   } | 
| 2295 | 2296 | 
| 2296   if (patched) { | 2297   if (patched) { | 
| 2297       CPU::FlushICache(pc+2, sizeof(Address)); | 2298       CPU::FlushICache(pc+2, sizeof(Address)); | 
| 2298   } | 2299   } | 
| 2299 } | 2300 } | 
| 2300 | 2301 | 
| 2301 } }  // namespace v8::internal | 2302 } }  // namespace v8::internal | 
| 2302 | 2303 | 
| 2303 #endif  // V8_TARGET_ARCH_MIPS | 2304 #endif  // V8_TARGET_ARCH_MIPS | 
| OLD | NEW | 
|---|