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

Side by Side Diff: runtime/vm/disassembler_mips.cc

Issue 23072026: fix cpp11 compile errors (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 #include "vm/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
8 #if defined(TARGET_ARCH_MIPS) 8 #if defined(TARGET_ARCH_MIPS)
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 return 4; 209 return 4;
210 } 210 }
211 case 'd': { 211 case 'd': {
212 ASSERT(STRING_STARTS_WITH(format, "dest")); 212 ASSERT(STRING_STARTS_WITH(format, "dest"));
213 int off = instr->SImmField() << 2; 213 int off = instr->SImmField() << 2;
214 uword destination = 214 uword destination =
215 reinterpret_cast<uword>(instr) + off + Instr::kInstrSize; 215 reinterpret_cast<uword>(instr) + off + Instr::kInstrSize;
216 buffer_pos_ += OS::SNPrint(current_position_in_buffer(), 216 buffer_pos_ += OS::SNPrint(current_position_in_buffer(),
217 remaining_size_in_buffer(), 217 remaining_size_in_buffer(),
218 "%#"Px"", 218 "%#" Px "",
219 destination); 219 destination);
220 return 4; 220 return 4;
221 } 221 }
222 case 'i': { 222 case 'i': {
223 ASSERT(STRING_STARTS_WITH(format, "imm")); 223 ASSERT(STRING_STARTS_WITH(format, "imm"));
224 if (format[3] == 'u') { 224 if (format[3] == 'u') {
225 int32_t imm = instr->UImmField(); 225 int32_t imm = instr->UImmField();
226 buffer_pos_ += OS::SNPrint(current_position_in_buffer(), 226 buffer_pos_ += OS::SNPrint(current_position_in_buffer(),
227 remaining_size_in_buffer(), 227 remaining_size_in_buffer(),
228 "0x%x", 228 "0x%x",
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 pc); 792 pc);
793 pc += instruction_length; 793 pc += instruction_length;
794 } 794 }
795 795
796 return; 796 return;
797 } 797 }
798 798
799 } // namespace dart 799 } // namespace dart
800 800
801 #endif // defined TARGET_ARCH_MIPS 801 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698