| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/base/cpu.h" | 5 #include "src/base/cpu.h" |
| 6 | 6 |
| 7 #if V8_LIBC_MSVCRT | 7 #if V8_LIBC_MSVCRT |
| 8 #include <intrin.h> // __cpuid() | 8 #include <intrin.h> // __cpuid() |
| 9 #endif | 9 #endif |
| 10 #if V8_OS_LINUX | 10 #if V8_OS_LINUX |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 if (family_ == 0x6) { | 378 if (family_ == 0x6) { |
| 379 switch (model_) { | 379 switch (model_) { |
| 380 case 0x1c: // SLT | 380 case 0x1c: // SLT |
| 381 case 0x26: | 381 case 0x26: |
| 382 case 0x36: | 382 case 0x36: |
| 383 case 0x27: | 383 case 0x27: |
| 384 case 0x35: | 384 case 0x35: |
| 385 case 0x37: // SLM | 385 case 0x37: // SLM |
| 386 case 0x4a: | 386 case 0x4a: |
| 387 case 0x4d: | 387 case 0x4d: |
| 388 case 0x4c: // AMT |
| 389 case 0x6e: |
| 388 is_atom_ = true; | 390 is_atom_ = true; |
| 389 } | 391 } |
| 390 } | 392 } |
| 391 } | 393 } |
| 392 | 394 |
| 393 #if V8_HOST_ARCH_IA32 | 395 #if V8_HOST_ARCH_IA32 |
| 394 // SAHF is always available in compat/legacy mode, | 396 // SAHF is always available in compat/legacy mode, |
| 395 has_sahf_ = true; | 397 has_sahf_ = true; |
| 396 #else | 398 #else |
| 397 // Query extended IDs. | 399 // Query extended IDs. |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 case POWER_5: | 676 case POWER_5: |
| 675 part_ = PPC_POWER5; | 677 part_ = PPC_POWER5; |
| 676 break; | 678 break; |
| 677 } | 679 } |
| 678 #endif // V8_OS_AIX | 680 #endif // V8_OS_AIX |
| 679 #endif // !USE_SIMULATOR | 681 #endif // !USE_SIMULATOR |
| 680 #endif // V8_HOST_ARCH_PPC | 682 #endif // V8_HOST_ARCH_PPC |
| 681 } | 683 } |
| 682 | 684 |
| 683 } } // namespace v8::base | 685 } } // namespace v8::base |
| OLD | NEW |