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

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

Issue 12431016: Copies Simulator Debugger from ARM to MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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/constants_mips.h » ('j') | runtime/vm/constants_mips.h » ('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_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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 void and_(Register rd, Register rs, Register rt) { 238 void and_(Register rd, Register rs, Register rt) {
239 EmitRType(SPECIAL, rs, rt, rd, 0, AND); 239 EmitRType(SPECIAL, rs, rt, rd, 0, AND);
240 } 240 }
241 241
242 void andi(Register rt, Register rs, const Immediate& imm) { 242 void andi(Register rt, Register rs, const Immediate& imm) {
243 ASSERT(Utils::IsUint(16, imm.value())); 243 ASSERT(Utils::IsUint(16, imm.value()));
244 uint16_t imm_value = static_cast<uint16_t>(imm.value()); 244 uint16_t imm_value = static_cast<uint16_t>(imm.value());
245 EmitIType(ANDI, rs, rt, imm_value); 245 EmitIType(ANDI, rs, rt, imm_value);
246 } 246 }
247 247
248 void break_(int32_t code) {
249 ASSERT(Utils::IsUint(20, code));
250 Emit(SPECIAL << kOpcodeShift |
251 code << kBreakCodeShift |
252 BREAK << kFunctionShift);
253 }
254
248 void clo(Register rd, Register rs) { 255 void clo(Register rd, Register rs) {
249 EmitRType(SPECIAL2, rs, rd, rd, 0, CLO); 256 EmitRType(SPECIAL2, rs, rd, rd, 0, CLO);
250 } 257 }
251 258
252 void clz(Register rd, Register rs) { 259 void clz(Register rd, Register rs) {
253 EmitRType(SPECIAL2, rs, rd, rd, 0, CLZ); 260 EmitRType(SPECIAL2, rs, rd, rd, 0, CLZ);
254 } 261 }
255 262
256 void div(Register rs, Register rt) { 263 void div(Register rs, Register rt) {
257 EmitRType(SPECIAL, rs, rt, R0, 0, DIV); 264 EmitRType(SPECIAL, rs, rt, R0, 0, DIV);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 func << kFunctionShift); 419 func << kFunctionShift);
413 } 420 }
414 421
415 DISALLOW_ALLOCATION(); 422 DISALLOW_ALLOCATION();
416 DISALLOW_COPY_AND_ASSIGN(Assembler); 423 DISALLOW_COPY_AND_ASSIGN(Assembler);
417 }; 424 };
418 425
419 } // namespace dart 426 } // namespace dart
420 427
421 #endif // VM_ASSEMBLER_MIPS_H_ 428 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/constants_mips.h » ('j') | runtime/vm/constants_mips.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698