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

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

Issue 789903002: Complete and clean up breakpoint support in all 3 debuggers embedded in MIPS, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/assembler_mips.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 void Assembler::Stop(const char* message) { 228 void Assembler::Stop(const char* message) {
229 if (FLAG_print_stop_message) { 229 if (FLAG_print_stop_message) {
230 UNIMPLEMENTED(); 230 UNIMPLEMENTED();
231 } 231 }
232 Label stop; 232 Label stop;
233 b(&stop); 233 b(&stop);
234 Emit(Utils::Low32Bits(reinterpret_cast<int64_t>(message))); 234 Emit(Utils::Low32Bits(reinterpret_cast<int64_t>(message)));
235 Emit(Utils::High32Bits(reinterpret_cast<int64_t>(message))); 235 Emit(Utils::High32Bits(reinterpret_cast<int64_t>(message)));
236 Bind(&stop); 236 Bind(&stop);
237 hlt(kImmExceptionIsDebug); 237 hlt(Instr::kStopMessageCode);
238 } 238 }
239 239
240 240
241 static int CountLeadingZeros(uint64_t value, int width) { 241 static int CountLeadingZeros(uint64_t value, int width) {
242 ASSERT((width == 32) || (width == 64)); 242 ASSERT((width == 32) || (width == 64));
243 if (value == 0) { 243 if (value == 0) {
244 return width; 244 return width;
245 } 245 }
246 int count = 0; 246 int count = 0;
247 do { 247 do {
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 add(base, array, Operand(index, LSL, shift)); 1512 add(base, array, Operand(index, LSL, shift));
1513 } 1513 }
1514 const OperandSize size = Address::OperandSizeFor(cid); 1514 const OperandSize size = Address::OperandSizeFor(cid);
1515 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); 1515 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size));
1516 return Address(base, offset, Address::Offset, size); 1516 return Address(base, offset, Address::Offset, size);
1517 } 1517 }
1518 1518
1519 } // namespace dart 1519 } // namespace dart
1520 1520
1521 #endif // defined TARGET_ARCH_ARM64 1521 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698