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

Unified Diff: runtime/vm/assembler_mips.h

Issue 19464002: Replaces Location::ToStackSlotAddress() with Location::ToStackSlotOffset() (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
Index: runtime/vm/assembler_mips.h
===================================================================
--- runtime/vm/assembler_mips.h (revision 25072)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -12,6 +12,7 @@
#include "platform/assert.h"
#include "platform/utils.h"
#include "vm/constants_mips.h"
+#include "vm/locations.h"
#include "vm/simulator.h"
// References to documentation in this file refer to:
@@ -24,6 +25,7 @@
// Forward declarations.
class RuntimeEntry;
+class Location;
class Immediate : public ValueObject {
public:
@@ -57,6 +59,8 @@
return *this;
}
+ static Address StackSlotAddress(const Location &stack_slot);
+
uint32_t encoding() const {
ASSERT(Utils::IsInt(kImmBits, offset_));
uint16_t imm_value = static_cast<uint16_t>(offset_);
@@ -70,7 +74,7 @@
Register base() const { return base_; }
int32_t offset() const { return offset_; }
- bool Equals(const Address& other) {
+ bool Equals(const Address& other) const {
return (base_ == other.base_) && (offset_ == other.offset_);
}

Powered by Google App Engine
This is Rietveld 408576698