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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 } | 554 } |
555 | 555 |
556 private: | 556 private: |
557 #ifdef DEBUG | 557 #ifdef DEBUG |
558 static bool initialized_; | 558 static bool initialized_; |
559 #endif | 559 #endif |
560 static uint64_t supported_; | 560 static uint64_t supported_; |
561 static uint64_t found_by_runtime_probing_only_; | 561 static uint64_t found_by_runtime_probing_only_; |
562 | 562 |
563 friend class ExternalReference; | 563 friend class ExternalReference; |
| 564 friend class PlatformFeatureScope; |
564 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); | 565 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
565 }; | 566 }; |
566 | 567 |
567 | 568 |
568 class Assembler : public AssemblerBase { | 569 class Assembler : public AssemblerBase { |
569 private: | 570 private: |
570 // We check before assembling an instruction that there is sufficient | 571 // We check before assembling an instruction that there is sufficient |
571 // space to write an instruction and its relocation information. | 572 // space to write an instruction and its relocation information. |
572 // The relocation writer's position must be kGap bytes above the end of | 573 // The relocation writer's position must be kGap bytes above the end of |
573 // the generated instructions. This leaves enough space for the | 574 // the generated instructions. This leaves enough space for the |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 private: | 1235 private: |
1235 Assembler* assembler_; | 1236 Assembler* assembler_; |
1236 #ifdef DEBUG | 1237 #ifdef DEBUG |
1237 int space_before_; | 1238 int space_before_; |
1238 #endif | 1239 #endif |
1239 }; | 1240 }; |
1240 | 1241 |
1241 } } // namespace v8::internal | 1242 } } // namespace v8::internal |
1242 | 1243 |
1243 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1244 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |