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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 // fpu, tsc, cx8, cmov, mmx, sse, sse2, fxsr, syscall | 497 // fpu, tsc, cx8, cmov, mmx, sse, sse2, fxsr, syscall |
498 static const uint64_t kDefaultCpuFeatures = (1 << CMOV); | 498 static const uint64_t kDefaultCpuFeatures = (1 << CMOV); |
499 | 499 |
500 #ifdef DEBUG | 500 #ifdef DEBUG |
501 static bool initialized_; | 501 static bool initialized_; |
502 #endif | 502 #endif |
503 static uint64_t supported_; | 503 static uint64_t supported_; |
504 static uint64_t found_by_runtime_probing_only_; | 504 static uint64_t found_by_runtime_probing_only_; |
505 | 505 |
506 friend class ExternalReference; | 506 friend class ExternalReference; |
| 507 friend class PlatformFeatureScope; |
507 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); | 508 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
508 }; | 509 }; |
509 | 510 |
510 | 511 |
511 class Assembler : public AssemblerBase { | 512 class Assembler : public AssemblerBase { |
512 private: | 513 private: |
513 // We check before assembling an instruction that there is sufficient | 514 // We check before assembling an instruction that there is sufficient |
514 // space to write an instruction and its relocation information. | 515 // space to write an instruction and its relocation information. |
515 // The relocation writer's position must be kGap bytes above the end of | 516 // The relocation writer's position must be kGap bytes above the end of |
516 // the generated instructions. This leaves enough space for the | 517 // the generated instructions. This leaves enough space for the |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 private: | 1660 private: |
1660 Assembler* assembler_; | 1661 Assembler* assembler_; |
1661 #ifdef DEBUG | 1662 #ifdef DEBUG |
1662 int space_before_; | 1663 int space_before_; |
1663 #endif | 1664 #endif |
1664 }; | 1665 }; |
1665 | 1666 |
1666 } } // namespace v8::internal | 1667 } } // namespace v8::internal |
1667 | 1668 |
1668 #endif // V8_X64_ASSEMBLER_X64_H_ | 1669 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |