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 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1211 exclusive_access_state_[i].addr = 0; | 1211 exclusive_access_state_[i].addr = 0; |
1212 } | 1212 } |
1213 } | 1213 } |
1214 return result; | 1214 return result; |
1215 } | 1215 } |
1216 | 1216 |
1217 | 1217 |
1218 void Simulator::ClearExclusive() { | 1218 void Simulator::ClearExclusive() { |
1219 MutexLocker ml(exclusive_access_lock_); | 1219 MutexLocker ml(exclusive_access_lock_); |
1220 // Remove the reservation for this thread. | 1220 // Remove the reservation for this thread. |
1221 SetExclusiveAccess(NULL); | 1221 SetExclusiveAccess(0); |
1222 } | 1222 } |
1223 | 1223 |
1224 | 1224 |
1225 intptr_t Simulator::ReadExclusiveX(uword addr, Instr* instr) { | 1225 intptr_t Simulator::ReadExclusiveX(uword addr, Instr* instr) { |
1226 MutexLocker ml(exclusive_access_lock_); | 1226 MutexLocker ml(exclusive_access_lock_); |
1227 SetExclusiveAccess(addr); | 1227 SetExclusiveAccess(addr); |
1228 return ReadX(addr, instr); | 1228 return ReadX(addr, instr); |
1229 } | 1229 } |
1230 | 1230 |
1231 | 1231 |
(...skipping 2373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3605 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); | 3605 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); |
3606 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); | 3606 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); |
3607 buf->Longjmp(); | 3607 buf->Longjmp(); |
3608 } | 3608 } |
3609 | 3609 |
3610 } // namespace dart | 3610 } // namespace dart |
3611 | 3611 |
3612 #endif // !defined(USING_SIMULATOR) | 3612 #endif // !defined(USING_SIMULATOR) |
3613 | 3613 |
3614 #endif // defined TARGET_ARCH_ARM64 | 3614 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |