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

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

Issue 564843002: Initial steps towards cleaning up integer arithmetic IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 use_far_branches_(use_far_branches), 144 use_far_branches_(use_far_branches),
145 delay_slot_available_(false), 145 delay_slot_available_(false),
146 in_delay_slot_(false), 146 in_delay_slot_(false),
147 comments_(), 147 comments_(),
148 allow_constant_pool_(true) { } 148 allow_constant_pool_(true) { }
149 ~Assembler() { } 149 ~Assembler() { }
150 150
151 void PopRegister(Register r) { Pop(r); } 151 void PopRegister(Register r) { Pop(r); }
152 152
153 void Bind(Label* label); 153 void Bind(Label* label);
154 void Jump(Label* label) { b(label); }
154 155
155 // Misc. functionality 156 // Misc. functionality
156 intptr_t CodeSize() const { return buffer_.Size(); } 157 intptr_t CodeSize() const { return buffer_.Size(); }
157 intptr_t prologue_offset() const { return prologue_offset_; } 158 intptr_t prologue_offset() const { return prologue_offset_; }
158 159
159 // Count the fixups that produce a pointer offset, without processing 160 // Count the fixups that produce a pointer offset, without processing
160 // the fixups. 161 // the fixups.
161 intptr_t CountPointerOffsets() const { 162 intptr_t CountPointerOffsets() const {
162 return buffer_.CountPointerOffsets(); 163 return buffer_.CountPointerOffsets();
163 } 164 }
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 Register value, 1396 Register value,
1396 Label* no_update); 1397 Label* no_update);
1397 1398
1398 DISALLOW_ALLOCATION(); 1399 DISALLOW_ALLOCATION();
1399 DISALLOW_COPY_AND_ASSIGN(Assembler); 1400 DISALLOW_COPY_AND_ASSIGN(Assembler);
1400 }; 1401 };
1401 1402
1402 } // namespace dart 1403 } // namespace dart
1403 1404
1404 #endif // VM_ASSEMBLER_MIPS_H_ 1405 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698