Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: runtime/vm/assembler_arm.h

Issue 300513002: Generate better ARM code for indexed loads and stores. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm.h
===================================================================
--- runtime/vm/assembler_arm.h (revision 36577)
+++ runtime/vm/assembler_arm.h (working copy)
@@ -168,6 +168,7 @@
kWordPair,
kSWord,
kDWord,
+ kRegList,
};
@@ -214,6 +215,10 @@
return *this;
}
+ bool Equals(const Address& other) const {
+ return (encoding_ == other.encoding_) && (kind_ == other.kind_);
+ }
+
explicit Address(Register rn, int32_t offset = 0, Mode am = Offset) {
ASSERT(Utils::IsAbsoluteUint(12, offset));
kind_ = Immediate;
@@ -237,10 +242,12 @@
encoding_ = so.encoding() | am | (static_cast<uint32_t>(rn) << kRnShift);
}
- static bool CanHoldLoadOffset(OperandSize type,
+ static OperandSize OperandSizeFor(intptr_t cid);
+
+ static bool CanHoldLoadOffset(OperandSize size,
int32_t offset,
int32_t* offset_mask);
- static bool CanHoldStoreOffset(OperandSize type,
+ static bool CanHoldStoreOffset(OperandSize size,
int32_t offset,
int32_t* offset_mask);
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698