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

Side by Side Diff: runtime/vm/assembler_arm.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
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.h » ('j') | runtime/vm/flow_graph_compiler_arm.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ARM_H_ 5 #ifndef VM_ASSEMBLER_ARM_H_
6 #define VM_ASSEMBLER_ARM_H_ 6 #define VM_ASSEMBLER_ARM_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_arm.h directly; use assembler.h instead. 9 #error Do not include assembler_arm.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 ShifterOperand so(rm, shift, shift_imm); 248 ShifterOperand so(rm, shift, shift_imm);
249 249
250 if ((shift == LSL) && (shift_imm == 0)) { 250 if ((shift == LSL) && (shift_imm == 0)) {
251 kind_ = IndexRegister; 251 kind_ = IndexRegister;
252 } else { 252 } else {
253 kind_ = ScaledIndexRegister; 253 kind_ = ScaledIndexRegister;
254 } 254 }
255 encoding_ = so.encoding() | am | (static_cast<uint32_t>(rn) << kRnShift); 255 encoding_ = so.encoding() | am | (static_cast<uint32_t>(rn) << kRnShift);
256 } 256 }
257 257
258 bool Equals(const Address& other) { 258 bool Equals(const Address& other) const {
259 return (encoding_ == other.encoding_) && (kind_ == other.kind_); 259 return (encoding_ == other.encoding_) && (kind_ == other.kind_);
260 } 260 }
261 261
262 static bool CanHoldLoadOffset(OperandSize type, 262 static bool CanHoldLoadOffset(OperandSize type,
263 int32_t offset, 263 int32_t offset,
264 int32_t* offset_mask); 264 int32_t* offset_mask);
265 static bool CanHoldStoreOffset(OperandSize type, 265 static bool CanHoldStoreOffset(OperandSize type,
266 int32_t offset, 266 int32_t offset,
267 int32_t* offset_mask); 267 int32_t* offset_mask);
268 268
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 Register value, 827 Register value,
828 Label* no_update); 828 Label* no_update);
829 829
830 DISALLOW_ALLOCATION(); 830 DISALLOW_ALLOCATION();
831 DISALLOW_COPY_AND_ASSIGN(Assembler); 831 DISALLOW_COPY_AND_ASSIGN(Assembler);
832 }; 832 };
833 833
834 } // namespace dart 834 } // namespace dart
835 835
836 #endif // VM_ASSEMBLER_ARM_H_ 836 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.h » ('j') | runtime/vm/flow_graph_compiler_arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698