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

Side by Side Diff: runtime/vm/assembler_arm.h

Issue 18223010: Optimize functions containing try-catch on ARM. (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/flow_graph.cc » ('j') | no next file with comments »
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 ShifterOperand so(rm, shift, shift_imm); 254 ShifterOperand so(rm, shift, shift_imm);
255 255
256 if ((shift == LSL) && (shift_imm == 0)) { 256 if ((shift == LSL) && (shift_imm == 0)) {
257 kind_ = IndexRegister; 257 kind_ = IndexRegister;
258 } else { 258 } else {
259 kind_ = ScaledIndexRegister; 259 kind_ = ScaledIndexRegister;
260 } 260 }
261 encoding_ = so.encoding() | am | (static_cast<uint32_t>(rn) << kRnShift); 261 encoding_ = so.encoding() | am | (static_cast<uint32_t>(rn) << kRnShift);
262 } 262 }
263 263
264 bool Equals(const Address& other) {
265 return (encoding_ == other.encoding_) && (kind_ == other.kind_);
266 }
267
264 static bool CanHoldLoadOffset(LoadOperandType type, 268 static bool CanHoldLoadOffset(LoadOperandType type,
265 int32_t offset, 269 int32_t offset,
266 int32_t* offset_mask); 270 int32_t* offset_mask);
267 static bool CanHoldStoreOffset(StoreOperandType type, 271 static bool CanHoldStoreOffset(StoreOperandType type,
268 int32_t offset, 272 int32_t offset,
269 int32_t* offset_mask); 273 int32_t* offset_mask);
270 274
271 private: 275 private:
272 uint32_t encoding() const { return encoding_; } 276 uint32_t encoding() const { return encoding_; }
273 277
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 Register value, 805 Register value,
802 Label* no_update); 806 Label* no_update);
803 807
804 DISALLOW_ALLOCATION(); 808 DISALLOW_ALLOCATION();
805 DISALLOW_COPY_AND_ASSIGN(Assembler); 809 DISALLOW_COPY_AND_ASSIGN(Assembler);
806 }; 810 };
807 811
808 } // namespace dart 812 } // namespace dart
809 813
810 #endif // VM_ASSEMBLER_ARM_H_ 814 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698