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 Register eax = {0}; | 82 const Register eax = { 0 }; |
83 const Register ecx = { 1 }; | 83 const Register ecx = { 1 }; |
84 const Register edx = { 2 }; | 84 const Register edx = { 2 }; |
85 const Register ebx = { 3 }; | 85 const Register ebx = { 3 }; |
86 const Register esp = { 4 }; | 86 const Register esp = { 4 }; |
87 const Register ebp = { 5 }; | 87 const Register ebp = { 5 }; |
88 const Register esi = { 6 }; | 88 const Register esi = { 6 }; |
89 const Register edi = { 7 }; | 89 const Register edi = { 7 }; |
90 const Register no_reg = { -1 }; | 90 const Register no_reg = { -1 }; |
91 | 91 |
92 | 92 |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 private: | 855 private: |
856 Assembler* assembler_; | 856 Assembler* assembler_; |
857 #ifdef DEBUG | 857 #ifdef DEBUG |
858 int space_before_; | 858 int space_before_; |
859 #endif | 859 #endif |
860 }; | 860 }; |
861 | 861 |
862 } } // namespace v8::internal | 862 } } // namespace v8::internal |
863 | 863 |
864 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 864 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |