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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 // The required user mode extensions in X64 are (from AMD64 ABI Table A.1): | 523 // The required user mode extensions in X64 are (from AMD64 ABI Table A.1): |
524 // fpu, tsc, cx8, cmov, mmx, sse, sse2, fxsr, syscall | 524 // fpu, tsc, cx8, cmov, mmx, sse, sse2, fxsr, syscall |
525 static const uint64_t kDefaultCpuFeatures = (1 << SSE2 | 1 << CMOV); | 525 static const uint64_t kDefaultCpuFeatures = (1 << SSE2 | 1 << CMOV); |
526 | 526 |
527 #ifdef DEBUG | 527 #ifdef DEBUG |
528 static bool initialized_; | 528 static bool initialized_; |
529 #endif | 529 #endif |
530 static uint64_t supported_; | 530 static uint64_t supported_; |
531 static uint64_t found_by_runtime_probing_; | 531 static uint64_t found_by_runtime_probing_; |
532 | 532 |
| 533 friend class ExternalReference; |
533 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); | 534 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
534 }; | 535 }; |
535 | 536 |
536 | 537 |
537 class Assembler : public AssemblerBase { | 538 class Assembler : public AssemblerBase { |
538 private: | 539 private: |
539 // We check before assembling an instruction that there is sufficient | 540 // We check before assembling an instruction that there is sufficient |
540 // space to write an instruction and its relocation information. | 541 // space to write an instruction and its relocation information. |
541 // The relocation writer's position must be kGap bytes above the end of | 542 // The relocation writer's position must be kGap bytes above the end of |
542 // the generated instructions. This leaves enough space for the | 543 // the generated instructions. This leaves enough space for the |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1667 private: | 1668 private: |
1668 Assembler* assembler_; | 1669 Assembler* assembler_; |
1669 #ifdef DEBUG | 1670 #ifdef DEBUG |
1670 int space_before_; | 1671 int space_before_; |
1671 #endif | 1672 #endif |
1672 }; | 1673 }; |
1673 | 1674 |
1674 } } // namespace v8::internal | 1675 } } // namespace v8::internal |
1675 | 1676 |
1676 #endif // V8_X64_ASSEMBLER_X64_H_ | 1677 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |