| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 const uint64_t old_supported_; | 604 const uint64_t old_supported_; |
| 605 }; | 605 }; |
| 606 | 606 |
| 607 private: | 607 private: |
| 608 #ifdef DEBUG | 608 #ifdef DEBUG |
| 609 static bool initialized_; | 609 static bool initialized_; |
| 610 #endif | 610 #endif |
| 611 static uint64_t supported_; | 611 static uint64_t supported_; |
| 612 static uint64_t found_by_runtime_probing_; | 612 static uint64_t found_by_runtime_probing_; |
| 613 | 613 |
| 614 friend class ExternalReference; |
| 614 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); | 615 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
| 615 }; | 616 }; |
| 616 | 617 |
| 617 | 618 |
| 618 class Assembler : public AssemblerBase { | 619 class Assembler : public AssemblerBase { |
| 619 private: | 620 private: |
| 620 // We check before assembling an instruction that there is sufficient | 621 // We check before assembling an instruction that there is sufficient |
| 621 // space to write an instruction and its relocation information. | 622 // space to write an instruction and its relocation information. |
| 622 // The relocation writer's position must be kGap bytes above the end of | 623 // The relocation writer's position must be kGap bytes above the end of |
| 623 // the generated instructions. This leaves enough space for the | 624 // the generated instructions. This leaves enough space for the |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1270 private: | 1271 private: |
| 1271 Assembler* assembler_; | 1272 Assembler* assembler_; |
| 1272 #ifdef DEBUG | 1273 #ifdef DEBUG |
| 1273 int space_before_; | 1274 int space_before_; |
| 1274 #endif | 1275 #endif |
| 1275 }; | 1276 }; |
| 1276 | 1277 |
| 1277 } } // namespace v8::internal | 1278 } } // namespace v8::internal |
| 1278 | 1279 |
| 1279 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1280 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |