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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 int bit() const { | 73 int bit() const { |
74 ASSERT(is_valid()); | 74 ASSERT(is_valid()); |
75 return 1 << code_; | 75 return 1 << code_; |
76 } | 76 } |
77 | 77 |
78 // (unfortunately we can't make this private in a struct) | 78 // (unfortunately we can't make this private in a struct) |
79 int code_; | 79 int code_; |
80 }; | 80 }; |
81 | 81 |
82 const int kNumRegisters = 8; | |
83 | |
84 extern Register eax; | 82 extern Register eax; |
85 extern Register ecx; | 83 extern Register ecx; |
86 extern Register edx; | 84 extern Register edx; |
87 extern Register ebx; | 85 extern Register ebx; |
88 extern Register esp; | 86 extern Register esp; |
89 extern Register ebp; | 87 extern Register ebp; |
90 extern Register esi; | 88 extern Register esi; |
91 extern Register edi; | 89 extern Register edi; |
92 extern Register no_reg; | 90 extern Register no_reg; |
93 | 91 |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 private: | 855 private: |
858 Assembler* assembler_; | 856 Assembler* assembler_; |
859 #ifdef DEBUG | 857 #ifdef DEBUG |
860 int space_before_; | 858 int space_before_; |
861 #endif | 859 #endif |
862 }; | 860 }; |
863 | 861 |
864 } } // namespace v8::internal | 862 } } // namespace v8::internal |
865 | 863 |
866 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 864 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |