OLD | NEW |
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 <setjmp.h> // NOLINT | 5 #include <setjmp.h> // NOLINT |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 | 7 |
8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
9 #if defined(TARGET_ARCH_ARM) | 9 #if defined(TARGET_ARCH_ARM) |
10 | 10 |
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 } | 1706 } |
1707 break; | 1707 break; |
1708 } | 1708 } |
1709 default: { | 1709 default: { |
1710 UnimplementedInstruction(instr); | 1710 UnimplementedInstruction(instr); |
1711 break; | 1711 break; |
1712 } | 1712 } |
1713 } | 1713 } |
1714 } else if (instr->IsMultiplyOrSyncPrimitive()) { | 1714 } else if (instr->IsMultiplyOrSyncPrimitive()) { |
1715 if (instr->Bit(24) == 0) { | 1715 if (instr->Bit(24) == 0) { |
1716 if ((TargetCPUFeatures::arm_version() != ARMv7) && | |
1717 (instr->Bits(21, 3) != 0)) { | |
1718 // mla ... smlal only supported on armv7. | |
1719 UnimplementedInstruction(instr); | |
1720 return; | |
1721 } | |
1722 // multiply instructions. | 1716 // multiply instructions. |
1723 Register rn = instr->RnField(); | 1717 Register rn = instr->RnField(); |
1724 Register rd = instr->RdField(); | 1718 Register rd = instr->RdField(); |
1725 Register rs = instr->RsField(); | 1719 Register rs = instr->RsField(); |
1726 Register rm = instr->RmField(); | 1720 Register rm = instr->RmField(); |
1727 int32_t rm_val = get_register(rm); | 1721 int32_t rm_val = get_register(rm); |
1728 int32_t rs_val = get_register(rs); | 1722 int32_t rs_val = get_register(rs); |
1729 int32_t rd_val = 0; | 1723 int32_t rd_val = 0; |
1730 switch (instr->Bits(21, 3)) { | 1724 switch (instr->Bits(21, 3)) { |
1731 case 1: | 1725 case 1: |
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3871 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3865 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
3872 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 3866 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
3873 buf->Longjmp(); | 3867 buf->Longjmp(); |
3874 } | 3868 } |
3875 | 3869 |
3876 } // namespace dart | 3870 } // namespace dart |
3877 | 3871 |
3878 #endif // !defined(HOST_ARCH_ARM) | 3872 #endif // !defined(HOST_ARCH_ARM) |
3879 | 3873 |
3880 #endif // defined TARGET_ARCH_ARM | 3874 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |