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 <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_ARM64) | 10 #if defined(TARGET_ARCH_ARM64) |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 } | 604 } |
605 } | 605 } |
606 | 606 |
607 | 607 |
608 // Get the register from the architecture state. | 608 // Get the register from the architecture state. |
609 int32_t Simulator::get_wregister(Register reg, R31Type r31t) const { | 609 int32_t Simulator::get_wregister(Register reg, R31Type r31t) const { |
610 ASSERT((reg >= 0) && (reg < kNumberOfCpuRegisters)); | 610 ASSERT((reg >= 0) && (reg < kNumberOfCpuRegisters)); |
611 if ((reg == R31) && (r31t == R31IsZR)) { | 611 if ((reg == R31) && (r31t == R31IsZR)) { |
612 return 0; | 612 return 0; |
613 } else { | 613 } else { |
614 return registers_[reg]; | 614 return static_cast<int32_t>(registers_[reg]); |
615 } | 615 } |
616 } | 616 } |
617 | 617 |
618 | 618 |
619 int64_t Simulator::get_vregisterd(VRegister reg) const { | 619 int64_t Simulator::get_vregisterd(VRegister reg) const { |
620 ASSERT((reg >= 0) && (reg < kNumberOfVRegisters)); | 620 ASSERT((reg >= 0) && (reg < kNumberOfVRegisters)); |
621 return vregisters_[reg].lo; | 621 return vregisters_[reg].lo; |
622 } | 622 } |
623 | 623 |
624 | 624 |
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2473 set_register(kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); | 2473 set_register(kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); |
2474 set_register(kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); | 2474 set_register(kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); |
2475 buf->Longjmp(); | 2475 buf->Longjmp(); |
2476 } | 2476 } |
2477 | 2477 |
2478 } // namespace dart | 2478 } // namespace dart |
2479 | 2479 |
2480 #endif // !defined(HOST_ARCH_ARM64) | 2480 #endif // !defined(HOST_ARCH_ARM64) |
2481 | 2481 |
2482 #endif // defined TARGET_ARCH_ARM64 | 2482 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |