| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 #include <cmath> | 6 #include <cmath> |
| 7 #include <cstdarg> | 7 #include <cstdarg> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_ARM64 | 9 #if V8_TARGET_ARCH_ARM64 |
| 10 | 10 |
| (...skipping 3871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3882 } else if (instr->ImmException() == kImmExceptionIsUnreachable) { | 3882 } else if (instr->ImmException() == kImmExceptionIsUnreachable) { |
| 3883 fprintf(stream_, "Hit UNREACHABLE marker at PC=%p.\n", | 3883 fprintf(stream_, "Hit UNREACHABLE marker at PC=%p.\n", |
| 3884 reinterpret_cast<void*>(pc_)); | 3884 reinterpret_cast<void*>(pc_)); |
| 3885 abort(); | 3885 abort(); |
| 3886 | 3886 |
| 3887 } else { | 3887 } else { |
| 3888 base::OS::DebugBreak(); | 3888 base::OS::DebugBreak(); |
| 3889 } | 3889 } |
| 3890 break; | 3890 break; |
| 3891 } | 3891 } |
| 3892 | 3892 case BRK: |
| 3893 base::OS::DebugBreak(); |
| 3894 break; |
| 3893 default: | 3895 default: |
| 3894 UNIMPLEMENTED(); | 3896 UNIMPLEMENTED(); |
| 3895 } | 3897 } |
| 3896 } | 3898 } |
| 3897 | 3899 |
| 3898 | 3900 |
| 3899 void Simulator::DoPrintf(Instruction* instr) { | 3901 void Simulator::DoPrintf(Instruction* instr) { |
| 3900 DCHECK((instr->Mask(ExceptionMask) == HLT) && | 3902 DCHECK((instr->Mask(ExceptionMask) == HLT) && |
| 3901 (instr->ImmException() == kImmExceptionIsPrintf)); | 3903 (instr->ImmException() == kImmExceptionIsPrintf)); |
| 3902 | 3904 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4201 processor->prev_ = nullptr; | 4203 processor->prev_ = nullptr; |
| 4202 processor->next_ = nullptr; | 4204 processor->next_ = nullptr; |
| 4203 } | 4205 } |
| 4204 | 4206 |
| 4205 #endif // USE_SIMULATOR | 4207 #endif // USE_SIMULATOR |
| 4206 | 4208 |
| 4207 } // namespace internal | 4209 } // namespace internal |
| 4208 } // namespace v8 | 4210 } // namespace v8 |
| 4209 | 4211 |
| 4210 #endif // V8_TARGET_ARCH_ARM64 | 4212 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |