Index: src/mips/assembler-mips.h |
diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h |
index d9ef46cd01464903fe35b5e72d9c402863555755..70f77eaeda8726fe830a3e6ad7f5443613275304 100644 |
--- a/src/mips/assembler-mips.h |
+++ b/src/mips/assembler-mips.h |
@@ -386,7 +386,15 @@ class Operand BASE_EMBEDDED { |
// Class MemOperand represents a memory operand in load and store instructions. |
class MemOperand : public Operand { |
public: |
+ // Immediate value attached to offset. |
+ enum OffsetAddend { |
+ offset_minus_one = -1, |
+ offset_zero = 0 |
+ }; |
+ |
explicit MemOperand(Register rn, int32_t offset = 0); |
+ explicit MemOperand(Register rn, int32_t unit, int32_t multiplier, |
+ OffsetAddend offset_addend = offset_zero); |
int32_t offset() const { return offset_; } |
bool OffsetIsInt16Encodable() const { |
@@ -711,6 +719,11 @@ class Assembler : public AssemblerBase { |
void swr(Register rd, const MemOperand& rs); |
+ //----------------Prefetch-------------------- |
+ |
+ void pref(int32_t hint, const MemOperand& rs); |
+ |
+ |
//-------------Misc-instructions-------------- |
// Break / Trap instructions. |