| 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 <math.h> // for isnan. | 5 #include <math.h> // for isnan. |
| 6 #include <setjmp.h> | 6 #include <setjmp.h> |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #if defined(TARGET_ARCH_ARM) | 10 #if defined(TARGET_ARCH_ARM) |
| (...skipping 3183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3194 // Format(instr, "vmaxqs 'qd, 'qn, 'qm"); | 3194 // Format(instr, "vmaxqs 'qd, 'qn, 'qm"); |
| 3195 for (int i = 0; i < 4; i++) { | 3195 for (int i = 0; i < 4; i++) { |
| 3196 s8d.data_[i].f = | 3196 s8d.data_[i].f = |
| 3197 s8n.data_[i].f >= s8m.data_[i].f ? s8n.data_[i].f : s8m.data_[i].f; | 3197 s8n.data_[i].f >= s8m.data_[i].f ? s8n.data_[i].f : s8m.data_[i].f; |
| 3198 } | 3198 } |
| 3199 } else if ((instr->Bits(8, 4) == 7) && (instr->Bit(4) == 0) && | 3199 } else if ((instr->Bits(8, 4) == 7) && (instr->Bit(4) == 0) && |
| 3200 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && | 3200 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && |
| 3201 (instr->Bit(7) == 0) && (instr->Bits(16, 4) == 9)) { | 3201 (instr->Bit(7) == 0) && (instr->Bits(16, 4) == 9)) { |
| 3202 // Format(instr, "vabsqs 'qd, 'qm"); | 3202 // Format(instr, "vabsqs 'qd, 'qm"); |
| 3203 for (int i = 0; i < 4; i++) { | 3203 for (int i = 0; i < 4; i++) { |
| 3204 s8d.data_[i].f = abs(s8m.data_[i].f); | 3204 s8d.data_[i].f = fabsf(s8m.data_[i].f); |
| 3205 } | 3205 } |
| 3206 } else if ((instr->Bits(8, 4) == 7) && (instr->Bit(4) == 0) && | 3206 } else if ((instr->Bits(8, 4) == 7) && (instr->Bit(4) == 0) && |
| 3207 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && | 3207 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && |
| 3208 (instr->Bit(7) == 1) && (instr->Bits(16, 4) == 9)) { | 3208 (instr->Bit(7) == 1) && (instr->Bits(16, 4) == 9)) { |
| 3209 // Format(instr, "vnegqs 'qd, 'qm"); | 3209 // Format(instr, "vnegqs 'qd, 'qm"); |
| 3210 for (int i = 0; i < 4; i++) { | 3210 for (int i = 0; i < 4; i++) { |
| 3211 s8d.data_[i].f = -s8m.data_[i].f; | 3211 s8d.data_[i].f = -s8m.data_[i].f; |
| 3212 } | 3212 } |
| 3213 } else if ((instr->Bits(7, 5) == 10) && (instr->Bit(4) == 0) && | 3213 } else if ((instr->Bits(7, 5) == 10) && (instr->Bit(4) == 0) && |
| 3214 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && | 3214 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3724 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3724 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
| 3725 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 3725 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
| 3726 buf->Longjmp(); | 3726 buf->Longjmp(); |
| 3727 } | 3727 } |
| 3728 | 3728 |
| 3729 } // namespace dart | 3729 } // namespace dart |
| 3730 | 3730 |
| 3731 #endif // !defined(HOST_ARCH_ARM) | 3731 #endif // !defined(HOST_ARCH_ARM) |
| 3732 | 3732 |
| 3733 #endif // defined TARGET_ARCH_ARM | 3733 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |