| 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> | 5 #include <setjmp.h> |
| 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 2806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2817 if ((instr->Bits(21, 3) == 0) && (instr->Bit(8) == 0)) { | 2817 if ((instr->Bits(21, 3) == 0) && (instr->Bit(8) == 0)) { |
| 2818 Register rd = instr->RdField(); | 2818 Register rd = instr->RdField(); |
| 2819 SRegister sn = instr->SnField(); | 2819 SRegister sn = instr->SnField(); |
| 2820 if (instr->Bit(20) == 0) { | 2820 if (instr->Bit(20) == 0) { |
| 2821 // Format(instr, "vmovs'cond 'sn, 'rd"); | 2821 // Format(instr, "vmovs'cond 'sn, 'rd"); |
| 2822 set_sregister_bits(sn, get_register(rd)); | 2822 set_sregister_bits(sn, get_register(rd)); |
| 2823 } else { | 2823 } else { |
| 2824 // Format(instr, "vmovr'cond 'rd, 'sn"); | 2824 // Format(instr, "vmovr'cond 'rd, 'sn"); |
| 2825 set_register(rd, get_sregister_bits(sn)); | 2825 set_register(rd, get_sregister_bits(sn)); |
| 2826 } | 2826 } |
| 2827 } else if ((instr->Bits(22, 3) == 0) && (instr->Bit(20) == 0) && |
| 2828 (instr->Bit(8) == 1) && (instr->Bits(5, 2) == 0)) { |
| 2829 DRegister dn = instr->DnField(); |
| 2830 Register rd = instr->RdField(); |
| 2831 if (instr->Bit(21) == 0) { |
| 2832 // Format(instr, "vmovd'cond 'dd[0], 'rd"); |
| 2833 SRegister sd = EvenSRegisterOf(dn); |
| 2834 set_sregister_bits(sd, get_register(rd)); |
| 2835 } else { |
| 2836 // Format(instr, "vmovd'cond 'dd[1], 'rd"); |
| 2837 SRegister sd = OddSRegisterOf(dn); |
| 2838 set_sregister_bits(sd, get_register(rd)); |
| 2839 } |
| 2827 } else if ((instr->Bits(20, 4) == 0xf) && (instr->Bit(8) == 0) && | 2840 } else if ((instr->Bits(20, 4) == 0xf) && (instr->Bit(8) == 0) && |
| 2828 (instr->Bits(12, 4) == 0xf)) { | 2841 (instr->Bits(12, 4) == 0xf)) { |
| 2829 // Format(instr, "vmstat'cond"); | 2842 // Format(instr, "vmstat'cond"); |
| 2830 n_flag_ = fp_n_flag_; | 2843 n_flag_ = fp_n_flag_; |
| 2831 z_flag_ = fp_z_flag_; | 2844 z_flag_ = fp_z_flag_; |
| 2832 c_flag_ = fp_c_flag_; | 2845 c_flag_ = fp_c_flag_; |
| 2833 v_flag_ = fp_v_flag_; | 2846 v_flag_ = fp_v_flag_; |
| 2834 } else { | 2847 } else { |
| 2835 UnimplementedInstruction(instr); | 2848 UnimplementedInstruction(instr); |
| 2836 } | 2849 } |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3722 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3735 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
| 3723 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 3736 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
| 3724 buf->Longjmp(); | 3737 buf->Longjmp(); |
| 3725 } | 3738 } |
| 3726 | 3739 |
| 3727 } // namespace dart | 3740 } // namespace dart |
| 3728 | 3741 |
| 3729 #endif // !defined(HOST_ARCH_ARM) | 3742 #endif // !defined(HOST_ARCH_ARM) |
| 3730 | 3743 |
| 3731 #endif // defined TARGET_ARCH_ARM | 3744 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |