| 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_MIPS) | 9 #if defined(TARGET_ARCH_MIPS) |
| 10 | 10 |
| (...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1971 UnimplementedInstruction(instr); | 1971 UnimplementedInstruction(instr); |
| 1972 break; | 1972 break; |
| 1973 } | 1973 } |
| 1974 } | 1974 } |
| 1975 } | 1975 } |
| 1976 } | 1976 } |
| 1977 | 1977 |
| 1978 | 1978 |
| 1979 void Simulator::InstructionDecode(Instr* instr) { | 1979 void Simulator::InstructionDecode(Instr* instr) { |
| 1980 if (IsTracingExecution()) { | 1980 if (IsTracingExecution()) { |
| 1981 OS::Print("%u ", icount_); | 1981 OS::Print("%" Pd " ", icount_); |
| 1982 const uword start = reinterpret_cast<uword>(instr); | 1982 const uword start = reinterpret_cast<uword>(instr); |
| 1983 const uword end = start + Instr::kInstrSize; | 1983 const uword end = start + Instr::kInstrSize; |
| 1984 Disassembler::Disassemble(start, end); | 1984 Disassembler::Disassemble(start, end); |
| 1985 } | 1985 } |
| 1986 | 1986 |
| 1987 switch (instr->OpcodeField()) { | 1987 switch (instr->OpcodeField()) { |
| 1988 case SPECIAL: { | 1988 case SPECIAL: { |
| 1989 DecodeSpecial(instr); | 1989 DecodeSpecial(instr); |
| 1990 break; | 1990 break; |
| 1991 } | 1991 } |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2487 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 2487 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
| 2488 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 2488 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
| 2489 buf->Longjmp(); | 2489 buf->Longjmp(); |
| 2490 } | 2490 } |
| 2491 | 2491 |
| 2492 } // namespace dart | 2492 } // namespace dart |
| 2493 | 2493 |
| 2494 #endif // !defined(HOST_ARCH_MIPS) | 2494 #endif // !defined(HOST_ARCH_MIPS) |
| 2495 | 2495 |
| 2496 #endif // defined TARGET_ARCH_MIPS | 2496 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |