| 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_MIPS) | 10 #if defined(TARGET_ARCH_MIPS) |
| (...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 break; | 1704 break; |
| 1705 } | 1705 } |
| 1706 case LBU: { | 1706 case LBU: { |
| 1707 // Format(instr, "lbu 'rt, 'imms('rs)"); | 1707 // Format(instr, "lbu 'rt, 'imms('rs)"); |
| 1708 int32_t base_val = get_register(instr->RsField()); | 1708 int32_t base_val = get_register(instr->RsField()); |
| 1709 int32_t imm_val = instr->SImmField(); | 1709 int32_t imm_val = instr->SImmField(); |
| 1710 uword addr = base_val + imm_val; | 1710 uword addr = base_val + imm_val; |
| 1711 if (Simulator::IsIllegalAddress(addr)) { | 1711 if (Simulator::IsIllegalAddress(addr)) { |
| 1712 HandleIllegalAccess(addr, instr); | 1712 HandleIllegalAccess(addr, instr); |
| 1713 } else { | 1713 } else { |
| 1714 int32_t res = ReadBU(addr); | 1714 uint32_t res = ReadBU(addr); |
| 1715 set_register(instr->RtField(), res); | 1715 set_register(instr->RtField(), res); |
| 1716 } | 1716 } |
| 1717 break; | 1717 break; |
| 1718 } | 1718 } |
| 1719 case LDC1: { | 1719 case LDC1: { |
| 1720 // Format(instr, "ldc1 'ft, 'imms('rs)"); | 1720 // Format(instr, "ldc1 'ft, 'imms('rs)"); |
| 1721 int32_t base_val = get_register(instr->RsField()); | 1721 int32_t base_val = get_register(instr->RsField()); |
| 1722 int32_t imm_val = instr->SImmField(); | 1722 int32_t imm_val = instr->SImmField(); |
| 1723 uword addr = base_val + imm_val; | 1723 uword addr = base_val + imm_val; |
| 1724 if (Simulator::IsIllegalAddress(addr)) { | 1724 if (Simulator::IsIllegalAddress(addr)) { |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2052 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 2052 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
| 2053 } | 2053 } |
| 2054 buf->Longjmp(); | 2054 buf->Longjmp(); |
| 2055 } | 2055 } |
| 2056 | 2056 |
| 2057 } // namespace dart | 2057 } // namespace dart |
| 2058 | 2058 |
| 2059 #endif // !defined(HOST_ARCH_MIPS) | 2059 #endif // !defined(HOST_ARCH_MIPS) |
| 2060 | 2060 |
| 2061 #endif // defined TARGET_ARCH_MIPS | 2061 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |