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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_ASSEMBLER_MIPS_H_ 5 #ifndef VM_ASSEMBLER_MIPS_H_
6 #define VM_ASSEMBLER_MIPS_H_ 6 #define VM_ASSEMBLER_MIPS_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_mips.h directly; use assembler.h instead. 9 #error Do not include assembler_mips.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return (base_ << kRsShift) | imm_value; 63 return (base_ << kRsShift) | imm_value;
64 } 64 }
65 65
66 static bool CanHoldOffset(int32_t offset) { 66 static bool CanHoldOffset(int32_t offset) {
67 return Utils::IsInt(kImmBits, offset); 67 return Utils::IsInt(kImmBits, offset);
68 } 68 }
69 69
70 Register base() const { return base_; } 70 Register base() const { return base_; }
71 int32_t offset() const { return offset_; } 71 int32_t offset() const { return offset_; }
72 72
73 bool Equals(const Address& other) { 73 bool Equals(const Address& other) const {
74 return (base_ == other.base_) && (offset_ == other.offset_); 74 return (base_ == other.base_) && (offset_ == other.offset_);
75 } 75 }
76 76
77 private: 77 private:
78 Register base_; 78 Register base_;
79 int32_t offset_; 79 int32_t offset_;
80 }; 80 };
81 81
82 82
83 class FieldAddress : public Address { 83 class FieldAddress : public Address {
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 Register value, 1253 Register value,
1254 Label* no_update); 1254 Label* no_update);
1255 1255
1256 DISALLOW_ALLOCATION(); 1256 DISALLOW_ALLOCATION();
1257 DISALLOW_COPY_AND_ASSIGN(Assembler); 1257 DISALLOW_COPY_AND_ASSIGN(Assembler);
1258 }; 1258 };
1259 1259
1260 } // namespace dart 1260 } // namespace dart
1261 1261
1262 #endif // VM_ASSEMBLER_MIPS_H_ 1262 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698