| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // when constructing the REX prefix byte. | 106 // when constructing the REX prefix byte. |
| 107 int high_bit() const { | 107 int high_bit() const { |
| 108 return code_ >> 3; | 108 return code_ >> 3; |
| 109 } | 109 } |
| 110 // Return the 3 low bits of the register code. Used when encoding registers | 110 // Return the 3 low bits of the register code. Used when encoding registers |
| 111 // in modR/M, SIB, and opcode bytes. | 111 // in modR/M, SIB, and opcode bytes. |
| 112 int low_bits() const { | 112 int low_bits() const { |
| 113 return code_ & 0x7; | 113 return code_ & 0x7; |
| 114 } | 114 } |
| 115 | 115 |
| 116 // (unfortunately we can't make this private in a struct when initializing | 116 // Unfortunately we can't make this private in a struct when initializing |
| 117 // by assignment.) | 117 // by assignment. |
| 118 int code_; | 118 int code_; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 extern Register rax; | 121 extern Register rax; |
| 122 extern Register rcx; | 122 extern Register rcx; |
| 123 extern Register rdx; | 123 extern Register rdx; |
| 124 extern Register rbx; | 124 extern Register rbx; |
| 125 extern Register rsp; | 125 extern Register rsp; |
| 126 extern Register rbp; | 126 extern Register rbp; |
| 127 extern Register rsi; | 127 extern Register rsi; |
| (...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1406 private: | 1406 private: |
| 1407 Assembler* assembler_; | 1407 Assembler* assembler_; |
| 1408 #ifdef DEBUG | 1408 #ifdef DEBUG |
| 1409 int space_before_; | 1409 int space_before_; |
| 1410 #endif | 1410 #endif |
| 1411 }; | 1411 }; |
| 1412 | 1412 |
| 1413 } } // namespace v8::internal | 1413 } } // namespace v8::internal |
| 1414 | 1414 |
| 1415 #endif // V8_X64_ASSEMBLER_X64_H_ | 1415 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |