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

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

Issue 18243002: Optimize functions containing try-catch on MIPS. (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_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) {
74 return (base_ == other.base_) && (offset_ == other.offset_);
75 }
76
73 private: 77 private:
74 Register base_; 78 Register base_;
75 int32_t offset_; 79 int32_t offset_;
76 }; 80 };
77 81
78 82
79 class FieldAddress : public Address { 83 class FieldAddress : public Address {
80 public: 84 public:
81 FieldAddress(Register base, int32_t disp) 85 FieldAddress(Register base, int32_t disp)
82 : Address(base, disp - kHeapObjectTag) { } 86 : Address(base, disp - kHeapObjectTag) { }
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 Register value, 1248 Register value,
1245 Label* no_update); 1249 Label* no_update);
1246 1250
1247 DISALLOW_ALLOCATION(); 1251 DISALLOW_ALLOCATION();
1248 DISALLOW_COPY_AND_ASSIGN(Assembler); 1252 DISALLOW_COPY_AND_ASSIGN(Assembler);
1249 }; 1253 };
1250 1254
1251 } // namespace dart 1255 } // namespace dart
1252 1256
1253 #endif // VM_ASSEMBLER_MIPS_H_ 1257 #endif // VM_ASSEMBLER_MIPS_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