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 <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_ARM64) | 9 #if defined(TARGET_ARCH_ARM64) |
10 | 10 |
(...skipping 3282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3293 } else { | 3293 } else { |
3294 UnimplementedInstruction(instr); | 3294 UnimplementedInstruction(instr); |
3295 } | 3295 } |
3296 } | 3296 } |
3297 | 3297 |
3298 | 3298 |
3299 // Executes the current instruction. | 3299 // Executes the current instruction. |
3300 void Simulator::InstructionDecode(Instr* instr) { | 3300 void Simulator::InstructionDecode(Instr* instr) { |
3301 pc_modified_ = false; | 3301 pc_modified_ = false; |
3302 if (IsTracingExecution()) { | 3302 if (IsTracingExecution()) { |
3303 OS::Print("%" Pu64, icount_); | 3303 OS::Print("%" Pu64 " ", icount_); |
3304 const uword start = reinterpret_cast<uword>(instr); | 3304 const uword start = reinterpret_cast<uword>(instr); |
3305 const uword end = start + Instr::kInstrSize; | 3305 const uword end = start + Instr::kInstrSize; |
3306 Disassembler::Disassemble(start, end); | 3306 Disassembler::Disassemble(start, end); |
3307 } | 3307 } |
3308 | 3308 |
3309 if (instr->IsDPImmediateOp()) { | 3309 if (instr->IsDPImmediateOp()) { |
3310 DecodeDPImmediate(instr); | 3310 DecodeDPImmediate(instr); |
3311 } else if (instr->IsCompareBranchOp()) { | 3311 } else if (instr->IsCompareBranchOp()) { |
3312 DecodeCompareBranch(instr); | 3312 DecodeCompareBranch(instr); |
3313 } else if (instr->IsLoadStoreOp()) { | 3313 } else if (instr->IsLoadStoreOp()) { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3494 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); | 3494 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); |
3495 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); | 3495 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); |
3496 buf->Longjmp(); | 3496 buf->Longjmp(); |
3497 } | 3497 } |
3498 | 3498 |
3499 } // namespace dart | 3499 } // namespace dart |
3500 | 3500 |
3501 #endif // !defined(HOST_ARCH_ARM64) | 3501 #endif // !defined(HOST_ARCH_ARM64) |
3502 | 3502 |
3503 #endif // defined TARGET_ARCH_ARM64 | 3503 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |