| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 ScaleFactor scale, | 300 ScaleFactor scale, |
| 301 int32_t disp); | 301 int32_t disp); |
| 302 | 302 |
| 303 // Offset from existing memory operand. | 303 // Offset from existing memory operand. |
| 304 // Offset is added to existing displacement as 32-bit signed values and | 304 // Offset is added to existing displacement as 32-bit signed values and |
| 305 // this must not overflow. | 305 // this must not overflow. |
| 306 Operand(const Operand& base, int32_t offset); | 306 Operand(const Operand& base, int32_t offset); |
| 307 | 307 |
| 308 private: | 308 private: |
| 309 byte rex_; | 309 byte rex_; |
| 310 byte buf_[10]; | 310 byte buf_[6]; |
| 311 // The number of bytes in buf_. | 311 // The number of bytes in buf_. |
| 312 unsigned int len_; | 312 unsigned int len_; |
| 313 | 313 |
| 314 // Set the ModR/M byte without an encoded 'reg' register. The | 314 // Set the ModR/M byte without an encoded 'reg' register. The |
| 315 // register is encoded later as part of the emit_operand operation. | 315 // register is encoded later as part of the emit_operand operation. |
| 316 // set_modrm can be called before or after set_sib and set_disp*. | 316 // set_modrm can be called before or after set_sib and set_disp*. |
| 317 inline void set_modrm(int mod, Register rm); | 317 inline void set_modrm(int mod, Register rm); |
| 318 | 318 |
| 319 // Set the SIB byte if one is needed. Sets the length to 2 rather than 1. | 319 // Set the SIB byte if one is needed. Sets the length to 2 rather than 1. |
| 320 inline void set_sib(ScaleFactor scale, Register index, Register base); | 320 inline void set_sib(ScaleFactor scale, Register index, Register base); |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 private: | 1398 private: |
| 1399 Assembler* assembler_; | 1399 Assembler* assembler_; |
| 1400 #ifdef DEBUG | 1400 #ifdef DEBUG |
| 1401 int space_before_; | 1401 int space_before_; |
| 1402 #endif | 1402 #endif |
| 1403 }; | 1403 }; |
| 1404 | 1404 |
| 1405 } } // namespace v8::internal | 1405 } } // namespace v8::internal |
| 1406 | 1406 |
| 1407 #endif // V8_X64_ASSEMBLER_X64_H_ | 1407 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |