| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |