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

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

Issue 120723003: Refactors CPU feature detection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Cleanup Created 6 years, 11 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ASSERT(!IsBound()); 128 ASSERT(!IsBound());
129 position_ = position + kWordSize; 129 position_ = position + kWordSize;
130 ASSERT(IsLinked()); 130 ASSERT(IsLinked());
131 } 131 }
132 132
133 friend class Assembler; 133 friend class Assembler;
134 DISALLOW_COPY_AND_ASSIGN(Label); 134 DISALLOW_COPY_AND_ASSIGN(Label);
135 }; 135 };
136 136
137 137
138 class CPUFeatures : public AllStatic {
139 public:
140 static void InitOnce() { }
141 static bool double_truncate_round_supported() {
142 return false;
143 }
144 };
145
146
147 class Assembler : public ValueObject { 138 class Assembler : public ValueObject {
148 public: 139 public:
149 explicit Assembler(bool use_far_branches = false) 140 explicit Assembler(bool use_far_branches = false)
150 : buffer_(), 141 : buffer_(),
151 object_pool_(GrowableObjectArray::Handle()), 142 object_pool_(GrowableObjectArray::Handle()),
152 prologue_offset_(-1), 143 prologue_offset_(-1),
153 use_far_branches_(use_far_branches), 144 use_far_branches_(use_far_branches),
154 delay_slot_available_(false), 145 delay_slot_available_(false),
155 in_delay_slot_(false), 146 in_delay_slot_(false),
156 comments_() { } 147 comments_() { }
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 Register value, 1282 Register value,
1292 Label* no_update); 1283 Label* no_update);
1293 1284
1294 DISALLOW_ALLOCATION(); 1285 DISALLOW_ALLOCATION();
1295 DISALLOW_COPY_AND_ASSIGN(Assembler); 1286 DISALLOW_COPY_AND_ASSIGN(Assembler);
1296 }; 1287 };
1297 1288
1298 } // namespace dart 1289 } // namespace dart
1299 1290
1300 #endif // VM_ASSEMBLER_MIPS_H_ 1291 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698