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> // NOLINT | 5 #include <setjmp.h> // NOLINT |
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 3568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3579 UnimplementedInstruction(instr); | 3579 UnimplementedInstruction(instr); |
3580 } | 3580 } |
3581 } | 3581 } |
3582 } | 3582 } |
3583 | 3583 |
3584 | 3584 |
3585 // Executes the current instruction. | 3585 // Executes the current instruction. |
3586 void Simulator::InstructionDecode(Instr* instr) { | 3586 void Simulator::InstructionDecode(Instr* instr) { |
3587 pc_modified_ = false; | 3587 pc_modified_ = false; |
3588 if (IsTracingExecution()) { | 3588 if (IsTracingExecution()) { |
3589 OS::Print("%"Pu64, icount_); | 3589 OS::Print("%" Pu64 " ", icount_); |
3590 const uword start = reinterpret_cast<uword>(instr); | 3590 const uword start = reinterpret_cast<uword>(instr); |
3591 const uword end = start + Instr::kInstrSize; | 3591 const uword end = start + Instr::kInstrSize; |
3592 Disassembler::Disassemble(start, end); | 3592 Disassembler::Disassemble(start, end); |
3593 } | 3593 } |
3594 if (instr->ConditionField() == kSpecialCondition) { | 3594 if (instr->ConditionField() == kSpecialCondition) { |
3595 if (instr->InstructionBits() == static_cast<int32_t>(0xf57ff01f)) { | 3595 if (instr->InstructionBits() == static_cast<int32_t>(0xf57ff01f)) { |
3596 // Format(instr, "clrex"); | 3596 // Format(instr, "clrex"); |
3597 ClearExclusive(); | 3597 ClearExclusive(); |
3598 } else { | 3598 } else { |
3599 if (instr->IsSIMDDataProcessing()) { | 3599 if (instr->IsSIMDDataProcessing()) { |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3873 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 3873 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
3874 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 3874 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
3875 buf->Longjmp(); | 3875 buf->Longjmp(); |
3876 } | 3876 } |
3877 | 3877 |
3878 } // namespace dart | 3878 } // namespace dart |
3879 | 3879 |
3880 #endif // !defined(HOST_ARCH_ARM) | 3880 #endif // !defined(HOST_ARCH_ARM) |
3881 | 3881 |
3882 #endif // defined TARGET_ARCH_ARM | 3882 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |