Index: src/x64/assembler-x64.h |
=================================================================== |
--- src/x64/assembler-x64.h (revision 7102) |
+++ src/x64/assembler-x64.h (working copy) |
@@ -395,6 +395,13 @@ |
// Does not check the "reg" part of the Operand. |
bool AddressUsesRegister(Register reg) const; |
+ // Queries related to the size of the generated instruction. |
+ // Whether the generated instruction will have a REX prefix. |
+ bool requires_rex() const { return rex_ != 0; } |
+ // Size of the ModR/M, SIB and displacement parts of the generated |
+ // instruction. |
+ int operand_size() const { return len_; } |
+ |
private: |
byte rex_; |
byte buf_[6]; |