| 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 2943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2954 Register rd = instr->RdField(); | 2954 Register rd = instr->RdField(); |
| 2955 if (instr->Bit(21) == 0) { | 2955 if (instr->Bit(21) == 0) { |
| 2956 // Format(instr, "vmovd'cond 'dd[0], 'rd"); | 2956 // Format(instr, "vmovd'cond 'dd[0], 'rd"); |
| 2957 SRegister sd = EvenSRegisterOf(dn); | 2957 SRegister sd = EvenSRegisterOf(dn); |
| 2958 set_sregister_bits(sd, get_register(rd)); | 2958 set_sregister_bits(sd, get_register(rd)); |
| 2959 } else { | 2959 } else { |
| 2960 // Format(instr, "vmovd'cond 'dd[1], 'rd"); | 2960 // Format(instr, "vmovd'cond 'dd[1], 'rd"); |
| 2961 SRegister sd = OddSRegisterOf(dn); | 2961 SRegister sd = OddSRegisterOf(dn); |
| 2962 set_sregister_bits(sd, get_register(rd)); | 2962 set_sregister_bits(sd, get_register(rd)); |
| 2963 } | 2963 } |
| 2964 } else if ((instr->Bits(20, 4) == 0xf) && (instr->Bit(8) == 0) && | 2964 } else if ((instr->Bits(20, 4) == 0xf) && (instr->Bit(8) == 0)) { |
| 2965 (instr->Bits(12, 4) == 0xf)) { | 2965 if (instr->Bits(12, 4) == 0xf) { |
| 2966 // Format(instr, "vmstat'cond"); | 2966 // Format(instr, "vmrs'cond APSR, FPSCR"); |
| 2967 n_flag_ = fp_n_flag_; | 2967 n_flag_ = fp_n_flag_; |
| 2968 z_flag_ = fp_z_flag_; | 2968 z_flag_ = fp_z_flag_; |
| 2969 c_flag_ = fp_c_flag_; | 2969 c_flag_ = fp_c_flag_; |
| 2970 v_flag_ = fp_v_flag_; | 2970 v_flag_ = fp_v_flag_; |
| 2971 } else { |
| 2972 // Format(instr, "vmrs'cond 'rd, FPSCR"); |
| 2973 const int32_t n_flag = fp_n_flag_ ? (1 << 31) : 0; |
| 2974 const int32_t z_flag = fp_z_flag_ ? (1 << 30) : 0; |
| 2975 const int32_t c_flag = fp_c_flag_ ? (1 << 29) : 0; |
| 2976 const int32_t v_flag = fp_v_flag_ ? (1 << 28) : 0; |
| 2977 set_register(instr->RdField(), n_flag | z_flag | c_flag | v_flag); |
| 2978 } |
| 2971 } else { | 2979 } else { |
| 2972 UnimplementedInstruction(instr); | 2980 UnimplementedInstruction(instr); |
| 2973 } | 2981 } |
| 2974 } | 2982 } |
| 2975 } else { | 2983 } else { |
| 2976 UnimplementedInstruction(instr); | 2984 UnimplementedInstruction(instr); |
| 2977 } | 2985 } |
| 2978 } | 2986 } |
| 2979 | 2987 |
| 2980 | 2988 |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3859 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3867 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
| 3860 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 3868 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
| 3861 buf->Longjmp(); | 3869 buf->Longjmp(); |
| 3862 } | 3870 } |
| 3863 | 3871 |
| 3864 } // namespace dart | 3872 } // namespace dart |
| 3865 | 3873 |
| 3866 #endif // !defined(HOST_ARCH_ARM) | 3874 #endif // !defined(HOST_ARCH_ARM) |
| 3867 | 3875 |
| 3868 #endif // defined TARGET_ARCH_ARM | 3876 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |