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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 // Only valid if len_ > 4. | 290 // Only valid if len_ > 4. |
291 RelocInfo::Mode rmode_; | 291 RelocInfo::Mode rmode_; |
292 | 292 |
293 // Set the ModRM byte without an encoded 'reg' register. The | 293 // Set the ModRM byte without an encoded 'reg' register. The |
294 // register is encoded later as part of the emit_operand operation. | 294 // register is encoded later as part of the emit_operand operation. |
295 inline void set_modrm(int mod, Register rm); | 295 inline void set_modrm(int mod, Register rm); |
296 | 296 |
297 inline void set_sib(ScaleFactor scale, Register index, Register base); | 297 inline void set_sib(ScaleFactor scale, Register index, Register base); |
298 inline void set_disp8(int8_t disp); | 298 inline void set_disp8(int8_t disp); |
299 inline void set_disp32(int32_t disp); | 299 inline void set_disp32(int32_t disp); |
300 inline void set_dispr(intptr_t disp, RelocInfo::Mode rmode); | |
301 | 300 |
302 friend class Assembler; | 301 friend class Assembler; |
303 }; | 302 }; |
304 | 303 |
305 class MemOperand : public Operand { | 304 class MemOperand : public Operand { |
306 public: | 305 public: |
307 // [disp/r] | 306 // [disp/r] |
308 INLINE(explicit MemOperand(int32_t disp, RelocInfo::Mode rmode)) : | 307 INLINE(explicit MemOperand(int32_t disp, RelocInfo::Mode rmode)) : |
309 Operand() { | 308 Operand() { |
310 UNIMPLEMENTED(); | 309 UNIMPLEMENTED(); |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 private: | 893 private: |
895 Assembler* assembler_; | 894 Assembler* assembler_; |
896 #ifdef DEBUG | 895 #ifdef DEBUG |
897 int space_before_; | 896 int space_before_; |
898 #endif | 897 #endif |
899 }; | 898 }; |
900 | 899 |
901 } } // namespace v8::internal | 900 } } // namespace v8::internal |
902 | 901 |
903 #endif // V8_X64_ASSEMBLER_X64_H_ | 902 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |